@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/README.md +12 -4
- package/dist/{internal-BmFv1B6H.d.cts → PxAnimator-yjuSFhQw.d.cts} +8 -29
- package/dist/{internal-BmFv1B6H.d.ts → PxAnimator-yjuSFhQw.d.ts} +8 -29
- package/dist/{chunk-TNWZIIVG.js → chunk-BYDBNKO7.js} +1 -1
- package/dist/chunk-BYDBNKO7.js.map +1 -0
- package/dist/index.cjs +227 -230
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +222 -222
- package/dist/index.js.map +1 -1
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.prerendered-waapi.umd.js +53 -53
- package/dist/index.prerendered-waapi.umd.js.map +1 -1
- package/dist/index.prerendered-waapi.umd.min.js +1 -1
- package/dist/index.prerendered.umd.js +68 -68
- package/dist/index.prerendered.umd.js.map +1 -1
- package/dist/index.prerendered.umd.min.js +1 -1
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +24 -1
- package/dist/internal.d.ts +24 -1
- package/dist/internal.js +1 -1
- package/dist/internal.min.cjs +1 -1
- package/dist/pixodesk-svg-animator.umd.js +137 -137
- package/dist/pixodesk-svg-animator.umd.js.map +1 -1
- package/dist/pixodesk-svg-animator.umd.min.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-TNWZIIVG.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
export { a as
|
|
3
|
-
import { PxAnimatorCallbacks, PxAnimatedSvgDocument, PxTrigger, PxDiagnostics, PxNode,
|
|
4
|
-
export { PxAnimatedSvgDocument, PxAnimatorCallbacks, PxAnimatorConfig, PxAnimatorConfigSchema, PxBinding,
|
|
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
|
|
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 {!
|
|
43
|
-
* @param {!PxTrigger}
|
|
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:
|
|
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?:
|
|
57
|
+
declare function renderNode(node: PxNode, defs?: PxDefinitions, diag?: PxDiagnostics): Element | null;
|
|
58
58
|
|
|
59
|
-
export {
|
|
59
|
+
export { PxAnimatorApi, type PxPrerenderedAnimatorOptions, renderNode, setupAnimationTriggers };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { P as
|
|
2
|
-
export { a as
|
|
3
|
-
import { PxAnimatorCallbacks, PxAnimatedSvgDocument, PxTrigger, PxDiagnostics, PxNode,
|
|
4
|
-
export { PxAnimatedSvgDocument, PxAnimatorCallbacks, PxAnimatorConfig, PxAnimatorConfigSchema, PxBinding,
|
|
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
|
|
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 {!
|
|
43
|
-
* @param {!PxTrigger}
|
|
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:
|
|
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?:
|
|
57
|
+
declare function renderNode(node: PxNode, defs?: PxDefinitions, diag?: PxDiagnostics): Element | null;
|
|
58
58
|
|
|
59
|
-
export {
|
|
59
|
+
export { PxAnimatorApi, type PxPrerenderedAnimatorOptions, renderNode, setupAnimationTriggers };
|