Closed andretchen0 closed 3 months ago
Closes #605 for v4.
v4
:position-x="10"
https://github.com/Tresjs/tres/blob/98109af7d501da1ae5f817e7dc61c6d6ad902891/src/core/nodeOps.ts#L227
:position-x="10" works without lowercasing.
toLowerCase() was removed to keep prop casing intact.
toLowerCase()
Pushing to v4 as it's a breaking change: users who previously wrote e.g., :position-X="10" will find their code broken.
:position-X="10"
position-x
defines
A playground for pierced props was added at /basic/pierced-props
Closes #605 for
v4
.Context
203 added support for pierced props like
:position-x="10"
. It added this line:https://github.com/Tresjs/tres/blob/98109af7d501da1ae5f817e7dc61c6d6ad902891/src/core/nodeOps.ts#L227
:position-x="10"
works without lowercasing.Solution
toLowerCase()
was removed to keep prop casing intact.Breaking change
Pushing to
v4
as it's a breaking change: users who previously wrote e.g.,:position-X="10"
will find their code broken.Test
position-x
has test coverage. Existing test passes.defines
, as in #605 .Playground
A playground for pierced props was added at /basic/pierced-props