Skip to content

Commit

Permalink
fix: add collapseTransformNew & fix smoothness value (#55)
Browse files Browse the repository at this point in the history
* fix(parse): add missing selectorSmoothness value

* feat(last, parse): ibt.collapseTransformNew ct prop
  • Loading branch information
Aidosmf committed Oct 3, 2023
1 parent 4d1c0df commit 00baff8
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/five-crabs-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@lottiefiles/last": minor
"@lottiefiles/relottie-parse": minor
---

feat: ct prop named collapse-transform-new
5 changes: 5 additions & 0 deletions .changeset/sixty-balloons-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lottiefiles/relottie-parse": minor
---

fix(entities): add missing selectorSmoothness value
1 change: 1 addition & 0 deletions packages/last/__tests__/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ Object {
"intBoolean": Object {
"animated": "animated",
"autoOrient": "auto-orient",
"collapseTransformNew": "collapse-transform-new",
"embedded": "embedded",
"enabled": "enabled",
"expressible": "expressible",
Expand Down
1 change: 1 addition & 0 deletions packages/last/src/titles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ export const TITLES = {
intBoolean: {
animated: 'animated',
autoOrient: 'auto-orient',
collapseTransformNew: 'collapse-transform-new',
embedded: 'embedded',
enabled: 'enabled',
expressible: 'expressible',
Expand Down
13 changes: 13 additions & 0 deletions packages/relottie-parse/src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,9 @@ export const objectEntity: NoKeyEntityMap = {
[CT.extraCompositions]: {
defaultTitle: OT.assetPrecomposition,
},
[ET.selectorSmoothness]: {
...animatedValueProp,
},
};

const createDependentTitles = (
Expand Down Expand Up @@ -1395,6 +1398,16 @@ export const integerBooleanEntity: EntityMap<IntegerBooleanTitle> = {
[OT.keyframeBezierHandle]: IBT.hold,
[OT.shapeKeyframe]: IBT.hold,
},
ct: {
// layer-visual starts
[OT.layerPrecomposition]: IBT.collapseTransformNew,
[OT.layerShape]: IBT.collapseTransformNew,
[OT.layerSolidColor]: IBT.collapseTransformNew,
[OT.layerImage]: IBT.collapseTransformNew,
[OT.layerNull]: IBT.collapseTransformNew,
[OT.layerText]: IBT.collapseTransformNew,
// layer-visual ends
},
},
};

Expand Down

0 comments on commit 00baff8

Please sign in to comment.