@pixerate/editor 0.56.0 → 0.58.0
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/animation/index.cjs +15 -1
- package/dist/animation/index.cjs.map +1 -1
- package/dist/animation/index.d.cts +1 -0
- package/dist/animation/index.d.ts +1 -0
- package/dist/animation/index.js +14 -0
- package/dist/animation-editor/index.cjs +452 -129
- package/dist/animation-editor/index.cjs.map +1 -1
- package/dist/animation-editor/index.d.cts +315 -35
- package/dist/animation-editor/index.d.ts +315 -35
- package/dist/animation-editor/index.js +411 -88
- package/dist/animation-editor/index.js.map +1 -1
- package/dist/behavior-Ymbld6jL.d.cts +60 -0
- package/dist/behavior-Ymbld6jL.d.ts +60 -0
- package/dist/chunk-3NYXDBBW.js +122 -0
- package/dist/chunk-3NYXDBBW.js.map +1 -0
- package/dist/{chunk-XCXQDPID.cjs → chunk-FKONE6AO.cjs} +23 -8
- package/dist/chunk-FKONE6AO.cjs.map +1 -0
- package/dist/{chunk-NONDTTH7.js → chunk-PYMV7HLI.js} +16 -1
- package/dist/{chunk-NONDTTH7.js.map → chunk-PYMV7HLI.js.map} +1 -1
- package/dist/chunk-ZCNLBRT6.cjs +122 -0
- package/dist/chunk-ZCNLBRT6.cjs.map +1 -0
- package/dist/{svg-CPK82TtU.d.ts → svg-Dh17jCyA.d.ts} +22 -1
- package/dist/{svg-CLg2zqZA.d.cts → svg-ymShkNtu.d.cts} +22 -1
- package/dist/vector/index.cjs +471 -471
- package/dist/vector/index.d.cts +2 -2
- package/dist/vector/index.d.ts +2 -2
- package/dist/vector/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-XCXQDPID.cjs.map +0 -1
|
@@ -5195,6 +5195,21 @@ function vectorDocumentToSvg(doc, options = {}) {
|
|
|
5195
5195
|
};
|
|
5196
5196
|
const emit2 = (node, depth) => {
|
|
5197
5197
|
if (node.visible === false && !options.includeHidden) return;
|
|
5198
|
+
const wrappers = options.wrap?.[node.id] ?? [];
|
|
5199
|
+
wrappers.forEach((w2, i) => {
|
|
5200
|
+
let attrs = w2.id !== void 0 ? ` id="${escapeAttr(w2.id)}"` : "";
|
|
5201
|
+
if (w2.transform) attrs += ` transform="${escapeAttr(w2.transform)}"`;
|
|
5202
|
+
if (w2.clip) {
|
|
5203
|
+
const shape = Object.entries(w2.clip.attrs).map(([k, v2]) => ` ${k}="${formatNumber(v2, 4)}"`).join("");
|
|
5204
|
+
defs.push(`<clipPath id="${escapeAttr(w2.clip.id)}" clipPathUnits="objectBoundingBox"><${w2.clip.shape}${w2.clip.shapeId !== void 0 ? ` id="${escapeAttr(w2.clip.shapeId)}"` : ""}${shape}/></clipPath>`);
|
|
5205
|
+
attrs += ` clip-path="url(#${escapeAttr(w2.clip.id)})"`;
|
|
5206
|
+
}
|
|
5207
|
+
lines.push(`${indent(depth + i)}<g${attrs}>`);
|
|
5208
|
+
});
|
|
5209
|
+
emitNode(node, depth + wrappers.length);
|
|
5210
|
+
for (let i = wrappers.length - 1; i >= 0; i--) lines.push(`${indent(depth + i)}</g>`);
|
|
5211
|
+
};
|
|
5212
|
+
const emitNode = (node, depth) => {
|
|
5198
5213
|
if (hasOwnVectorAppearance(node)) {
|
|
5199
5214
|
const live2 = {
|
|
5200
5215
|
kind: node.type,
|
|
@@ -5976,4 +5991,4 @@ export {
|
|
|
5976
5991
|
parseSvgTransform,
|
|
5977
5992
|
parseVectorSvg
|
|
5978
5993
|
};
|
|
5979
|
-
//# sourceMappingURL=chunk-
|
|
5994
|
+
//# sourceMappingURL=chunk-PYMV7HLI.js.map
|