Skip to content

Commit

Permalink
feat(titles): improve naming, remove unused & detect primitive consta…
Browse files Browse the repository at this point in the history
…nt values (#59)

* feat: improve title names

* docs: fix playground script

* refactor(parse/entities): getAttributeEntityData

* feat(parse): improve Momoa primitive types

* chore: update pnpm-lock file

* chore(parse): update lottie-types

* feat(last, parse): find unique titiles for primitive const nodes

* refactor: dont create blendMode for layer and shape

* test(last): update snapshot

* feat: rename closed to bezier-closed

* feat: add more time titles

* fix: v and np property titles; remove unused effect parent titles

* refactor: remove unused ind titles for effectList and effectParams

* feat: improve effect related titles

* refactor(parse): use CT.assets title

* feat: remove unused OT.effect title

* feat: detect and add textType constant titles

* refactor(titles): remove -type text from lineCap & lineJoin

* refactor(titles): remove -value text from fillRule title

* feat(titles): add & detect rangeUnits types

* chore: update pnpm-lock.yaml

* chore(github): add registry in setup node for validate job

* chore(github): create npmrc for validate job

* chore(github): fix setup node for validate job

* chore(github): fix env in node setup for validate job

* style(last/titles): fix prettier format

* chore(github): fix bundle_size github token

* chore(github): move bundle report to the end
  • Loading branch information
Aidosmf committed Oct 17, 2023
1 parent 0c5cc56 commit 4a54598
Show file tree
Hide file tree
Showing 71 changed files with 9,872 additions and 9,145 deletions.
6 changes: 6 additions & 0 deletions .changeset/hungry-feet-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@lottiefiles/last": minor
"@lottiefiles/relottie-parse": minor
---

feat: find unique titles for string and number constant nodes: blendMode, composite, fillRule, lineCap, lineJoin, shapeDirection, trimMultipleShapes, matteMode & maskMode
8 changes: 8 additions & 0 deletions .changeset/lucky-rivers-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@lottiefiles/last": patch
"@lottiefiles/last-builder": patch
"@lottiefiles/relottie-parse": patch
"@lottiefiles/relottie-stringify": patch
---

chore: bump lottie-types to v1.4.0
86 changes: 86 additions & 0 deletions .changeset/sixty-candles-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
---
"@lottiefiles/last": minor
"@lottiefiles/relottie-parse": minor
---
- feat(titles): add constant blendMode titles

- feat(titles): add keyframe, keyframeList, keyframeValue, positionKeyframe, positionKeyframeList, keyframeBezierHandle prefixes to xAxisValue & yAxisValue

- feat(titles): add bezier prefix to inTangents, outTangents and vertices

- feat(titles): add keyframe, keyframeList, keyframeValue, positionKeyframe, positionKeyframeList, keyframeBezierHandle, shapeKeyframe to inTangent and outTangent

- feat(titles): add text- prefix to fillBrightness, fillColor, fillHue, fillOpacity, fillSaturation

- feat(titles): add shapeFillOpacity, shapeGradientFillOpacity, shapeGradientStrokeOpacity, layerStyleOpacity, shapeStrokeOpacity prefixes to opacity

- feat(titles): add audio prefix to level

- feat(titles): add text prefix to maxAmount, maxEase, minEase

- feat(titles): add shapeTrim prefix to offset

- feat(titles): add layerTransform, shapeTransform, transformRepeater, textStyle prefix to orientation

- feat(titles): add shapeRectangleSize,layerStyleStrokeSize prefixes to size

- feat(titles): rename valueOutTangent to positionKeyframeOutTangents

- feat(titles): rename valueInTangent to positionKeyframeInTangents

- feat(titles): add layerTransform, shapeTransform, transformRepeater, textStyle prefixes to skew & skewAxis

- feat(titles): add layerTransforms, shapeTransforms, transformRepeaters, textStyles prefixes to scale

- feat(titles): add shapePolygon & shapeStar prefixes to outerRoundness & outerRadius

- feat(titles): add shapeGradientFill, shapeGradientStroke prefixes to startPoint & endPoint

- feat(titles): add assetImage, assetPrecomposition, assetDataSource, assetFile prefixes to id

- feat(titles): rename blur to textBlur

- feat(titles): rename center to shapeTrimCenter

- feat(titles): add shapePolygon, shapeStar, shapeZigZags prefixes to points

- feat(titles): rename multiple to trimMultipleShapes

- feat(titles): rename closed to bezierClosed

- feat: add time titles for keyframe, keyframeList, keyframeValue, positionKeyframe, positionKeyframeList, keyframeBezierHandle, shapeKeyframe

- fix: effectIgnoredValue.v title and placement

- fix: numberOfProperties parent titles

- fix: rename effectList numberOfProperties title to effectPropertyCount

- refactor: remove unused ind titles for effectList and effectParams

- feat: rename effectValueAngle, effectValueCheckbox, effectValueColor, effectValueDropdown, effectValueLayer, effectValuePoint, effectValueSlider to effectParamAngle, effectParamCheckbox, effectParamColor, effectParamDropdown, effectParamLayer, effectParamPoint, effectParamSlider

- feat: rename effectParameters to effectParamList

- feat: add effectPropertyCount title

- feat(titles): rename effectValueAngleValue, effectValueCheckboxValue, effectValueColorValue, effectValueDropdownValue, effectValueLayerValue, effectValuePointValue, effectValueSliderValue to effectValueAngle, effectValueCheckbox, effectValueColor, effectValueDropdown, effectValueLayer, effectValuePoint, effectValueSlider

- feat: remove unused OT.effect title

- feat(titles): replace textTypeCaps with textCaps, textCapsRegular, textCapsAll, textCapsSmall

- feat(titles): add textBasedCharacters,
textBasedCharacterExcludingSpaces, textBasedWords, textBasedLines

- feat(titles): replace textTypeGrouping with textGrouping, textGroupingCharacters, textGroupingWords, textGroupingLine, textGroupingAll

- feat(titles): replace textTypeJustify with textJustityLeft, textJustityRight, textJustityCenter, textJustityWithLastLineLeft, textJustityWithLastLineRight, textJustityWithLastLineCenter, textJustityWithLastLineFull

- feat(titles): replace textTypeShape with textShape, textShapeSquare, textShapeRampUp, textShapeRampDown, textShapeTriangle, textShapeRound, textShapeSmooth

- feat(titles): replace textType with fontPathOrigin, fontPathOriginLocal, fontPathOriginCssUrl, fontPathOriginScriptUrl, fontPathOriginFonturl

- feat(titles): replace textTypeVerticalJustify with textVerticalJustify, textVerticalJustifyTop, textVerticalJustifyCenter, textVerticalJustifyBottom

- feat(titles): detect & add rangeUnitsPercent & rangeUnitsIndex
5 changes: 5 additions & 0 deletions .changeset/tricky-knives-wave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lottiefiles/relottie-parse": patch
---

feat: improve Momoa primitive types
21 changes: 13 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,19 @@ jobs:
with:
version: latest

- name: ⎔ Setup Node.js ${{ matrix.node-version }}
- name: ⎔ Setup Node.js ${{ matrix.node-version }} for Github Packages
uses: actions/setup-node@v3
with:
cache: 'pnpm'
node-version: ${{ matrix.node-version }}
registry-url: 'https://npm.pkg.github.com/'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets. NPM_TOKEN }}

- name: 📥 Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: 🏗 Build
run: pnpm clean && pnpm build
Expand All @@ -46,18 +51,18 @@ jobs:
- name: 💅 Verify format
run: pnpm format --check --no-write

- name: 📏 Report bundle size
uses: andresz1/size-limit-action@v1
continue-on-error: true
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: 🕵️ Lint
run: pnpm lint:prod

- name: 🛡️ Test
run: pnpm test

- name: 📏 Report bundle size
uses: andresz1/size-limit-action@v1
continue-on-error: true
with:
github_token: ${{ secrets.GPR_TOKEN }}

release:
name: release
needs: validate
Expand Down
2 changes: 1 addition & 1 deletion packages/last-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"devDependencies": {
"@jest/globals": "28.1.3",
"@lottiefiles/jest-config": "1.0.0",
"@lottiefiles/lottie-types": "1.2.1",
"@lottiefiles/lottie-types": "1.4.0",
"@types/jest": "28.1.8",
"@types/unist": "2.0.7",
"esbuild": "0.14.49",
Expand Down
Loading

0 comments on commit 4a54598

Please sign in to comment.