@pixodesk/svg-animator-web 1.0.21 → 1.0.24
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 +3 -3
- package/dist/index.cjs +615 -412
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -3
- package/dist/index.d.ts +16 -3
- package/dist/index.js +613 -411
- 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 +1687 -0
- package/dist/index.prerendered-waapi.umd.js.map +1 -0
- package/dist/index.prerendered-waapi.umd.min.js +1 -0
- package/dist/index.prerendered.umd.js +2200 -0
- package/dist/index.prerendered.umd.js.map +1 -0
- package/dist/index.prerendered.umd.min.js +1 -0
- package/dist/index.umd.js +756 -976
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/package.json +17 -12
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ createAnimator({
|
|
|
124
124
|
`animator.mode` selects the playback engine:
|
|
125
125
|
|
|
126
126
|
- `'auto'` (default) — try the Web Animations API, fall back to `requestAnimationFrame`.
|
|
127
|
-
- `'
|
|
127
|
+
- `'waapi'` — Web Animations API only.
|
|
128
128
|
- `'frames'` — `requestAnimationFrame` only; honours `animator.frameRate`. Required for path morphing.
|
|
129
129
|
|
|
130
130
|
### Document format & effects
|
|
@@ -134,10 +134,10 @@ same shape as the JSON export. It comes in two modes:
|
|
|
134
134
|
|
|
135
135
|
- **Mode A** — has `children`: the player renders the SVG tree and animates it.
|
|
136
136
|
- **Mode B** — no `children`: the player animates a pre-existing SVG DOM, mapping
|
|
137
|
-
element ids to animation specs via `animator.
|
|
137
|
+
element ids to animation specs via `animator.animateById`.
|
|
138
138
|
|
|
139
139
|
Elements may also carry a `node.effects` bucket (structural effects such as
|
|
140
|
-
`
|
|
140
|
+
`transformBy`, `repeater`, `maskedBy`, `trimPath`, `clone`, `fillGradient` /
|
|
141
141
|
`strokeGradient`, `textAlongPath`). This player materialises and removes them at
|
|
142
142
|
runtime before any other normalisation.
|
|
143
143
|
|