@hyperframes/core 0.7.14 → 0.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler/staticGuard.js +1 -1
- package/dist/compiler/staticGuard.js.map +1 -1
- package/dist/core.types.d.ts +2 -369
- package/dist/core.types.d.ts.map +1 -1
- package/dist/core.types.js +1 -84
- package/dist/core.types.js.map +1 -1
- package/dist/generated/runtime-inline.js.map +1 -1
- package/dist/generators/hyperframes.d.ts +1 -1
- package/dist/generators/hyperframes.d.ts.map +1 -1
- package/dist/generators/hyperframes.js +1 -1
- package/dist/generators/hyperframes.js.map +1 -1
- package/dist/hyperframe.runtime.iife.js +20 -20
- package/dist/index.d.ts +5 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/lint/index.d.ts +2 -2
- package/dist/lint/index.d.ts.map +1 -1
- package/dist/lint/index.js +2 -1
- package/dist/lint/index.js.map +1 -1
- package/dist/parsers/gsapConstants.d.ts +2 -12
- package/dist/parsers/gsapConstants.d.ts.map +1 -1
- package/dist/parsers/gsapConstants.js +2 -110
- package/dist/parsers/gsapConstants.js.map +1 -1
- package/dist/parsers/gsapParserAcorn.d.ts +2 -48
- package/dist/parsers/gsapParserAcorn.d.ts.map +1 -1
- package/dist/parsers/gsapParserAcorn.js +2 -1057
- package/dist/parsers/gsapParserAcorn.js.map +1 -1
- package/dist/parsers/gsapParserExports.d.ts +2 -20
- package/dist/parsers/gsapParserExports.d.ts.map +1 -1
- package/dist/parsers/gsapParserExports.js +2 -8
- package/dist/parsers/gsapParserExports.js.map +1 -1
- package/dist/parsers/gsapWriterAcorn.d.ts +2 -90
- package/dist/parsers/gsapWriterAcorn.d.ts.map +1 -1
- package/dist/parsers/gsapWriterAcorn.js +2 -2016
- package/dist/parsers/gsapWriterAcorn.js.map +1 -1
- package/dist/parsers/hfIds.d.ts +2 -16
- package/dist/parsers/hfIds.d.ts.map +1 -1
- package/dist/parsers/hfIds.js +2 -127
- package/dist/parsers/hfIds.js.map +1 -1
- package/dist/parsers/springEase.d.ts +2 -28
- package/dist/parsers/springEase.d.ts.map +1 -1
- package/dist/parsers/springEase.js +2 -69
- package/dist/parsers/springEase.js.map +1 -1
- package/dist/slideshow/index.d.ts +1 -0
- package/dist/slideshow/index.d.ts.map +1 -1
- package/dist/slideshow/index.js +1 -0
- package/dist/slideshow/index.js.map +1 -1
- package/dist/studio-api/helpers/draftMarkers.d.ts +2 -10
- package/dist/studio-api/helpers/draftMarkers.d.ts.map +1 -1
- package/dist/studio-api/helpers/draftMarkers.js +2 -10
- package/dist/studio-api/helpers/draftMarkers.js.map +1 -1
- package/dist/studio-api/helpers/finiteMutation.d.ts +2 -10
- package/dist/studio-api/helpers/finiteMutation.d.ts.map +1 -1
- package/dist/studio-api/helpers/finiteMutation.js +2 -20
- package/dist/studio-api/helpers/finiteMutation.js.map +1 -1
- package/dist/studio-api/helpers/manualEditsRenderScript.d.ts +2 -12
- package/dist/studio-api/helpers/manualEditsRenderScript.d.ts.map +1 -1
- package/dist/studio-api/helpers/manualEditsRenderScript.js +2 -632
- package/dist/studio-api/helpers/manualEditsRenderScript.js.map +1 -1
- package/dist/studio-api/helpers/screenshotClip.d.ts +2 -7
- package/dist/studio-api/helpers/screenshotClip.d.ts.map +1 -1
- package/dist/studio-api/helpers/screenshotClip.js +2 -21
- package/dist/studio-api/helpers/screenshotClip.js.map +1 -1
- package/dist/studio-api/helpers/studioMotionRenderScript.d.ts +2 -8
- package/dist/studio-api/helpers/studioMotionRenderScript.d.ts.map +1 -1
- package/dist/studio-api/helpers/studioMotionRenderScript.js +2 -207
- package/dist/studio-api/helpers/studioMotionRenderScript.js.map +1 -1
- package/dist/studio-api/index.d.ts +2 -9
- package/dist/studio-api/index.d.ts.map +1 -1
- package/dist/studio-api/index.js +2 -8
- package/dist/studio-api/index.js.map +1 -1
- package/package.json +16 -18
- package/dist/generated/runtime-inline.js +0 -11
- package/dist/hyperframe.manifest.json +0 -22
- package/dist/hyperframe.runtime.mjs +0 -325
- package/dist/lint/context.d.ts +0 -17
- package/dist/lint/context.d.ts.map +0 -1
- package/dist/lint/context.js +0 -37
- package/dist/lint/context.js.map +0 -1
- package/dist/lint/hyperframeLinter.d.ts +0 -14
- package/dist/lint/hyperframeLinter.d.ts.map +0 -1
- package/dist/lint/hyperframeLinter.js +0 -132
- package/dist/lint/hyperframeLinter.js.map +0 -1
- package/dist/lint/rules/adapters.d.ts +0 -3
- package/dist/lint/rules/adapters.d.ts.map +0 -1
- package/dist/lint/rules/adapters.js +0 -40
- package/dist/lint/rules/adapters.js.map +0 -1
- package/dist/lint/rules/captions.d.ts +0 -3
- package/dist/lint/rules/captions.d.ts.map +0 -1
- package/dist/lint/rules/captions.js +0 -242
- package/dist/lint/rules/captions.js.map +0 -1
- package/dist/lint/rules/composition.d.ts +0 -5
- package/dist/lint/rules/composition.d.ts.map +0 -1
- package/dist/lint/rules/composition.js +0 -694
- package/dist/lint/rules/composition.js.map +0 -1
- package/dist/lint/rules/core.d.ts +0 -3
- package/dist/lint/rules/core.d.ts.map +0 -1
- package/dist/lint/rules/core.js +0 -432
- package/dist/lint/rules/core.js.map +0 -1
- package/dist/lint/rules/fonts.d.ts +0 -3
- package/dist/lint/rules/fonts.d.ts.map +0 -1
- package/dist/lint/rules/fonts.js +0 -205
- package/dist/lint/rules/fonts.js.map +0 -1
- package/dist/lint/rules/gsap.d.ts +0 -4
- package/dist/lint/rules/gsap.d.ts.map +0 -1
- package/dist/lint/rules/gsap.js +0 -1039
- package/dist/lint/rules/gsap.js.map +0 -1
- package/dist/lint/rules/media.d.ts +0 -3
- package/dist/lint/rules/media.d.ts.map +0 -1
- package/dist/lint/rules/media.js +0 -491
- package/dist/lint/rules/media.js.map +0 -1
- package/dist/lint/rules/slideshow.d.ts +0 -4
- package/dist/lint/rules/slideshow.d.ts.map +0 -1
- package/dist/lint/rules/slideshow.js +0 -74
- package/dist/lint/rules/slideshow.js.map +0 -1
- package/dist/lint/rules/textures.d.ts +0 -3
- package/dist/lint/rules/textures.d.ts.map +0 -1
- package/dist/lint/rules/textures.js +0 -192
- package/dist/lint/rules/textures.js.map +0 -1
- package/dist/lint/types.d.ts +0 -36
- package/dist/lint/types.d.ts.map +0 -1
- package/dist/lint/types.js +0 -2
- package/dist/lint/types.js.map +0 -1
- package/dist/lint/utils.d.ts +0 -55
- package/dist/lint/utils.d.ts.map +0 -1
- package/dist/lint/utils.js +0 -264
- package/dist/lint/utils.js.map +0 -1
- package/dist/parsers/gsapInline.d.ts +0 -47
- package/dist/parsers/gsapInline.d.ts.map +0 -1
- package/dist/parsers/gsapInline.js +0 -513
- package/dist/parsers/gsapInline.js.map +0 -1
- package/dist/parsers/gsapParser.d.ts +0 -158
- package/dist/parsers/gsapParser.d.ts.map +0 -1
- package/dist/parsers/gsapParser.js +0 -2634
- package/dist/parsers/gsapParser.js.map +0 -1
- package/dist/parsers/gsapParser.test-helpers.d.ts +0 -49
- package/dist/parsers/gsapParser.test-helpers.d.ts.map +0 -1
- package/dist/parsers/gsapParser.test-helpers.js +0 -97
- package/dist/parsers/gsapParser.test-helpers.js.map +0 -1
- package/dist/parsers/gsapSerialize.d.ts +0 -191
- package/dist/parsers/gsapSerialize.d.ts.map +0 -1
- package/dist/parsers/gsapSerialize.js +0 -410
- package/dist/parsers/gsapSerialize.js.map +0 -1
- package/dist/parsers/gsapUnroll.d.ts +0 -7
- package/dist/parsers/gsapUnroll.d.ts.map +0 -1
- package/dist/parsers/gsapUnroll.js +0 -137
- package/dist/parsers/gsapUnroll.js.map +0 -1
- package/dist/parsers/htmlParser.d.ts +0 -27
- package/dist/parsers/htmlParser.d.ts.map +0 -1
- package/dist/parsers/htmlParser.js +0 -731
- package/dist/parsers/htmlParser.js.map +0 -1
- package/dist/studio-api/createStudioApi.d.ts +0 -10
- package/dist/studio-api/createStudioApi.d.ts.map +0 -1
- package/dist/studio-api/createStudioApi.js +0 -32
- package/dist/studio-api/createStudioApi.js.map +0 -1
- package/dist/studio-api/helpers/backupJournal.d.ts +0 -9
- package/dist/studio-api/helpers/backupJournal.d.ts.map +0 -1
- package/dist/studio-api/helpers/backupJournal.js +0 -81
- package/dist/studio-api/helpers/backupJournal.js.map +0 -1
- package/dist/studio-api/helpers/hfIdPersist.d.ts +0 -11
- package/dist/studio-api/helpers/hfIdPersist.d.ts.map +0 -1
- package/dist/studio-api/helpers/hfIdPersist.js +0 -39
- package/dist/studio-api/helpers/hfIdPersist.js.map +0 -1
- package/dist/studio-api/helpers/mediaValidation.d.ts +0 -20
- package/dist/studio-api/helpers/mediaValidation.d.ts.map +0 -1
- package/dist/studio-api/helpers/mediaValidation.js +0 -56
- package/dist/studio-api/helpers/mediaValidation.js.map +0 -1
- package/dist/studio-api/helpers/mime.d.ts +0 -4
- package/dist/studio-api/helpers/mime.d.ts.map +0 -1
- package/dist/studio-api/helpers/mime.js +0 -39
- package/dist/studio-api/helpers/mime.js.map +0 -1
- package/dist/studio-api/helpers/previewAdapter.d.ts +0 -43
- package/dist/studio-api/helpers/previewAdapter.d.ts.map +0 -1
- package/dist/studio-api/helpers/previewAdapter.js +0 -118
- package/dist/studio-api/helpers/previewAdapter.js.map +0 -1
- package/dist/studio-api/helpers/projectSignature.d.ts +0 -5
- package/dist/studio-api/helpers/projectSignature.d.ts.map +0 -1
- package/dist/studio-api/helpers/projectSignature.js +0 -154
- package/dist/studio-api/helpers/projectSignature.js.map +0 -1
- package/dist/studio-api/helpers/safePath.d.ts +0 -12
- package/dist/studio-api/helpers/safePath.d.ts.map +0 -1
- package/dist/studio-api/helpers/safePath.js +0 -38
- package/dist/studio-api/helpers/safePath.js.map +0 -1
- package/dist/studio-api/helpers/sourceMutation.d.ts +0 -28
- package/dist/studio-api/helpers/sourceMutation.d.ts.map +0 -1
- package/dist/studio-api/helpers/sourceMutation.js +0 -339
- package/dist/studio-api/helpers/sourceMutation.js.map +0 -1
- package/dist/studio-api/helpers/subComposition.d.ts +0 -20
- package/dist/studio-api/helpers/subComposition.d.ts.map +0 -1
- package/dist/studio-api/helpers/subComposition.js +0 -289
- package/dist/studio-api/helpers/subComposition.js.map +0 -1
- package/dist/studio-api/helpers/waveform.d.ts +0 -4
- package/dist/studio-api/helpers/waveform.d.ts.map +0 -1
- package/dist/studio-api/helpers/waveform.js +0 -80
- package/dist/studio-api/helpers/waveform.js.map +0 -1
- package/dist/studio-api/routes/files.d.ts +0 -4
- package/dist/studio-api/routes/files.d.ts.map +0 -1
- package/dist/studio-api/routes/files.js +0 -1200
- package/dist/studio-api/routes/files.js.map +0 -1
- package/dist/studio-api/routes/fonts.d.ts +0 -3
- package/dist/studio-api/routes/fonts.d.ts.map +0 -1
- package/dist/studio-api/routes/fonts.js +0 -157
- package/dist/studio-api/routes/fonts.js.map +0 -1
- package/dist/studio-api/routes/lint.d.ts +0 -4
- package/dist/studio-api/routes/lint.d.ts.map +0 -1
- package/dist/studio-api/routes/lint.js +0 -29
- package/dist/studio-api/routes/lint.js.map +0 -1
- package/dist/studio-api/routes/preview.d.ts +0 -4
- package/dist/studio-api/routes/preview.d.ts.map +0 -1
- package/dist/studio-api/routes/preview.js +0 -331
- package/dist/studio-api/routes/preview.js.map +0 -1
- package/dist/studio-api/routes/projects.d.ts +0 -4
- package/dist/studio-api/routes/projects.d.ts.map +0 -1
- package/dist/studio-api/routes/projects.js +0 -45
- package/dist/studio-api/routes/projects.js.map +0 -1
- package/dist/studio-api/routes/registry.d.ts +0 -4
- package/dist/studio-api/routes/registry.d.ts.map +0 -1
- package/dist/studio-api/routes/registry.js +0 -31
- package/dist/studio-api/routes/registry.js.map +0 -1
- package/dist/studio-api/routes/render.d.ts +0 -4
- package/dist/studio-api/routes/render.d.ts.map +0 -1
- package/dist/studio-api/routes/render.js +0 -269
- package/dist/studio-api/routes/render.js.map +0 -1
- package/dist/studio-api/routes/storyboard.d.ts +0 -4
- package/dist/studio-api/routes/storyboard.d.ts.map +0 -1
- package/dist/studio-api/routes/storyboard.js +0 -65
- package/dist/studio-api/routes/storyboard.js.map +0 -1
- package/dist/studio-api/routes/thumbnail.d.ts +0 -4
- package/dist/studio-api/routes/thumbnail.d.ts.map +0 -1
- package/dist/studio-api/routes/thumbnail.js +0 -107
- package/dist/studio-api/routes/thumbnail.js.map +0 -1
- package/dist/studio-api/routes/waveform.d.ts +0 -4
- package/dist/studio-api/routes/waveform.d.ts.map +0 -1
- package/dist/studio-api/routes/waveform.js +0 -41
- package/dist/studio-api/routes/waveform.js.map +0 -1
- package/dist/studio-api/types.d.ts +0 -120
- package/dist/studio-api/types.d.ts.map +0 -1
- package/dist/studio-api/types.js +0 -2
- package/dist/studio-api/types.js.map +0 -1
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { type ArcPathConfig, type ArcPathSegment, type GsapAnimation, type ParsedGsap } from "./gsapSerialize";
|
|
2
|
-
export type { ArcPathConfig, ArcPathSegment, GsapAnimation, GsapMethod, ParsedGsap, GsapKeyframesData, GsapPercentageKeyframe, GsapKeyframeFormat, } from "./gsapSerialize";
|
|
3
|
-
export { serializeGsapAnimations, getAnimationsForElementId, validateCompositionGsap, keyframesToGsapAnimations, gsapAnimationsToKeyframes, SUPPORTED_PROPS, SUPPORTED_EASES, } from "./gsapSerialize";
|
|
4
|
-
export type { PropertyGroupName } from "./gsapConstants";
|
|
5
|
-
export { PROPERTY_GROUPS, classifyPropertyGroup, classifyTweenPropertyGroup, } from "./gsapConstants";
|
|
6
|
-
export { generateSpringEaseData, SPRING_PRESETS } from "./springEase";
|
|
7
|
-
export type { SpringPreset } from "./springEase";
|
|
8
|
-
export declare function parseGsapScript(script: string): ParsedGsap;
|
|
9
|
-
export declare function updateAnimationInScript(script: string, animationId: string, updates: Partial<GsapAnimation> & {
|
|
10
|
-
easeEach?: string;
|
|
11
|
-
resetKeyframeEases?: boolean;
|
|
12
|
-
}): string;
|
|
13
|
-
export declare function shiftPositionsInScript(script: string, targetSelector: string, delta: number): string;
|
|
14
|
-
export declare function scalePositionsInScript(script: string, targetSelector: string, oldStart: number, oldDuration: number, newStart: number, newDuration: number): string;
|
|
15
|
-
export declare function addAnimationToScript(script: string, animation: Omit<GsapAnimation, "id">): {
|
|
16
|
-
script: string;
|
|
17
|
-
id: string;
|
|
18
|
-
};
|
|
19
|
-
export declare function addAnimationWithKeyframesToScript(script: string, targetSelector: string, position: number, duration: number, keyframes: Array<{
|
|
20
|
-
percentage: number;
|
|
21
|
-
properties: Record<string, number | string>;
|
|
22
|
-
ease?: string;
|
|
23
|
-
auto?: boolean;
|
|
24
|
-
}>, ease?: string, easeEach?: string): {
|
|
25
|
-
script: string;
|
|
26
|
-
id: string;
|
|
27
|
-
};
|
|
28
|
-
export declare function removeAnimationFromScript(script: string, animationId: string): string;
|
|
29
|
-
/** True for a `tl.set(...)` this module emitted to hold a keyframe before its tween.
|
|
30
|
-
* The Studio filters these out so they never appear as user keyframes/diamonds. */
|
|
31
|
-
export declare function isStudioHoldSet(anim: GsapAnimation): boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Keep a `tl.set(selector, {x,y}, 0)` "hold" in front of every position-keyframed
|
|
34
|
-
* tween that starts after t=0, so the element holds its first keyframe's position
|
|
35
|
-
* BEFORE the tween plays instead of snapping to its CSS base (the universal NLE
|
|
36
|
-
* "hold before first keyframe" behavior). The set is tagged with `data: "hf-hold"`
|
|
37
|
-
* so this pass owns it: every call wipes the prior holds and recomputes from the
|
|
38
|
-
* current keyframes, keeping them in sync as keyframes are added/moved/deleted.
|
|
39
|
-
*
|
|
40
|
-
* Idempotent. Only position props (x/y/xPercent/yPercent) are held — opacity/scale
|
|
41
|
-
* keep their authored pre-tween behavior. A tween already starting at 0 needs no
|
|
42
|
-
* hold (no gap before it).
|
|
43
|
-
*/
|
|
44
|
-
export declare function syncPositionHoldsBeforeKeyframes(script: string): string;
|
|
45
|
-
export interface SplitAnimationsOptions {
|
|
46
|
-
originalId: string;
|
|
47
|
-
newId: string;
|
|
48
|
-
splitTime: number;
|
|
49
|
-
elementStart: number;
|
|
50
|
-
elementDuration: number;
|
|
51
|
-
}
|
|
52
|
-
export interface SplitAnimationsResult {
|
|
53
|
-
script: string;
|
|
54
|
-
/** Non-ID-selector animations that the engine cannot safely retarget. */
|
|
55
|
-
skippedSelectors: string[];
|
|
56
|
-
}
|
|
57
|
-
export declare function splitAnimationsInScript(script: string, opts: SplitAnimationsOptions): SplitAnimationsResult;
|
|
58
|
-
/**
|
|
59
|
-
* Insert a keyframe at the given percentage in an existing percentage-keyframes
|
|
60
|
-
* object. If the percentage already exists, its value is replaced.
|
|
61
|
-
*/
|
|
62
|
-
export declare function addKeyframeToScript(script: string, animationId: string, percentage: number, properties: Record<string, number | string>, ease?: string, backfillDefaults?: Record<string, number | string>): string;
|
|
63
|
-
/**
|
|
64
|
-
* Remove a keyframe at the given percentage. If fewer than 2 keyframes remain
|
|
65
|
-
* after removal, collapse the keyframes object to a flat tween using the
|
|
66
|
-
* remaining keyframe's properties.
|
|
67
|
-
*/
|
|
68
|
-
export declare function removeKeyframeFromScript(script: string, animationId: string, percentage: number): string;
|
|
69
|
-
/**
|
|
70
|
-
* Replace the properties (and optionally ease) at an existing keyframe percentage.
|
|
71
|
-
*/
|
|
72
|
-
export declare function updateKeyframeInScript(script: string, animationId: string, percentage: number, properties: Record<string, number | string>, ease?: string): string;
|
|
73
|
-
/**
|
|
74
|
-
* Convert a flat tween (to/from/fromTo) to percentage-keyframes format.
|
|
75
|
-
* `resolvedFromValues` supplies the "from" state for `to()` tweens or
|
|
76
|
-
* the "to" state for `from()` tweens (the values the DOM would resolve to).
|
|
77
|
-
*/
|
|
78
|
-
export declare function convertToKeyframesInScript(script: string, animationId: string, resolvedFromValues?: Record<string, number | string>, setDuration?: number): string;
|
|
79
|
-
/**
|
|
80
|
-
* Remove all keyframes from a tween, collapsing to a flat tween with the
|
|
81
|
-
* last keyframe's properties.
|
|
82
|
-
*/
|
|
83
|
-
export declare function removeAllKeyframesFromScript(script: string, animationId: string): string;
|
|
84
|
-
/**
|
|
85
|
-
* Replace a dynamic `keyframes: <expr>` with a static percentage-keyframes object.
|
|
86
|
-
* Called when the user first edits a dynamically-generated keyframe in the studio.
|
|
87
|
-
*/
|
|
88
|
-
export declare function materializeKeyframesInScript(script: string, animationId: string, keyframes: Array<{
|
|
89
|
-
percentage: number;
|
|
90
|
-
properties: Record<string, number | string>;
|
|
91
|
-
ease?: string;
|
|
92
|
-
}>, easeEach?: string, resolvedSelector?: string): string;
|
|
93
|
-
export declare function setArcPathInScript(script: string, animationId: string, config: ArcPathConfig): string;
|
|
94
|
-
export declare function updateArcSegmentInScript(script: string, animationId: string, segmentIndex: number, update: Partial<ArcPathSegment>): string;
|
|
95
|
-
/**
|
|
96
|
-
* Move a single motionPath waypoint (anchor) to a new position. The waypoint
|
|
97
|
-
* list is normalized to anchors for both straight and cubic paths, so
|
|
98
|
-
* `pointIndex` matches the node order the studio overlay renders; cubic control
|
|
99
|
-
* points are preserved. No-op when the animation/arc is missing or the index is
|
|
100
|
-
* out of range.
|
|
101
|
-
*/
|
|
102
|
-
export declare function updateMotionPathPointInScript(script: string, animationId: string, pointIndex: number, point: {
|
|
103
|
-
x: number;
|
|
104
|
-
y: number;
|
|
105
|
-
}): string;
|
|
106
|
-
/**
|
|
107
|
-
* Insert a waypoint at `index` (between existing anchors), splitting the segment
|
|
108
|
-
* it lands on so the new neighbor inherits its curviness. Non-cubic paths only.
|
|
109
|
-
* No-op for missing animation/arc, out-of-range index, or cubic paths.
|
|
110
|
-
*/
|
|
111
|
-
export declare function addMotionPathPointInScript(script: string, animationId: string, index: number, point: {
|
|
112
|
-
x: number;
|
|
113
|
-
y: number;
|
|
114
|
-
}): string;
|
|
115
|
-
/**
|
|
116
|
-
* Remove the waypoint at `index`. Refuses to drop below two anchors (a path
|
|
117
|
-
* can't have fewer). Non-cubic paths only. No-op for missing animation/arc,
|
|
118
|
-
* out-of-range index, cubic paths, or a 2-point path.
|
|
119
|
-
*/
|
|
120
|
-
export declare function removeMotionPathPointInScript(script: string, animationId: string, index: number): string;
|
|
121
|
-
/**
|
|
122
|
-
* Author a fresh 2-anchor motionPath tween on a target element: a straight line
|
|
123
|
-
* from the element's home (0,0) to `point`, gentle ease, ready for waypoint
|
|
124
|
-
* editing. Mirrors `addAnimationWithKeyframesToScript`.
|
|
125
|
-
*/
|
|
126
|
-
export declare function addMotionPathToScript(script: string, targetSelector: string, position: number, duration: number, point: {
|
|
127
|
-
x: number;
|
|
128
|
-
y: number;
|
|
129
|
-
}, ease?: string): {
|
|
130
|
-
script: string;
|
|
131
|
-
id: string | null;
|
|
132
|
-
};
|
|
133
|
-
export declare function removeArcPathFromScript(script: string, animationId: string): string;
|
|
134
|
-
/**
|
|
135
|
-
* Split a multi-group tween into separate per-group tweens. Each resulting
|
|
136
|
-
* tween contains only properties belonging to one property group (position,
|
|
137
|
-
* scale, rotation, visual, etc.). `transformOrigin` stays with the group that
|
|
138
|
-
* has the most properties. If the tween already belongs to a single group,
|
|
139
|
-
* returns the script unchanged with the original ID.
|
|
140
|
-
*/
|
|
141
|
-
export declare function splitIntoPropertyGroups(script: string, animationId: string): {
|
|
142
|
-
script: string;
|
|
143
|
-
ids: string[];
|
|
144
|
-
};
|
|
145
|
-
/**
|
|
146
|
-
* Replace a dynamic loop that generates multiple tween calls with individual
|
|
147
|
-
* static `tl.to()` calls — one per element. Finds the loop containing the
|
|
148
|
-
* animation and replaces the entire loop body with unrolled static calls.
|
|
149
|
-
*/
|
|
150
|
-
export declare function unrollDynamicAnimations(script: string, animationId: string, elements: Array<{
|
|
151
|
-
selector: string;
|
|
152
|
-
keyframes: Array<{
|
|
153
|
-
percentage: number;
|
|
154
|
-
properties: Record<string, number | string>;
|
|
155
|
-
}>;
|
|
156
|
-
easeEach?: string;
|
|
157
|
-
}>): string;
|
|
158
|
-
//# sourceMappingURL=gsapParser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gsapParser.d.ts","sourceRoot":"","sources":["../../src/parsers/gsapParser.ts"],"names":[],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