Skip to content

Commit

Permalink
fix(animated-property): updated keyframe bezier handles to number types
Browse files Browse the repository at this point in the history
  • Loading branch information
Aidosmf committed May 27, 2024
1 parent 15187f9 commit 2ce591b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
5 changes: 5 additions & 0 deletions .changeset/nine-pots-melt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lottie-animation-community/lottie-types": patch
---

fix(animated-property): updated keyframe bezier handles to number types
14 changes: 7 additions & 7 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* @lottie-animation-community/lottie-types - v1.0.0
* Compiled Mon, 27 May 2024 15:50:14 UTC
* Compiled Mon, 27 May 2024 16:02:11 UTC
*
* Generated by an automated process. DO NOT EDIT!
*
Expand Down Expand Up @@ -876,24 +876,24 @@ declare namespace Helpers {
declare namespace AnimatedProperty {
/**
* Bezier handle for keyframe interpolation
*
* Time component:\n0 means start time of the keyframe,\n1 means time of the next keyframe.
*/
interface KeyframeBezierHandle {
/**
* Time component:\n0 means start time of the keyframe,\n1 means time of the next keyframe.
*
* @if type array
* @then minItems: 1
* @default 0
*/
x: Helpers.IntegerBoolean[] | Helpers.IntegerBoolean;
x: number[] | number;
/**
* Value interpolation component:\n0 means start value of the keyframe,\n1 means value at the next keyframe.
*
* @if type array
* @then minItems: 1
* @default 0
*/
y: Helpers.IntegerBoolean[] | Helpers.IntegerBoolean;
y: number[] | number;
}

/**
Expand All @@ -918,7 +918,7 @@ declare namespace AnimatedProperty {
*/
h?: Helpers.IntegerBoolean;
/**
* In Tanget
* In Tangent
*
* Easing tangent going into the next keyframe
*
Expand All @@ -927,7 +927,7 @@ declare namespace AnimatedProperty {
*/
i?: KeyframeBezierHandle;
/**
* Out Tanget
* Out Tangent
*
* Easing tangent leaving the current keyframe
*
Expand Down
12 changes: 6 additions & 6 deletions src/animated-property.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,24 @@ import { Helpers } from "./helpers";
export declare namespace AnimatedProperty {
/**
* Bezier handle for keyframe interpolation
*
* Time component:\n0 means start time of the keyframe,\n1 means time of the next keyframe.
*/
interface KeyframeBezierHandle {
/**
* Time component:\n0 means start time of the keyframe,\n1 means time of the next keyframe.
*
* @if type array
* @then minItems: 1
* @default 0
*/
x: Helpers.IntegerBoolean[] | Helpers.IntegerBoolean;
x: number[] | number;
/**
* Value interpolation component:\n0 means start value of the keyframe,\n1 means value at the next keyframe.
*
* @if type array
* @then minItems: 1
* @default 0
*/
y: Helpers.IntegerBoolean[] | Helpers.IntegerBoolean;
y: number[] | number;
}

/**
Expand All @@ -45,7 +45,7 @@ export declare namespace AnimatedProperty {
*/
h?: Helpers.IntegerBoolean;
/**
* In Tanget
* In Tangent
*
* Easing tangent going into the next keyframe
*
Expand All @@ -54,7 +54,7 @@ export declare namespace AnimatedProperty {
*/
i?: KeyframeBezierHandle;
/**
* Out Tanget
* Out Tangent
*
* Easing tangent leaving the current keyframe
*
Expand Down

0 comments on commit 2ce591b

Please sign in to comment.