@pixodesk/svg-animator-core 1.0.43 → 1.0.45
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/README.md +1 -1
- package/dist/{PxDocumentDiagnostic-DkBZYJ7X.d.cts → PxDocumentDiagnostic-CBhVyNEi.d.cts} +127 -91
- package/dist/{PxDocumentDiagnostic-DkBZYJ7X.d.ts → PxDocumentDiagnostic-CBhVyNEi.d.ts} +127 -91
- package/dist/chunk-5HEVTP2N.min.js +1 -0
- package/dist/{chunk-BOTZI36B.js → chunk-YVKMPBHE.js} +2043 -88
- package/dist/chunk-YVKMPBHE.js.map +1 -0
- package/dist/index.cjs +197 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +15 -1881
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.js +1 -1
- package/dist/internal.cjs +3228 -150
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +60 -3
- package/dist/internal.d.ts +60 -3
- package/dist/internal.js +53 -1
- package/dist/internal.js.map +1 -1
- package/dist/internal.min.cjs +1 -1
- package/dist/internal.min.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-BOTZI36B.js.map +0 -1
- package/dist/chunk-CAZFG2HW.min.js +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PxAnimatedSvgDocument, a as PxEngineCallbacks, b as PxAnimatorApi, c as PxAnimatorConfig, d as
|
|
2
|
-
export { f as PX_TRANSFORM_PART_KEYS, g as PX_TRIGGER_DEFAULTS, h as PX_WIRE_BASELINE_VERSION, i as PX_WIRE_STEPS, j as PX_WIRE_VERSION, k as PX_WIRE_VERSION_KEY, l as PxAlongPathMode, m as PxAnimatedSvgDocumentSchema, n as PxAnimationDefinition, o as PxAnimatorCallbacks, p as PxAnimatorConfigSchema, q as PxAnimatorHandle, r as PxAttrValueSchema, s as PxBezierPath, t as PxBezierPathSchema, u as PxBinding, v as PxClipPathEffectSchema, w as PxCloneEffectSchema, x as PxCloneWithout, y as PxControlMode, z as PxControlProps, A as PxDefinitions, B as PxDefinitionsSchema, C as PxDiagnostic, D as PxDiagnosticCode, E as PxDiagnosticKind, F as PxDiagnostics, G as PxDiagnosticsConfig, H as PxEffects, I as PxEffectsSchema, J as PxElementAnimation, K as PxElementAnimationSchema, L as PxFillGradientEffectSchema, M as PxFillMode, N as PxFinishAction, O as PxGlyph, Q as PxGlyphFont, R as PxGradientSpreadMethod, S as PxGradientStopSchema, T as PxGradientType, U as PxInfer, V as PxKeyframe, W as PxKeyframeSchema, X as PxKeyframeValueSchema, Y as PxLengthAdjust, Z as PxLoop, _ as PxLoopDirection, $ as PxLoopRepeatAt, a0 as PxLoopSchema, a1 as PxMaskType, a2 as PxMaskedByEffectSchema, a3 as
|
|
1
|
+
import { P as PxAnimatedSvgDocument, a as PxEngineCallbacks, b as PxAnimatorApi, c as PxAnimatorConfig, d as PxTriggerStart, e as PxNode } from './PxDocumentDiagnostic-CBhVyNEi.cjs';
|
|
2
|
+
export { f as PX_TRANSFORM_PART_KEYS, g as PX_TRIGGER_DEFAULTS, h as PX_WIRE_BASELINE_VERSION, i as PX_WIRE_STEPS, j as PX_WIRE_VERSION, k as PX_WIRE_VERSION_KEY, l as PxAlongPathMode, m as PxAnimatedSvgDocumentSchema, n as PxAnimationDefinition, o as PxAnimatorCallbacks, p as PxAnimatorConfigSchema, q as PxAnimatorHandle, r as PxAttrValueSchema, s as PxBezierPath, t as PxBezierPathSchema, u as PxBinding, v as PxClipPathEffectSchema, w as PxCloneEffectSchema, x as PxCloneWithout, y as PxControlMode, z as PxControlProps, A as PxDefinitions, B as PxDefinitionsSchema, C as PxDiagnostic, D as PxDiagnosticCode, E as PxDiagnosticKind, F as PxDiagnostics, G as PxDiagnosticsConfig, H as PxEffects, I as PxEffectsSchema, J as PxElementAnimation, K as PxElementAnimationSchema, L as PxFillGradientEffectSchema, M as PxFillMode, N as PxFinishAction, O as PxGlyph, Q as PxGlyphFont, R as PxGradientSpreadMethod, S as PxGradientStopSchema, T as PxGradientType, U as PxInfer, V as PxKeyframe, W as PxKeyframeSchema, X as PxKeyframeValueSchema, Y as PxLengthAdjust, Z as PxLoop, _ as PxLoopDirection, $ as PxLoopRepeatAt, a0 as PxLoopSchema, a1 as PxMaskType, a2 as PxMaskedByEffectSchema, a3 as PxMouseOutAction, a4 as PxNodeBaseSchema, a5 as PxNodeSchema, a6 as PxOffScreenAction, a7 as PxPathOverflow, a8 as PxPinAlign, a9 as PxPlaybackApi, aa as PxPlaybackDirection, ab as PxPropertyAnimation, ac as PxPropertyAnimationSchema, ad as PxRemoveIndex, ae as PxRepeaterEffectSchema, af as PxRetimeEffectSchema, ag as PxSchema, ah as PxSchemaDesc, ai as PxScroll, aj as PxScrollAxis, ak as PxScrollKind, al as PxScrollPhase, am as PxScrollRangePoint, an as PxScrollRangePointSchema, ao as PxScrollRangeSchema, ap as PxScrollSchema, aq as PxScrollSource, ar as PxStrokeTrimEffectSchema, as as PxStrokeTrimSubPaths, at as PxSvgNode, au as PxSvgNodeRootSchema, av as PxTextEffectSchema, aw as PxTextPathEffectSchema, ax as PxTextPathMethod, ay as PxTextPathSpacing, az as PxTimeline, aA as PxTimelineEngine, aB as PxTimelineEngineSetting, aC as PxTimelineSchema, aD as PxTransformByEffectSchema, aE as PxTransformParts, aF as PxTransformPartsSchema, aG as PxTransformValue, aH as PxTransformValueSchema, aI as PxTrigger, aJ as PxTriggerSchema, aK as PxUnits, aL as PxValidationContext, aM as PxVec2, aN as PxWireConversionOptions, aO as PxWireConversionResult, aP as PxWireStepKind, aQ as PxWireVersion, aR as PxWireVersionRelation, aS as PxWireVersionStep, aT as applyWireSteps, aU as calcAnimationValues, aV as compareWireVersion, aW as controlModeTakesOverTrigger, aX as convertWireDocument, aY as describeSchema, aZ as diagnoseDocument, a_ as downgradeWireDocument, a$ as flattenAnimatorTimeline, b0 as formatWireVersion, b1 as generateNewIds, b2 as getAnimatorConfig, b3 as getBindings, b4 as getChildren, b5 as getDefinitions, b6 as isNativeForced, b7 as isPxDocument, b8 as isValidPxDocument, b9 as materializeAllInTree, ba as mayUseNativeScrollTimeline, bb as nestAnimatorTimeline, bc as normalizeBindings, bd as parseWireVersion, be as px, bf as readWireVersion, bg as resolveControlMode, bh as resolveTimelineEngine, bi as resolveTrigger, bj as schemaKeys, bk as toDomProps, bl as validateDocument, bm as validateNodeEffects, bn as wireVersionAdvice } from './PxDocumentDiagnostic-CBhVyNEi.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* THE PLAYER'S WIRE SCHEMA VERSION — the `a.b` of `svgRoot.animator.version`.
|
|
@@ -15,7 +15,7 @@ export { f as PX_TRANSFORM_PART_KEYS, g as PX_TRIGGER_DEFAULTS, h as PX_WIRE_BAS
|
|
|
15
15
|
* and every format change invisible between releases.
|
|
16
16
|
* @public @advanced
|
|
17
17
|
*/
|
|
18
|
-
declare const PX_WIRE_SCHEMA_VERSION = "1.
|
|
18
|
+
declare const PX_WIRE_SCHEMA_VERSION = "1.2";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Platform adapter interface for abstracting platform-specific operations.
|
|
@@ -134,10 +134,10 @@ interface PxTimelineShortcuts {
|
|
|
134
134
|
/** Shortcut for `timeline.iterations`; `'infinite'` never stops. */
|
|
135
135
|
iterations?: number | 'infinite';
|
|
136
136
|
/**
|
|
137
|
-
* Shortcut for `timeline.trigger.
|
|
138
|
-
* `'
|
|
137
|
+
* Shortcut for `timeline.trigger.start`. Typed from the WIRE, so it includes
|
|
138
|
+
* `'none'` — "nothing starts this but a `play()` call".
|
|
139
139
|
*/
|
|
140
|
-
|
|
140
|
+
start?: PxTriggerStart;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* The playback-override props every surface takes — `createAnimator` and the three components:
|
|
@@ -235,4 +235,4 @@ interface ApplyResult {
|
|
|
235
235
|
*/
|
|
236
236
|
declare function materializeNodeEffects(root: PxNode): ApplyResult;
|
|
237
237
|
|
|
238
|
-
export { PX_RATE_REJECTED, PX_WIRE_SCHEMA_VERSION, PxAnimatedSvgDocument, PxAnimatorApi, PxAnimatorConfig, type PxAnimatorConfigMergeResult, type PxAnimatorConfigPatch, PxEngineCallbacks, PxNode, type PxPlatformAdapter, type PxPlaybackOverride,
|
|
238
|
+
export { PX_RATE_REJECTED, PX_WIRE_SCHEMA_VERSION, PxAnimatedSvgDocument, PxAnimatorApi, PxAnimatorConfig, type PxAnimatorConfigMergeResult, type PxAnimatorConfigPatch, PxEngineCallbacks, PxNode, type PxPlatformAdapter, type PxPlaybackOverride, type PxTimelinePatch, type PxTimelineShortcuts, PxTriggerStart, applyAnimatorConfig, clampSeekMs, createAdapterAnimator, createRunClock, foldTimelineOverride, isValidPlaybackRate, materializeNodeEffects, mergeAnimatorConfig, progressSpanMs, progressToTimeMs, seekCeilingMs, timeToProgress };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PxAnimatedSvgDocument, a as PxEngineCallbacks, b as PxAnimatorApi, c as PxAnimatorConfig, d as
|
|
2
|
-
export { f as PX_TRANSFORM_PART_KEYS, g as PX_TRIGGER_DEFAULTS, h as PX_WIRE_BASELINE_VERSION, i as PX_WIRE_STEPS, j as PX_WIRE_VERSION, k as PX_WIRE_VERSION_KEY, l as PxAlongPathMode, m as PxAnimatedSvgDocumentSchema, n as PxAnimationDefinition, o as PxAnimatorCallbacks, p as PxAnimatorConfigSchema, q as PxAnimatorHandle, r as PxAttrValueSchema, s as PxBezierPath, t as PxBezierPathSchema, u as PxBinding, v as PxClipPathEffectSchema, w as PxCloneEffectSchema, x as PxCloneWithout, y as PxControlMode, z as PxControlProps, A as PxDefinitions, B as PxDefinitionsSchema, C as PxDiagnostic, D as PxDiagnosticCode, E as PxDiagnosticKind, F as PxDiagnostics, G as PxDiagnosticsConfig, H as PxEffects, I as PxEffectsSchema, J as PxElementAnimation, K as PxElementAnimationSchema, L as PxFillGradientEffectSchema, M as PxFillMode, N as PxFinishAction, O as PxGlyph, Q as PxGlyphFont, R as PxGradientSpreadMethod, S as PxGradientStopSchema, T as PxGradientType, U as PxInfer, V as PxKeyframe, W as PxKeyframeSchema, X as PxKeyframeValueSchema, Y as PxLengthAdjust, Z as PxLoop, _ as PxLoopDirection, $ as PxLoopRepeatAt, a0 as PxLoopSchema, a1 as PxMaskType, a2 as PxMaskedByEffectSchema, a3 as
|
|
1
|
+
import { P as PxAnimatedSvgDocument, a as PxEngineCallbacks, b as PxAnimatorApi, c as PxAnimatorConfig, d as PxTriggerStart, e as PxNode } from './PxDocumentDiagnostic-CBhVyNEi.js';
|
|
2
|
+
export { f as PX_TRANSFORM_PART_KEYS, g as PX_TRIGGER_DEFAULTS, h as PX_WIRE_BASELINE_VERSION, i as PX_WIRE_STEPS, j as PX_WIRE_VERSION, k as PX_WIRE_VERSION_KEY, l as PxAlongPathMode, m as PxAnimatedSvgDocumentSchema, n as PxAnimationDefinition, o as PxAnimatorCallbacks, p as PxAnimatorConfigSchema, q as PxAnimatorHandle, r as PxAttrValueSchema, s as PxBezierPath, t as PxBezierPathSchema, u as PxBinding, v as PxClipPathEffectSchema, w as PxCloneEffectSchema, x as PxCloneWithout, y as PxControlMode, z as PxControlProps, A as PxDefinitions, B as PxDefinitionsSchema, C as PxDiagnostic, D as PxDiagnosticCode, E as PxDiagnosticKind, F as PxDiagnostics, G as PxDiagnosticsConfig, H as PxEffects, I as PxEffectsSchema, J as PxElementAnimation, K as PxElementAnimationSchema, L as PxFillGradientEffectSchema, M as PxFillMode, N as PxFinishAction, O as PxGlyph, Q as PxGlyphFont, R as PxGradientSpreadMethod, S as PxGradientStopSchema, T as PxGradientType, U as PxInfer, V as PxKeyframe, W as PxKeyframeSchema, X as PxKeyframeValueSchema, Y as PxLengthAdjust, Z as PxLoop, _ as PxLoopDirection, $ as PxLoopRepeatAt, a0 as PxLoopSchema, a1 as PxMaskType, a2 as PxMaskedByEffectSchema, a3 as PxMouseOutAction, a4 as PxNodeBaseSchema, a5 as PxNodeSchema, a6 as PxOffScreenAction, a7 as PxPathOverflow, a8 as PxPinAlign, a9 as PxPlaybackApi, aa as PxPlaybackDirection, ab as PxPropertyAnimation, ac as PxPropertyAnimationSchema, ad as PxRemoveIndex, ae as PxRepeaterEffectSchema, af as PxRetimeEffectSchema, ag as PxSchema, ah as PxSchemaDesc, ai as PxScroll, aj as PxScrollAxis, ak as PxScrollKind, al as PxScrollPhase, am as PxScrollRangePoint, an as PxScrollRangePointSchema, ao as PxScrollRangeSchema, ap as PxScrollSchema, aq as PxScrollSource, ar as PxStrokeTrimEffectSchema, as as PxStrokeTrimSubPaths, at as PxSvgNode, au as PxSvgNodeRootSchema, av as PxTextEffectSchema, aw as PxTextPathEffectSchema, ax as PxTextPathMethod, ay as PxTextPathSpacing, az as PxTimeline, aA as PxTimelineEngine, aB as PxTimelineEngineSetting, aC as PxTimelineSchema, aD as PxTransformByEffectSchema, aE as PxTransformParts, aF as PxTransformPartsSchema, aG as PxTransformValue, aH as PxTransformValueSchema, aI as PxTrigger, aJ as PxTriggerSchema, aK as PxUnits, aL as PxValidationContext, aM as PxVec2, aN as PxWireConversionOptions, aO as PxWireConversionResult, aP as PxWireStepKind, aQ as PxWireVersion, aR as PxWireVersionRelation, aS as PxWireVersionStep, aT as applyWireSteps, aU as calcAnimationValues, aV as compareWireVersion, aW as controlModeTakesOverTrigger, aX as convertWireDocument, aY as describeSchema, aZ as diagnoseDocument, a_ as downgradeWireDocument, a$ as flattenAnimatorTimeline, b0 as formatWireVersion, b1 as generateNewIds, b2 as getAnimatorConfig, b3 as getBindings, b4 as getChildren, b5 as getDefinitions, b6 as isNativeForced, b7 as isPxDocument, b8 as isValidPxDocument, b9 as materializeAllInTree, ba as mayUseNativeScrollTimeline, bb as nestAnimatorTimeline, bc as normalizeBindings, bd as parseWireVersion, be as px, bf as readWireVersion, bg as resolveControlMode, bh as resolveTimelineEngine, bi as resolveTrigger, bj as schemaKeys, bk as toDomProps, bl as validateDocument, bm as validateNodeEffects, bn as wireVersionAdvice } from './PxDocumentDiagnostic-CBhVyNEi.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* THE PLAYER'S WIRE SCHEMA VERSION — the `a.b` of `svgRoot.animator.version`.
|
|
@@ -15,7 +15,7 @@ export { f as PX_TRANSFORM_PART_KEYS, g as PX_TRIGGER_DEFAULTS, h as PX_WIRE_BAS
|
|
|
15
15
|
* and every format change invisible between releases.
|
|
16
16
|
* @public @advanced
|
|
17
17
|
*/
|
|
18
|
-
declare const PX_WIRE_SCHEMA_VERSION = "1.
|
|
18
|
+
declare const PX_WIRE_SCHEMA_VERSION = "1.2";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Platform adapter interface for abstracting platform-specific operations.
|
|
@@ -134,10 +134,10 @@ interface PxTimelineShortcuts {
|
|
|
134
134
|
/** Shortcut for `timeline.iterations`; `'infinite'` never stops. */
|
|
135
135
|
iterations?: number | 'infinite';
|
|
136
136
|
/**
|
|
137
|
-
* Shortcut for `timeline.trigger.
|
|
138
|
-
* `'
|
|
137
|
+
* Shortcut for `timeline.trigger.start`. Typed from the WIRE, so it includes
|
|
138
|
+
* `'none'` — "nothing starts this but a `play()` call".
|
|
139
139
|
*/
|
|
140
|
-
|
|
140
|
+
start?: PxTriggerStart;
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* The playback-override props every surface takes — `createAnimator` and the three components:
|
|
@@ -235,4 +235,4 @@ interface ApplyResult {
|
|
|
235
235
|
*/
|
|
236
236
|
declare function materializeNodeEffects(root: PxNode): ApplyResult;
|
|
237
237
|
|
|
238
|
-
export { PX_RATE_REJECTED, PX_WIRE_SCHEMA_VERSION, PxAnimatedSvgDocument, PxAnimatorApi, PxAnimatorConfig, type PxAnimatorConfigMergeResult, type PxAnimatorConfigPatch, PxEngineCallbacks, PxNode, type PxPlatformAdapter, type PxPlaybackOverride,
|
|
238
|
+
export { PX_RATE_REJECTED, PX_WIRE_SCHEMA_VERSION, PxAnimatedSvgDocument, PxAnimatorApi, PxAnimatorConfig, type PxAnimatorConfigMergeResult, type PxAnimatorConfigPatch, PxEngineCallbacks, PxNode, type PxPlatformAdapter, type PxPlaybackOverride, type PxTimelinePatch, type PxTimelineShortcuts, PxTriggerStart, applyAnimatorConfig, clampSeekMs, createAdapterAnimator, createRunClock, foldTimelineOverride, isValidPlaybackRate, materializeNodeEffects, mergeAnimatorConfig, progressSpanMs, progressToTimeMs, seekCeilingMs, timeToProgress };
|