File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -222,6 +222,8 @@ export interface CanvasCustomKeyframe extends Keyframe {
222
222
export interface Animation {
223
223
// Renders the current state of the animation.
224
224
renderFrame: () => Path2D ;
225
+ // Renders the current state of the animation as points.
226
+ renderPoints: () => Point [];
225
227
// Immediately begin animating through the given keyframes.
226
228
// Non-rendered keyframes from previous transitions are cancelled.
227
229
transition: (... keyframes : (CanvasKeyframe | CanvasCustomKeyframe )[]) => void ;
@@ -245,15 +247,9 @@ export const canvasPath: (timestampProvider?: TimestampProvider) => Animation;
245
247
export interface WiggleOptions {
246
248
// Speed of the wiggle movement. Higher is faster.
247
249
speed: number ;
248
- // Delay before the first wiggle frame.
249
- // Default: 0
250
- initialDelay? : number ;
251
250
// Length of the transition from the current state to the wiggle blob.
252
251
// Default: 0
253
252
initialTransition? : number ;
254
- // Interpolation function.
255
- // Default: linear
256
- initialTimingFunction? : Keyframe [" timingFunction" ];
257
253
}
258
254
// Preset animation that produces natural-looking random movement.
259
255
// The wiggle animation will continue indefinitely until the next transition.
You can’t perform that action at this time.
0 commit comments