@pixerate/editor 0.115.0 → 0.116.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/THIRD_PARTY_NOTICES.md +3 -0
- package/dist/animation-editor/index.cjs +54 -54
- package/dist/animation-editor/index.d.cts +2 -2
- package/dist/animation-editor/index.d.ts +2 -2
- package/dist/animation-editor/index.js +2 -2
- package/dist/{chunk-DFQEX3AM.cjs → chunk-2UT4GXYA.cjs} +133 -8
- package/dist/chunk-2UT4GXYA.cjs.map +1 -0
- package/dist/{chunk-VXR7XWMF.js → chunk-7LNZAWSJ.js} +437 -41
- package/dist/chunk-7LNZAWSJ.js.map +1 -0
- package/dist/{chunk-LKCYANMW.js → chunk-ARQ7PQ6Q.js} +129 -4
- package/dist/chunk-ARQ7PQ6Q.js.map +1 -0
- package/dist/chunk-COAMRKVI.cjs +159 -0
- package/dist/chunk-COAMRKVI.cjs.map +1 -0
- package/dist/{chunk-C6C5PDKU.js → chunk-D53KSJUV.js} +3 -322
- package/dist/chunk-D53KSJUV.js.map +1 -0
- package/dist/chunk-D53VQGEJ.js +3262 -0
- package/dist/chunk-D53VQGEJ.js.map +1 -0
- package/dist/chunk-EJVDBITD.cjs +501 -0
- package/dist/chunk-EJVDBITD.cjs.map +1 -0
- package/dist/{chunk-LPLCWZTM.cjs → chunk-FODKPD44.cjs} +555 -159
- package/dist/chunk-FODKPD44.cjs.map +1 -0
- package/dist/chunk-HOCPSFGA.cjs +3262 -0
- package/dist/chunk-HOCPSFGA.cjs.map +1 -0
- package/dist/chunk-IPFRWILU.js +1908 -0
- package/dist/chunk-IPFRWILU.js.map +1 -0
- package/dist/{chunk-FV5AXTSF.cjs → chunk-JSSBHMMU.cjs} +36 -188
- package/dist/chunk-JSSBHMMU.cjs.map +1 -0
- package/dist/chunk-LF4WOZXZ.js +159 -0
- package/dist/chunk-LF4WOZXZ.js.map +1 -0
- package/dist/{chunk-26PGXHY7.cjs → chunk-M7O4BJRH.cjs} +36 -36
- package/dist/{chunk-26PGXHY7.cjs.map → chunk-M7O4BJRH.cjs.map} +1 -1
- package/dist/chunk-N3467VD6.js +501 -0
- package/dist/chunk-N3467VD6.js.map +1 -0
- package/dist/{chunk-ST7E3NEE.cjs → chunk-PAOWHJ5O.cjs} +18 -337
- package/dist/chunk-PAOWHJ5O.cjs.map +1 -0
- package/dist/{chunk-XICA4PVO.js → chunk-SEBYNBHW.js} +10 -10
- package/dist/chunk-SMJGE7HM.cjs +1908 -0
- package/dist/chunk-SMJGE7HM.cjs.map +1 -0
- package/dist/{chunk-MMVHBKMM.js → chunk-T2P5TIZ6.js} +2 -2
- package/dist/{chunk-FGW5OWJ4.js → chunk-VJUML33I.js} +4 -156
- package/dist/chunk-VJUML33I.js.map +1 -0
- package/dist/{chunk-I7FQBWMQ.cjs → chunk-ZYZGEILO.cjs} +239 -239
- package/dist/{chunk-I7FQBWMQ.cjs.map → chunk-ZYZGEILO.cjs.map} +1 -1
- package/dist/export/index.cjs +4 -2
- package/dist/export/index.cjs.map +1 -1
- package/dist/export/index.js +5 -3
- package/dist/{export-BJE8T0YA.d.cts → export-BXxSGBCq.d.cts} +2 -2
- package/dist/{export-Con3UKkm.d.ts → export-Dm44YUvS.d.ts} +2 -2
- package/dist/export-Dv0-ZVrV.d.cts +501 -0
- package/dist/export-Dv0-ZVrV.d.ts +501 -0
- package/dist/{retouch-Do6tBs2H.d.ts → flow-BMtHAmg4.d.ts} +561 -2
- package/dist/{retouch-Bxkuc0KH.d.cts → flow-COCB42TP.d.cts} +561 -2
- package/dist/image-editor/index.cjs +957 -795
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +6 -6
- package/dist/image-editor/index.d.ts +6 -6
- package/dist/image-editor/index.js +180 -18
- package/dist/image-editor/index.js.map +1 -1
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/kernel-wasm-WYCGNZR4.js +10 -0
- package/dist/kernel-wasm-WYCGNZR4.js.map +1 -0
- package/dist/kernel-wasm-YPVAEMVN.cjs +10 -0
- package/dist/kernel-wasm-YPVAEMVN.cjs.map +1 -0
- package/dist/paint/index.cjs +165 -3
- package/dist/paint/index.cjs.map +1 -1
- package/dist/paint/index.d.cts +225 -3
- package/dist/paint/index.d.ts +225 -3
- package/dist/paint/index.js +166 -4
- package/dist/paint-editor/index.cjs +4690 -845
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +1525 -277
- package/dist/paint-editor/index.d.ts +1525 -277
- package/dist/paint-editor/index.js +4560 -715
- package/dist/paint-editor/index.js.map +1 -1
- package/dist/raster/index.cjs +4 -3
- package/dist/raster/index.cjs.map +1 -1
- package/dist/raster/index.js +10 -9
- package/dist/{svg-BnRj0q8i.d.cts → svg-CVdFc80-.d.cts} +2 -2
- package/dist/{svg-CmmBFfGT.d.ts → svg-DlEuhwoX.d.ts} +2 -2
- package/dist/{types-1SUQKDAw.d.ts → types-CDLGhAZp.d.ts} +40 -2
- package/dist/{types-yINF17Ta.d.cts → types-Tfly4Aya.d.cts} +40 -2
- package/dist/vector/index.cjs +1897 -975
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +292 -32
- package/dist/vector/index.d.ts +292 -32
- package/dist/vector/index.js +928 -6
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.cjs +502 -2165
- package/dist/video-editor/index.cjs.map +1 -1
- package/dist/video-editor/index.d.cts +3 -501
- package/dist/video-editor/index.d.ts +3 -501
- package/dist/video-editor/index.js +151 -1814
- package/dist/video-editor/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/pixerate-image-editor/references/photoshop-files.md +7 -3
- package/skills/pixerate-vector/SKILL.md +3 -0
- package/dist/chunk-C6C5PDKU.js.map +0 -1
- package/dist/chunk-DFQEX3AM.cjs.map +0 -1
- package/dist/chunk-FGW5OWJ4.js.map +0 -1
- package/dist/chunk-FV5AXTSF.cjs.map +0 -1
- package/dist/chunk-GX332W2C.js +0 -181
- package/dist/chunk-GX332W2C.js.map +0 -1
- package/dist/chunk-LKCYANMW.js.map +0 -1
- package/dist/chunk-LPLCWZTM.cjs.map +0 -1
- package/dist/chunk-MUUXNRU4.cjs +0 -181
- package/dist/chunk-MUUXNRU4.cjs.map +0 -1
- package/dist/chunk-ST7E3NEE.cjs.map +0 -1
- package/dist/chunk-TCKIXI46.cjs +0 -1136
- package/dist/chunk-TCKIXI46.cjs.map +0 -1
- package/dist/chunk-UBIXVXPR.js +0 -1136
- package/dist/chunk-UBIXVXPR.js.map +0 -1
- package/dist/chunk-VXR7XWMF.js.map +0 -1
- /package/dist/{chunk-XICA4PVO.js.map → chunk-SEBYNBHW.js.map} +0 -0
- /package/dist/{chunk-MMVHBKMM.js.map → chunk-T2P5TIZ6.js.map} +0 -0
package/dist/raster/index.cjs
CHANGED
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
+
var _chunkPAOWHJ5Ocjs = require('../chunk-PAOWHJ5O.cjs');
|
|
86
87
|
|
|
87
88
|
|
|
88
89
|
|
|
@@ -90,8 +91,8 @@
|
|
|
90
91
|
|
|
91
92
|
|
|
92
93
|
|
|
93
|
-
|
|
94
|
-
require('../chunk-
|
|
94
|
+
|
|
95
|
+
var _chunkEJVDBITDcjs = require('../chunk-EJVDBITD.cjs');
|
|
95
96
|
|
|
96
97
|
|
|
97
98
|
|
|
@@ -282,5 +283,5 @@ var _chunk643B2HKCcjs = require('../chunk-643B2HKC.cjs');
|
|
|
282
283
|
|
|
283
284
|
|
|
284
285
|
|
|
285
|
-
exports.BIT_DEPTHS =
|
|
286
|
+
exports.BIT_DEPTHS = _chunkPAOWHJ5Ocjs.BIT_DEPTHS; exports.BLEND_MODES = _chunkTFOPHZ3Ucjs.BLEND_MODES; exports.CURVE_LUT_SIZE = _chunkPAOWHJ5Ocjs.CURVE_LUT_SIZE; exports.DEFAULT_GLOBAL_LIGHT = _chunkPAOWHJ5Ocjs.DEFAULT_GLOBAL_LIGHT; exports.DIRECT_GAUSSIAN_MAX_SIGMA = _chunkPAOWHJ5Ocjs.DIRECT_GAUSSIAN_MAX_SIGMA; exports.DeepCompositor = _chunkPAOWHJ5Ocjs.DeepCompositor; exports.INTERPOLATIONS = _chunkPAOWHJ5Ocjs.INTERPOLATIONS; exports.LAYER_EFFECT_KINDS = _chunkPAOWHJ5Ocjs.LAYER_EFFECT_KINDS; exports.LayerEffectError = _chunkPAOWHJ5Ocjs.LayerEffectError; exports.MAX_EFFECT_REACH = _chunkPAOWHJ5Ocjs.MAX_EFFECT_REACH; exports.MAX_TRANSFORM_PIXELS = _chunkPAOWHJ5Ocjs.MAX_TRANSFORM_PIXELS; exports.PAINTERLY_BLEND_MODES = _chunkTFOPHZ3Ucjs.PAINTERLY_BLEND_MODES; exports.PatternPlacement = _chunkPAOWHJ5Ocjs.PatternPlacement; exports.PatternTile = _chunkPAOWHJ5Ocjs.PatternTile; exports.RasterCompositor = _chunkPAOWHJ5Ocjs.RasterCompositor; exports.SHADOW_AMBIENT = _chunkTFOPHZ3Ucjs.SHADOW_AMBIENT; exports.STROKE_CHAMFER_MAX = _chunkPAOWHJ5Ocjs.STROKE_CHAMFER_MAX; exports.SurfaceDraft = _chunkTFOPHZ3Ucjs.SurfaceDraft; exports.TILE = _chunkTFOPHZ3Ucjs.TILE; exports.TILE_SHIFT = _chunkTFOPHZ3Ucjs.TILE_SHIFT; exports.TiledSurface = _chunkTFOPHZ3Ucjs.TiledSurface; exports.TransformTooLargeError = _chunkPAOWHJ5Ocjs.TransformTooLargeError; exports.ZlibError = _chunk643B2HKCcjs.ZlibError; exports.activeEffectItems = _chunkPAOWHJ5Ocjs.activeEffectItems; exports.adler32 = _chunk643B2HKCcjs.adler32; exports.base64ToBytes = _chunkEJVDBITDcjs.base64ToBytes; exports.blendChannel = _chunkTFOPHZ3Ucjs.blendChannel; exports.blendImageData = _chunkTFOPHZ3Ucjs.blendImageData; exports.blendLum = _chunkTFOPHZ3Ucjs.blendLum; exports.blendPixel = _chunkTFOPHZ3Ucjs.blendPixel; exports.blendRgb = _chunkTFOPHZ3Ucjs.blendRgb; exports.blendTile = _chunkPAOWHJ5Ocjs.blendTile; exports.buildEffectMaps = _chunkPAOWHJ5Ocjs.buildEffectMaps; exports.builtinPattern = _chunkPAOWHJ5Ocjs.builtinPattern; exports.builtinPatternIds = _chunkPAOWHJ5Ocjs.builtinPatternIds; exports.bytesToBase64 = _chunkEJVDBITDcjs.bytesToBase64; exports.canvasCompositeOperation = _chunkTFOPHZ3Ucjs.canvasCompositeOperation; exports.changedTiles = _chunkPAOWHJ5Ocjs.changedTiles; exports.collectTiles = _chunkTFOPHZ3Ucjs.collectTiles; exports.compositeLayerEffects = _chunkPAOWHJ5Ocjs.compositeLayerEffects; exports.compositeSurfaceOver = _chunkPAOWHJ5Ocjs.compositeSurfaceOver; exports.contentBounds = _chunkTFOPHZ3Ucjs.contentBounds; exports.contourLut = _chunkPAOWHJ5Ocjs.contourLut; exports.convertSurfaceDepth = _chunkPAOWHJ5Ocjs.convertSurfaceDepth; exports.curveLut = _chunkPAOWHJ5Ocjs.curveLut; exports.decodePng = _chunkEJVDBITDcjs.decodePng; exports.deepBytes = _chunkPAOWHJ5Ocjs.deepBytes; exports.deepTile = _chunkPAOWHJ5Ocjs.deepTile; exports.defaultEffectGradient = _chunkPAOWHJ5Ocjs.defaultEffectGradient; exports.defaultLayerEffect = _chunkPAOWHJ5Ocjs.defaultLayerEffect; exports.deflate = _chunk643B2HKCcjs.deflate; exports.deflateRaw = _chunk643B2HKCcjs.deflateRaw; exports.depthOf = _chunkPAOWHJ5Ocjs.depthOf; exports.effectColorHex = _chunkPAOWHJ5Ocjs.effectColorHex; exports.effectFillColors = _chunkPAOWHJ5Ocjs.effectFillColors; exports.effectReach = _chunkPAOWHJ5Ocjs.effectReach; exports.effectsAreLocal = _chunkPAOWHJ5Ocjs.effectsAreLocal; exports.effectsFingerprint = _chunkPAOWHJ5Ocjs.effectsFingerprint; exports.effectsMargin = _chunkPAOWHJ5Ocjs.effectsMargin; exports.effectsScale = _chunkPAOWHJ5Ocjs.effectsScale; exports.emptySurface = _chunkTFOPHZ3Ucjs.emptySurface; exports.encodePng = _chunkEJVDBITDcjs.encodePng; exports.fillRect = _chunkTFOPHZ3Ucjs.fillRect; exports.findLayer = _chunkPAOWHJ5Ocjs.findLayer; exports.finishTile = _chunkTFOPHZ3Ucjs.finishTile; exports.flattenLayers = _chunkPAOWHJ5Ocjs.flattenLayers; exports.gaussianBlur = _chunkPAOWHJ5Ocjs.gaussianBlur; exports.gradientT = _chunkPAOWHJ5Ocjs.gradientT; exports.hasActiveEffects = _chunkPAOWHJ5Ocjs.hasActiveEffects; exports.hashNoise = _chunkPAOWHJ5Ocjs.hashNoise; exports.inflate = _chunk643B2HKCcjs.inflate; exports.inflateRaw = _chunk643B2HKCcjs.inflateRaw; exports.insertLayer = _chunkPAOWHJ5Ocjs.insertLayer; exports.isBitDepth = _chunkPAOWHJ5Ocjs.isBitDepth; exports.isBlendMode = _chunkTFOPHZ3Ucjs.isBlendMode; exports.isInterpolation = _chunkPAOWHJ5Ocjs.isInterpolation; exports.isLayerEffectKind = _chunkPAOWHJ5Ocjs.isLayerEffectKind; exports.isLayerLocked = _chunkPAOWHJ5Ocjs.isLayerLocked; exports.isPainterlyBlendMode = _chunkTFOPHZ3Ucjs.isPainterlyBlendMode; exports.isPng = _chunkEJVDBITDcjs.isPng; exports.isSeparableBlendMode = _chunkTFOPHZ3Ucjs.isSeparableBlendMode; exports.keysWeight = _chunkPAOWHJ5Ocjs.keysWeight; exports.layerEffectFields = _chunkPAOWHJ5Ocjs.layerEffectFields; exports.layerEffectLabel = _chunkPAOWHJ5Ocjs.layerEffectLabel; exports.mapLayer = _chunkPAOWHJ5Ocjs.mapLayer; exports.mergeLayerEffect = _chunkPAOWHJ5Ocjs.mergeLayerEffect; exports.mixPigment8 = _chunkTFOPHZ3Ucjs.mixPigment8; exports.mixPigmentRgb = _chunkTFOPHZ3Ucjs.mixPigmentRgb; exports.newEffectId = _chunkPAOWHJ5Ocjs.newEffectId; exports.normalizeBlendMode = _chunkTFOPHZ3Ucjs.normalizeBlendMode; exports.normalizeLayerEffects = _chunkPAOWHJ5Ocjs.normalizeLayerEffects; exports.packRgba = _chunkTFOPHZ3Ucjs.packRgba; exports.parseDataUrl = _chunkEJVDBITDcjs.parseDataUrl; exports.parseEffectColor = _chunkPAOWHJ5Ocjs.parseEffectColor; exports.patchEffectMaps = _chunkPAOWHJ5Ocjs.patchEffectMaps; exports.pigment8 = _chunkTFOPHZ3Ucjs.pigment8; exports.pngDataUrl = _chunkEJVDBITDcjs.pngDataUrl; exports.proxyOf = _chunkPAOWHJ5Ocjs.proxyOf; exports.readDeepRegion = _chunkPAOWHJ5Ocjs.readDeepRegion; exports.readPixel = _chunkTFOPHZ3Ucjs.readPixel; exports.readRegion = _chunkTFOPHZ3Ucjs.readRegion; exports.reduceSurface = _chunkPAOWHJ5Ocjs.reduceSurface; exports.renderLayerEffects = _chunkPAOWHJ5Ocjs.renderLayerEffects; exports.scaleLayerEffect = _chunkPAOWHJ5Ocjs.scaleLayerEffect; exports.setLum = _chunkTFOPHZ3Ucjs.setLum; exports.solidSurface = _chunkTFOPHZ3Ucjs.solidSurface; exports.srgbDecode = _chunkPAOWHJ5Ocjs.srgbDecode; exports.srgbEncode = _chunkPAOWHJ5Ocjs.srgbEncode; exports.standardBlendMode = _chunkTFOPHZ3Ucjs.standardBlendMode; exports.surfaceBytes = _chunkTFOPHZ3Ucjs.surfaceBytes; exports.surfaceDepth = _chunkPAOWHJ5Ocjs.surfaceDepth; exports.surfaceFromDeepPixels = _chunkPAOWHJ5Ocjs.surfaceFromDeepPixels; exports.surfaceFromPixels = _chunkTFOPHZ3Ucjs.surfaceFromPixels; exports.surfacesEqual = _chunkTFOPHZ3Ucjs.surfacesEqual; exports.tileCoord = _chunkTFOPHZ3Ucjs.tileCoord; exports.tileKey = _chunkTFOPHZ3Ucjs.tileKey; exports.tileRect = _chunkTFOPHZ3Ucjs.tileRect; exports.tileSamples = _chunkPAOWHJ5Ocjs.tileSamples; exports.tileSamples16 = _chunkPAOWHJ5Ocjs.tileSamples16; exports.tileSamples32 = _chunkPAOWHJ5Ocjs.tileSamples32; exports.tilesInRect = _chunkTFOPHZ3Ucjs.tilesInRect; exports.to16From32 = _chunkPAOWHJ5Ocjs.to16From32; exports.to16From8 = _chunkPAOWHJ5Ocjs.to16From8; exports.to32From16 = _chunkPAOWHJ5Ocjs.to32From16; exports.to32From8 = _chunkPAOWHJ5Ocjs.to32From8; exports.to8From16 = _chunkPAOWHJ5Ocjs.to8From16; exports.to8From32 = _chunkPAOWHJ5Ocjs.to8From32; exports.transformSurface = _chunkPAOWHJ5Ocjs.transformSurface; exports.transformedBounds = _chunkPAOWHJ5Ocjs.transformedBounds; exports.translateSurface = _chunkTFOPHZ3Ucjs.translateSurface; exports.uniformTile = _chunkTFOPHZ3Ucjs.uniformTile; exports.validateEffectGradient = _chunkPAOWHJ5Ocjs.validateEffectGradient; exports.validateLayerEffect = _chunkPAOWHJ5Ocjs.validateLayerEffect; exports.validateLayerEffects = _chunkPAOWHJ5Ocjs.validateLayerEffects; exports.warpSurface = _chunkPAOWHJ5Ocjs.warpSurface; exports.workingToSamples = _chunkPAOWHJ5Ocjs.workingToSamples; exports.writeDeepRegion = _chunkPAOWHJ5Ocjs.writeDeepRegion; exports.writeRegion = _chunkTFOPHZ3Ucjs.writeRegion;
|
|
286
287
|
//# 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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;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;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;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;AACF,ysPAAC","file":"/home/runner/work/editor/editor/packages/core/dist/raster/index.cjs"}
|
package/dist/raster/index.js
CHANGED
|
@@ -15,19 +15,16 @@ import {
|
|
|
15
15
|
STROKE_CHAMFER_MAX,
|
|
16
16
|
TransformTooLargeError,
|
|
17
17
|
activeEffectItems,
|
|
18
|
-
base64ToBytes,
|
|
19
18
|
blendTile,
|
|
20
19
|
buildEffectMaps,
|
|
21
20
|
builtinPattern,
|
|
22
21
|
builtinPatternIds,
|
|
23
|
-
bytesToBase64,
|
|
24
22
|
changedTiles,
|
|
25
23
|
compositeLayerEffects,
|
|
26
24
|
compositeSurfaceOver,
|
|
27
25
|
contourLut,
|
|
28
26
|
convertSurfaceDepth,
|
|
29
27
|
curveLut,
|
|
30
|
-
decodePng,
|
|
31
28
|
deepBytes,
|
|
32
29
|
deepTile,
|
|
33
30
|
defaultEffectGradient,
|
|
@@ -40,7 +37,6 @@ import {
|
|
|
40
37
|
effectsFingerprint,
|
|
41
38
|
effectsMargin,
|
|
42
39
|
effectsScale,
|
|
43
|
-
encodePng,
|
|
44
40
|
findLayer,
|
|
45
41
|
flattenLayers,
|
|
46
42
|
gaussianBlur,
|
|
@@ -52,7 +48,6 @@ import {
|
|
|
52
48
|
isInterpolation,
|
|
53
49
|
isLayerEffectKind,
|
|
54
50
|
isLayerLocked,
|
|
55
|
-
isPng,
|
|
56
51
|
keysWeight,
|
|
57
52
|
layerEffectFields,
|
|
58
53
|
layerEffectLabel,
|
|
@@ -60,10 +55,8 @@ import {
|
|
|
60
55
|
mergeLayerEffect,
|
|
61
56
|
newEffectId,
|
|
62
57
|
normalizeLayerEffects,
|
|
63
|
-
parseDataUrl,
|
|
64
58
|
parseEffectColor,
|
|
65
59
|
patchEffectMaps,
|
|
66
|
-
pngDataUrl,
|
|
67
60
|
proxyOf,
|
|
68
61
|
readDeepRegion,
|
|
69
62
|
reduceSurface,
|
|
@@ -90,8 +83,16 @@ import {
|
|
|
90
83
|
warpSurface,
|
|
91
84
|
workingToSamples,
|
|
92
85
|
writeDeepRegion
|
|
93
|
-
} from "../chunk-
|
|
94
|
-
import
|
|
86
|
+
} from "../chunk-D53KSJUV.js";
|
|
87
|
+
import {
|
|
88
|
+
base64ToBytes,
|
|
89
|
+
bytesToBase64,
|
|
90
|
+
decodePng,
|
|
91
|
+
encodePng,
|
|
92
|
+
isPng,
|
|
93
|
+
parseDataUrl,
|
|
94
|
+
pngDataUrl
|
|
95
|
+
} from "../chunk-N3467VD6.js";
|
|
95
96
|
import {
|
|
96
97
|
BLEND_MODES,
|
|
97
98
|
PAINTERLY_BLEND_MODES,
|
|
@@ -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-Tfly4Aya.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Live appearance: path effect stacks and live boolean groups, evaluated on demand while the
|
|
@@ -665,4 +665,4 @@ declare function parseSvgTransform(value: string | undefined): AffineMatrix;
|
|
|
665
665
|
/** Parses SVG markup into a vector document. Throws when there is no `<svg>` element. */
|
|
666
666
|
declare function parseVectorSvg(svg: string, options?: VectorSvgImportOptions): VectorDocument;
|
|
667
667
|
|
|
668
|
-
export { isVectorGradient as $, type
|
|
668
|
+
export { isVectorGradient as $, type VectorSvgImportOptions as A, type VectorSvgWrapper as B, activeVectorEffects as C, activeVectorFilters as D, applyVectorCornersAttribute as E, applyVectorEffects as F, applyVectorGradientPatch as G, applyVectorGradientSpread as H, clearVectorLiveBooleanCache as I, convertVectorGradient as J, createVectorEffect as K, createVectorFilter as L, defaultVectorGradient as M, expandVectorAppearance as N, expandVectorAppearances as O, expandVectorGradientSpread as P, expandVectorGradientStops as Q, explicitVectorGradient as R, foldVectorBooleanOperands as S, gradientMidpointRemap as T, hasExplicitGradientGeometry as U, type VectorSvgExportOptions as V, hasOwnVectorAppearance as W, hasVectorAppearance as X, insertVectorGradientStop as Y, isCentredVectorGradient as Z, isVectorFilterType as _, type VectorGradientHandle as a, vectorNodeLocalPaintBounds as a$, isVectorLiveBoolean as a0, mapVectorGradient as a1, mapVectorPaint as a2, moveVectorGradientHandle as a3, moveVectorGradientStop as a4, normalizeVectorEffectParams as a5, normalizeVectorFilterParams as a6, parseSvgTransform as a7, parseVectorColor as a8, parseVectorSvg as a9, vectorEffectInputPaths as aA, vectorEnteredGroups as aB, vectorEnvelopeFrame as aC, vectorEnvelopeMap as aD, vectorEnvelopeMesh as aE, vectorFilterMarkup as aF, vectorFilterParamKeys as aG, vectorFilterReach as aH, vectorFilterSvg as aI, vectorGradientArea as aJ, vectorGradientAspect as aK, vectorGradientFocalParam as aL, vectorGradientHandles as aM, vectorGradientMatrix as aN, vectorGradientMidpointFromPosition as aO, vectorGradientMidpointPosition as aP, vectorGradientNeedsExpansion as aQ, vectorGradientParam as aR, vectorGradientPoints as aS, vectorGradientRamp as aT, vectorGradientSvgDefs as aU, vectorGradientTAt as aV, vectorGradientUnitsMatrix as aW, vectorInstanceDrawn as aX, vectorLiveBooleanSteps as aY, vectorNodeEnvelope as aZ, vectorNodeFilterSvg as a_, patternAttrs as aa, periodicVectorGradientStops as ab, pinVectorGradient as ac, removeVectorGradientStop as ad, reverseVectorGradient as ae, samplePlainStops as af, sampleVectorGradient as ag, sampleVectorGradientAt as ah, sampleVectorPaintDefAt as ai, sanitizeVectorEffects as aj, sanitizeVectorFilters as ak, sanitizeVectorGradient as al, setVectorGradientVector as am, sortedVectorGradientStops as an, spanVectorGradientStops as ao, transformVectorEffects as ap, transformVectorGradient as aq, transformVectorPaint as ar, vectorAppearanceNodes as as, vectorAppearanceOutline as at, vectorAppearanceShapes as au, vectorBoxMatrix as av, vectorChildAppearanceShapes as aw, vectorCornersAttribute as ax, vectorDocumentToSvg as ay, vectorEffectInputBounds as az, type VectorGradientPatch as b, vectorOperandOperation as b0, vectorPaintToSvg as b1, vectorPathLocalBounds as b2, vectorStrokeSvgParts as b3, widthProfileFromAttribute as b4, widthProfileToAttribute as b5, type VectorEnvelopeParams as c, type VectorRenderFilter as d, type VectorAppearanceShape as e, type VectorFilterParamSpec as f, type VectorEffectParamSpec as g, type VectorRenderStrokeParts as h, type VectorPaintDef as i, type VectorRgba as j, type VectorSvgPatternDef as k, VECTOR_EFFECT_DEFAULTS as l, VECTOR_EFFECT_LABELS as m, VECTOR_EFFECT_PARAM_SPECS as n, VECTOR_FILTER_DEFAULTS as o, VECTOR_FILTER_LABELS as p, VECTOR_FILTER_MENU as q, VECTOR_FILTER_PARAM_SPECS as r, VECTOR_GRADIENT_MAX_PERIODS as s, VECTOR_GRADIENT_MIN_STOPS as t, type VectorBooleanOperand as u, type VectorFilterPrimitive as v, type VectorGradientPoints as w, type VectorGradientRamp as x, type VectorGradientSvgOptions as y, type VectorPaintSvgOptions as z };
|
|
@@ -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-CDLGhAZp.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Live appearance: path effect stacks and live boolean groups, evaluated on demand while the
|
|
@@ -665,4 +665,4 @@ declare function parseSvgTransform(value: string | undefined): AffineMatrix;
|
|
|
665
665
|
/** Parses SVG markup into a vector document. Throws when there is no `<svg>` element. */
|
|
666
666
|
declare function parseVectorSvg(svg: string, options?: VectorSvgImportOptions): VectorDocument;
|
|
667
667
|
|
|
668
|
-
export { isVectorGradient as $, type
|
|
668
|
+
export { isVectorGradient as $, type VectorSvgImportOptions as A, type VectorSvgWrapper as B, activeVectorEffects as C, activeVectorFilters as D, applyVectorCornersAttribute as E, applyVectorEffects as F, applyVectorGradientPatch as G, applyVectorGradientSpread as H, clearVectorLiveBooleanCache as I, convertVectorGradient as J, createVectorEffect as K, createVectorFilter as L, defaultVectorGradient as M, expandVectorAppearance as N, expandVectorAppearances as O, expandVectorGradientSpread as P, expandVectorGradientStops as Q, explicitVectorGradient as R, foldVectorBooleanOperands as S, gradientMidpointRemap as T, hasExplicitGradientGeometry as U, type VectorSvgExportOptions as V, hasOwnVectorAppearance as W, hasVectorAppearance as X, insertVectorGradientStop as Y, isCentredVectorGradient as Z, isVectorFilterType as _, type VectorGradientHandle as a, vectorNodeLocalPaintBounds as a$, isVectorLiveBoolean as a0, mapVectorGradient as a1, mapVectorPaint as a2, moveVectorGradientHandle as a3, moveVectorGradientStop as a4, normalizeVectorEffectParams as a5, normalizeVectorFilterParams as a6, parseSvgTransform as a7, parseVectorColor as a8, parseVectorSvg as a9, vectorEffectInputPaths as aA, vectorEnteredGroups as aB, vectorEnvelopeFrame as aC, vectorEnvelopeMap as aD, vectorEnvelopeMesh as aE, vectorFilterMarkup as aF, vectorFilterParamKeys as aG, vectorFilterReach as aH, vectorFilterSvg as aI, vectorGradientArea as aJ, vectorGradientAspect as aK, vectorGradientFocalParam as aL, vectorGradientHandles as aM, vectorGradientMatrix as aN, vectorGradientMidpointFromPosition as aO, vectorGradientMidpointPosition as aP, vectorGradientNeedsExpansion as aQ, vectorGradientParam as aR, vectorGradientPoints as aS, vectorGradientRamp as aT, vectorGradientSvgDefs as aU, vectorGradientTAt as aV, vectorGradientUnitsMatrix as aW, vectorInstanceDrawn as aX, vectorLiveBooleanSteps as aY, vectorNodeEnvelope as aZ, vectorNodeFilterSvg as a_, patternAttrs as aa, periodicVectorGradientStops as ab, pinVectorGradient as ac, removeVectorGradientStop as ad, reverseVectorGradient as ae, samplePlainStops as af, sampleVectorGradient as ag, sampleVectorGradientAt as ah, sampleVectorPaintDefAt as ai, sanitizeVectorEffects as aj, sanitizeVectorFilters as ak, sanitizeVectorGradient as al, setVectorGradientVector as am, sortedVectorGradientStops as an, spanVectorGradientStops as ao, transformVectorEffects as ap, transformVectorGradient as aq, transformVectorPaint as ar, vectorAppearanceNodes as as, vectorAppearanceOutline as at, vectorAppearanceShapes as au, vectorBoxMatrix as av, vectorChildAppearanceShapes as aw, vectorCornersAttribute as ax, vectorDocumentToSvg as ay, vectorEffectInputBounds as az, type VectorGradientPatch as b, vectorOperandOperation as b0, vectorPaintToSvg as b1, vectorPathLocalBounds as b2, vectorStrokeSvgParts as b3, widthProfileFromAttribute as b4, widthProfileToAttribute as b5, type VectorEnvelopeParams as c, type VectorRenderFilter as d, type VectorAppearanceShape as e, type VectorFilterParamSpec as f, type VectorEffectParamSpec as g, type VectorRenderStrokeParts as h, type VectorPaintDef as i, type VectorRgba as j, type VectorSvgPatternDef as k, VECTOR_EFFECT_DEFAULTS as l, VECTOR_EFFECT_LABELS as m, VECTOR_EFFECT_PARAM_SPECS as n, VECTOR_FILTER_DEFAULTS as o, VECTOR_FILTER_LABELS as p, VECTOR_FILTER_MENU as q, VECTOR_FILTER_PARAM_SPECS as r, VECTOR_GRADIENT_MAX_PERIODS as s, VECTOR_GRADIENT_MIN_STOPS as t, type VectorBooleanOperand as u, type VectorFilterPrimitive as v, type VectorGradientPoints as w, type VectorGradientRamp as x, type VectorGradientSvgOptions as y, type VectorPaintSvgOptions as z };
|
|
@@ -151,7 +151,45 @@ interface VectorGradient {
|
|
|
151
151
|
strokeMode?: VectorStrokeGradientMode;
|
|
152
152
|
}
|
|
153
153
|
/** A fill or stroke: any CSS colour, a gradient, or `null` / `'none'` for no paint. */
|
|
154
|
-
type VectorPaint = string | VectorGradient | CanvasGradientDef | null;
|
|
154
|
+
type VectorPaint = string | VectorGradient | VectorMeshGradient | VectorFreeformGradient | CanvasGradientDef | null;
|
|
155
|
+
/**
|
|
156
|
+
* A gradient mesh (Illustrator's Gradient Mesh, PDF shading types 6 and 7): a lattice of
|
|
157
|
+
* `(rows + 1) × (columns + 1)` points in the node's own space, row by row, each with a colour.
|
|
158
|
+
* Each cell is a smooth patch whose sides are curves through the lattice and whose colour blends
|
|
159
|
+
* between its four corners. Outside the patches the paint is transparent.
|
|
160
|
+
*/
|
|
161
|
+
interface VectorMeshGradient {
|
|
162
|
+
type: 'mesh';
|
|
163
|
+
rows: number;
|
|
164
|
+
columns: number;
|
|
165
|
+
/** Lattice points, row by row (`(rows + 1) × (columns + 1)` of them). */
|
|
166
|
+
points: Vec2[];
|
|
167
|
+
/** A CSS colour per point. */
|
|
168
|
+
colors: string[];
|
|
169
|
+
/** Opacity per point (0–1, default 1 each). */
|
|
170
|
+
opacities?: number[];
|
|
171
|
+
}
|
|
172
|
+
/** One colour point of a freeform gradient. */
|
|
173
|
+
interface VectorFreeformPoint {
|
|
174
|
+
x: number;
|
|
175
|
+
y: number;
|
|
176
|
+
color: string;
|
|
177
|
+
/** 0–1, default 1. */
|
|
178
|
+
opacity?: number;
|
|
179
|
+
/** Radius of the disc of pure colour round the point, as a fraction of half the box's longer side (0–1, default 0). */
|
|
180
|
+
spread?: number;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* A freeform gradient (Illustrator's Freeform Gradient): colour points placed anywhere in the
|
|
184
|
+
* node's own space, blended across the shape by distance, and optional smooth lines through some
|
|
185
|
+
* of them that carry their colours along their length.
|
|
186
|
+
*/
|
|
187
|
+
interface VectorFreeformGradient {
|
|
188
|
+
type: 'freeform';
|
|
189
|
+
points: VectorFreeformPoint[];
|
|
190
|
+
/** Each line runs smoothly through the points at these indices, in order. */
|
|
191
|
+
lines?: number[][];
|
|
192
|
+
}
|
|
155
193
|
type VectorFillRule = 'nonzero' | 'evenodd';
|
|
156
194
|
type VectorLineCap = 'butt' | 'round' | 'square';
|
|
157
195
|
type VectorLineJoin = 'miter' | 'round' | 'bevel';
|
|
@@ -896,4 +934,4 @@ type VectorFilter = {
|
|
|
896
934
|
};
|
|
897
935
|
}[VectorFilterType];
|
|
898
936
|
|
|
899
|
-
export { type VectorAlign as $, type VectorTextNode as A, type VectorAnchorType as B, type VectorCornerKind as C, type VectorViewport as D, type VectorConnectorRoute as E, type VectorConnectorSide as F, type VectorConnectorEnd as G, type VectorConnector as H, type VectorConstraintKind as I, type VectorConstraint as J, type VectorCharacterStyle as K, type VectorTextRun as L, type VectorParagraphStyle as M, type VectorTextFrame as N, type VectorTransformHandle as O, type VectorAnchorRef as P, type VectorPathfinderOperation as Q, type VectorTool as R, type VectorDefaults as S, type VectorTextAlign as T, type VectorStyle as U, type VectorEffectType as V, type VectorHandleRef as W, type VectorSegmentRef as X, type VectorBlendOptions as Y, type VectorModifiers as Z, type VectorBlendMode as _, type VectorEffectParamsMap as a, type VectorDistribute as a0, type VectorArrange as a1, type VectorMaskType as a2, type
|
|
937
|
+
export { type VectorAlign as $, type VectorTextNode as A, type VectorAnchorType as B, type VectorCornerKind as C, type VectorViewport as D, type VectorConnectorRoute as E, type VectorConnectorSide as F, type VectorConnectorEnd as G, type VectorConnector as H, type VectorConstraintKind as I, type VectorConstraint as J, type VectorCharacterStyle as K, type VectorTextRun as L, type VectorParagraphStyle as M, type VectorTextFrame as N, type VectorTransformHandle as O, type VectorAnchorRef as P, type VectorPathfinderOperation as Q, type VectorTool as R, type VectorDefaults as S, type VectorTextAlign as T, type VectorStyle as U, type VectorEffectType as V, type VectorHandleRef as W, type VectorSegmentRef as X, type VectorBlendOptions as Y, type VectorModifiers as Z, type VectorBlendMode as _, type VectorEffectParamsMap as a, type VectorDistribute as a0, type VectorArrange as a1, type VectorMaskType as a2, type VectorFreeformPoint as a3, type VectorMeshGradient as a4, type VectorFreeformGradient as a5, type VectorArrowhead as a6, type VectorResizing as a7, type VectorFrame as a8, type VectorHorizontalResizing as a9, VECTOR_GRADIENT_SPREADS as aA, VECTOR_GRADIENT_TYPES as aB, VECTOR_HORIZONTAL_RESIZING as aC, VECTOR_MASK_TYPES as aD, VECTOR_MERGE_MODES as aE, VECTOR_PATHFINDER_OPERATIONS as aF, VECTOR_PATH_TEXT_BASELINES as aG, VECTOR_STROKE_GRADIENT_MODES as aH, VECTOR_TEXT_ALIGNS as aI, VECTOR_TOOLS as aJ, VECTOR_TRANSFORM_HANDLES as aK, VECTOR_VERTICAL_RESIZING as aL, type VectorCorner as aM, type VectorGeomRef as aN, type VectorLineCap as aO, type VectorPathTextBaseline as aP, type VectorStrokeLayerKind as aQ, type VectorTextRunStyle as aR, type VectorWarpStyle as aS, type VectorVerticalResizing as aa, type VectorMask as ab, type VectorAverageAxis as ac, type VectorSymbol as ad, type VectorParameter as ae, type VectorBlendSpacing as af, type VectorGradientInterpolation as ag, type VectorStrokeGradientMode as ah, type VectorArrowAlign as ai, type VectorPaintLayer as aj, type VectorStrokeLayer as ak, type VectorBlend as al, type VectorMergeMode as am, type VectorLineJoin as an, type VectorStrokeSettings as ao, type VectorInstanceOverrides as ap, VECTOR_ARROWHEADS as aq, VECTOR_BLEND_MODES as ar, VECTOR_BLEND_SPACINGS as as, VECTOR_CONNECTOR_ROUTES as at, VECTOR_CONNECTOR_SIDES as au, VECTOR_CONSTRAINT_KINDS as av, VECTOR_CORNER_KINDS as aw, VECTOR_EFFECT_TYPES as ax, VECTOR_FILTER_TYPES as ay, VECTOR_GRADIENT_INTERPOLATIONS as az, type VectorPathNode as b, type VectorFillRule as c, type VectorBooleanOperation as d, type VectorNode as e, type VectorEffect as f, type VectorGroupNode as g, type VectorBounds as h, type VectorWarpMesh as i, type VectorInstanceNode as j, type VectorFilterType as k, type VectorFilterParamsMap as l, type VectorFilter as m, type VectorGradient as n, type Vec2 as o, type VectorGradientUnits as p, type VectorGradientSpread as q, type VectorGradientType as r, type VectorPaint as s, type VectorMatrix as t, type VectorGradientStop as u, type VectorStrokeAlign as v, type VectorSubpath as w, type VectorDocument as x, type VectorWidthPoint as y, type VectorAnchor as z };
|
|
@@ -151,7 +151,45 @@ interface VectorGradient {
|
|
|
151
151
|
strokeMode?: VectorStrokeGradientMode;
|
|
152
152
|
}
|
|
153
153
|
/** A fill or stroke: any CSS colour, a gradient, or `null` / `'none'` for no paint. */
|
|
154
|
-
type VectorPaint = string | VectorGradient | CanvasGradientDef | null;
|
|
154
|
+
type VectorPaint = string | VectorGradient | VectorMeshGradient | VectorFreeformGradient | CanvasGradientDef | null;
|
|
155
|
+
/**
|
|
156
|
+
* A gradient mesh (Illustrator's Gradient Mesh, PDF shading types 6 and 7): a lattice of
|
|
157
|
+
* `(rows + 1) × (columns + 1)` points in the node's own space, row by row, each with a colour.
|
|
158
|
+
* Each cell is a smooth patch whose sides are curves through the lattice and whose colour blends
|
|
159
|
+
* between its four corners. Outside the patches the paint is transparent.
|
|
160
|
+
*/
|
|
161
|
+
interface VectorMeshGradient {
|
|
162
|
+
type: 'mesh';
|
|
163
|
+
rows: number;
|
|
164
|
+
columns: number;
|
|
165
|
+
/** Lattice points, row by row (`(rows + 1) × (columns + 1)` of them). */
|
|
166
|
+
points: Vec2[];
|
|
167
|
+
/** A CSS colour per point. */
|
|
168
|
+
colors: string[];
|
|
169
|
+
/** Opacity per point (0–1, default 1 each). */
|
|
170
|
+
opacities?: number[];
|
|
171
|
+
}
|
|
172
|
+
/** One colour point of a freeform gradient. */
|
|
173
|
+
interface VectorFreeformPoint {
|
|
174
|
+
x: number;
|
|
175
|
+
y: number;
|
|
176
|
+
color: string;
|
|
177
|
+
/** 0–1, default 1. */
|
|
178
|
+
opacity?: number;
|
|
179
|
+
/** Radius of the disc of pure colour round the point, as a fraction of half the box's longer side (0–1, default 0). */
|
|
180
|
+
spread?: number;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* A freeform gradient (Illustrator's Freeform Gradient): colour points placed anywhere in the
|
|
184
|
+
* node's own space, blended across the shape by distance, and optional smooth lines through some
|
|
185
|
+
* of them that carry their colours along their length.
|
|
186
|
+
*/
|
|
187
|
+
interface VectorFreeformGradient {
|
|
188
|
+
type: 'freeform';
|
|
189
|
+
points: VectorFreeformPoint[];
|
|
190
|
+
/** Each line runs smoothly through the points at these indices, in order. */
|
|
191
|
+
lines?: number[][];
|
|
192
|
+
}
|
|
155
193
|
type VectorFillRule = 'nonzero' | 'evenodd';
|
|
156
194
|
type VectorLineCap = 'butt' | 'round' | 'square';
|
|
157
195
|
type VectorLineJoin = 'miter' | 'round' | 'bevel';
|
|
@@ -896,4 +934,4 @@ type VectorFilter = {
|
|
|
896
934
|
};
|
|
897
935
|
}[VectorFilterType];
|
|
898
936
|
|
|
899
|
-
export { type VectorAlign as $, type VectorTextNode as A, type VectorAnchorType as B, type VectorCornerKind as C, type VectorViewport as D, type VectorConnectorRoute as E, type VectorConnectorSide as F, type VectorConnectorEnd as G, type VectorConnector as H, type VectorConstraintKind as I, type VectorConstraint as J, type VectorCharacterStyle as K, type VectorTextRun as L, type VectorParagraphStyle as M, type VectorTextFrame as N, type VectorTransformHandle as O, type VectorAnchorRef as P, type VectorPathfinderOperation as Q, type VectorTool as R, type VectorDefaults as S, type VectorTextAlign as T, type VectorStyle as U, type VectorEffectType as V, type VectorHandleRef as W, type VectorSegmentRef as X, type VectorBlendOptions as Y, type VectorModifiers as Z, type VectorBlendMode as _, type VectorEffectParamsMap as a, type VectorDistribute as a0, type VectorArrange as a1, type VectorMaskType as a2, type
|
|
937
|
+
export { type VectorAlign as $, type VectorTextNode as A, type VectorAnchorType as B, type VectorCornerKind as C, type VectorViewport as D, type VectorConnectorRoute as E, type VectorConnectorSide as F, type VectorConnectorEnd as G, type VectorConnector as H, type VectorConstraintKind as I, type VectorConstraint as J, type VectorCharacterStyle as K, type VectorTextRun as L, type VectorParagraphStyle as M, type VectorTextFrame as N, type VectorTransformHandle as O, type VectorAnchorRef as P, type VectorPathfinderOperation as Q, type VectorTool as R, type VectorDefaults as S, type VectorTextAlign as T, type VectorStyle as U, type VectorEffectType as V, type VectorHandleRef as W, type VectorSegmentRef as X, type VectorBlendOptions as Y, type VectorModifiers as Z, type VectorBlendMode as _, type VectorEffectParamsMap as a, type VectorDistribute as a0, type VectorArrange as a1, type VectorMaskType as a2, type VectorFreeformPoint as a3, type VectorMeshGradient as a4, type VectorFreeformGradient as a5, type VectorArrowhead as a6, type VectorResizing as a7, type VectorFrame as a8, type VectorHorizontalResizing as a9, VECTOR_GRADIENT_SPREADS as aA, VECTOR_GRADIENT_TYPES as aB, VECTOR_HORIZONTAL_RESIZING as aC, VECTOR_MASK_TYPES as aD, VECTOR_MERGE_MODES as aE, VECTOR_PATHFINDER_OPERATIONS as aF, VECTOR_PATH_TEXT_BASELINES as aG, VECTOR_STROKE_GRADIENT_MODES as aH, VECTOR_TEXT_ALIGNS as aI, VECTOR_TOOLS as aJ, VECTOR_TRANSFORM_HANDLES as aK, VECTOR_VERTICAL_RESIZING as aL, type VectorCorner as aM, type VectorGeomRef as aN, type VectorLineCap as aO, type VectorPathTextBaseline as aP, type VectorStrokeLayerKind as aQ, type VectorTextRunStyle as aR, type VectorWarpStyle as aS, type VectorVerticalResizing as aa, type VectorMask as ab, type VectorAverageAxis as ac, type VectorSymbol as ad, type VectorParameter as ae, type VectorBlendSpacing as af, type VectorGradientInterpolation as ag, type VectorStrokeGradientMode as ah, type VectorArrowAlign as ai, type VectorPaintLayer as aj, type VectorStrokeLayer as ak, type VectorBlend as al, type VectorMergeMode as am, type VectorLineJoin as an, type VectorStrokeSettings as ao, type VectorInstanceOverrides as ap, VECTOR_ARROWHEADS as aq, VECTOR_BLEND_MODES as ar, VECTOR_BLEND_SPACINGS as as, VECTOR_CONNECTOR_ROUTES as at, VECTOR_CONNECTOR_SIDES as au, VECTOR_CONSTRAINT_KINDS as av, VECTOR_CORNER_KINDS as aw, VECTOR_EFFECT_TYPES as ax, VECTOR_FILTER_TYPES as ay, VECTOR_GRADIENT_INTERPOLATIONS as az, type VectorPathNode as b, type VectorFillRule as c, type VectorBooleanOperation as d, type VectorNode as e, type VectorEffect as f, type VectorGroupNode as g, type VectorBounds as h, type VectorWarpMesh as i, type VectorInstanceNode as j, type VectorFilterType as k, type VectorFilterParamsMap as l, type VectorFilter as m, type VectorGradient as n, type Vec2 as o, type VectorGradientUnits as p, type VectorGradientSpread as q, type VectorGradientType as r, type VectorPaint as s, type VectorMatrix as t, type VectorGradientStop as u, type VectorStrokeAlign as v, type VectorSubpath as w, type VectorDocument as x, type VectorWidthPoint as y, type VectorAnchor as z };
|