@glissade/lottie 0.48.0-pre.0 → 0.48.0-pre.1
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.js +3 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Circle, Group, ImageNode, Path, Rect, Text, createScene } from "@glissade/scene";
|
|
2
|
-
import { cubicBezier, formatColor, parseColor, sampleTrack, track } from "@glissade/core";
|
|
2
|
+
import { compileTimeline, cubicBezier, formatColor, parseColor, sampleTrack, track } from "@glissade/core";
|
|
3
3
|
import "@glissade/core/expr";
|
|
4
4
|
//#region src/spec.ts
|
|
5
5
|
var LottieImportError = class extends Error {
|
|
@@ -1531,8 +1531,9 @@ function exportLottie(mod, opts) {
|
|
|
1531
1531
|
const scene = mod.createScene();
|
|
1532
1532
|
const fr = opts.fps ?? mod.timeline.fps ?? 60;
|
|
1533
1533
|
const warn = opts.onWarn ?? ((m) => console.warn(`gs export: ${m}`));
|
|
1534
|
+
const compiled = compileTimeline(mod.timeline);
|
|
1534
1535
|
const byNode = /* @__PURE__ */ new Map();
|
|
1535
|
-
for (const tr of
|
|
1536
|
+
for (const tr of compiled.tracks.values()) {
|
|
1536
1537
|
const resolved = resolveTrackNode(scene.nodes, tr.target);
|
|
1537
1538
|
if (resolved === void 0) {
|
|
1538
1539
|
warn(`track '${tr.target}' targets no node in the scene — dropped`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@glissade/lottie",
|
|
3
|
-
"version": "0.48.0-pre.
|
|
3
|
+
"version": "0.48.0-pre.1",
|
|
4
4
|
"description": "glissade Lottie import (S1 MVP): pure .json (Lottie/bodymovin) → node specs + a v1 Timeline. Fail-fast feature audit; no DOM/Node dependencies.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"engines": {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@glissade/core": "0.48.0-pre.
|
|
22
|
-
"@glissade/scene": "0.48.0-pre.
|
|
21
|
+
"@glissade/core": "0.48.0-pre.1",
|
|
22
|
+
"@glissade/scene": "0.48.0-pre.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@glissade/backend-skia": "0.48.0-pre.
|
|
25
|
+
"@glissade/backend-skia": "0.48.0-pre.1"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|
|
28
28
|
"type": "git",
|