@pixodesk/svg-animator-web 1.0.40 → 1.0.41

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/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
- import { P as PxAnimatorAPI } from './internal-BmFv1B6H.cjs';
2
- export { a as PX_ANIMATOR_DOC_KEY, b as PxAnimatorOptions, c as PxBasicAnimatorAPI, d as PxInternalAnimatorOptions, e as PxTagAnimatorOptions, f as createAnimator, l as loadTagAnimators } from './internal-BmFv1B6H.cjs';
3
- import { PxAnimatorCallbacks, PxAnimatedSvgDocument, PxTrigger, PxDiagnostics, PxNode, PxDefs } from '@pixodesk/svg-animator-core';
4
- export { PxAnimatedSvgDocument, PxAnimatorCallbacks, PxAnimatorConfig, PxAnimatorConfigSchema, PxBinding, PxDefs, PxDefsSchema, PxDiagnostic, PxDiagnosticKind, PxDiagnostics, PxDiagnosticsConfig, PxEngineCallbacks, PxFillMode, PxInfer, PxNode, PxNodeBase, PxPlatformAdapter, PxPlaybackDirection, PxPlaybackOverrideProps, PxSchema, PxScrollSchema, PxStartOn, PxSvgNode, PxSvgNodeExtra, PxTimelineEngineExtra, PxTimelinePatch, PxTrigger, PxTriggerSchema, PxValidationContext, createBasicFrameLoopAnimator, generateNewIds, getNormalizedProps, px, validateDocument } from '@pixodesk/svg-animator-core';
1
+ import { P as PxAnimatorApi } from './PxAnimator-yjuSFhQw.cjs';
2
+ export { a as PxAnimatorOptions, b as PxPlaybackApi, c as PxTagAnimatorOptions, d as createAnimator, l as loadTagAnimators } from './PxAnimator-yjuSFhQw.cjs';
3
+ import { PxAnimatorCallbacks, PxAnimatedSvgDocument, PxTrigger, PxDiagnostics, PxNode, PxDefinitions } from '@pixodesk/svg-animator-core';
4
+ export { PxAnimatedSvgDocument, PxAnimatorCallbacks, PxAnimatorConfig, PxAnimatorConfigSchema, PxBinding, PxDefinitions, PxDefinitionsSchema, PxDiagnostic, PxDiagnosticKind, PxDiagnostics, PxDiagnosticsConfig, PxEngineCallbacks, PxFillMode, PxInfer, PxNode, PxNodeBaseSchema, PxPlatformAdapter, PxPlaybackDirection, PxPlaybackOverride, PxSchema, PxScrollSchema, PxStartOn, PxSvgNode, PxSvgNodeRootSchema, PxTimelineEngineSetting, PxTimelinePatch, PxTrigger, PxTriggerSchema, PxValidationContext, createAdapterAnimator, generateNewIds, px, toDomProps, validateDocument } from '@pixodesk/svg-animator-core';
5
5
 
6
6
  /**
7
7
  * Options accepted by the pre-rendered entry points — a subset of `PxAnimatorOptions`: the
@@ -9,7 +9,7 @@ export { PxAnimatedSvgDocument, PxAnimatorCallbacks, PxAnimatorConfig, PxAnimato
9
9
  * `adapter`: a pre-rendered SVG is by definition already in the DOM (review §25.14).
10
10
  * @public
11
11
  */
12
- interface PxPrerenderedOptions extends PxAnimatorCallbacks {
12
+ interface PxPrerenderedAnimatorOptions extends PxAnimatorCallbacks {
13
13
  /**
14
14
  * The animation document. For a pre-rendered SVG this carries `animator.definitions`
15
15
  * and `animator.bindings` only — no `children`, because the elements are already
@@ -39,8 +39,8 @@ interface PxPrerenderedOptions extends PxAnimatorCallbacks {
39
39
  * - 'reset': Cancels the animation, resetting it to the start.
40
40
  * - 'reverse': Reverses the animation playback.
41
41
  *
42
- * @param {!PxAnimatorAPI} api The animator API instance to control.
43
- * @param {!PxTrigger} config The trigger configuration object. Only `startOn`, `outAction` and
42
+ * @param {!PxAnimatorApi} api The animator API instance to control.
43
+ * @param {!PxTrigger} trigger The trigger configuration object. Only `startOn`, `outAction` and
44
44
  * `scrollIntoViewThreshold` are read here; `finishAction` belongs to the PLAYER (what happens
45
45
  * after a natural end), not to the trigger wiring.
46
46
  * @returns A disposer that detaches every listener and observer this call attached (review §14).
@@ -48,12 +48,12 @@ interface PxPrerenderedOptions extends PxAnimatorCallbacks {
48
48
  * wired by hand — otherwise the old listeners stay live next to the new ones.
49
49
  * @public
50
50
  */
51
- declare function setupAnimationTriggers(api: PxAnimatorAPI, config: PxTrigger, diag?: PxDiagnostics): () => void;
51
+ declare function setupAnimationTriggers(api: PxAnimatorApi, trigger: PxTrigger, diag?: PxDiagnostics): () => void;
52
52
 
53
53
  /**
54
54
  * Renders a PxNode tree to DOM elements.
55
55
  * @public @advanced
56
56
  */
57
- declare function renderNode(node: PxNode, defs?: PxDefs, diag?: PxDiagnostics): Element | null;
57
+ declare function renderNode(node: PxNode, defs?: PxDefinitions, diag?: PxDiagnostics): Element | null;
58
58
 
59
- export { PxAnimatorAPI, type PxPrerenderedOptions, renderNode, setupAnimationTriggers };
59
+ export { PxAnimatorApi, type PxPrerenderedAnimatorOptions, renderNode, setupAnimationTriggers };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { P as PxAnimatorAPI } from './internal-BmFv1B6H.js';
2
- export { a as PX_ANIMATOR_DOC_KEY, b as PxAnimatorOptions, c as PxBasicAnimatorAPI, d as PxInternalAnimatorOptions, e as PxTagAnimatorOptions, f as createAnimator, l as loadTagAnimators } from './internal-BmFv1B6H.js';
3
- import { PxAnimatorCallbacks, PxAnimatedSvgDocument, PxTrigger, PxDiagnostics, PxNode, PxDefs } from '@pixodesk/svg-animator-core';
4
- export { PxAnimatedSvgDocument, PxAnimatorCallbacks, PxAnimatorConfig, PxAnimatorConfigSchema, PxBinding, PxDefs, PxDefsSchema, PxDiagnostic, PxDiagnosticKind, PxDiagnostics, PxDiagnosticsConfig, PxEngineCallbacks, PxFillMode, PxInfer, PxNode, PxNodeBase, PxPlatformAdapter, PxPlaybackDirection, PxPlaybackOverrideProps, PxSchema, PxScrollSchema, PxStartOn, PxSvgNode, PxSvgNodeExtra, PxTimelineEngineExtra, PxTimelinePatch, PxTrigger, PxTriggerSchema, PxValidationContext, createBasicFrameLoopAnimator, generateNewIds, getNormalizedProps, px, validateDocument } from '@pixodesk/svg-animator-core';
1
+ import { P as PxAnimatorApi } from './PxAnimator-yjuSFhQw.js';
2
+ export { a as PxAnimatorOptions, b as PxPlaybackApi, c as PxTagAnimatorOptions, d as createAnimator, l as loadTagAnimators } from './PxAnimator-yjuSFhQw.js';
3
+ import { PxAnimatorCallbacks, PxAnimatedSvgDocument, PxTrigger, PxDiagnostics, PxNode, PxDefinitions } from '@pixodesk/svg-animator-core';
4
+ export { PxAnimatedSvgDocument, PxAnimatorCallbacks, PxAnimatorConfig, PxAnimatorConfigSchema, PxBinding, PxDefinitions, PxDefinitionsSchema, PxDiagnostic, PxDiagnosticKind, PxDiagnostics, PxDiagnosticsConfig, PxEngineCallbacks, PxFillMode, PxInfer, PxNode, PxNodeBaseSchema, PxPlatformAdapter, PxPlaybackDirection, PxPlaybackOverride, PxSchema, PxScrollSchema, PxStartOn, PxSvgNode, PxSvgNodeRootSchema, PxTimelineEngineSetting, PxTimelinePatch, PxTrigger, PxTriggerSchema, PxValidationContext, createAdapterAnimator, generateNewIds, px, toDomProps, validateDocument } from '@pixodesk/svg-animator-core';
5
5
 
6
6
  /**
7
7
  * Options accepted by the pre-rendered entry points — a subset of `PxAnimatorOptions`: the
@@ -9,7 +9,7 @@ export { PxAnimatedSvgDocument, PxAnimatorCallbacks, PxAnimatorConfig, PxAnimato
9
9
  * `adapter`: a pre-rendered SVG is by definition already in the DOM (review §25.14).
10
10
  * @public
11
11
  */
12
- interface PxPrerenderedOptions extends PxAnimatorCallbacks {
12
+ interface PxPrerenderedAnimatorOptions extends PxAnimatorCallbacks {
13
13
  /**
14
14
  * The animation document. For a pre-rendered SVG this carries `animator.definitions`
15
15
  * and `animator.bindings` only — no `children`, because the elements are already
@@ -39,8 +39,8 @@ interface PxPrerenderedOptions extends PxAnimatorCallbacks {
39
39
  * - 'reset': Cancels the animation, resetting it to the start.
40
40
  * - 'reverse': Reverses the animation playback.
41
41
  *
42
- * @param {!PxAnimatorAPI} api The animator API instance to control.
43
- * @param {!PxTrigger} config The trigger configuration object. Only `startOn`, `outAction` and
42
+ * @param {!PxAnimatorApi} api The animator API instance to control.
43
+ * @param {!PxTrigger} trigger The trigger configuration object. Only `startOn`, `outAction` and
44
44
  * `scrollIntoViewThreshold` are read here; `finishAction` belongs to the PLAYER (what happens
45
45
  * after a natural end), not to the trigger wiring.
46
46
  * @returns A disposer that detaches every listener and observer this call attached (review §14).
@@ -48,12 +48,12 @@ interface PxPrerenderedOptions extends PxAnimatorCallbacks {
48
48
  * wired by hand — otherwise the old listeners stay live next to the new ones.
49
49
  * @public
50
50
  */
51
- declare function setupAnimationTriggers(api: PxAnimatorAPI, config: PxTrigger, diag?: PxDiagnostics): () => void;
51
+ declare function setupAnimationTriggers(api: PxAnimatorApi, trigger: PxTrigger, diag?: PxDiagnostics): () => void;
52
52
 
53
53
  /**
54
54
  * Renders a PxNode tree to DOM elements.
55
55
  * @public @advanced
56
56
  */
57
- declare function renderNode(node: PxNode, defs?: PxDefs, diag?: PxDiagnostics): Element | null;
57
+ declare function renderNode(node: PxNode, defs?: PxDefinitions, diag?: PxDiagnostics): Element | null;
58
58
 
59
- export { PxAnimatorAPI, type PxPrerenderedOptions, renderNode, setupAnimationTriggers };
59
+ export { PxAnimatorApi, type PxPrerenderedAnimatorOptions, renderNode, setupAnimationTriggers };