@pixerate/editor 0.135.0 → 0.136.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 +58 -55
- package/dist/animation-editor/index.cjs.map +1 -1
- package/dist/animation-editor/index.d.cts +8 -5
- package/dist/animation-editor/index.d.ts +8 -5
- package/dist/animation-editor/index.js +5 -2
- package/dist/animation-editor/index.js.map +1 -1
- package/dist/{bezier-J8i4uqSH.d.cts → bezier-CdccFsF8.d.cts} +1 -1
- package/dist/{bezier-lNEOp0Jx.d.ts → bezier-DG9qNZQV.d.ts} +1 -1
- package/dist/canvas/index.d.cts +10 -7
- package/dist/canvas/index.d.ts +10 -7
- package/dist/{chunk-Z2H7KECK.cjs → chunk-2R3UW57U.cjs} +13 -2
- package/dist/chunk-2R3UW57U.cjs.map +1 -0
- package/dist/{chunk-ESIWZMMK.js → chunk-6QQR4LKE.js} +2 -2
- package/dist/chunk-A3BVTI3G.js +150 -0
- package/dist/chunk-A3BVTI3G.js.map +1 -0
- package/dist/{chunk-T6TV6HY6.cjs → chunk-B2CUCM7Y.cjs} +36 -36
- package/dist/{chunk-T6TV6HY6.cjs.map → chunk-B2CUCM7Y.cjs.map} +1 -1
- package/dist/chunk-ECCXGELC.cjs +727 -0
- package/dist/chunk-ECCXGELC.cjs.map +1 -0
- package/dist/{chunk-OXSV64JX.js → chunk-G6IKY6PL.js} +4 -4
- package/dist/chunk-I52DRGGJ.js +727 -0
- package/dist/chunk-I52DRGGJ.js.map +1 -0
- package/dist/{chunk-YAFS2QFZ.cjs → chunk-JLGNZMUV.cjs} +82 -82
- package/dist/{chunk-YAFS2QFZ.cjs.map → chunk-JLGNZMUV.cjs.map} +1 -1
- package/dist/{chunk-7RJ6P7MI.js → chunk-KZXLZCQ7.js} +2 -2
- package/dist/{chunk-HHTCDFZC.js → chunk-MAHQC3SK.js} +13 -2
- package/dist/chunk-MAHQC3SK.js.map +1 -0
- package/dist/{chunk-FWEO3HSL.js → chunk-PQQF5KOW.js} +8 -8
- package/dist/chunk-Q6OUXEK3.cjs +150 -0
- package/dist/chunk-Q6OUXEK3.cjs.map +1 -0
- package/dist/{chunk-P3RQ5UJE.cjs → chunk-UTQKC66X.cjs} +4 -4
- package/dist/{chunk-P3RQ5UJE.cjs.map → chunk-UTQKC66X.cjs.map} +1 -1
- package/dist/{chunk-J3B45HTA.cjs → chunk-XB25WOC2.cjs} +6 -6
- package/dist/{chunk-J3B45HTA.cjs.map → chunk-XB25WOC2.cjs.map} +1 -1
- package/dist/effects/index.d.cts +7 -4
- package/dist/effects/index.d.ts +7 -4
- package/dist/{export-AZSwX087.d.cts → export-BOheWw2R.d.cts} +3 -3
- package/dist/{export-BDkyDNM8.d.ts → export-ByKKIA2S.d.ts} +3 -3
- package/dist/{export-KzubBKo7.d.cts → export-CEYeRQXH.d.cts} +1 -1
- package/dist/{export-DMeG6E06.d.ts → export-Ds7zgGD8.d.ts} +1 -1
- package/dist/extensions/index.cjs +3 -3
- package/dist/extensions/index.cjs.map +1 -1
- package/dist/extensions/index.js +2 -2
- package/dist/generation/index.cjs +150 -945
- package/dist/generation/index.cjs.map +1 -1
- package/dist/generation/index.d.cts +3 -423
- package/dist/generation/index.d.ts +3 -423
- package/dist/generation/index.js +59 -854
- package/dist/generation/index.js.map +1 -1
- package/dist/grammar/index.cjs +3 -3
- package/dist/grammar/index.cjs.map +1 -1
- package/dist/grammar/index.js +2 -2
- package/dist/{helpers-Coa4e2j_.d.ts → helpers--ns3W2D7.d.ts} +7 -1
- package/dist/{helpers-DHl28yLO.d.cts → helpers-BVkU4oUi.d.cts} +7 -1
- package/dist/image-editor/index.cjs +617 -614
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +11 -8
- package/dist/image-editor/index.d.ts +11 -8
- package/dist/image-editor/index.js +5 -2
- package/dist/image-editor/index.js.map +1 -1
- package/dist/index.cjs +28 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +36 -36
- package/dist/{opentype-Dfcx6wFx.d.ts → opentype-DfoVYgmG.d.ts} +1 -1
- package/dist/{opentype-BWR7Qv8W.d.cts → opentype-yi-Kz4ND.d.cts} +1 -1
- package/dist/paint-editor/index.cjs +10 -7
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +8 -5
- package/dist/paint-editor/index.d.ts +8 -5
- package/dist/paint-editor/index.js +5 -2
- package/dist/paint-editor/index.js.map +1 -1
- package/dist/{pathfinder-D8KQ6blQ.d.cts → pathfinder-7JkMwYvC.d.cts} +1 -1
- package/dist/{pathfinder-Celbi3e6.d.ts → pathfinder-GM3UWdBZ.d.ts} +1 -1
- package/dist/{pool-BfuxBKTd.d.cts → pool-04qp8iW4.d.cts} +1 -1
- package/dist/{pool-8JZGWHvR.d.ts → pool-CkTxlLMC.d.ts} +1 -1
- package/dist/provenance-DmlcgdzT.d.cts +426 -0
- package/dist/provenance-uh5r2TQ8.d.ts +426 -0
- package/dist/{svg-pwXWq6s2.d.cts → svg-BDDKvWWY.d.cts} +2 -2
- package/dist/{svg-CxxqG3_W.d.ts → svg-rV6_HPmn.d.ts} +2 -2
- package/dist/{tools-3EBjR91b.d.cts → tools-BAjSbTdY.d.cts} +1 -1
- package/dist/{tools-y1M6O3UT.d.ts → tools-DPYerqeR.d.ts} +1 -1
- package/dist/vector/index.cjs +2684 -1860
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +313 -71
- package/dist/vector/index.d.ts +313 -71
- package/dist/vector/index.js +4700 -3876
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.d.cts +7 -4
- package/dist/video-editor/index.d.ts +7 -4
- package/dist/{warp-Ceqdz7kj.d.cts → warp-DQh9R7Ie.d.cts} +1 -1
- package/dist/{warp-C1gwu2G_.d.ts → warp-XVL6SpSh.d.ts} +1 -1
- package/package.json +1 -1
- package/skills/pixerate-vector/SKILL.md +14 -0
- package/dist/chunk-HHTCDFZC.js.map +0 -1
- package/dist/chunk-Z2H7KECK.cjs.map +0 -1
- /package/dist/{chunk-ESIWZMMK.js.map → chunk-6QQR4LKE.js.map} +0 -0
- /package/dist/{chunk-OXSV64JX.js.map → chunk-G6IKY6PL.js.map} +0 -0
- /package/dist/{chunk-7RJ6P7MI.js.map → chunk-KZXLZCQ7.js.map} +0 -0
- /package/dist/{chunk-FWEO3HSL.js.map → chunk-PQQF5KOW.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -43,18 +43,7 @@ import {
|
|
|
43
43
|
resolveTemplatesWithMapping,
|
|
44
44
|
resolveVariables,
|
|
45
45
|
serializeMergeOutputs
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import {
|
|
48
|
-
TEMPLATE_DEPTH_ERROR,
|
|
49
|
-
TEMPLATE_LOOP_ERROR,
|
|
50
|
-
evaluatePromptTokens,
|
|
51
|
-
getLatestVersion,
|
|
52
|
-
getPromptDiagnostics,
|
|
53
|
-
getTemplateBody,
|
|
54
|
-
resolvePrompt,
|
|
55
|
-
tokenizePrompt,
|
|
56
|
-
tokenizePromptWithDiagnostics
|
|
57
|
-
} from "./chunk-FPENXAEJ.js";
|
|
46
|
+
} from "./chunk-G6IKY6PL.js";
|
|
58
47
|
import {
|
|
59
48
|
Autocorrect,
|
|
60
49
|
BUILT_IN_IMPORT_ADAPTERS,
|
|
@@ -176,7 +165,7 @@ import {
|
|
|
176
165
|
updateImageSrc,
|
|
177
166
|
validateFindPattern,
|
|
178
167
|
writeRichClipboard
|
|
179
|
-
} from "./chunk-
|
|
168
|
+
} from "./chunk-PQQF5KOW.js";
|
|
180
169
|
import {
|
|
181
170
|
compareDocuments,
|
|
182
171
|
compareHtml,
|
|
@@ -261,29 +250,6 @@ import {
|
|
|
261
250
|
import "./chunk-ZOH6X3VR.js";
|
|
262
251
|
import "./chunk-OEFCLWZ3.js";
|
|
263
252
|
import "./chunk-633QC34G.js";
|
|
264
|
-
import {
|
|
265
|
-
INSTRUCTION_REGEX,
|
|
266
|
-
TEMPLATE_REGEX,
|
|
267
|
-
VARIABLE_REGEX,
|
|
268
|
-
compareConditionValues,
|
|
269
|
-
conditionSubject,
|
|
270
|
-
describeConditionalTag,
|
|
271
|
-
escapeVariableText,
|
|
272
|
-
evaluateCondition,
|
|
273
|
-
evaluateConditionExpression,
|
|
274
|
-
formatComparisonOperand,
|
|
275
|
-
formatConditionalTag,
|
|
276
|
-
getSuppliedValue,
|
|
277
|
-
instructionRegex,
|
|
278
|
-
isPromptValueSet,
|
|
279
|
-
matchConditionalTags,
|
|
280
|
-
parseComparison,
|
|
281
|
-
parseConditionExpression,
|
|
282
|
-
parseVariableBody,
|
|
283
|
-
templateRegex,
|
|
284
|
-
unescapeVariableText,
|
|
285
|
-
variableRegex
|
|
286
|
-
} from "./chunk-P6ODPZ4W.js";
|
|
287
253
|
import "./chunk-N7FG6CBO.js";
|
|
288
254
|
import {
|
|
289
255
|
PIXERATE_DOCUMENT_MIME,
|
|
@@ -553,6 +519,17 @@ import {
|
|
|
553
519
|
defaultIsEqual,
|
|
554
520
|
withoutDirty
|
|
555
521
|
} from "./chunk-YK57D7PW.js";
|
|
522
|
+
import {
|
|
523
|
+
TEMPLATE_DEPTH_ERROR,
|
|
524
|
+
TEMPLATE_LOOP_ERROR,
|
|
525
|
+
evaluatePromptTokens,
|
|
526
|
+
getLatestVersion,
|
|
527
|
+
getPromptDiagnostics,
|
|
528
|
+
getTemplateBody,
|
|
529
|
+
resolvePrompt,
|
|
530
|
+
tokenizePrompt,
|
|
531
|
+
tokenizePromptWithDiagnostics
|
|
532
|
+
} from "./chunk-FPENXAEJ.js";
|
|
556
533
|
import {
|
|
557
534
|
DEFAULT_ZIP_MAX_ENTRIES,
|
|
558
535
|
DEFAULT_ZIP_MAX_TOTAL_SIZE,
|
|
@@ -562,6 +539,29 @@ import {
|
|
|
562
539
|
readZip,
|
|
563
540
|
zipCrc32
|
|
564
541
|
} from "./chunk-33AHNSEB.js";
|
|
542
|
+
import {
|
|
543
|
+
INSTRUCTION_REGEX,
|
|
544
|
+
TEMPLATE_REGEX,
|
|
545
|
+
VARIABLE_REGEX,
|
|
546
|
+
compareConditionValues,
|
|
547
|
+
conditionSubject,
|
|
548
|
+
describeConditionalTag,
|
|
549
|
+
escapeVariableText,
|
|
550
|
+
evaluateCondition,
|
|
551
|
+
evaluateConditionExpression,
|
|
552
|
+
formatComparisonOperand,
|
|
553
|
+
formatConditionalTag,
|
|
554
|
+
getSuppliedValue,
|
|
555
|
+
instructionRegex,
|
|
556
|
+
isPromptValueSet,
|
|
557
|
+
matchConditionalTags,
|
|
558
|
+
parseComparison,
|
|
559
|
+
parseConditionExpression,
|
|
560
|
+
parseVariableBody,
|
|
561
|
+
templateRegex,
|
|
562
|
+
unescapeVariableText,
|
|
563
|
+
variableRegex
|
|
564
|
+
} from "./chunk-P6ODPZ4W.js";
|
|
565
565
|
import {
|
|
566
566
|
HistoryManager,
|
|
567
567
|
createHistoryManager
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as Homography, V as Vec2, B as Box, Q as Quad, A as AffineMatrix } from './types-CwMPoRMU.js';
|
|
2
|
-
import { T as TextShaper, a as TextFont } from './warp-
|
|
2
|
+
import { T as TextShaper, a as TextFont } from './warp-XVL6SpSh.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Perspective (projective) maps between quadrilaterals: Free Distort and Perspective in both the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { H as Homography, V as Vec2, B as Box, Q as Quad, A as AffineMatrix } from './types-CwMPoRMU.cjs';
|
|
2
|
-
import { T as TextShaper, a as TextFont } from './warp-
|
|
2
|
+
import { T as TextShaper, a as TextFont } from './warp-DQh9R7Ie.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Perspective (projective) maps between quadrilaterals: Free Distort and Perspective in both the
|
|
@@ -80,7 +80,7 @@ var _chunkSFCPGMCTcjs = require('../chunk-SFCPGMCT.cjs');
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunkJLGNZMUVcjs = require('../chunk-JLGNZMUV.cjs');
|
|
84
84
|
require('../chunk-2YQONY6G.cjs');
|
|
85
85
|
|
|
86
86
|
|
|
@@ -211,7 +211,8 @@ var _chunkCOAMRKVIcjs = require('../chunk-COAMRKVI.cjs');
|
|
|
211
211
|
|
|
212
212
|
|
|
213
213
|
var _chunkEGFUVXKKcjs = require('../chunk-EGFUVXKK.cjs');
|
|
214
|
-
require('../chunk-
|
|
214
|
+
require('../chunk-2R3UW57U.cjs');
|
|
215
|
+
require('../chunk-Q6OUXEK3.cjs');
|
|
215
216
|
require('../chunk-BJTCSLF6.cjs');
|
|
216
217
|
require('../chunk-IZ4WRXZA.cjs');
|
|
217
218
|
|
|
@@ -221,7 +222,9 @@ require('../chunk-IZ4WRXZA.cjs');
|
|
|
221
222
|
|
|
222
223
|
var _chunkJODTP4DPcjs = require('../chunk-JODTP4DP.cjs');
|
|
223
224
|
require('../chunk-RIWPYSKU.cjs');
|
|
225
|
+
require('../chunk-FD4LPFAE.cjs');
|
|
224
226
|
require('../chunk-EMQWJA3G.cjs');
|
|
227
|
+
require('../chunk-MKA3AHLV.cjs');
|
|
225
228
|
require('../chunk-MR3Z4OQI.cjs');
|
|
226
229
|
require('../chunk-A6PHCAGX.cjs');
|
|
227
230
|
|
|
@@ -1625,11 +1628,11 @@ function header(state, options) {
|
|
|
1625
1628
|
return out;
|
|
1626
1629
|
}
|
|
1627
1630
|
function serializePaintDocument(state, options = {}) {
|
|
1628
|
-
const { layers, assets } =
|
|
1631
|
+
const { layers, assets } = _chunkJLGNZMUVcjs.serializeLayers.call(void 0, state.layers);
|
|
1629
1632
|
return { ...header(state, options), layers, assets };
|
|
1630
1633
|
}
|
|
1631
1634
|
async function serializePaintDocumentExternal(state, store, options = {}) {
|
|
1632
|
-
const { layers, assets } = await
|
|
1635
|
+
const { layers, assets } = await _chunkJLGNZMUVcjs.serializeLayersExternal.call(void 0, state.layers, store);
|
|
1633
1636
|
return { ...header(state, options), layers, assets };
|
|
1634
1637
|
}
|
|
1635
1638
|
function paintLayersOnly(layers, problems) {
|
|
@@ -1666,7 +1669,7 @@ function deserializePaintDocument(raw) {
|
|
|
1666
1669
|
const canvas = normalizeCanvas({ width: r.width, height: r.height, dpi: _nullishCoalesce(r.dpi, () => ( void 0)) });
|
|
1667
1670
|
const paper = _chunkW4LNKTHTcjs.normalizePaper.call(void 0, _nullishCoalesce(r.paper, () => ( {})));
|
|
1668
1671
|
const assets = r.assets && typeof r.assets === "object" ? r.assets : {};
|
|
1669
|
-
const layers = paintLayersOnly(
|
|
1672
|
+
const layers = paintLayersOnly(_chunkJLGNZMUVcjs.deserializeLayers.call(void 0, r.layers, { assets, problems }), problems);
|
|
1670
1673
|
const wanted = typeof r.activeLayerId === "string" ? r.activeLayerId : null;
|
|
1671
1674
|
const activeLayerId = wanted && _chunk24ATT2PEcjs.findLayer.call(void 0, layers, wanted) ? wanted : _nullishCoalesce(_optionalChain([_chunk24ATT2PEcjs.flattenLayers.call(void 0, layers), 'access', _70 => _70.filter, 'call', _71 => _71((l) => l.type === "pixel"), 'access', _72 => _72.pop, 'call', _73 => _73(), 'optionalAccess', _74 => _74.id]), () => ( null));
|
|
1672
1675
|
const wetEvents = Array.isArray(r.wetEvents) ? r.wetEvents.filter((e) => e && typeof e === "object" && Number.isInteger(e.clock) && typeof e.kind === "string") : [];
|
|
@@ -1680,7 +1683,7 @@ async function deserializePaintDocumentAsync(raw, store) {
|
|
|
1680
1683
|
if (!raw || typeof raw !== "object") throw new Error("Not a paint document: expected a JSON object.");
|
|
1681
1684
|
const r = raw;
|
|
1682
1685
|
const problems = [];
|
|
1683
|
-
const assets = await
|
|
1686
|
+
const assets = await _chunkJLGNZMUVcjs.resolveExternalAssets.call(void 0, _nullishCoalesce(r.assets, () => ( {})), store, problems);
|
|
1684
1687
|
const loaded = deserializePaintDocument({ ...r, assets });
|
|
1685
1688
|
return { ...loaded, problems: [...problems, ...loaded.problems] };
|
|
1686
1689
|
}
|
|
@@ -5344,7 +5347,7 @@ var PaintEditorController = (_class10 = class _PaintEditorController {
|
|
|
5344
5347
|
return next.type === "group" ? { ...next, children: toStandard(next.children) } : next;
|
|
5345
5348
|
});
|
|
5346
5349
|
const layers = toStandard(dried);
|
|
5347
|
-
const result =
|
|
5350
|
+
const result = _chunkJLGNZMUVcjs.exportPsd.call(void 0, { width, height, layers: [paperLayer, ...layers], merged, resolution: dpi });
|
|
5348
5351
|
for (const [mode, names] of changed) {
|
|
5349
5352
|
const label = _nullishCoalesce(_optionalChain([_chunkJ5BA3BQ6cjs.BLEND_MODES, 'access', _268 => _268.find, 'call', _269 => _269((m) => m.id === mode), 'optionalAccess', _270 => _270.label]), () => ( mode));
|
|
5350
5353
|
const std = _nullishCoalesce(_optionalChain([_chunkJ5BA3BQ6cjs.BLEND_MODES, 'access', _271 => _271.find, 'call', _272 => _272((m) => m.id === _chunkJ5BA3BQ6cjs.standardBlendMode.call(void 0, mode)), 'optionalAccess', _273 => _273.label]), () => ( _chunkJ5BA3BQ6cjs.standardBlendMode.call(void 0, mode)));
|