@pixodesk/svg-animator-vue 1.0.29 → 1.0.30
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.umd.js +11 -11
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -57788,7 +57788,7 @@ ${codeFrame}` : message);
|
|
|
57788
57788
|
auto: "auto",
|
|
57789
57789
|
exact: "exact"
|
|
57790
57790
|
};
|
|
57791
|
-
var
|
|
57791
|
+
var PxStrokeTrimSubPaths = {
|
|
57792
57792
|
separate: "separate",
|
|
57793
57793
|
combined: "combined"
|
|
57794
57794
|
};
|
|
@@ -58026,10 +58026,10 @@ ${codeFrame}` : message);
|
|
|
58026
58026
|
d: PxAnimatableStringSchema.optional(),
|
|
58027
58027
|
animate: PxPropertyAnimationSchema.optional()
|
|
58028
58028
|
}));
|
|
58029
|
-
var
|
|
58029
|
+
var PxStrokeTrimEffectSchema = implementsInterface()(px.object({
|
|
58030
58030
|
offset: PxAnimatableNumberSchema.optional(),
|
|
58031
58031
|
range: PxAnimatableVec2Schema.optional(),
|
|
58032
|
-
subPaths: px.enum([
|
|
58032
|
+
subPaths: px.enum([PxStrokeTrimSubPaths.separate, PxStrokeTrimSubPaths.combined]).optional()
|
|
58033
58033
|
}));
|
|
58034
58034
|
var PxRetimeEffectSchema = implementsInterface()(px.object({
|
|
58035
58035
|
sourceId: px.string().optional(),
|
|
@@ -58083,7 +58083,7 @@ ${codeFrame}` : message);
|
|
|
58083
58083
|
repeater: PxRepeaterEffectSchema.optional(),
|
|
58084
58084
|
maskedBy: PxMaskedByEffectSchema.optional(),
|
|
58085
58085
|
clipPath: PxClipPathEffectSchema.optional(),
|
|
58086
|
-
|
|
58086
|
+
strokeTrim: PxStrokeTrimEffectSchema.optional(),
|
|
58087
58087
|
clone: PxCloneEffectSchema.optional(),
|
|
58088
58088
|
fillGradient: PxFillGradientEffectSchema.optional(),
|
|
58089
58089
|
strokeGradient: PxStrokeGradientEffectSchema.optional(),
|
|
@@ -61585,9 +61585,9 @@ ${codeFrame}` : message);
|
|
|
61585
61585
|
}
|
|
61586
61586
|
return materialiseGlyphTextAlongPath(node, pathD, startOffset, { glyphs: ctx.glyphs, warnings: ctx.warnings }, textLength, pathOverflow);
|
|
61587
61587
|
}
|
|
61588
|
-
function
|
|
61589
|
-
if (!
|
|
61590
|
-
const combined =
|
|
61588
|
+
function applyStrokeTrimEffect(node, strokeTrim, ctx) {
|
|
61589
|
+
if (!strokeTrim) return node;
|
|
61590
|
+
const combined = strokeTrim.subPaths === PxStrokeTrimSubPaths.combined;
|
|
61591
61591
|
const leafEntries = [];
|
|
61592
61592
|
const measure = (n) => {
|
|
61593
61593
|
if (Array.isArray(n.children) && n.children.length > 0) {
|
|
@@ -61618,9 +61618,9 @@ ${codeFrame}` : message);
|
|
|
61618
61618
|
}
|
|
61619
61619
|
const chainLengthPx = acc;
|
|
61620
61620
|
if (combined && chainLengthPx < 1e-3) return node;
|
|
61621
|
-
const offsetReadRaw = readAnimatable(
|
|
61621
|
+
const offsetReadRaw = readAnimatable(strokeTrim.offset);
|
|
61622
61622
|
const offsetRead = offsetReadRaw.kind === "absent" ? { kind: "static", value: 0 } : offsetReadRaw;
|
|
61623
|
-
const rangeReadRaw = readRangeWithCrossings(
|
|
61623
|
+
const rangeReadRaw = readRangeWithCrossings(strokeTrim.range);
|
|
61624
61624
|
const rangeRead = rangeReadRaw.kind === "absent" ? { kind: "static", value: [0, 1] } : rangeReadRaw;
|
|
61625
61625
|
const offsetValues = readScalarValues(offsetRead);
|
|
61626
61626
|
const minOffset = offsetValues.length ? Math.min(...offsetValues) : 0;
|
|
@@ -61950,7 +61950,7 @@ ${codeFrame}` : message);
|
|
|
61950
61950
|
const originalId = typeof node.id === "string" ? node.id : void 0;
|
|
61951
61951
|
const innerIdForContentRef = originalId ? ctx.contentRefInnerIds.get(originalId) : void 0;
|
|
61952
61952
|
if (!fx && !innerIdForContentRef) return node;
|
|
61953
|
-
const { transformBy, repeater, maskedBy, clipPath,
|
|
61953
|
+
const { transformBy, repeater, maskedBy, clipPath, strokeTrim, clone: cloneFx, fillGradient, strokeGradient, textPath, text } = fx != null ? fx : {};
|
|
61954
61954
|
if (fx) delete node.effects;
|
|
61955
61955
|
let n = node;
|
|
61956
61956
|
let consumedByGlyphs = false;
|
|
@@ -61970,7 +61970,7 @@ ${codeFrame}` : message);
|
|
|
61970
61970
|
if (!consumedByGlyphs) n = applyTextPathEffect(n, textPath, ctx);
|
|
61971
61971
|
n = applyFillGradientEffect(n, fillGradient, ctx);
|
|
61972
61972
|
n = applyStrokeGradientEffect(n, strokeGradient, ctx);
|
|
61973
|
-
n =
|
|
61973
|
+
n = applyStrokeTrimEffect(n, strokeTrim, ctx);
|
|
61974
61974
|
n = applyRepeaterEffect(n, repeater, ctx);
|
|
61975
61975
|
n = applyMaskedByEffect(n, maskedBy, transformBy, ctx);
|
|
61976
61976
|
n = applyClipPathEffect(n, clipPath, ctx);
|