@pixerate/editor 0.133.0 → 0.134.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-editor/index.cjs +55 -55
- package/dist/animation-editor/index.d.cts +4 -4
- package/dist/animation-editor/index.d.ts +4 -4
- package/dist/animation-editor/index.js +2 -2
- package/dist/{bezier-DL2wPsFf.d.cts → bezier-J8i4uqSH.d.cts} +1 -1
- package/dist/{bezier-BAGdL89w.d.ts → bezier-lNEOp0Jx.d.ts} +1 -1
- package/dist/canvas/index.d.cts +7 -7
- package/dist/canvas/index.d.ts +7 -7
- package/dist/{chunk-VGZSIXX3.js → chunk-7RJ6P7MI.js} +2 -2
- package/dist/{chunk-AOCFL7L7.js → chunk-ESIWZMMK.js} +2 -2
- package/dist/{chunk-FOBB6AIO.js → chunk-HHTCDFZC.js} +97 -5
- package/dist/chunk-HHTCDFZC.js.map +1 -0
- package/dist/{chunk-2QKUD3E2.cjs → chunk-T6TV6HY6.cjs} +36 -36
- package/dist/{chunk-2QKUD3E2.cjs.map → chunk-T6TV6HY6.cjs.map} +1 -1
- package/dist/{chunk-65GNHOD4.cjs → chunk-YAFS2QFZ.cjs} +82 -82
- package/dist/{chunk-65GNHOD4.cjs.map → chunk-YAFS2QFZ.cjs.map} +1 -1
- package/dist/{chunk-F7GGEAO2.cjs → chunk-Z2H7KECK.cjs} +151 -59
- package/dist/chunk-Z2H7KECK.cjs.map +1 -0
- package/dist/effects/index.d.cts +4 -4
- package/dist/effects/index.d.ts +4 -4
- package/dist/{export-BICOEM9d.d.cts → export-BGdT02aL.d.cts} +3 -3
- package/dist/{export-zB4HITwP.d.ts → export-DMeG6E06.d.ts} +1 -1
- package/dist/{export-XnuX8FZ2.d.ts → export-Dng22YB8.d.ts} +3 -3
- package/dist/{export-CeFplzAW.d.cts → export-KzubBKo7.d.cts} +1 -1
- package/dist/{helpers-cssRNUzH.d.ts → helpers-Coa4e2j_.d.ts} +12 -0
- package/dist/{helpers-BuKdqUlM.d.cts → helpers-DHl28yLO.d.cts} +12 -0
- package/dist/image-editor/index.cjs +610 -610
- package/dist/image-editor/index.d.cts +8 -8
- package/dist/image-editor/index.d.ts +8 -8
- package/dist/image-editor/index.js +2 -2
- package/dist/{opentype-C3iyIFRx.d.cts → opentype-BWR7Qv8W.d.cts} +1 -1
- package/dist/{opentype-DG5Lkwul.d.ts → opentype-Dfcx6wFx.d.ts} +1 -1
- package/dist/paint-editor/index.cjs +7 -7
- package/dist/paint-editor/index.d.cts +5 -5
- package/dist/paint-editor/index.d.ts +5 -5
- package/dist/paint-editor/index.js +2 -2
- package/dist/{pathfinder-DKLt4UDG.d.ts → pathfinder-Celbi3e6.d.ts} +1 -1
- package/dist/{pathfinder-8vXik95z.d.cts → pathfinder-D8KQ6blQ.d.cts} +1 -1
- package/dist/{pool-C69pkWRz.d.ts → pool-8JZGWHvR.d.ts} +1 -1
- package/dist/{pool-VAWcYUbs.d.cts → pool-BfuxBKTd.d.cts} +1 -1
- package/dist/{svg-CEYpvsgH.d.ts → svg-CxxqG3_W.d.ts} +2 -2
- package/dist/{svg-BThlZmja.d.cts → svg-pwXWq6s2.d.cts} +2 -2
- package/dist/{tools-CRnZJXXr.d.cts → tools-3EBjR91b.d.cts} +1 -1
- package/dist/{tools-CVGqEpO8.d.ts → tools-y1M6O3UT.d.ts} +1 -1
- package/dist/vector/index.cjs +1292 -1035
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +183 -91
- package/dist/vector/index.d.ts +183 -91
- package/dist/vector/index.js +267 -10
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.d.cts +4 -4
- package/dist/video-editor/index.d.ts +4 -4
- package/dist/{warp-mKylbLiF.d.ts → warp-C1gwu2G_.d.ts} +1 -1
- package/dist/{warp-ChcFDdlT.d.cts → warp-Ceqdz7kj.d.cts} +1 -1
- package/package.json +1 -1
- package/skills/pixerate-vector/SKILL.md +12 -53
- package/skills/pixerate-vector/references/pitfalls.md +62 -0
- package/dist/chunk-F7GGEAO2.cjs.map +0 -1
- package/dist/chunk-FOBB6AIO.js.map +0 -1
- /package/dist/{chunk-VGZSIXX3.js.map → chunk-7RJ6P7MI.js.map} +0 -0
- /package/dist/{chunk-AOCFL7L7.js.map → chunk-ESIWZMMK.js.map} +0 -0
|
@@ -123,7 +123,7 @@ var _chunk643B2HKCcjs = require('./chunk-643B2HKC.cjs');
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
var
|
|
126
|
+
var _chunkZ2H7KECKcjs = require('./chunk-Z2H7KECK.cjs');
|
|
127
127
|
|
|
128
128
|
|
|
129
129
|
|
|
@@ -3264,7 +3264,7 @@ function mapAnchor(a, f) {
|
|
|
3264
3264
|
return out;
|
|
3265
3265
|
}
|
|
3266
3266
|
function mapSubpaths(subpaths, f) {
|
|
3267
|
-
return
|
|
3267
|
+
return _chunkZ2H7KECKcjs.expandVectorCorners.call(void 0, subpaths).map((sp) => ({ closed: sp.closed, anchors: sp.anchors.map((a) => mapAnchor(a, f)) }));
|
|
3268
3268
|
}
|
|
3269
3269
|
function liveShapeSubpaths(live) {
|
|
3270
3270
|
let out;
|
|
@@ -3272,19 +3272,19 @@ function liveShapeSubpaths(live) {
|
|
|
3272
3272
|
case "rect": {
|
|
3273
3273
|
const x = Math.min(live.x, live.x + live.width);
|
|
3274
3274
|
const y = Math.min(live.y, live.y + live.height);
|
|
3275
|
-
const sp =
|
|
3275
|
+
const sp = _chunkZ2H7KECKcjs.rectSubpath.call(void 0, { x, y, width: Math.abs(live.width), height: Math.abs(live.height) });
|
|
3276
3276
|
const r = _nullishCoalesce(live.radii, () => ( [0, 0, 0, 0]));
|
|
3277
|
-
out = [{ closed: true, anchors: sp.anchors.map((a, i) => r[i] > 0 ?
|
|
3277
|
+
out = [{ closed: true, anchors: sp.anchors.map((a, i) => r[i] > 0 ? _chunkZ2H7KECKcjs.setAnchorCorner.call(void 0, a, r[i]) : a) }];
|
|
3278
3278
|
break;
|
|
3279
3279
|
}
|
|
3280
3280
|
case "ellipse":
|
|
3281
|
-
out = [
|
|
3281
|
+
out = [_chunkZ2H7KECKcjs.ellipseSubpath.call(void 0, normBox(live))];
|
|
3282
3282
|
break;
|
|
3283
3283
|
case "polygon":
|
|
3284
|
-
out = [
|
|
3284
|
+
out = [_chunkZ2H7KECKcjs.polygonSubpath.call(void 0, normBox(live), live.sides)];
|
|
3285
3285
|
break;
|
|
3286
3286
|
case "star":
|
|
3287
|
-
out = [
|
|
3287
|
+
out = [_chunkZ2H7KECKcjs.starSubpath.call(void 0, normBox(live), live.points, Math.max(0, Math.min(1, live.innerRatio)))];
|
|
3288
3288
|
break;
|
|
3289
3289
|
case "line": {
|
|
3290
3290
|
const a = { x: live.x1, y: live.y1 };
|
|
@@ -3307,7 +3307,7 @@ function liveShapeSubpaths(live) {
|
|
|
3307
3307
|
}
|
|
3308
3308
|
}
|
|
3309
3309
|
const m = live.transform;
|
|
3310
|
-
return m && !
|
|
3310
|
+
return m && !_chunkZ2H7KECKcjs.isIdentityMatrix.call(void 0, m) ? mapSubpaths(out, (p) => _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, p)) : out;
|
|
3311
3311
|
}
|
|
3312
3312
|
function normBox(b) {
|
|
3313
3313
|
return { x: Math.min(b.x, b.x + b.width), y: Math.min(b.y, b.y + b.height), width: Math.abs(b.width), height: Math.abs(b.height) };
|
|
@@ -3319,7 +3319,7 @@ var pathCache = /* @__PURE__ */ new WeakMap();
|
|
|
3319
3319
|
function componentPath(c) {
|
|
3320
3320
|
let p = pathCache.get(c.subpaths);
|
|
3321
3321
|
if (!p) {
|
|
3322
|
-
p =
|
|
3322
|
+
p = _chunkZ2H7KECKcjs.subpathsToBezier.call(void 0, c.subpaths);
|
|
3323
3323
|
pathCache.set(c.subpaths, p);
|
|
3324
3324
|
}
|
|
3325
3325
|
return p;
|
|
@@ -3642,7 +3642,7 @@ function matrixArg(v, path) {
|
|
|
3642
3642
|
if (!Array.isArray(v) || v.length !== 6 || !v.every(isNum)) fail2(`${path} must be six numbers [a, b, c, d, e, f].`);
|
|
3643
3643
|
const m = v;
|
|
3644
3644
|
if (Math.abs(m[0] * m[3] - m[1] * m[2]) < 1e-12) fail2(`${path} is singular.`);
|
|
3645
|
-
return
|
|
3645
|
+
return _chunkZ2H7KECKcjs.isIdentityMatrix.call(void 0, m) ? void 0 : [...m];
|
|
3646
3646
|
}
|
|
3647
3647
|
function normalizeLiveShape(v, path = "shape") {
|
|
3648
3648
|
if (!v || typeof v !== "object") return fail2(`${path} must be an object with kind ${LIVE_SHAPE_KINDS.join(", ")}.`);
|
|
@@ -3703,7 +3703,7 @@ function normalizeSubpaths(v, path = "subpaths") {
|
|
|
3703
3703
|
if (typeof v === "string") {
|
|
3704
3704
|
let subs;
|
|
3705
3705
|
try {
|
|
3706
|
-
subs =
|
|
3706
|
+
subs = _chunkZ2H7KECKcjs.bezierToSubpaths.call(void 0, v);
|
|
3707
3707
|
} catch (e5) {
|
|
3708
3708
|
return fail2(`${path}: could not read the SVG path data.`);
|
|
3709
3709
|
}
|
|
@@ -3789,15 +3789,15 @@ function updateShapeLayer(layers, id, change, env, action = "edit it") {
|
|
|
3789
3789
|
function transformShapeComponents(components, f, affine) {
|
|
3790
3790
|
return components.map((c) => {
|
|
3791
3791
|
if (affine && c.live) {
|
|
3792
|
-
const live = { ...c.live, transform:
|
|
3793
|
-
if (
|
|
3792
|
+
const live = { ...c.live, transform: _chunkZ2H7KECKcjs.multiplyMatrices.call(void 0, _nullishCoalesce(c.live.transform, () => ( _chunkZ2H7KECKcjs.IDENTITY_MATRIX)), affine) };
|
|
3793
|
+
if (_chunkZ2H7KECKcjs.isIdentityMatrix.call(void 0, live.transform)) delete live.transform;
|
|
3794
3794
|
return { op: c.op, subpaths: liveShapeSubpaths(live), live };
|
|
3795
3795
|
}
|
|
3796
3796
|
return { op: c.op, subpaths: mapSubpaths(c.subpaths, f) };
|
|
3797
3797
|
});
|
|
3798
3798
|
}
|
|
3799
3799
|
function offsetShape(layer, dx, dy, env) {
|
|
3800
|
-
const m =
|
|
3800
|
+
const m = _chunkZ2H7KECKcjs.translateMatrix.call(void 0, dx, dy);
|
|
3801
3801
|
const next = { ...layer, components: transformShapeComponents(layer.components, (p) => ({ x: p.x + dx, y: p.y + dy }), m) };
|
|
3802
3802
|
delete next.annotation;
|
|
3803
3803
|
return rerenderShape(next, env);
|
|
@@ -3805,7 +3805,7 @@ function offsetShape(layer, dx, dy, env) {
|
|
|
3805
3805
|
function mergeShapeComponents(components, fillRule = "nonzero") {
|
|
3806
3806
|
if (components.length < 2) return [...components];
|
|
3807
3807
|
const path = shapeOutline(components, fillRule);
|
|
3808
|
-
const subpaths =
|
|
3808
|
+
const subpaths = _chunkZ2H7KECKcjs.bezierToSubpaths.call(void 0, path);
|
|
3809
3809
|
if (!subpaths.length) fail2("The components combine to nothing (the operations remove every area), so there is nothing to merge into.");
|
|
3810
3810
|
return [{ op: "combine", subpaths }];
|
|
3811
3811
|
}
|
|
@@ -3822,7 +3822,7 @@ function annotationPaint(color, opacity) {
|
|
|
3822
3822
|
function shapeFromAnnotation(a) {
|
|
3823
3823
|
const opacity = _nullishCoalesce(a.opacity, () => ( 1));
|
|
3824
3824
|
const lineWidth = "strokeWidth" in a && a.strokeWidth > 0 ? a.strokeWidth : 1;
|
|
3825
|
-
const rotation = a.rotation ?
|
|
3825
|
+
const rotation = a.rotation ? _chunkZ2H7KECKcjs.rotateMatrix.call(void 0, a.rotation, { x: a.x, y: a.y }) : void 0;
|
|
3826
3826
|
const t = rotation ? { transform: rotation } : {};
|
|
3827
3827
|
const live = (l) => liveComponent(l);
|
|
3828
3828
|
switch (a.type) {
|
|
@@ -3865,7 +3865,7 @@ function shapeFromAnnotation(a) {
|
|
|
3865
3865
|
case "pen": {
|
|
3866
3866
|
const paint = annotationPaint(a.strokeColor, opacity);
|
|
3867
3867
|
if (!paint) return null;
|
|
3868
|
-
const pts = rotation ? a.points.map((p) =>
|
|
3868
|
+
const pts = rotation ? a.points.map((p) => _chunkZ2H7KECKcjs.applyMatrix.call(void 0, rotation, p)) : a.points;
|
|
3869
3869
|
const subpaths = pts.length > 1 ? [{ closed: false, anchors: pts.map((p) => ({ x: p.x, y: p.y })) }] : [];
|
|
3870
3870
|
return {
|
|
3871
3871
|
components: [{ op: "combine", subpaths }],
|
|
@@ -3898,7 +3898,7 @@ var fail3 = (message) => {
|
|
|
3898
3898
|
};
|
|
3899
3899
|
var TEXT_RENDER_MARGIN = _chunk24ATT2PEcjs.MAX_EFFECT_REACH;
|
|
3900
3900
|
function textMatrix(layer) {
|
|
3901
|
-
return _nullishCoalesce(layer.transform, () => (
|
|
3901
|
+
return _nullishCoalesce(layer.transform, () => ( _chunkZ2H7KECKcjs.IDENTITY_MATRIX));
|
|
3902
3902
|
}
|
|
3903
3903
|
function rectCorners(r) {
|
|
3904
3904
|
return [
|
|
@@ -3909,7 +3909,7 @@ function rectCorners(r) {
|
|
|
3909
3909
|
];
|
|
3910
3910
|
}
|
|
3911
3911
|
function docRect(r, m) {
|
|
3912
|
-
const pts = rectCorners(r).map((p) =>
|
|
3912
|
+
const pts = rectCorners(r).map((p) => _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, p));
|
|
3913
3913
|
const x0 = Math.floor(Math.min(...pts.map((p) => p.x)));
|
|
3914
3914
|
const y0 = Math.floor(Math.min(...pts.map((p) => p.y)));
|
|
3915
3915
|
const x1 = Math.ceil(Math.max(...pts.map((p) => p.x)));
|
|
@@ -3942,14 +3942,14 @@ function inkBounds(layout) {
|
|
|
3942
3942
|
}
|
|
3943
3943
|
function textOutlines(layer, shaper) {
|
|
3944
3944
|
if (!shaper.outline) fail3(`The text shaper "${shaper.id}" cannot give glyph outlines; plug in an outline shaper (createOutlineTextShaper) to convert text to shapes.`);
|
|
3945
|
-
const layout =
|
|
3945
|
+
const layout = _chunkZ2H7KECKcjs.layoutText.call(void 0, layer, shaper);
|
|
3946
3946
|
const m = textMatrix(layer);
|
|
3947
3947
|
const out = [];
|
|
3948
3948
|
for (const l of layout.lines) {
|
|
3949
3949
|
for (const f of l.fragments) {
|
|
3950
|
-
let path =
|
|
3951
|
-
for (const r of
|
|
3952
|
-
out.push({ fragment: f, path:
|
|
3950
|
+
let path = _chunkZ2H7KECKcjs.textFragmentOutline.call(void 0, shaper, layer.text, f);
|
|
3951
|
+
for (const r of _chunkZ2H7KECKcjs.textDecorations.call(void 0, f, l)) path = [...path, ..._chunkZ2H7KECKcjs.textRectPath.call(void 0, r)];
|
|
3952
|
+
out.push({ fragment: f, path: _chunkZ2H7KECKcjs.isIdentityMatrix.call(void 0, m) ? path : _chunkBJTCSLF6cjs.transformBezierPath.call(void 0, path, m) });
|
|
3953
3953
|
}
|
|
3954
3954
|
}
|
|
3955
3955
|
return out;
|
|
@@ -4005,7 +4005,7 @@ function renderOnCanvas(layer, shaper, region, env) {
|
|
|
4005
4005
|
const canvas = env.createCanvas(region.width, region.height);
|
|
4006
4006
|
const ctx = canvas.getContext("2d");
|
|
4007
4007
|
if (!ctx || typeof ctx.getImageData !== "function") return null;
|
|
4008
|
-
const layout =
|
|
4008
|
+
const layout = _chunkZ2H7KECKcjs.layoutText.call(void 0, layer, shaper);
|
|
4009
4009
|
const m = textMatrix(layer);
|
|
4010
4010
|
ctx.setTransform(1, 0, 0, 1, 0, 0);
|
|
4011
4011
|
ctx.clearRect(0, 0, region.width, region.height);
|
|
@@ -4017,8 +4017,8 @@ function renderOnCanvas(layer, shaper, region, env) {
|
|
|
4017
4017
|
ctx.globalAlpha = _nullishCoalesce(f.style.opacity, () => ( 1));
|
|
4018
4018
|
const s = layer.text.slice(f.start, f.end);
|
|
4019
4019
|
if (!f.spaced) shaper.draw(ctx, s, f.font, f.x, f.y);
|
|
4020
|
-
else for (let k = 0; k < s.length; k++) if (!
|
|
4021
|
-
for (const d of
|
|
4020
|
+
else for (let k = 0; k < s.length; k++) if (!_chunkZ2H7KECKcjs.isTextSpace.call(void 0, s[k])) shaper.draw(ctx, s[k], f.font, f.x + f.carets[k], f.y);
|
|
4021
|
+
for (const d of _chunkZ2H7KECKcjs.textDecorations.call(void 0, f, l)) ctx.fillRect(d.x, d.y, d.width, d.height);
|
|
4022
4022
|
}
|
|
4023
4023
|
}
|
|
4024
4024
|
ctx.globalAlpha = 1;
|
|
@@ -4029,7 +4029,7 @@ function renderOnCanvas(layer, shaper, region, env) {
|
|
|
4029
4029
|
function renderText(layer, env) {
|
|
4030
4030
|
const shaper = env.shaper;
|
|
4031
4031
|
if (!shaper || !shaper.outline && !shaper.draw) return null;
|
|
4032
|
-
const layout =
|
|
4032
|
+
const layout = _chunkZ2H7KECKcjs.layoutText.call(void 0, layer, shaper);
|
|
4033
4033
|
const ink = inkBounds(layout);
|
|
4034
4034
|
const clip = { x: -TEXT_RENDER_MARGIN, y: -TEXT_RENDER_MARGIN, width: env.width + 2 * TEXT_RENDER_MARGIN, height: env.height + 2 * TEXT_RENDER_MARGIN };
|
|
4035
4035
|
const region = ink ? intersect2(docRect(ink, textMatrix(layer)), clip) : null;
|
|
@@ -4124,7 +4124,7 @@ function patchParagraphStyle(base, patch, path = "paragraph") {
|
|
|
4124
4124
|
continue;
|
|
4125
4125
|
}
|
|
4126
4126
|
const value = k === "autoLeading" ? num(v, `${path}.${k}`, 0.1, 10) : num(v, `${path}.${k}`, -1e4, 1e4);
|
|
4127
|
-
if (k === "autoLeading" && value ===
|
|
4127
|
+
if (k === "autoLeading" && value === _chunkZ2H7KECKcjs.DEFAULT_AUTO_LEADING || k !== "autoLeading" && value === 0) delete o[k];
|
|
4128
4128
|
else o[k] = value;
|
|
4129
4129
|
} else fail3(`${path}.${k} is not a paragraph style field; use ${PARAGRAPH_STYLE_FIELDS.join(", ")}.`);
|
|
4130
4130
|
}
|
|
@@ -4161,14 +4161,14 @@ function createTypeLayer(init, env, id = newLayerId(), lenient = false) {
|
|
|
4161
4161
|
opacity: 1,
|
|
4162
4162
|
blend: "normal",
|
|
4163
4163
|
text: text3,
|
|
4164
|
-
runs:
|
|
4165
|
-
paragraphs:
|
|
4164
|
+
runs: _chunkZ2H7KECKcjs.fitRuns.call(void 0, init.runs, text3.length, _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE),
|
|
4165
|
+
paragraphs: _chunkZ2H7KECKcjs.fitParagraphRuns.call(void 0, _nullishCoalesce(init.paragraphs, () => ( [{ length: text3.length, style: {} }])), text3),
|
|
4166
4166
|
frame: init.frame,
|
|
4167
4167
|
surface: _chunkJ5BA3BQ6cjs.emptySurface.call(void 0, 4),
|
|
4168
4168
|
offset: { x: 0, y: 0 }
|
|
4169
4169
|
};
|
|
4170
|
-
if (!layer.runs.length) layer.runs = [{ length: 0, style: _nullishCoalesce(_optionalChain([init, 'access', _61 => _61.runs, 'access', _62 => _62[0], 'optionalAccess', _63 => _63.style]), () => (
|
|
4171
|
-
if (init.transform && !
|
|
4170
|
+
if (!layer.runs.length) layer.runs = [{ length: 0, style: _nullishCoalesce(_optionalChain([init, 'access', _61 => _61.runs, 'access', _62 => _62[0], 'optionalAccess', _63 => _63.style]), () => ( _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE)) }];
|
|
4171
|
+
if (init.transform && !_chunkZ2H7KECKcjs.isIdentityMatrix.call(void 0, init.transform)) layer.transform = init.transform;
|
|
4172
4172
|
if (lenient && !renderText(layer, env)) return { ...layer, rendering: "stored" };
|
|
4173
4173
|
return rerenderText(layer, env);
|
|
4174
4174
|
}
|
|
@@ -4178,24 +4178,24 @@ function updateTypeLayer(layers, id, change, env, action = "edit it") {
|
|
|
4178
4178
|
const patch = change(current);
|
|
4179
4179
|
const next = { ...current, ...patch };
|
|
4180
4180
|
if (!("annotation" in patch)) delete next.annotation;
|
|
4181
|
-
if ("text" in patch || "runs" in patch) next.runs =
|
|
4182
|
-
if (!next.runs.length) next.runs = [{ length: 0, style:
|
|
4183
|
-
if ("text" in patch || "paragraphs" in patch) next.paragraphs =
|
|
4181
|
+
if ("text" in patch || "runs" in patch) next.runs = _chunkZ2H7KECKcjs.fitRuns.call(void 0, next.runs, next.text.length, _nullishCoalesce(_optionalChain([current, 'access', _64 => _64.runs, 'access', _65 => _65[0], 'optionalAccess', _66 => _66.style]), () => ( _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE)));
|
|
4182
|
+
if (!next.runs.length) next.runs = [{ length: 0, style: _chunkZ2H7KECKcjs.styleAt.call(void 0, current.runs, 0, _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE) }];
|
|
4183
|
+
if ("text" in patch || "paragraphs" in patch) next.paragraphs = _chunkZ2H7KECKcjs.fitParagraphRuns.call(void 0, next.paragraphs, next.text);
|
|
4184
4184
|
const rendered = rerenderText(next, env);
|
|
4185
4185
|
return { layers: _chunk24ATT2PEcjs.mapLayer.call(void 0, layers, id, () => rendered), layer: rendered };
|
|
4186
4186
|
}
|
|
4187
4187
|
function replaceTextRange(layer, start, end, insert) {
|
|
4188
4188
|
const text3 = layer.text.slice(0, start) + insert + layer.text.slice(end);
|
|
4189
|
-
const style =
|
|
4190
|
-
const runs =
|
|
4191
|
-
const pstyle =
|
|
4192
|
-
const paragraphs =
|
|
4193
|
-
return { text: text3, runs, paragraphs:
|
|
4189
|
+
const style = _chunkZ2H7KECKcjs.styleAt.call(void 0, layer.runs, start > 0 && start === layer.text.length ? start - 1 : start, _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE);
|
|
4190
|
+
const runs = _chunkZ2H7KECKcjs.spliceRuns.call(void 0, layer.runs, start, end, insert.length, style);
|
|
4191
|
+
const pstyle = _chunkZ2H7KECKcjs.styleAt.call(void 0, layer.paragraphs, start, {});
|
|
4192
|
+
const paragraphs = _chunkZ2H7KECKcjs.spliceRuns.call(void 0, layer.paragraphs, start, end, insert.length, pstyle);
|
|
4193
|
+
return { text: text3, runs, paragraphs: _chunkZ2H7KECKcjs.fitParagraphRuns.call(void 0, paragraphs, text3) };
|
|
4194
4194
|
}
|
|
4195
4195
|
function transformTypeLayer(layer, m) {
|
|
4196
|
-
const t =
|
|
4196
|
+
const t = _chunkZ2H7KECKcjs.multiplyMatrices.call(void 0, textMatrix(layer), m);
|
|
4197
4197
|
const next = { ...layer };
|
|
4198
|
-
if (
|
|
4198
|
+
if (_chunkZ2H7KECKcjs.isIdentityMatrix.call(void 0, t)) delete next.transform;
|
|
4199
4199
|
else next.transform = t;
|
|
4200
4200
|
delete next.annotation;
|
|
4201
4201
|
return next;
|
|
@@ -4203,7 +4203,7 @@ function transformTypeLayer(layer, m) {
|
|
|
4203
4203
|
function typeFrame(layer, shaper) {
|
|
4204
4204
|
if (layer.frame.kind === "box") return { x: 0, y: 0, width: layer.frame.width, height: layer.frame.height };
|
|
4205
4205
|
if (!shaper) return fail3("Type layers need a text shaper to be measured; none is set here.");
|
|
4206
|
-
const b =
|
|
4206
|
+
const b = _chunkZ2H7KECKcjs.layoutText.call(void 0, layer, shaper).bounds;
|
|
4207
4207
|
return { x: b.x, y: b.y, width: Math.max(b.width, 1), height: Math.max(b.height, 1) };
|
|
4208
4208
|
}
|
|
4209
4209
|
function typeAsPixelLayer(layer) {
|
|
@@ -4211,7 +4211,7 @@ function typeAsPixelLayer(layer) {
|
|
|
4211
4211
|
return { ...rest, type: "pixel", surface: layer.surface, offset: { x: 0, y: 0 } };
|
|
4212
4212
|
}
|
|
4213
4213
|
function toTextSpace(layer, p) {
|
|
4214
|
-
return
|
|
4214
|
+
return _chunkZ2H7KECKcjs.applyMatrix.call(void 0, _chunkZ2H7KECKcjs.invertMatrix.call(void 0, textMatrix(layer)), p);
|
|
4215
4215
|
}
|
|
4216
4216
|
function typeFromAnnotation(a) {
|
|
4217
4217
|
if (a.type !== "text") return null;
|
|
@@ -4225,7 +4225,7 @@ function typeFromAnnotation(a) {
|
|
|
4225
4225
|
if (op !== 1) style.opacity = op;
|
|
4226
4226
|
const text3 = t.text.replace(/\r?\n|\r/g, " ");
|
|
4227
4227
|
const translate = [1, 0, 0, 1, t.x, t.y];
|
|
4228
|
-
const transform = t.rotation ?
|
|
4228
|
+
const transform = t.rotation ? _chunkZ2H7KECKcjs.multiplyMatrices.call(void 0, translate, _chunkZ2H7KECKcjs.rotateMatrix.call(void 0, t.rotation, { x: t.x, y: t.y })) : translate;
|
|
4229
4229
|
return { text: text3, runs: [{ length: text3.length, style }], frame: { kind: "point", origin: "top" }, transform };
|
|
4230
4230
|
}
|
|
4231
4231
|
function annotationOfType(layer) {
|
|
@@ -4559,7 +4559,7 @@ function identityTransform(box2) {
|
|
|
4559
4559
|
}
|
|
4560
4560
|
function cornersFromMatrix(box2, m) {
|
|
4561
4561
|
const q2 = _chunkMUUXNRU4cjs.boxQuad.call(void 0, box2);
|
|
4562
|
-
return [
|
|
4562
|
+
return [_chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, q2[0]), _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, q2[1]), _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, q2[2]), _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, q2[3])];
|
|
4563
4563
|
}
|
|
4564
4564
|
function matrixFromCorners(box2, corners, eps = 1e-6) {
|
|
4565
4565
|
const [tl, tr, br, bl] = corners;
|
|
@@ -4576,7 +4576,7 @@ function transformHomography(geometry) {
|
|
|
4576
4576
|
function hasWarp(geometry) {
|
|
4577
4577
|
const w = geometry.warp;
|
|
4578
4578
|
if (!w) return false;
|
|
4579
|
-
const id =
|
|
4579
|
+
const id = _chunkZ2H7KECKcjs.identityWarpMesh.call(void 0, geometry.box, w.us.length - 1, w.vs.length - 1);
|
|
4580
4580
|
if (id.points.length !== w.points.length || id.us.some((u, i) => Math.abs(u - w.us[i]) > 1e-12) || id.vs.some((v, i) => Math.abs(v - w.vs[i]) > 1e-12)) return true;
|
|
4581
4581
|
return w.points.some((p, i) => Math.abs(p.x - id.points[i].x) > 1e-6 || Math.abs(p.y - id.points[i].y) > 1e-6);
|
|
4582
4582
|
}
|
|
@@ -4591,7 +4591,7 @@ function transformMap(geometry) {
|
|
|
4591
4591
|
const { box: box2 } = geometry;
|
|
4592
4592
|
const warp = hasWarp(geometry) ? geometry.warp : null;
|
|
4593
4593
|
if (!warp) return (p) => _chunkMUUXNRU4cjs.applyHomography.call(void 0, h, p);
|
|
4594
|
-
return (p) => _chunkMUUXNRU4cjs.applyHomography.call(void 0, h,
|
|
4594
|
+
return (p) => _chunkMUUXNRU4cjs.applyHomography.call(void 0, h, _chunkZ2H7KECKcjs.evalWarpMesh.call(void 0, warp, (p.x - box2.x) / box2.width, (p.y - box2.y) / box2.height));
|
|
4595
4595
|
}
|
|
4596
4596
|
function transformedPoint(geometry, fx, fy) {
|
|
4597
4597
|
const f = transformMap(geometry);
|
|
@@ -4635,8 +4635,8 @@ function matrixFromParams(box2, params) {
|
|
|
4635
4635
|
const tx = Math.tan((_nullishCoalesce(params.skewX, () => ( 0))) * Math.PI / 180);
|
|
4636
4636
|
const ty = Math.tan((_nullishCoalesce(params.skewY, () => ( 0))) * Math.PI / 180);
|
|
4637
4637
|
const ref = referencePoint(box2, params.reference);
|
|
4638
|
-
const linear =
|
|
4639
|
-
return
|
|
4638
|
+
const linear = _chunkZ2H7KECKcjs.multiplyMatrices.call(void 0, _chunkZ2H7KECKcjs.multiplyMatrices.call(void 0, [1, ty, tx, 1, 0, 0], [sx, 0, 0, sy, 0, 0]), _chunkZ2H7KECKcjs.rotateMatrix.call(void 0, _nullishCoalesce(params.rotate, () => ( 0))));
|
|
4639
|
+
return _chunkZ2H7KECKcjs.multiplyMatrices.call(void 0, _chunkZ2H7KECKcjs.matrixAbout.call(void 0, linear, ref), _chunkZ2H7KECKcjs.translateMatrix.call(void 0, _nullishCoalesce(params.dx, () => ( 0)), _nullishCoalesce(params.dy, () => ( 0))));
|
|
4640
4640
|
}
|
|
4641
4641
|
function describeTransform(geometry, reference = "center") {
|
|
4642
4642
|
const m = hasWarp(geometry) ? null : matrixFromCorners(geometry.box, geometry.corners);
|
|
@@ -4653,7 +4653,7 @@ function describeTransform(geometry, reference = "center") {
|
|
|
4653
4653
|
const shear = sxAbs ? (a * c + b * d) / sxAbs : 0;
|
|
4654
4654
|
const sy = sxAbs ? (a * d - b * c) / sxAbs : 0;
|
|
4655
4655
|
const skew = sxAbs ? Math.atan(shear / sxAbs) * 180 / Math.PI : 0;
|
|
4656
|
-
const at =
|
|
4656
|
+
const at = _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, ref);
|
|
4657
4657
|
const clean = (v) => Math.abs(v) < 1e-9 ? 0 : v;
|
|
4658
4658
|
return {
|
|
4659
4659
|
affine: true,
|
|
@@ -4671,24 +4671,24 @@ function applyParams(geometry, params) {
|
|
|
4671
4671
|
const ref = params.reference && typeof params.reference === "object" ? params.reference : anchorPoint(geometry, _nullishCoalesce(params.reference, () => ( "center")));
|
|
4672
4672
|
const m = matrixFromParams({ x: ref.x, y: ref.y, width: 0, height: 0 }, { ...params, reference: ref });
|
|
4673
4673
|
const c = geometry.corners;
|
|
4674
|
-
return [
|
|
4674
|
+
return [_chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, c[0]), _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, c[1]), _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, c[2]), _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, c[3])];
|
|
4675
4675
|
}
|
|
4676
4676
|
function flipCorners(geometry, axis) {
|
|
4677
4677
|
const c = anchorPoint(geometry, "center");
|
|
4678
4678
|
const m = axis === "horizontal" ? [-1, 0, 0, 1, 2 * c.x, 0] : [1, 0, 0, -1, 0, 2 * c.y];
|
|
4679
4679
|
const q2 = geometry.corners;
|
|
4680
|
-
return [
|
|
4680
|
+
return [_chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, q2[0]), _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, q2[1]), _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, q2[2]), _chunkZ2H7KECKcjs.applyMatrix.call(void 0, m, q2[3])];
|
|
4681
4681
|
}
|
|
4682
4682
|
function boxPointOf(geometry, p) {
|
|
4683
4683
|
const m = matrixFromCorners(geometry.box, geometry.corners);
|
|
4684
|
-
if (m) return
|
|
4684
|
+
if (m) return _chunkZ2H7KECKcjs.applyMatrix.call(void 0, _chunkZ2H7KECKcjs.invertMatrix.call(void 0, m), p);
|
|
4685
4685
|
return null;
|
|
4686
4686
|
}
|
|
4687
4687
|
function presetWarp(box2, preset) {
|
|
4688
|
-
return
|
|
4688
|
+
return _chunkZ2H7KECKcjs.warpPresetMesh.call(void 0, preset, box2);
|
|
4689
4689
|
}
|
|
4690
4690
|
function isValidWarp(mesh) {
|
|
4691
|
-
return
|
|
4691
|
+
return _chunkZ2H7KECKcjs.isValidWarpMesh.call(void 0, mesh);
|
|
4692
4692
|
}
|
|
4693
4693
|
function geometryHomography(geometry) {
|
|
4694
4694
|
const m = matrixFromCorners(geometry.box, geometry.corners);
|
|
@@ -4954,7 +4954,7 @@ function normalizePlacement(raw, contents) {
|
|
|
4954
4954
|
}
|
|
4955
4955
|
const out = { corners: c.map((p) => ({ x: p.x, y: p.y })) };
|
|
4956
4956
|
if (raw.warp) {
|
|
4957
|
-
if (!
|
|
4957
|
+
if (!_chunkZ2H7KECKcjs.isValidWarpMesh.call(void 0, raw.warp)) fail4("warp must be a mesh with us and vs (knots from 0 to 1, increasing) and (3\xB7columns + 1) \xD7 (3\xB7rows + 1) finite points in contents pixels.");
|
|
4958
4958
|
out.warp = { us: [...raw.warp.us], vs: [...raw.warp.vs], points: raw.warp.points.map((p) => ({ x: p.x, y: p.y })) };
|
|
4959
4959
|
}
|
|
4960
4960
|
if (raw.interpolation !== void 0) {
|
|
@@ -5057,7 +5057,7 @@ function translateLayer(layer, dx, dy) {
|
|
|
5057
5057
|
case "shape": {
|
|
5058
5058
|
const next = {
|
|
5059
5059
|
...layer,
|
|
5060
|
-
components: transformShapeComponents(layer.components, (p) => ({ x: p.x + dx, y: p.y + dy }),
|
|
5060
|
+
components: transformShapeComponents(layer.components, (p) => ({ x: p.x + dx, y: p.y + dy }), _chunkZ2H7KECKcjs.translateMatrix.call(void 0, dx, dy)),
|
|
5061
5061
|
surface: _chunkJ5BA3BQ6cjs.translateSurface.call(void 0, layer.surface, dx, dy),
|
|
5062
5062
|
mask: moveMask(layer.mask)
|
|
5063
5063
|
};
|
|
@@ -5066,7 +5066,7 @@ function translateLayer(layer, dx, dy) {
|
|
|
5066
5066
|
return next;
|
|
5067
5067
|
}
|
|
5068
5068
|
case "type": {
|
|
5069
|
-
const next = { ...transformTypeLayer(layer,
|
|
5069
|
+
const next = { ...transformTypeLayer(layer, _chunkZ2H7KECKcjs.translateMatrix.call(void 0, dx, dy)), surface: _chunkJ5BA3BQ6cjs.translateSurface.call(void 0, layer.surface, dx, dy), mask: moveMask(layer.mask) };
|
|
5070
5070
|
if (!next.mask) delete next.mask;
|
|
5071
5071
|
return next;
|
|
5072
5072
|
}
|
|
@@ -5252,7 +5252,7 @@ function refitPlacement(layer, contents) {
|
|
|
5252
5252
|
});
|
|
5253
5253
|
const out = { corners: pts };
|
|
5254
5254
|
if (layer.placement.interpolation) out.interpolation = layer.placement.interpolation;
|
|
5255
|
-
if (layer.placement.warp) out.warp =
|
|
5255
|
+
if (layer.placement.warp) out.warp = _chunkZ2H7KECKcjs.mapWarpMeshPoints.call(void 0, layer.placement.warp, (p) => ({ x: p.x * W1 / W0, y: p.y * H1 / H0 }));
|
|
5256
5256
|
return out;
|
|
5257
5257
|
}
|
|
5258
5258
|
function normalizeSmartFilter(raw, id = newLayerId("flt")) {
|
|
@@ -5566,7 +5566,7 @@ function readType(r, base, ctx) {
|
|
|
5566
5566
|
const text3 = normalizeText(_nullishCoalesce(r.text, () => ( "")));
|
|
5567
5567
|
const runs = (Array.isArray(r.runs) ? r.runs : []).map((run, i) => ({
|
|
5568
5568
|
length: Math.max(0, Math.floor(num2(_optionalChain([run, 'optionalAccess', _139 => _139.length]), 0, 1e9, 0))),
|
|
5569
|
-
style: patchTextStyle(
|
|
5569
|
+
style: patchTextStyle(_chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE, _optionalChain([run, 'optionalAccess', _140 => _140.style]) && typeof run.style === "object" ? run.style : {}, `runs[${i}].style`)
|
|
5570
5570
|
}));
|
|
5571
5571
|
const paragraphs = (Array.isArray(r.paragraphs) ? r.paragraphs : []).map((p, i) => ({
|
|
5572
5572
|
length: Math.max(0, Math.floor(num2(_optionalChain([p, 'optionalAccess', _141 => _141.length]), 0, 1e9, 0))),
|
|
@@ -5579,13 +5579,13 @@ function readType(r, base, ctx) {
|
|
|
5579
5579
|
...base,
|
|
5580
5580
|
type: "type",
|
|
5581
5581
|
text: text3,
|
|
5582
|
-
runs:
|
|
5583
|
-
paragraphs:
|
|
5582
|
+
runs: _chunkZ2H7KECKcjs.fitRuns.call(void 0, runs, text3.length, _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE),
|
|
5583
|
+
paragraphs: _chunkZ2H7KECKcjs.fitParagraphRuns.call(void 0, paragraphs.length ? paragraphs : [{ length: text3.length, style: {} }], text3),
|
|
5584
5584
|
frame,
|
|
5585
5585
|
surface: _chunkJ5BA3BQ6cjs.emptySurface.call(void 0, 4),
|
|
5586
5586
|
offset: { x: 0, y: 0 }
|
|
5587
5587
|
};
|
|
5588
|
-
if (!layer.runs.length) layer.runs = [{ length: 0, style: _nullishCoalesce(_optionalChain([runs, 'access', _145 => _145[0], 'optionalAccess', _146 => _146.style]), () => (
|
|
5588
|
+
if (!layer.runs.length) layer.runs = [{ length: 0, style: _nullishCoalesce(_optionalChain([runs, 'access', _145 => _145[0], 'optionalAccess', _146 => _146.style]), () => ( _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE)) }];
|
|
5589
5589
|
if (m) layer.transform = m;
|
|
5590
5590
|
if (r.antiAlias === false) layer.antiAlias = false;
|
|
5591
5591
|
if (typeof r.fillOpacity === "number" && r.fillOpacity !== 1) layer.fillOpacity = num2(r.fillOpacity, 0, 1, 1);
|
|
@@ -6038,7 +6038,7 @@ function readSmartObject(r, base, ctx) {
|
|
|
6038
6038
|
let placement;
|
|
6039
6039
|
try {
|
|
6040
6040
|
const raw = { corners: p.corners };
|
|
6041
|
-
if (p.warp &&
|
|
6041
|
+
if (p.warp && _chunkZ2H7KECKcjs.isValidWarpMesh.call(void 0, p.warp)) raw.warp = p.warp;
|
|
6042
6042
|
if (_chunk24ATT2PEcjs.isInterpolation.call(void 0, p.interpolation)) raw.interpolation = p.interpolation;
|
|
6043
6043
|
placement = normalizePlacement(raw, contents);
|
|
6044
6044
|
} catch (e) {
|
|
@@ -7021,7 +7021,7 @@ function vectorBlockForComponents(components, inverted, width, height, flags = 0
|
|
|
7021
7021
|
const fr = (p) => ({ x: p.x / w, y: p.y / h });
|
|
7022
7022
|
const subpaths = [];
|
|
7023
7023
|
components.forEach((c, ci) => {
|
|
7024
|
-
|
|
7024
|
+
_chunkZ2H7KECKcjs.expandVectorCorners.call(void 0, c.subpaths).forEach((sp, si) => {
|
|
7025
7025
|
if (!sp.anchors.length) return;
|
|
7026
7026
|
subpaths.push({
|
|
7027
7027
|
closed: sp.closed,
|
|
@@ -7743,7 +7743,7 @@ function merged(levels) {
|
|
|
7743
7743
|
function charStyle(d, fonts, notes) {
|
|
7744
7744
|
const n = (k) => eNum(eGet(d, k));
|
|
7745
7745
|
const flag = (k) => eBool(eGet(d, k));
|
|
7746
|
-
const s = { ...
|
|
7746
|
+
const s = { ..._chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE };
|
|
7747
7747
|
const fi = n("Font");
|
|
7748
7748
|
const ps = fi !== void 0 ? fonts[fi] : void 0;
|
|
7749
7749
|
if (ps) {
|
|
@@ -7826,7 +7826,7 @@ function typeFromTySh(data, notes) {
|
|
|
7826
7826
|
}
|
|
7827
7827
|
const edText = _nullishCoalesce(eStr(ePath(_nullishCoalesce(engine, () => ( void 0)), ["EngineDict", "Editor", "Text"])), () => ( ""));
|
|
7828
7828
|
const text3 = (_nullishCoalesce(txt, () => ( edText.replace(/\r$/, "")))).replace(/\r\n?/g, "\n");
|
|
7829
|
-
let runs = [{ length: text3.length, style: { ...
|
|
7829
|
+
let runs = [{ length: text3.length, style: { ..._chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE } }];
|
|
7830
7830
|
let paragraphs = [{ length: text3.length, style: {} }];
|
|
7831
7831
|
let frame = { kind: "point" };
|
|
7832
7832
|
let transform = t.transform;
|
|
@@ -7882,14 +7882,14 @@ function typeFromTySh(data, notes) {
|
|
|
7882
7882
|
const b = eArray(ePath(shape, ["Cookie", "Photoshop", "BoxBounds"])).map((v) => _nullishCoalesce(eNum(v), () => ( 0)));
|
|
7883
7883
|
if (b.length === 4 && b[2] > b[0] && b[3] > b[1]) {
|
|
7884
7884
|
frame = { kind: "box", width: b[2] - b[0], height: b[3] - b[1] };
|
|
7885
|
-
transform =
|
|
7885
|
+
transform = _chunkZ2H7KECKcjs.multiplyMatrices.call(void 0, [1, 0, 0, 1, b[0], b[1]], t.transform);
|
|
7886
7886
|
}
|
|
7887
7887
|
}
|
|
7888
7888
|
}
|
|
7889
7889
|
return {
|
|
7890
7890
|
text: text3,
|
|
7891
|
-
runs:
|
|
7892
|
-
paragraphs:
|
|
7891
|
+
runs: _chunkZ2H7KECKcjs.fitRuns.call(void 0, runs, text3.length, _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE),
|
|
7892
|
+
paragraphs: _chunkZ2H7KECKcjs.fitParagraphRuns.call(void 0, paragraphs, text3),
|
|
7893
7893
|
frame,
|
|
7894
7894
|
transform,
|
|
7895
7895
|
antiAlias,
|
|
@@ -7963,7 +7963,7 @@ function buildEngineData(layer, template) {
|
|
|
7963
7963
|
fonts.push(ps);
|
|
7964
7964
|
return fonts.length - 1;
|
|
7965
7965
|
};
|
|
7966
|
-
const runs =
|
|
7966
|
+
const runs = _chunkZ2H7KECKcjs.fitRuns.call(void 0, layer.runs, layer.text.length, _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE);
|
|
7967
7967
|
const sruns = [];
|
|
7968
7968
|
const slens = [];
|
|
7969
7969
|
runs.forEach((r, i) => {
|
|
@@ -7971,10 +7971,10 @@ function buildEngineData(layer, template) {
|
|
|
7971
7971
|
slens.push(E.int(r.length + (i === runs.length - 1 ? 1 : 0)));
|
|
7972
7972
|
});
|
|
7973
7973
|
if (!runs.length) {
|
|
7974
|
-
sruns.push(E.dict([["StyleSheet", E.dict([["StyleSheetData", styleSheetData(
|
|
7974
|
+
sruns.push(E.dict([["StyleSheet", E.dict([["StyleSheetData", styleSheetData(_chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE, fontIndex(postScriptFor(_chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE)))]])]]));
|
|
7975
7975
|
slens.push(E.int(1));
|
|
7976
7976
|
}
|
|
7977
|
-
const paras =
|
|
7977
|
+
const paras = _chunkZ2H7KECKcjs.fitParagraphRuns.call(void 0, layer.paragraphs, layer.text);
|
|
7978
7978
|
const pruns = [];
|
|
7979
7979
|
const plens = [];
|
|
7980
7980
|
paras.forEach((p, i) => {
|
|
@@ -8030,7 +8030,7 @@ function buildEngineData(layer, template) {
|
|
|
8030
8030
|
eSet(e, key, rd);
|
|
8031
8031
|
}
|
|
8032
8032
|
eSet(rd, "FontSet", fontSet);
|
|
8033
|
-
if (!eGet(rd, "StyleSheetSet")) eSet(rd, "StyleSheetSet", E.array([E.dict([["Name", E.str("Normal RGB")], ["StyleSheetData", styleSheetData(_nullishCoalesce(_optionalChain([runs, 'access', _211 => _211[0], 'optionalAccess', _212 => _212.style]), () => (
|
|
8033
|
+
if (!eGet(rd, "StyleSheetSet")) eSet(rd, "StyleSheetSet", E.array([E.dict([["Name", E.str("Normal RGB")], ["StyleSheetData", styleSheetData(_nullishCoalesce(_optionalChain([runs, 'access', _211 => _211[0], 'optionalAccess', _212 => _212.style]), () => ( _chunkZ2H7KECKcjs.DEFAULT_TEXT_STYLE)), 0)]])]));
|
|
8034
8034
|
if (!eGet(rd, "ParagraphSheetSet")) eSet(rd, "ParagraphSheetSet", E.array([E.dict([["Name", E.str("Normal RGB")], ["DefaultStyleSheet", E.int(0)], ["Properties", paragraphProperties({})]])]));
|
|
8035
8035
|
if (!eGet(rd, "TheNormalStyleSheet")) eSet(rd, "TheNormalStyleSheet", E.int(0));
|
|
8036
8036
|
if (!eGet(rd, "TheNormalParagraphSheet")) eSet(rd, "TheNormalParagraphSheet", E.int(0));
|
|
@@ -8041,13 +8041,13 @@ function inkBounds2(layer) {
|
|
|
8041
8041
|
if (layer.frame.kind === "box") return [0, 0, layer.frame.width, layer.frame.height];
|
|
8042
8042
|
const b = _chunkJ5BA3BQ6cjs.contentBounds.call(void 0, layer.surface);
|
|
8043
8043
|
if (!b) return [0, 0, 0, 0];
|
|
8044
|
-
const inv =
|
|
8044
|
+
const inv = _chunkZ2H7KECKcjs.invertMatrix.call(void 0, textMatrix(layer));
|
|
8045
8045
|
const pts = [
|
|
8046
8046
|
{ x: b.x, y: b.y },
|
|
8047
8047
|
{ x: b.x + b.width, y: b.y },
|
|
8048
8048
|
{ x: b.x + b.width, y: b.y + b.height },
|
|
8049
8049
|
{ x: b.x, y: b.y + b.height }
|
|
8050
|
-
].map((p) =>
|
|
8050
|
+
].map((p) => _chunkZ2H7KECKcjs.applyMatrix.call(void 0, inv, p));
|
|
8051
8051
|
return [Math.min(...pts.map((p) => p.x)), Math.min(...pts.map((p) => p.y)), Math.max(...pts.map((p) => p.x)), Math.max(...pts.map((p) => p.y))];
|
|
8052
8052
|
}
|
|
8053
8053
|
function tyShForLayer(layer) {
|
|
@@ -8514,7 +8514,7 @@ function filterMaskItem(placed, mask, area) {
|
|
|
8514
8514
|
var warpStyleOf = (name) => {
|
|
8515
8515
|
if (!name.startsWith("warp")) return null;
|
|
8516
8516
|
const s = _optionalChain([name, 'access', _226 => _226[4], 'optionalAccess', _227 => _227.toLowerCase, 'call', _228 => _228()]) + name.slice(5);
|
|
8517
|
-
return
|
|
8517
|
+
return _chunkZ2H7KECKcjs.WARP_STYLES.includes(s) ? s : null;
|
|
8518
8518
|
};
|
|
8519
8519
|
function warpFromDescriptor(w, contents) {
|
|
8520
8520
|
const full = { x: 0, y: 0, width: contents.width, height: contents.height };
|
|
@@ -8544,7 +8544,7 @@ function warpFromDescriptor(w, contents) {
|
|
|
8544
8544
|
} else {
|
|
8545
8545
|
const style = warpStyleOf(styleName);
|
|
8546
8546
|
if (!style) return void 0;
|
|
8547
|
-
mesh =
|
|
8547
|
+
mesh = _chunkZ2H7KECKcjs.warpPresetMesh.call(void 0,
|
|
8548
8548
|
{
|
|
8549
8549
|
style,
|
|
8550
8550
|
bend: _nullishCoalesce(descNumber(w, "warpValue"), () => ( 0)),
|
|
@@ -8559,7 +8559,7 @@ function warpFromDescriptor(w, contents) {
|
|
|
8559
8559
|
const same = Math.abs(bounds.x) < 1e-6 && Math.abs(bounds.y) < 1e-6 && Math.abs(bounds.width - contents.width) < 1e-6 && Math.abs(bounds.height - contents.height) < 1e-6;
|
|
8560
8560
|
if (!same) {
|
|
8561
8561
|
const m = mesh;
|
|
8562
|
-
mesh =
|
|
8562
|
+
mesh = _chunkZ2H7KECKcjs.fitWarpMesh.call(void 0, (s, t) => _chunkZ2H7KECKcjs.evalWarpMesh.call(void 0, m, (s * contents.width - bounds.x) / bounds.width, (t * contents.height - bounds.y) / bounds.height), [0, 1], [0, 1]);
|
|
8563
8563
|
}
|
|
8564
8564
|
return { mesh, frame };
|
|
8565
8565
|
}
|
|
@@ -10135,7 +10135,7 @@ function importSmart(ctx, rec, name, notes, props) {
|
|
|
10135
10135
|
if (placement && (size.width !== contents.width || size.height !== contents.height)) {
|
|
10136
10136
|
const kx = contents.width / size.width;
|
|
10137
10137
|
const ky = contents.height / size.height;
|
|
10138
|
-
if (placement.warp) placement = { ...placement, warp:
|
|
10138
|
+
if (placement.warp) placement = { ...placement, warp: _chunkZ2H7KECKcjs.mapWarpMeshPoints.call(void 0, placement.warp, (p) => ({ x: p.x * kx, y: p.y * ky })) };
|
|
10139
10139
|
}
|
|
10140
10140
|
}
|
|
10141
10141
|
if (!contents || !placement) {
|
|
@@ -11805,4 +11805,4 @@ function exportPsd(input) {
|
|
|
11805
11805
|
|
|
11806
11806
|
|
|
11807
11807
|
exports.LEGACY_PROCESS_VERSION = LEGACY_PROCESS_VERSION; exports.LATEST_PROCESS_VERSION = LATEST_PROCESS_VERSION; exports.normalizeProcessVersion = normalizeProcessVersion; exports.srgbToLinear = srgbToLinear; exports.linearToSrgb = linearToSrgb; exports.LUMA_709 = LUMA_709; exports.IDENTITY_MATRIX3 = IDENTITY_MATRIX3; exports.mulMatrix3 = mulMatrix3; exports.applyMatrix3 = applyMatrix3; exports.invertMatrix3 = invertMatrix3; exports.D65 = D65; exports.bradfordAdaptation = bradfordAdaptation; exports.wbMatrix = wbMatrix; exports.linearSrgbToXy = linearSrgbToXy; exports.TINT_SCALE = TINT_SCALE; exports.MIN_KELVIN = MIN_KELVIN; exports.MAX_KELVIN = MAX_KELVIN; exports.xyToUv = xyToUv; exports.uvToXy = uvToXy; exports.tempTintToXy = tempTintToXy; exports.xyToTempTint = xyToTempTint; exports.AS_SHOT_KELVIN = AS_SHOT_KELVIN; exports.MIRED_PER_TEMPERATURE_UNIT = MIRED_PER_TEMPERATURE_UNIT; exports.temperatureToKelvin = temperatureToKelvin; exports.kelvinToTemperature = kelvinToTemperature; exports.whiteBalanceMatrix = whiteBalanceMatrix; exports.whiteBalanceFromSample = whiteBalanceFromSample; exports.TONE_LUT_SIZE = TONE_LUT_SIZE; exports.toneCurve = toneCurve; exports.buildToneLut = buildToneLut; exports.sampleToneLut = sampleToneLut; exports.normalizeAngle = normalizeAngle; exports.isQuarterTurnSwapped = isQuarterTurnSwapped; exports.getRotatedSize = getRotatedSize; exports.projectImagePoint = projectImagePoint; exports.unprojectCanvasPoint = unprojectCanvasPoint; exports.applyImageProjectionToContext = applyImageProjectionToContext; exports.projectImageRect = projectImageRect; exports.clampCropToImage = clampCropToImage; exports.getViewportProjection = getViewportProjection; exports.getViewportMetrics = getViewportMetrics; exports.canvasToImagePoint = canvasToImagePoint; exports.imageToCanvasPoint = imageToCanvasPoint; exports.mapCropHandle = mapCropHandle; exports.hitTestCrop = hitTestCrop; exports.getCropCursor = getCropCursor; exports.calculateCropDrag = calculateCropDrag; exports.getAnnotationBounds = getAnnotationBounds; exports.hitTestAnnotation = hitTestAnnotation; exports.SELECTION_MODES = SELECTION_MODES; exports.isSelectionMode = isSelectionMode; exports.parseSelectionMode = parseSelectionMode; exports.computeSelectionBounds = computeSelectionBounds; exports.createSelectionMask = createSelectionMask; exports.fullSelection = fullSelection; exports.isSelectionEmpty = isSelectionEmpty; exports.selectionValueAt = selectionValueAt; exports.coverageToByte = coverageToByte; exports.selectionFromCoverage = selectionFromCoverage; exports.selectionToCoverage = selectionToCoverage; exports.selectionArea = selectionArea; exports.combineSelections = combineSelections; exports.invertSelection = invertSelection; exports.resizeSelection = resizeSelection; exports.selectionFromPixels = selectionFromPixels; exports.selectionToPixels = selectionToPixels; exports.encodeSelectionRle = encodeSelectionRle; exports.decodeSelectionRle = decodeSelectionRle; exports.serializeSelection = serializeSelection; exports.deserializeSelection = deserializeSelection; exports.hashMaskContent = hashMaskContent; exports.EMPTY_DISTANCE = EMPTY_DISTANCE; exports.distanceTransform = distanceTransform; exports.expandCoverage = expandCoverage; exports.contractCoverage = contractCoverage; exports.borderCoverage = borderCoverage; exports.smoothCoverage = smoothCoverage; exports.featherCoverage = featherCoverage; exports.greyMorphology = greyMorphology; exports.shiftCoverage = shiftCoverage; exports.SELECTION_MODIFY_OPS = SELECTION_MODIFY_OPS; exports.modifySelection = modifySelection; exports.normalizeLayerMask = normalizeLayerMask; exports.layerMaskFromSelection = layerMaskFromSelection; exports.updateLayerMaskProps = updateLayerMaskProps; exports.decodeLayerMask = decodeLayerMask; exports.layerMaskKey = layerMaskKey; exports.layerMaskCoverage = layerMaskCoverage; exports.projectMaskCoverage = projectMaskCoverage; exports.buildLayerMaskPlanes = buildLayerMaskPlanes; exports.ADJUSTMENT_LUT_SIZE = ADJUSTMENT_LUT_SIZE; exports.sampleLut = sampleLut; exports.ADJUSTMENT_KINDS = ADJUSTMENT_KINDS; exports.isAdjustmentKind = isAdjustmentKind; exports.adjustmentKindLabel = adjustmentKindLabel; exports.HUE_RANGE_LABELS = HUE_RANGE_LABELS; exports.neutralHueRange = neutralHueRange; exports.identityCurve = identityCurve; exports.identityLevels = identityLevels; exports.defaultAdjustmentParams = defaultAdjustmentParams; exports.createAdjustmentLayer = createAdjustmentLayer; exports.normalizeAdjustmentLayer = normalizeAdjustmentLayer; exports.normalizeAdjustmentLayers = normalizeAdjustmentLayers; exports.curveLutFromLevels = curveLutFromLevels; exports.levelsValue = levelsValue; exports.rgbToHsl = rgbToHsl; exports.hslToRgb = hslToRgb; exports.hueRangeWeight = hueRangeWeight; exports.hueRangeTables = hueRangeTables; exports.hueSaturation = hueSaturation; exports.rangeLightness = rangeLightness; exports.VIBRANCE_GREY = VIBRANCE_GREY; exports.vibranceLinear = vibranceLinear; exports.vibrancePixel = vibrancePixel; exports.colorBalanceChannel = colorBalanceChannel; exports.blackWhiteGray = blackWhiteGray; exports.D50 = D50; exports.XYZ_D50_TO_SRGB = XYZ_D50_TO_SRGB; exports.photoFilterMatrix = photoFilterMatrix; exports.posterizeValue = posterizeValue; exports.rgbToGray = rgbToGray; exports.hexToRgb = hexToRgb; exports.toneLuts = toneLuts; exports.compileAdjustmentLayer = compileAdjustmentLayer; exports.activeAdjustmentLayers = activeAdjustmentLayers; exports.evaluateAdjustmentLayers = evaluateAdjustmentLayers; exports.applyAdjustmentLayers = applyAdjustmentLayers; exports.applyAdjustmentLayersFloat = applyAdjustmentLayersFloat; exports.adjustmentLayersKey = adjustmentLayersKey; exports.applyAdjustments = applyAdjustments; exports.applyLegacyAdjustments = applyLegacyAdjustments; exports.applyLegacyFloat = applyLegacyFloat; exports.applyProcess2Adjustments = applyProcess2Adjustments; exports.applyProcess2Float = applyProcess2Float; exports.applyBoxBlurFloat = applyBoxBlurFloat; exports.applyBoxBlur = applyBoxBlur; exports.applyDepthMask = applyDepthMask; exports.removeAlpha = removeAlpha; exports.TEXT_ALIGNS = TEXT_ALIGNS; exports.SHAPE_OPERATIONS = SHAPE_OPERATIONS; exports.LIVE_SHAPE_KINDS = LIVE_SHAPE_KINDS; exports.newLayerId = newLayerId; exports.pixelLayers = pixelLayers; exports.developFilter = developFilter; exports.blurFilter = blurFilter; exports.isActiveFilter = isActiveFilter; exports.isSpatialFilter = isSpatialFilter; exports.pixelLayerBounds = pixelLayerBounds; exports.layerTypeLabel = layerTypeLabel; exports.hasSurface = hasSurface; exports.isRenderedLayer = isRenderedLayer; exports.shapeLayers = shapeLayers; exports.smartObjectLayers = smartObjectLayers; exports.adjustmentNodeAsLayer = adjustmentNodeAsLayer; exports.depthMaskAlpha = depthMaskAlpha; exports.runLayerFilters = runLayerFilters; exports.runLayerFiltersFloat = runLayerFiltersFloat; exports.LayerCompositor = LayerCompositor; exports.compositeDeep = compositeDeep; exports.DEFAULT_ADJUSTMENTS_VALUES = DEFAULT_ADJUSTMENTS_VALUES; exports.DEFAULT_TRANSFORM_VALUES = DEFAULT_TRANSFORM_VALUES; exports.DEFAULT_DEPTH_MASK_VALUES = DEFAULT_DEPTH_MASK_VALUES; exports.flattenPath = flattenPath; exports.rasterizeCoverage = rasterizeCoverage; exports.LayerOperationError = LayerOperationError; exports.requireLayer = requireLayer; exports.requireUnlocked = requireUnlocked; exports.placeLayer = placeLayer; exports.removeLayer = removeLayer; exports.moveLayer = moveLayer; exports.withNewIds = withNewIds; exports.duplicateLayer = duplicateLayer; exports.setLayerProperties = setLayerProperties; exports.groupLayers = groupLayers; exports.ungroupLayer = ungroupLayer; exports.offsetLayer = offsetLayer; exports.setLayerMask = setLayerMask; exports.normalizeFilter = normalizeFilter; exports.addLayerFilter = addLayerFilter; exports.updateLayerFilter = updateLayerFilter; exports.removeLayerFilter = removeLayerFilter; exports.layerEffectsOf = layerEffectsOf; exports.setLayerEffects = setLayerEffects; exports.addLayerEffect = addLayerEffect; exports.updateLayerEffect = updateLayerEffect; exports.removeLayerEffect = removeLayerEffect; exports.setLayerEffectsEnabled = setLayerEffectsEnabled; exports.parseBlend = parseBlend; exports.unionRect = unionRect; exports.SHAPE_RENDER_MARGIN = SHAPE_RENDER_MARGIN; exports.DEFAULT_MITER_LIMIT = DEFAULT_MITER_LIMIT; exports.mapSubpaths = mapSubpaths; exports.liveShapeSubpaths = liveShapeSubpaths; exports.liveComponent = liveComponent; exports.componentPath = componentPath; exports.shapeOutline = shapeOutline; exports.shapeGeometryBounds = shapeGeometryBounds; exports.shapeRenderClip = shapeRenderClip; exports.renderShapeRect = renderShapeRect; exports.renderShape = renderShape; exports.rerenderShape = rerenderShape; exports.normalizeShapePaint = normalizeShapePaint; exports.normalizeShapeStroke = normalizeShapeStroke; exports.normalizeLiveShape = normalizeLiveShape; exports.normalizeSubpaths = normalizeSubpaths; exports.requireOperation = requireOperation; exports.requireShapeLayer = requireShapeLayer; exports.createShapeLayer = createShapeLayer; exports.defaultShapeName = defaultShapeName; exports.updateShapeLayer = updateShapeLayer; exports.transformShapeComponents = transformShapeComponents; exports.offsetShape = offsetShape; exports.mergeShapeComponents = mergeShapeComponents; exports.shapeAsPixelLayer = shapeAsPixelLayer; exports.shapeFromAnnotation = shapeFromAnnotation; exports.annotationBlend = annotationBlend; exports.annotationOfShape = annotationOfShape; exports.TEXT_RENDER_MARGIN = TEXT_RENDER_MARGIN; exports.textMatrix = textMatrix; exports.textOutlines = textOutlines; exports.renderText = renderText; exports.rerenderText = rerenderText; exports.TEXT_STYLE_FIELDS = TEXT_STYLE_FIELDS; exports.patchTextStyle = patchTextStyle; exports.PARAGRAPH_STYLE_FIELDS = PARAGRAPH_STYLE_FIELDS; exports.patchParagraphStyle = patchParagraphStyle; exports.textRange = textRange; exports.requireTypeLayer = requireTypeLayer; exports.normalizeText = normalizeText; exports.typeLayerName = typeLayerName; exports.createTypeLayer = createTypeLayer; exports.updateTypeLayer = updateTypeLayer; exports.replaceTextRange = replaceTextRange; exports.transformTypeLayer = transformTypeLayer; exports.typeFrame = typeFrame; exports.typeAsPixelLayer = typeAsPixelLayer; exports.toTextSpace = toTextSpace; exports.typeFromAnnotation = typeFromAnnotation; exports.annotationOfType = annotationOfType; exports.BACKGROUND_LAYER_ID = BACKGROUND_LAYER_ID; exports.BACKGROUND_LAYER_NAME = BACKGROUND_LAYER_NAME; exports.DEVELOP_FILTER_ID = DEVELOP_FILTER_ID; exports.BLUR_FILTER_ID = BLUR_FILTER_ID; exports.rasterMaskFromLegacy = rasterMaskFromLegacy; exports.hasResampledLegacyMask = hasResampledLegacyMask; exports.legacyMaskOf = legacyMaskOf; exports.isDefaultDepthMask = isDefaultDepthMask; exports.developFromAdjustments = developFromAdjustments; exports.annotationLayerName = annotationLayerName; exports.annotationLayerFor = annotationLayerFor; exports.annotationOfLayer = annotationOfLayer; exports.adjustmentNodeFromLegacy = adjustmentNodeFromLegacy; exports.backgroundLayer = backgroundLayer; exports.depthRasterMask = depthRasterMask; exports.layersFromLegacy = layersFromLegacy; exports.legacyAdjustmentLayer = legacyAdjustmentLayer; exports.developTarget = developTarget; exports.legacyView = legacyView; exports.isLegacyShape = isLegacyShape; exports.FREE_TRANSFORM_MODES = FREE_TRANSFORM_MODES; exports.TRANSFORM_ANCHORS = TRANSFORM_ANCHORS; exports.isTransformAnchor = isTransformAnchor; exports.identityTransform = identityTransform; exports.cornersFromMatrix = cornersFromMatrix; exports.matrixFromCorners = matrixFromCorners; exports.transformHomography = transformHomography; exports.hasWarp = hasWarp; exports.isIdentityTransform = isIdentityTransform; exports.transformMap = transformMap; exports.transformedPoint = transformedPoint; exports.anchorPoint = anchorPoint; exports.transformedBox = transformedBox; exports.referencePoint = referencePoint; exports.matrixFromParams = matrixFromParams; exports.describeTransform = describeTransform; exports.applyParams = applyParams; exports.flipCorners = flipCorners; exports.boxPointOf = boxPointOf; exports.presetWarp = presetWarp; exports.isValidWarp = isValidWarp; exports.geometryHomography = geometryHomography; exports.SMART_RENDER_MARGIN = SMART_RENDER_MARGIN; exports.isSmartSurfaceIncomplete = isSmartSurfaceIncomplete; exports.newContentsId = newContentsId; exports.contentsBox = contentsBox; exports.placementGeometry = placementGeometry; exports.placementAt = placementAt; exports.isContentsDecoded = isContentsDecoded; exports.requireSmartObject = requireSmartObject; exports.contentsSurface = contentsSurface; exports.rasterContents = rasterContents; exports.documentContents = documentContents; exports.placeContents = placeContents; exports.activeSmartFilters = activeSmartFilters; exports.activeEffectSmartFilters = activeEffectSmartFilters; exports.filterMaskCoverage = filterMaskCoverage; exports.applySmartFilters = applySmartFilters; exports.renderSmartObject = renderSmartObject; exports.rerender = rerender; exports.normalizePlacement = normalizePlacement; exports.setSmartPlacement = setSmartPlacement; exports.offsetSmartObject = offsetSmartObject; exports.convertToSmartObject = convertToSmartObject; exports.rasterizeSmartObject = rasterizeSmartObject; exports.copySmartObject = copySmartObject; exports.instancesOf = instancesOf; exports.replaceContents = replaceContents; exports.normalizeSmartFilter = normalizeSmartFilter; exports.addSmartFilter = addSmartFilter; exports.updateSmartFilter = updateSmartFilter; exports.removeSmartFilter = removeSmartFilter; exports.moveSmartFilter = moveSmartFilter; exports.setSmartFiltersEnabled = setSmartFiltersEnabled; exports.setSmartFilterMask = setSmartFilterMask; exports.withFilterMaskSurface = withFilterMaskSurface; exports.placementBounds = placementBounds; exports.LAYERED_SCHEMA_VERSION = LAYERED_SCHEMA_VERSION; exports.serializePatterns = serializePatterns; exports.deserializePatterns = deserializePatterns; exports.encodeSurface = encodeSurface; exports.encodeDeepSurface = encodeDeepSurface; exports.decodeDeepSurface = decodeDeepSurface; exports.serializeEffects = serializeEffects; exports.deserializeEffects = deserializeEffects; exports.serializeLayer = serializeLayer; exports.serializeContents = serializeContents; exports.serializeLayers = serializeLayers; exports.serializeLayersExternal = serializeLayersExternal; exports.resolveExternalAssets = resolveExternalAssets; exports.decodePngDataUrl = decodePngDataUrl; exports.deserializeLayer = deserializeLayer; exports.deserializeLayers = deserializeLayers; exports.PsdError = PsdError; exports.parseVersionedDescriptor = parseVersionedDescriptor; exports.versionedDescriptorBytes = versionedDescriptorBytes; exports.ADJUSTMENT_KEYS = ADJUSTMENT_KEYS; exports.SUPPORTED_ADJUSTMENT_KEYS = SUPPORTED_ADJUSTMENT_KEYS; exports.parseAdjustmentBlock = parseAdjustmentBlock; exports.writeAdjustmentBlock = writeAdjustmentBlock; exports.parseLfx2 = parseLfx2; exports.writeLfx2 = writeLfx2; exports.parseLrfx = parseLrfx; exports.decodePlanes = decodePlanes; exports.encodeRle = encodeRle; exports.BROWSER_IMAGE_TYPES = BROWSER_IMAGE_TYPES; exports.readPsd = readPsd; exports.layerName = layerName; exports.layerTree = layerTree; exports.decodeLayerChannel = decodeLayerChannel; exports.decodeMergedImage = decodeMergedImage; exports.writePsd = writePsd; exports.PATTERN_BLOCK_KEYS = PATTERN_BLOCK_KEYS; exports.parsePatternBlock = parsePatternBlock; exports.psdPatternToEffectPattern = psdPatternToEffectPattern; exports.writePatternBlock = writePatternBlock; exports.PSD_BLEND_KEYS = PSD_BLEND_KEYS; exports.psdToLayers = psdToLayers; exports.importPsd = importPsd; exports.smartContentsFile = smartContentsFile; exports.exportPsd = exportPsd;
|
|
11808
|
-
//# sourceMappingURL=chunk-
|
|
11808
|
+
//# sourceMappingURL=chunk-YAFS2QFZ.cjs.map
|