@pixerate/editor 0.119.0 → 0.121.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 +54 -54
- package/dist/animation-editor/index.d.cts +3 -3
- package/dist/animation-editor/index.d.ts +3 -3
- package/dist/animation-editor/index.js +2 -2
- package/dist/{chunk-UMVW2Q66.js → chunk-4I54JSJ6.js} +2 -2
- package/dist/{chunk-N3467VD6.js → chunk-7QN76ESJ.js} +1 -179
- package/dist/chunk-7QN76ESJ.js.map +1 -0
- package/dist/{chunk-EJVDBITD.cjs → chunk-DCLJNVZS.cjs} +2 -180
- package/dist/chunk-DCLJNVZS.cjs.map +1 -0
- package/dist/{chunk-KGNUFO4T.cjs → chunk-DFLJHLKA.cjs} +36 -36
- package/dist/{chunk-KGNUFO4T.cjs.map → chunk-DFLJHLKA.cjs.map} +1 -1
- package/dist/{chunk-KZLQY4CD.js → chunk-E6N5KLMA.js} +12 -10
- package/dist/{chunk-KZLQY4CD.js.map → chunk-E6N5KLMA.js.map} +1 -1
- package/dist/{chunk-4S2AXNQF.cjs → chunk-GLOOH65Y.cjs} +236 -234
- package/dist/chunk-GLOOH65Y.cjs.map +1 -0
- package/dist/chunk-GX332W2C.js +181 -0
- package/dist/chunk-GX332W2C.js.map +1 -0
- package/dist/{chunk-TS5IEUW6.cjs → chunk-K7V27T72.cjs} +178 -3
- package/dist/chunk-K7V27T72.cjs.map +1 -0
- package/dist/{chunk-WMRIG4XQ.cjs → chunk-LL3RAN55.cjs} +17 -17
- package/dist/{chunk-WMRIG4XQ.cjs.map → chunk-LL3RAN55.cjs.map} +1 -1
- package/dist/chunk-MUUXNRU4.cjs +181 -0
- package/dist/chunk-MUUXNRU4.cjs.map +1 -0
- package/dist/{chunk-LI3KTY7K.cjs → chunk-VYW7JBTM.cjs} +72 -5
- package/dist/chunk-VYW7JBTM.cjs.map +1 -0
- package/dist/{chunk-TDQDMBUR.js → chunk-WAI6ATHC.js} +2 -2
- package/dist/{chunk-CSHEI3YT.js → chunk-WORWH5K5.js} +71 -4
- package/dist/chunk-WORWH5K5.js.map +1 -0
- package/dist/{chunk-YHW26LS2.js → chunk-ZZPGTNXJ.js} +177 -2
- package/dist/chunk-ZZPGTNXJ.js.map +1 -0
- package/dist/{export-Ds8Ccw0K.d.ts → export-D2D8hb_u.d.ts} +1 -1
- package/dist/{export-B_jO2PrH.d.cts → export-fP2hZYjm.d.cts} +1 -1
- package/dist/image-editor/index.cjs +789 -769
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +4 -4
- package/dist/image-editor/index.d.ts +4 -4
- package/dist/image-editor/index.js +32 -12
- package/dist/image-editor/index.js.map +1 -1
- package/dist/paint/index.cjs +22 -2
- package/dist/paint/index.cjs.map +1 -1
- package/dist/paint/index.d.cts +159 -1
- package/dist/paint/index.d.ts +159 -1
- package/dist/paint/index.js +21 -1
- package/dist/paint-editor/index.cjs +96 -95
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +2 -2
- package/dist/paint-editor/index.d.ts +2 -2
- package/dist/paint-editor/index.js +13 -12
- package/dist/paint-editor/index.js.map +1 -1
- package/dist/raster/index.cjs +5 -4
- package/dist/raster/index.cjs.map +1 -1
- package/dist/raster/index.js +11 -10
- package/dist/{svg-hK0WQc7-.d.cts → svg-S9zzvqaZ.d.cts} +1 -1
- package/dist/{svg-CTxrB5xO.d.ts → svg-leZpRsJB.d.ts} +1 -1
- package/dist/{types-TrSSh_RB.d.ts → types-BgwxFWvn.d.ts} +23 -9
- package/dist/{types-Dq-8qgoo.d.cts → types-DdRTDnza.d.cts} +23 -9
- package/dist/vector/index.cjs +887 -883
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +12 -5
- package/dist/vector/index.d.ts +12 -5
- package/dist/vector/index.js +14 -10
- package/dist/vector/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/pixerate-vector/SKILL.md +1 -1
- package/skills/pixerate-vector/references/commands.md +1 -0
- package/dist/chunk-4S2AXNQF.cjs.map +0 -1
- package/dist/chunk-CSHEI3YT.js.map +0 -1
- package/dist/chunk-EJVDBITD.cjs.map +0 -1
- package/dist/chunk-LI3KTY7K.cjs.map +0 -1
- package/dist/chunk-N3467VD6.js.map +0 -1
- package/dist/chunk-TS5IEUW6.cjs.map +0 -1
- package/dist/chunk-YHW26LS2.js.map +0 -1
- /package/dist/{chunk-UMVW2Q66.js.map → chunk-4I54JSJ6.js.map} +0 -0
- /package/dist/{chunk-TDQDMBUR.js.map → chunk-WAI6ATHC.js.map} +0 -0
package/dist/raster/index.cjs
CHANGED
|
@@ -61,7 +61,8 @@
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunkLL3RAN55cjs = require('../chunk-LL3RAN55.cjs');
|
|
65
|
+
require('../chunk-MUUXNRU4.cjs');
|
|
65
66
|
|
|
66
67
|
|
|
67
68
|
|
|
@@ -70,7 +71,6 @@ var _chunkWMRIG4XQcjs = require('../chunk-WMRIG4XQ.cjs');
|
|
|
70
71
|
|
|
71
72
|
|
|
72
73
|
|
|
73
|
-
var _chunkEJVDBITDcjs = require('../chunk-EJVDBITD.cjs');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
@@ -128,6 +128,7 @@ var _chunkEJVDBITDcjs = require('../chunk-EJVDBITD.cjs');
|
|
|
128
128
|
|
|
129
129
|
|
|
130
130
|
|
|
131
|
+
var _chunk7ISPWEJAcjs = require('../chunk-7ISPWEJA.cjs');
|
|
131
132
|
|
|
132
133
|
|
|
133
134
|
|
|
@@ -136,7 +137,7 @@ var _chunkEJVDBITDcjs = require('../chunk-EJVDBITD.cjs');
|
|
|
136
137
|
|
|
137
138
|
|
|
138
139
|
|
|
139
|
-
var
|
|
140
|
+
var _chunkDCLJNVZScjs = require('../chunk-DCLJNVZS.cjs');
|
|
140
141
|
|
|
141
142
|
|
|
142
143
|
|
|
@@ -285,5 +286,5 @@ var _chunk643B2HKCcjs = require('../chunk-643B2HKC.cjs');
|
|
|
285
286
|
|
|
286
287
|
|
|
287
288
|
|
|
288
|
-
exports.BIT_DEPTHS = _chunk7ISPWEJAcjs.BIT_DEPTHS; exports.BLEND_MODES = _chunk7ISPWEJAcjs.BLEND_MODES; exports.CURVE_LUT_SIZE =
|
|
289
|
+
exports.BIT_DEPTHS = _chunk7ISPWEJAcjs.BIT_DEPTHS; exports.BLEND_MODES = _chunk7ISPWEJAcjs.BLEND_MODES; exports.CURVE_LUT_SIZE = _chunkLL3RAN55cjs.CURVE_LUT_SIZE; exports.DEFAULT_GLOBAL_LIGHT = _chunkLL3RAN55cjs.DEFAULT_GLOBAL_LIGHT; exports.DIRECT_GAUSSIAN_MAX_SIGMA = _chunkLL3RAN55cjs.DIRECT_GAUSSIAN_MAX_SIGMA; exports.DeepCompositor = _chunkLL3RAN55cjs.DeepCompositor; exports.INTERPOLATIONS = _chunkLL3RAN55cjs.INTERPOLATIONS; exports.LAYER_EFFECT_KINDS = _chunkLL3RAN55cjs.LAYER_EFFECT_KINDS; exports.LayerEffectError = _chunkLL3RAN55cjs.LayerEffectError; exports.MAX_EFFECT_REACH = _chunkLL3RAN55cjs.MAX_EFFECT_REACH; exports.MAX_TRANSFORM_PIXELS = _chunkLL3RAN55cjs.MAX_TRANSFORM_PIXELS; exports.PAINTERLY_BLEND_MODES = _chunk7ISPWEJAcjs.PAINTERLY_BLEND_MODES; exports.PatternPlacement = _chunkLL3RAN55cjs.PatternPlacement; exports.PatternTile = _chunkLL3RAN55cjs.PatternTile; exports.RasterCompositor = _chunkLL3RAN55cjs.RasterCompositor; exports.SHADOW_AMBIENT = _chunk7ISPWEJAcjs.SHADOW_AMBIENT; exports.STROKE_CHAMFER_MAX = _chunkLL3RAN55cjs.STROKE_CHAMFER_MAX; exports.SurfaceDraft = _chunk7ISPWEJAcjs.SurfaceDraft; exports.TILE = _chunk7ISPWEJAcjs.TILE; exports.TILE_SHIFT = _chunk7ISPWEJAcjs.TILE_SHIFT; exports.TiledSurface = _chunk7ISPWEJAcjs.TiledSurface; exports.TransformTooLargeError = _chunkLL3RAN55cjs.TransformTooLargeError; exports.ZlibError = _chunk643B2HKCcjs.ZlibError; exports.activeEffectItems = _chunkLL3RAN55cjs.activeEffectItems; exports.adler32 = _chunk643B2HKCcjs.adler32; exports.base64ToBytes = _chunkDCLJNVZScjs.base64ToBytes; exports.blendChannel = _chunk7ISPWEJAcjs.blendChannel; exports.blendImageData = _chunk7ISPWEJAcjs.blendImageData; exports.blendLum = _chunk7ISPWEJAcjs.blendLum; exports.blendPixel = _chunk7ISPWEJAcjs.blendPixel; exports.blendRgb = _chunk7ISPWEJAcjs.blendRgb; exports.blendTile = _chunkLL3RAN55cjs.blendTile; exports.buildEffectMaps = _chunkLL3RAN55cjs.buildEffectMaps; exports.builtinPattern = _chunkLL3RAN55cjs.builtinPattern; exports.builtinPatternIds = _chunkLL3RAN55cjs.builtinPatternIds; exports.bytesToBase64 = _chunkDCLJNVZScjs.bytesToBase64; exports.canvasCompositeOperation = _chunk7ISPWEJAcjs.canvasCompositeOperation; exports.changedTiles = _chunkLL3RAN55cjs.changedTiles; exports.collectTiles = _chunk7ISPWEJAcjs.collectTiles; exports.compositeLayerEffects = _chunkLL3RAN55cjs.compositeLayerEffects; exports.compositeSurfaceOver = _chunkLL3RAN55cjs.compositeSurfaceOver; exports.contentBounds = _chunk7ISPWEJAcjs.contentBounds; exports.contourLut = _chunkLL3RAN55cjs.contourLut; exports.convertSurfaceDepth = _chunk7ISPWEJAcjs.convertSurfaceDepth; exports.curveLut = _chunkLL3RAN55cjs.curveLut; exports.decodePng = _chunkDCLJNVZScjs.decodePng; exports.deepBytes = _chunk7ISPWEJAcjs.deepBytes; exports.deepTile = _chunk7ISPWEJAcjs.deepTile; exports.defaultEffectGradient = _chunkLL3RAN55cjs.defaultEffectGradient; exports.defaultLayerEffect = _chunkLL3RAN55cjs.defaultLayerEffect; exports.deflate = _chunk643B2HKCcjs.deflate; exports.deflateRaw = _chunk643B2HKCcjs.deflateRaw; exports.depthOf = _chunk7ISPWEJAcjs.depthOf; exports.effectColorHex = _chunkLL3RAN55cjs.effectColorHex; exports.effectFillColors = _chunkLL3RAN55cjs.effectFillColors; exports.effectReach = _chunkLL3RAN55cjs.effectReach; exports.effectsAreLocal = _chunkLL3RAN55cjs.effectsAreLocal; exports.effectsFingerprint = _chunkLL3RAN55cjs.effectsFingerprint; exports.effectsMargin = _chunkLL3RAN55cjs.effectsMargin; exports.effectsScale = _chunkLL3RAN55cjs.effectsScale; exports.emptySurface = _chunk7ISPWEJAcjs.emptySurface; exports.encodePng = _chunkDCLJNVZScjs.encodePng; exports.fillRect = _chunk7ISPWEJAcjs.fillRect; exports.findLayer = _chunkLL3RAN55cjs.findLayer; exports.finishTile = _chunk7ISPWEJAcjs.finishTile; exports.flattenLayers = _chunkLL3RAN55cjs.flattenLayers; exports.gaussianBlur = _chunkLL3RAN55cjs.gaussianBlur; exports.gradientT = _chunkLL3RAN55cjs.gradientT; exports.hasActiveEffects = _chunkLL3RAN55cjs.hasActiveEffects; exports.hashNoise = _chunkLL3RAN55cjs.hashNoise; exports.inflate = _chunk643B2HKCcjs.inflate; exports.inflateRaw = _chunk643B2HKCcjs.inflateRaw; exports.insertLayer = _chunkLL3RAN55cjs.insertLayer; exports.isBitDepth = _chunk7ISPWEJAcjs.isBitDepth; exports.isBlendMode = _chunk7ISPWEJAcjs.isBlendMode; exports.isInterpolation = _chunkLL3RAN55cjs.isInterpolation; exports.isLayerEffectKind = _chunkLL3RAN55cjs.isLayerEffectKind; exports.isLayerLocked = _chunkLL3RAN55cjs.isLayerLocked; exports.isPainterlyBlendMode = _chunk7ISPWEJAcjs.isPainterlyBlendMode; exports.isPng = _chunkDCLJNVZScjs.isPng; exports.isSeparableBlendMode = _chunk7ISPWEJAcjs.isSeparableBlendMode; exports.keepDeepSamples = _chunk7ISPWEJAcjs.keepDeepSamples; exports.keysWeight = _chunkLL3RAN55cjs.keysWeight; exports.layerEffectFields = _chunkLL3RAN55cjs.layerEffectFields; exports.layerEffectLabel = _chunkLL3RAN55cjs.layerEffectLabel; exports.mapLayer = _chunkLL3RAN55cjs.mapLayer; exports.mergeLayerEffect = _chunkLL3RAN55cjs.mergeLayerEffect; exports.mixPigment8 = _chunk7ISPWEJAcjs.mixPigment8; exports.mixPigmentRgb = _chunk7ISPWEJAcjs.mixPigmentRgb; exports.newEffectId = _chunkLL3RAN55cjs.newEffectId; exports.normalizeBlendMode = _chunk7ISPWEJAcjs.normalizeBlendMode; exports.normalizeLayerEffects = _chunkLL3RAN55cjs.normalizeLayerEffects; exports.packRgba = _chunk7ISPWEJAcjs.packRgba; exports.parseDataUrl = _chunkDCLJNVZScjs.parseDataUrl; exports.parseEffectColor = _chunkLL3RAN55cjs.parseEffectColor; exports.patchEffectMaps = _chunkLL3RAN55cjs.patchEffectMaps; exports.pigment8 = _chunk7ISPWEJAcjs.pigment8; exports.pngDataUrl = _chunkDCLJNVZScjs.pngDataUrl; exports.proxyOf = _chunk7ISPWEJAcjs.proxyOf; exports.readDeepRegion = _chunk7ISPWEJAcjs.readDeepRegion; exports.readPixel = _chunk7ISPWEJAcjs.readPixel; exports.readRegion = _chunk7ISPWEJAcjs.readRegion; exports.reduceSurface = _chunkLL3RAN55cjs.reduceSurface; exports.renderLayerEffects = _chunkLL3RAN55cjs.renderLayerEffects; exports.scaleLayerEffect = _chunkLL3RAN55cjs.scaleLayerEffect; exports.setLum = _chunk7ISPWEJAcjs.setLum; exports.solidSurface = _chunk7ISPWEJAcjs.solidSurface; exports.srgbDecode = _chunk7ISPWEJAcjs.srgbDecode; exports.srgbEncode = _chunk7ISPWEJAcjs.srgbEncode; exports.standardBlendMode = _chunk7ISPWEJAcjs.standardBlendMode; exports.surfaceBytes = _chunk7ISPWEJAcjs.surfaceBytes; exports.surfaceDepth = _chunk7ISPWEJAcjs.surfaceDepth; exports.surfaceFromDeepPixels = _chunk7ISPWEJAcjs.surfaceFromDeepPixels; exports.surfaceFromPixels = _chunk7ISPWEJAcjs.surfaceFromPixels; exports.surfacesEqual = _chunk7ISPWEJAcjs.surfacesEqual; exports.tileCoord = _chunk7ISPWEJAcjs.tileCoord; exports.tileKey = _chunk7ISPWEJAcjs.tileKey; exports.tileRect = _chunk7ISPWEJAcjs.tileRect; exports.tileSamples = _chunk7ISPWEJAcjs.tileSamples; exports.tileSamples16 = _chunk7ISPWEJAcjs.tileSamples16; exports.tileSamples32 = _chunk7ISPWEJAcjs.tileSamples32; exports.tilesInRect = _chunk7ISPWEJAcjs.tilesInRect; exports.to16From32 = _chunk7ISPWEJAcjs.to16From32; exports.to16From8 = _chunk7ISPWEJAcjs.to16From8; exports.to32From16 = _chunk7ISPWEJAcjs.to32From16; exports.to32From8 = _chunk7ISPWEJAcjs.to32From8; exports.to8From16 = _chunk7ISPWEJAcjs.to8From16; exports.to8From32 = _chunk7ISPWEJAcjs.to8From32; exports.transformSurface = _chunkLL3RAN55cjs.transformSurface; exports.transformedBounds = _chunkLL3RAN55cjs.transformedBounds; exports.translateSurface = _chunk7ISPWEJAcjs.translateSurface; exports.uniformTile = _chunk7ISPWEJAcjs.uniformTile; exports.validateEffectGradient = _chunkLL3RAN55cjs.validateEffectGradient; exports.validateLayerEffect = _chunkLL3RAN55cjs.validateLayerEffect; exports.validateLayerEffects = _chunkLL3RAN55cjs.validateLayerEffects; exports.warpSurface = _chunkLL3RAN55cjs.warpSurface; exports.workingToSamples = _chunkLL3RAN55cjs.workingToSamples; exports.writeDeepRegion = _chunk7ISPWEJAcjs.writeDeepRegion; exports.writeRegion = _chunk7ISPWEJAcjs.writeRegion;
|
|
289
290
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/raster/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/editor/editor/packages/core/dist/raster/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B,iCAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,swPAAC","file":"/home/runner/work/editor/editor/packages/core/dist/raster/index.cjs"}
|
package/dist/raster/index.js
CHANGED
|
@@ -61,16 +61,8 @@ import {
|
|
|
61
61
|
validateLayerEffects,
|
|
62
62
|
warpSurface,
|
|
63
63
|
workingToSamples
|
|
64
|
-
} from "../chunk-
|
|
65
|
-
import
|
|
66
|
-
base64ToBytes,
|
|
67
|
-
bytesToBase64,
|
|
68
|
-
decodePng,
|
|
69
|
-
encodePng,
|
|
70
|
-
isPng,
|
|
71
|
-
parseDataUrl,
|
|
72
|
-
pngDataUrl
|
|
73
|
-
} from "../chunk-N3467VD6.js";
|
|
64
|
+
} from "../chunk-4I54JSJ6.js";
|
|
65
|
+
import "../chunk-GX332W2C.js";
|
|
74
66
|
import {
|
|
75
67
|
BIT_DEPTHS,
|
|
76
68
|
BLEND_MODES,
|
|
@@ -137,6 +129,15 @@ import {
|
|
|
137
129
|
writeDeepRegion,
|
|
138
130
|
writeRegion
|
|
139
131
|
} from "../chunk-HKDTM6VC.js";
|
|
132
|
+
import {
|
|
133
|
+
base64ToBytes,
|
|
134
|
+
bytesToBase64,
|
|
135
|
+
decodePng,
|
|
136
|
+
encodePng,
|
|
137
|
+
isPng,
|
|
138
|
+
parseDataUrl,
|
|
139
|
+
pngDataUrl
|
|
140
|
+
} from "../chunk-7QN76ESJ.js";
|
|
140
141
|
import {
|
|
141
142
|
ZlibError,
|
|
142
143
|
adler32,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BezierPath, A as AffineMatrix, S as SvgGradientDef } from './bezier-BfwIbVTl.cjs';
|
|
2
|
-
import { V as VectorEffectType, a as VectorEffectParamsMap, b as VectorPathNode, c as VectorFillRule, d as VectorBooleanOperation, e as VectorNode, f as VectorEffect, g as VectorGroupNode, h as VectorBounds, i as VectorWarpMesh, j as VectorInstanceNode, k as VectorFilterType, l as VectorFilterParamsMap, m as VectorFilter, n as VectorGradient, o as Vec2, p as VectorGradientUnits, q as VectorGradientSpread, r as VectorGradientType, s as VectorPaint, t as VectorMatrix, u as VectorGradientStop, v as VectorStrokeAlign, w as VectorSubpath, x as VectorDocument, y as VectorWidthPoint } from './types-
|
|
2
|
+
import { V as VectorEffectType, a as VectorEffectParamsMap, b as VectorPathNode, c as VectorFillRule, d as VectorBooleanOperation, e as VectorNode, f as VectorEffect, g as VectorGroupNode, h as VectorBounds, i as VectorWarpMesh, j as VectorInstanceNode, k as VectorFilterType, l as VectorFilterParamsMap, m as VectorFilter, n as VectorGradient, o as Vec2, p as VectorGradientUnits, q as VectorGradientSpread, r as VectorGradientType, s as VectorPaint, t as VectorMatrix, u as VectorGradientStop, v as VectorStrokeAlign, w as VectorSubpath, x as VectorDocument, y as VectorWidthPoint } from './types-DdRTDnza.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Live appearance: path effect stacks and live boolean groups, evaluated on demand while the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BezierPath, A as AffineMatrix, S as SvgGradientDef } from './bezier-DYBvLgUH.js';
|
|
2
|
-
import { V as VectorEffectType, a as VectorEffectParamsMap, b as VectorPathNode, c as VectorFillRule, d as VectorBooleanOperation, e as VectorNode, f as VectorEffect, g as VectorGroupNode, h as VectorBounds, i as VectorWarpMesh, j as VectorInstanceNode, k as VectorFilterType, l as VectorFilterParamsMap, m as VectorFilter, n as VectorGradient, o as Vec2, p as VectorGradientUnits, q as VectorGradientSpread, r as VectorGradientType, s as VectorPaint, t as VectorMatrix, u as VectorGradientStop, v as VectorStrokeAlign, w as VectorSubpath, x as VectorDocument, y as VectorWidthPoint } from './types-
|
|
2
|
+
import { V as VectorEffectType, a as VectorEffectParamsMap, b as VectorPathNode, c as VectorFillRule, d as VectorBooleanOperation, e as VectorNode, f as VectorEffect, g as VectorGroupNode, h as VectorBounds, i as VectorWarpMesh, j as VectorInstanceNode, k as VectorFilterType, l as VectorFilterParamsMap, m as VectorFilter, n as VectorGradient, o as Vec2, p as VectorGradientUnits, q as VectorGradientSpread, r as VectorGradientType, s as VectorPaint, t as VectorMatrix, u as VectorGradientStop, v as VectorStrokeAlign, w as VectorSubpath, x as VectorDocument, y as VectorWidthPoint } from './types-BgwxFWvn.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Live appearance: path effect stacks and live boolean groups, evaluated on demand while the
|
|
@@ -776,10 +776,11 @@ type VectorAverageAxis = 'horizontal' | 'vertical' | 'both';
|
|
|
776
776
|
/**
|
|
777
777
|
* Live path effects (After Effects' path operators): `trim` (Trim Paths), `roundCorners`,
|
|
778
778
|
* `puckerBloat`, `twist`, `zigzag`, `wiggle` (Wiggle Paths), `offset` (Offset Paths), `merge`
|
|
779
|
-
* (Merge Paths), `repeater`, `envelope` (an envelope distortion: a warp preset or a mesh)
|
|
780
|
-
* `contour` (CorelDRAW's Contour: concentric offset steps blending toward end colours)
|
|
779
|
+
* (Merge Paths), `repeater`, `envelope` (an envelope distortion: a warp preset or a mesh),
|
|
780
|
+
* `contour` (CorelDRAW's Contour: concentric offset steps blending toward end colours) and
|
|
781
|
+
* `blockShadow` (CorelDRAW's Block Shadow: the shape swept along a direction, under it).
|
|
781
782
|
*/
|
|
782
|
-
type VectorEffectType = 'trim' | 'roundCorners' | 'puckerBloat' | 'twist' | 'zigzag' | 'wiggle' | 'offset' | 'merge' | 'repeater' | 'envelope' | 'contour';
|
|
783
|
+
type VectorEffectType = 'trim' | 'roundCorners' | 'puckerBloat' | 'twist' | 'zigzag' | 'wiggle' | 'offset' | 'merge' | 'repeater' | 'envelope' | 'contour' | 'blockShadow';
|
|
783
784
|
declare const VECTOR_EFFECT_TYPES: readonly VectorEffectType[];
|
|
784
785
|
/** Warp presets (Photoshop's fifteen, in menu order); shared with the image editor (`src/geom`). */
|
|
785
786
|
type VectorWarpStyle = WarpStyle;
|
|
@@ -875,12 +876,6 @@ interface VectorEffectParamsMap {
|
|
|
875
876
|
/** `below`: each copy draws under the one before it; `above`: over it. */
|
|
876
877
|
composite: 'below' | 'above';
|
|
877
878
|
};
|
|
878
|
-
/**
|
|
879
|
-
* Envelope distortion: the paths above it are mapped from their combined bounds through a warp
|
|
880
|
-
* preset (bend and horizontal / vertical distortion in percent) or, with style `mesh`, through
|
|
881
|
-
* `mesh` (null: the flat mesh of `columns × rows` patches over the bounds). The bounds are
|
|
882
|
-
* taken afresh each time, so editing the contents keeps the envelope.
|
|
883
|
-
*/
|
|
884
879
|
/**
|
|
885
880
|
* Contour: concentric copies of each shape offset `offset` apart, `steps` of them `inside`,
|
|
886
881
|
* `outside`, or `center` (inside until the shape is used up), their fill and stroke blending
|
|
@@ -897,6 +892,25 @@ interface VectorEffectParamsMap {
|
|
|
897
892
|
strokeColor: string | null;
|
|
898
893
|
acceleration: number;
|
|
899
894
|
};
|
|
895
|
+
/**
|
|
896
|
+
* Block shadow (CorelDRAW's Block Shadow; a long shadow when it fades): each shape swept
|
|
897
|
+
* `distance` along `angle` (degrees, 0 right, 90 down, in the node's own space) as one solid
|
|
898
|
+
* shape under the art, in `color` (null: the shape's own solid fill) at `opacity` percent,
|
|
899
|
+
* fading to `endOpacity` percent at the far end.
|
|
900
|
+
*/
|
|
901
|
+
blockShadow: {
|
|
902
|
+
angle: number;
|
|
903
|
+
distance: number;
|
|
904
|
+
color: string | null;
|
|
905
|
+
opacity: number;
|
|
906
|
+
endOpacity: number;
|
|
907
|
+
};
|
|
908
|
+
/**
|
|
909
|
+
* Envelope distortion: the paths above it are mapped from their combined bounds through a warp
|
|
910
|
+
* preset (bend and horizontal / vertical distortion in percent) or, with style `mesh`, through
|
|
911
|
+
* `mesh` (null: the flat mesh of `columns × rows` patches over the bounds). The bounds are
|
|
912
|
+
* taken afresh each time, so editing the contents keeps the envelope.
|
|
913
|
+
*/
|
|
900
914
|
envelope: {
|
|
901
915
|
style: VectorWarpStyle | 'mesh';
|
|
902
916
|
bend: number;
|
|
@@ -776,10 +776,11 @@ type VectorAverageAxis = 'horizontal' | 'vertical' | 'both';
|
|
|
776
776
|
/**
|
|
777
777
|
* Live path effects (After Effects' path operators): `trim` (Trim Paths), `roundCorners`,
|
|
778
778
|
* `puckerBloat`, `twist`, `zigzag`, `wiggle` (Wiggle Paths), `offset` (Offset Paths), `merge`
|
|
779
|
-
* (Merge Paths), `repeater`, `envelope` (an envelope distortion: a warp preset or a mesh)
|
|
780
|
-
* `contour` (CorelDRAW's Contour: concentric offset steps blending toward end colours)
|
|
779
|
+
* (Merge Paths), `repeater`, `envelope` (an envelope distortion: a warp preset or a mesh),
|
|
780
|
+
* `contour` (CorelDRAW's Contour: concentric offset steps blending toward end colours) and
|
|
781
|
+
* `blockShadow` (CorelDRAW's Block Shadow: the shape swept along a direction, under it).
|
|
781
782
|
*/
|
|
782
|
-
type VectorEffectType = 'trim' | 'roundCorners' | 'puckerBloat' | 'twist' | 'zigzag' | 'wiggle' | 'offset' | 'merge' | 'repeater' | 'envelope' | 'contour';
|
|
783
|
+
type VectorEffectType = 'trim' | 'roundCorners' | 'puckerBloat' | 'twist' | 'zigzag' | 'wiggle' | 'offset' | 'merge' | 'repeater' | 'envelope' | 'contour' | 'blockShadow';
|
|
783
784
|
declare const VECTOR_EFFECT_TYPES: readonly VectorEffectType[];
|
|
784
785
|
/** Warp presets (Photoshop's fifteen, in menu order); shared with the image editor (`src/geom`). */
|
|
785
786
|
type VectorWarpStyle = WarpStyle;
|
|
@@ -875,12 +876,6 @@ interface VectorEffectParamsMap {
|
|
|
875
876
|
/** `below`: each copy draws under the one before it; `above`: over it. */
|
|
876
877
|
composite: 'below' | 'above';
|
|
877
878
|
};
|
|
878
|
-
/**
|
|
879
|
-
* Envelope distortion: the paths above it are mapped from their combined bounds through a warp
|
|
880
|
-
* preset (bend and horizontal / vertical distortion in percent) or, with style `mesh`, through
|
|
881
|
-
* `mesh` (null: the flat mesh of `columns × rows` patches over the bounds). The bounds are
|
|
882
|
-
* taken afresh each time, so editing the contents keeps the envelope.
|
|
883
|
-
*/
|
|
884
879
|
/**
|
|
885
880
|
* Contour: concentric copies of each shape offset `offset` apart, `steps` of them `inside`,
|
|
886
881
|
* `outside`, or `center` (inside until the shape is used up), their fill and stroke blending
|
|
@@ -897,6 +892,25 @@ interface VectorEffectParamsMap {
|
|
|
897
892
|
strokeColor: string | null;
|
|
898
893
|
acceleration: number;
|
|
899
894
|
};
|
|
895
|
+
/**
|
|
896
|
+
* Block shadow (CorelDRAW's Block Shadow; a long shadow when it fades): each shape swept
|
|
897
|
+
* `distance` along `angle` (degrees, 0 right, 90 down, in the node's own space) as one solid
|
|
898
|
+
* shape under the art, in `color` (null: the shape's own solid fill) at `opacity` percent,
|
|
899
|
+
* fading to `endOpacity` percent at the far end.
|
|
900
|
+
*/
|
|
901
|
+
blockShadow: {
|
|
902
|
+
angle: number;
|
|
903
|
+
distance: number;
|
|
904
|
+
color: string | null;
|
|
905
|
+
opacity: number;
|
|
906
|
+
endOpacity: number;
|
|
907
|
+
};
|
|
908
|
+
/**
|
|
909
|
+
* Envelope distortion: the paths above it are mapped from their combined bounds through a warp
|
|
910
|
+
* preset (bend and horizontal / vertical distortion in percent) or, with style `mesh`, through
|
|
911
|
+
* `mesh` (null: the flat mesh of `columns × rows` patches over the bounds). The bounds are
|
|
912
|
+
* taken afresh each time, so editing the contents keeps the envelope.
|
|
913
|
+
*/
|
|
900
914
|
envelope: {
|
|
901
915
|
style: VectorWarpStyle | 'mesh';
|
|
902
916
|
bend: number;
|