You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Parity] Complete declarative prop coverage for Two.js objects #30
Completed via PR #37 (commits ce22c1e and dd28ee3) and follow-up reconciliation in #36 (ca6c11e):
Property Matrix: Added lib/propertyMatrix.ts and docs/property-matrix.md covering all 19 exported components against Two.js v0.8.23, documenting supported properties and intentional omissions.
Declarative Coverage: Exposed missing properties across components:
mask, clip, strokeAttenuation on Path, Text, Group, SVG, and shape primitives.
strokeAttenuation on Points.
origin ergonomics (OriginProp, applyOrigin) on Rectangle, Image, Sprite, and ImageSequence supporting Two.Vector, { x, y }, tuples [x, y], and numbers.
Sprite.src updated to accept Two.Texture | string.
Reconciliation & Prop Resets: Extended prop normalization for position / translation and scale, and added missing defaults (mask, clip, strokeAttenuation, skewX, skewY, className, sizeAttenuation, spread, units) to TWO_DEFAULT_PROPS for clean reset semantics on prop removal.
Tests: 34 unit and type tests in tests/propertyMatrix.test.tsx and 18 tests in tests/reconciliation.test.tsx passing.
Activity
jonobr1 commentedon Sep 3, 2026
Completed via PR #37 (commits
ce22c1eanddd28ee3) and follow-up reconciliation in #36 (ca6c11e):lib/propertyMatrix.tsanddocs/property-matrix.mdcovering all 19 exported components against Two.js v0.8.23, documenting supported properties and intentional omissions.mask,clip,strokeAttenuationonPath,Text,Group,SVG, and shape primitives.strokeAttenuationonPoints.originergonomics (OriginProp,applyOrigin) onRectangle,Image,Sprite, andImageSequencesupportingTwo.Vector,{ x, y }, tuples[x, y], and numbers.Sprite.srcupdated to acceptTwo.Texture | string.GroupProps,PathProps,PointsProps,TextProps,SVGProps,RectangleProps,ImageProps,SpriteProps,ImageSequenceProps).position/translationandscale, and added missing defaults (mask,clip,strokeAttenuation,skewX,skewY,className,sizeAttenuation,spread,units) toTWO_DEFAULT_PROPSfor clean reset semantics on prop removal.tests/propertyMatrix.test.tsxand 18 tests intests/reconciliation.test.tsxpassing.