Skip to content

Conversation

richardliebmann
Copy link

The dashes property of the path, text and points types is described as an object with index access and an additional offset property. However, two.js assumes an array with an additional offset property. Therefore, the provided data results in a runtime error.

The expected data, according to the TypeScript type definition, is as follows:

l.dashes = { 0: 5, 1: 5, offset: 0 };

Correct data:

l.dashes = [5, 5];
l.dashes.offset = 0;

@jonobr1 jonobr1 merged commit 3874be6 into jonobr1:dev Jun 4, 2025
1 check passed
@jonobr1
Copy link
Owner

jonobr1 commented Jun 4, 2025

This is great. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants