Summary
Audit every public writable Two.js property and expose the scene-relevant properties through the corresponding React component types and update path.
The current prop unions are manually curated and have fallen behind the Two.js API.
Known omissions
Path and path-derived shapes: mask, clip, strokeAttenuation
Text: mask, clip, strokeAttenuation
Points: strokeAttenuation
Group and SVG: mask, beginning, ending, strokeAttenuation
Rectangle and rectangle-derived effects: origin
Sprite.src: Two.js accepts a URL string or Two.Texture; the React prop currently accepts only a string
Read-only/internal properties such as renderer state should not be exposed merely because they exist on the instance.
Related work
Acceptance criteria
Summary
Audit every public writable Two.js property and expose the scene-relevant properties through the corresponding React component types and update path.
The current prop unions are manually curated and have fallen behind the Two.js API.
Known omissions
Pathand path-derived shapes:mask,clip,strokeAttenuationText:mask,clip,strokeAttenuationPoints:strokeAttenuationGroupandSVG:mask,beginning,ending,strokeAttenuationRectangleand rectangle-derived effects:originSprite.src: Two.js accepts a URL string orTwo.Texture; the React prop currently accepts only a stringRead-only/internal properties such as renderer state should not be exposed merely because they exist on the instance.
Related work
Acceptance criteria
mask/clipwhere supported.strokeAttenuationacross Path, Text, Points, Group, and derived components.originsupport across Rectangle, Image, Sprite, and ImageSequence.Two.TextureasSprite.src.