LottieFiles / lottie-js

An object model for representing and manipulating the Lottie JSON structure in JS.
MIT License
144 stars 19 forks source link

Feat: Additional Shapes #26

Closed thoaif closed 2 years ago

thoaif commented 2 years ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this introduce a breaking change?

Other information

changeset-bot[bot] commented 2 years ago

⚠️ No Changeset found

Latest commit: 24ccfcfd812abc6dc2cdde31cff92b7fce817d95

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

github-actions[bot] commented 2 years ago

:loop: Code coverage

Filename Statements Branches Functions Lines
src/utils/use-registry.ts 100% 100% 100% 100%
src/values/index.ts 100% 100% 100% 100%
src/values/color.ts 73.68% 20% 75% 76.47%
src/animation/animation.ts 57.92% 36.36% 48.98% 58.29%
src/assets/index.ts 100% 100% 100% 100%
src/assets/asset.ts 100% 100% 100% 100%
src/assets/image-asset.ts 22.22% 100% 0% 22.22%
src/assets/precomposition-asset.ts 100% 100% 100% 100%
src/constants/asset-type.ts 100% 100% 100% 100%
src/constants/index.ts 100% 100% 100% 100%
src/constants/blend-mode.ts 100% 100% 100% 100%
src/constants/fill-rule-type.ts 100% 100% 100% 100%
src/constants/gradient-fill-type.ts 100% 100% 100% 100%
src/constants/gradient-stroke-type.ts 100% 100% 100% 100%
src/constants/layer-type.ts 100% 100% 100% 100%
src/constants/line-cap-type.ts 100% 100% 100% 100%
src/constants/line-join-type.ts 100% 100% 100% 100%
src/constants/mask-mode.ts 100% 100% 100% 100%
src/constants/property-type.ts 100% 100% 100% 100%
src/constants/shape-type.ts 100% 100% 100% 100%
src/constants/trim-mode.ts 100% 100% 100% 100%
src/constants/repeater-composite.ts 100% 100% 100% 100%
src/constants/star-type.ts 100% 100% 100% 100%
src/constants/matte-mode.ts 100% 100% 100% 100%
src/constants/effect-type.ts 100% 100% 100% 100%
src/constants/effect-value-type.ts 100% 100% 100% 100%
src/fonts/index.ts 100% 100% 100% 100%
src/fonts/character.ts 8% 0% 0% 8.7%
src/utils/shape.ts 52.63% 47.06% 100% 52.63%
src/shapes/index.ts 100% 100% 100% 100%
src/shapes/ellipse-shape.ts 100% 100% 100% 100%
src/properties/index.ts 100% 100% 100% 100%
src/properties/property.ts 96.67% 89.47% 80% 96.55%
src/timeline/index.ts 100% 100% 100% 100%
src/timeline/key-frame.ts 91.43% 82.86% 100% 91.18%
src/properties/gradient.ts 8.62% 0% 0% 9.8%
src/properties/transform.ts 85.71% 77.27% 100% 85.71%
src/shapes/shape.ts 100% 100% 100% 100%
src/shapes/fill-shape.ts 100% 50% 100% 100%
src/index.ts 100% 100% 100% 100%
src/animation/index.ts 100% 100% 100% 100%
src/animation/meta.ts 100% 50% 100% 100%
src/layers/index.ts 100% 100% 100% 100%
src/layers/group-layer.ts 50% 100% 0% 50%
src/layers/layer.ts 80.6% 67.65% 42.86% 83.87%
src/effects/index.ts 100% 100% 100% 100%
src/effects/effect-value.ts 80% 25% 66.67% 80%
src/effects/effect.ts 85% 57.14% 60% 88.89%
src/masks/index.ts 100% 100% 100% 100%
src/masks/mask.ts 94.12% 100% 66.67% 94.12%
src/layers/image-layer.ts 33.33% 100% 0% 33.33%
src/layers/precomposition-layer.ts 100% 100% 100% 100%
src/layers/shape-layer.ts 78.26% 0% 87.5% 80.95%
src/layers/solid-layer.ts 85.71% 100% 66.67% 85.71%
src/layers/text-layer.ts 77.78% 100% 66.67% 77.78%
src/markers/index.ts 100% 100% 100% 100%
src/markers/marker.ts 11.11% 100% 0% 11.11%
src/utils/color-spaces.ts 9.52% 0% 0% 11.76%
src/shapes/gradient-fill-shape.ts 14.29% 0% 0% 14.29%
src/shapes/group-shape.ts 87.88% 50% 83.33% 90.63%
src/shapes/path-shape.ts 100% 100% 100% 100%
src/shapes/rectangle-shape.ts 100% 100% 100% 100%
src/shapes/stroke-shape.ts 100% 50% 100% 100%
src/shapes/trim-shape.ts 25% 0% 0% 25%
src/shapes/gradient-stroke-shape.ts 12.12% 0% 0% 12.12%
src/shapes/repeater-shape.ts 11.76% 0% 0% 11.76%
src/shapes/star-shape.ts 14.81% 0% 0% 14.81%
src/shapes/rounded-corners-shape.ts 36.36% 100% 0% 36.36%
src/shapes/merge-shape.ts 100% 100% 100% 100%
src/shapes/offset-path-shape.ts 26.67% 100% 0% 26.67%
src/shapes/pucker-bloat-shape.ts 36.36% 100% 0% 36.36%
src/shapes/twist-shape.ts 30.77% 100% 0% 30.77%
src/shapes/zig-zag-shape.ts 26.67% 100% 0% 26.67%
src/fonts/font.ts 94.74% 0% 66.67% 94.74%
src/fonts/font-list.ts 85.71% 100% 75% 83.33%