@pixerate/editor 0.106.0 → 0.108.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 +4 -0
- package/dist/animation-editor/index.cjs +39 -39
- package/dist/animation-editor/index.d.cts +1 -1
- package/dist/animation-editor/index.d.ts +1 -1
- package/dist/animation-editor/index.js +1 -1
- package/dist/{chunk-DS7KDKPX.js → chunk-3PHA3UKI.js} +2 -2
- package/dist/{chunk-ZID226ZG.cjs → chunk-FRD3FUXI.cjs} +172 -172
- package/dist/{chunk-ZID226ZG.cjs.map → chunk-FRD3FUXI.cjs.map} +1 -1
- package/dist/{chunk-67FRIOPZ.js → chunk-G4BIYE6R.js} +2 -2
- package/dist/{chunk-PV42JITT.cjs → chunk-HUFQD4CB.cjs} +44 -44
- package/dist/{chunk-PV42JITT.cjs.map → chunk-HUFQD4CB.cjs.map} +1 -1
- package/dist/{chunk-63EFQCT5.js → chunk-HUQ7EHVI.js} +1140 -371
- package/dist/chunk-HUQ7EHVI.js.map +1 -0
- package/dist/{chunk-4X5MIVCE.js → chunk-SOROZ2BF.js} +3 -3
- package/dist/{chunk-CRMAXIUV.cjs → chunk-SZ6KMZNM.cjs} +157 -8
- package/dist/chunk-SZ6KMZNM.cjs.map +1 -0
- package/dist/{chunk-WSTEXEKD.cjs → chunk-T3QZ6S47.cjs} +92 -92
- package/dist/{chunk-WSTEXEKD.cjs.map → chunk-T3QZ6S47.cjs.map} +1 -1
- package/dist/{chunk-KANRAHTL.cjs → chunk-UTEVPQTS.cjs} +1353 -584
- package/dist/chunk-UTEVPQTS.cjs.map +1 -0
- package/dist/{chunk-HEW6KDNI.js → chunk-WMBIJCHA.js} +155 -6
- package/dist/chunk-WMBIJCHA.js.map +1 -0
- package/dist/{compositor-Bc3PNP3C.d.cts → compositor-D92URMlm.d.cts} +1 -1
- package/dist/{compositor-BsYYllvR.d.ts → compositor-Kt_M4ruo.d.ts} +1 -1
- package/dist/{export-_m3Es4ru.d.cts → export-JGWQEPJn.d.cts} +3 -3
- package/dist/{export-iMrop3Jm.d.ts → export-a9bnF7Cl.d.ts} +3 -3
- package/dist/image-editor/index.cjs +627 -619
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +8 -8
- package/dist/image-editor/index.d.ts +8 -8
- package/dist/image-editor/index.js +12 -4
- package/dist/image-editor/index.js.map +1 -1
- package/dist/{mixer-C1M1Nua_.d.cts → mixer-5ziHU8OS.d.cts} +1 -1
- package/dist/{mixer-Cu5a9Bzd.d.ts → mixer-DNqiYXYQ.d.ts} +1 -1
- package/dist/paint/index.cjs +3 -3
- package/dist/paint/index.d.cts +2 -2
- package/dist/paint/index.d.ts +2 -2
- package/dist/paint/index.js +2 -2
- package/dist/paint-editor/index.cjs +365 -132
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +113 -8
- package/dist/paint-editor/index.d.ts +113 -8
- package/dist/paint-editor/index.js +249 -16
- package/dist/paint-editor/index.js.map +1 -1
- package/dist/raster/index.cjs +11 -3
- package/dist/raster/index.cjs.map +1 -1
- package/dist/raster/index.d.cts +4 -4
- package/dist/raster/index.d.ts +4 -4
- package/dist/raster/index.js +10 -2
- package/dist/{surface-BBJN9wxg.d.ts → surface-CkKOHGPm.d.cts} +20 -2
- package/dist/{surface-BBJN9wxg.d.cts → surface-CkKOHGPm.d.ts} +20 -2
- package/dist/{svg-Bj1MQFh6.d.cts → svg-ClVIG4T7.d.cts} +26 -2
- package/dist/{svg-vme0PLNo.d.ts → svg-SseJTIrA.d.ts} +26 -2
- package/dist/vector/index.cjs +977 -948
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +266 -7
- package/dist/vector/index.d.ts +266 -7
- package/dist/vector/index.js +427 -398
- package/dist/vector/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/pixerate-image-editor/SKILL.md +50 -7
- package/skills/pixerate-paint-editor/SKILL.md +21 -1
- package/skills/pixerate-vector/SKILL.md +35 -5
- package/dist/chunk-63EFQCT5.js.map +0 -1
- package/dist/chunk-CRMAXIUV.cjs.map +0 -1
- package/dist/chunk-HEW6KDNI.js.map +0 -1
- package/dist/chunk-KANRAHTL.cjs.map +0 -1
- /package/dist/{chunk-DS7KDKPX.js.map → chunk-3PHA3UKI.js.map} +0 -0
- /package/dist/{chunk-67FRIOPZ.js.map → chunk-G4BIYE6R.js.map} +0 -0
- /package/dist/{chunk-4X5MIVCE.js.map → chunk-SOROZ2BF.js.map} +0 -0
package/dist/raster/index.cjs
CHANGED
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkT3QZ6S47cjs = require('../chunk-T3QZ6S47.cjs');
|
|
75
75
|
require('../chunk-MUUXNRU4.cjs');
|
|
76
76
|
|
|
77
77
|
|
|
@@ -110,11 +110,11 @@ require('../chunk-MUUXNRU4.cjs');
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
var _chunkCRMAXIUVcjs = require('../chunk-CRMAXIUV.cjs');
|
|
114
113
|
|
|
115
114
|
|
|
116
115
|
|
|
117
116
|
|
|
117
|
+
var _chunkSZ6KMZNMcjs = require('../chunk-SZ6KMZNM.cjs');
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
|
|
@@ -220,5 +220,13 @@ var _chunkCRMAXIUVcjs = require('../chunk-CRMAXIUV.cjs');
|
|
|
220
220
|
|
|
221
221
|
|
|
222
222
|
|
|
223
|
-
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
exports.BLEND_MODES = _chunkSZ6KMZNMcjs.BLEND_MODES; exports.CURVE_LUT_SIZE = _chunkT3QZ6S47cjs.CURVE_LUT_SIZE; exports.DEFAULT_GLOBAL_LIGHT = _chunkT3QZ6S47cjs.DEFAULT_GLOBAL_LIGHT; exports.DIRECT_GAUSSIAN_MAX_SIGMA = _chunkT3QZ6S47cjs.DIRECT_GAUSSIAN_MAX_SIGMA; exports.INTERPOLATIONS = _chunkT3QZ6S47cjs.INTERPOLATIONS; exports.LAYER_EFFECT_KINDS = _chunkT3QZ6S47cjs.LAYER_EFFECT_KINDS; exports.LayerEffectError = _chunkT3QZ6S47cjs.LayerEffectError; exports.MAX_EFFECT_REACH = _chunkT3QZ6S47cjs.MAX_EFFECT_REACH; exports.MAX_TRANSFORM_PIXELS = _chunkT3QZ6S47cjs.MAX_TRANSFORM_PIXELS; exports.PAINTERLY_BLEND_MODES = _chunkSZ6KMZNMcjs.PAINTERLY_BLEND_MODES; exports.PatternPlacement = _chunkT3QZ6S47cjs.PatternPlacement; exports.PatternTile = _chunkT3QZ6S47cjs.PatternTile; exports.RasterCompositor = _chunkT3QZ6S47cjs.RasterCompositor; exports.SHADOW_AMBIENT = _chunkSZ6KMZNMcjs.SHADOW_AMBIENT; exports.STROKE_CHAMFER_MAX = _chunkT3QZ6S47cjs.STROKE_CHAMFER_MAX; exports.SurfaceDraft = _chunkSZ6KMZNMcjs.SurfaceDraft; exports.TILE = _chunkSZ6KMZNMcjs.TILE; exports.TILE_SHIFT = _chunkSZ6KMZNMcjs.TILE_SHIFT; exports.TiledSurface = _chunkSZ6KMZNMcjs.TiledSurface; exports.TransformTooLargeError = _chunkT3QZ6S47cjs.TransformTooLargeError; exports.ZlibError = _chunkT3QZ6S47cjs.ZlibError; exports.activeEffectItems = _chunkT3QZ6S47cjs.activeEffectItems; exports.adler32 = _chunkT3QZ6S47cjs.adler32; exports.base64ToBytes = _chunkT3QZ6S47cjs.base64ToBytes; exports.blendChannel = _chunkSZ6KMZNMcjs.blendChannel; exports.blendImageData = _chunkSZ6KMZNMcjs.blendImageData; exports.blendLum = _chunkSZ6KMZNMcjs.blendLum; exports.blendPixel = _chunkSZ6KMZNMcjs.blendPixel; exports.blendRgb = _chunkSZ6KMZNMcjs.blendRgb; exports.blendTile = _chunkT3QZ6S47cjs.blendTile; exports.buildEffectMaps = _chunkT3QZ6S47cjs.buildEffectMaps; exports.builtinPattern = _chunkT3QZ6S47cjs.builtinPattern; exports.builtinPatternIds = _chunkT3QZ6S47cjs.builtinPatternIds; exports.bytesToBase64 = _chunkT3QZ6S47cjs.bytesToBase64; exports.canvasCompositeOperation = _chunkSZ6KMZNMcjs.canvasCompositeOperation; exports.changedTiles = _chunkT3QZ6S47cjs.changedTiles; exports.collectTiles = _chunkSZ6KMZNMcjs.collectTiles; exports.compositeLayerEffects = _chunkT3QZ6S47cjs.compositeLayerEffects; exports.compositeSurfaceOver = _chunkT3QZ6S47cjs.compositeSurfaceOver; exports.contentBounds = _chunkSZ6KMZNMcjs.contentBounds; exports.contourLut = _chunkT3QZ6S47cjs.contourLut; exports.curveLut = _chunkT3QZ6S47cjs.curveLut; exports.decodePng = _chunkT3QZ6S47cjs.decodePng; exports.defaultEffectGradient = _chunkT3QZ6S47cjs.defaultEffectGradient; exports.defaultLayerEffect = _chunkT3QZ6S47cjs.defaultLayerEffect; exports.deflate = _chunkT3QZ6S47cjs.deflate; exports.deflateRaw = _chunkT3QZ6S47cjs.deflateRaw; exports.effectColorHex = _chunkT3QZ6S47cjs.effectColorHex; exports.effectReach = _chunkT3QZ6S47cjs.effectReach; exports.effectsAreLocal = _chunkT3QZ6S47cjs.effectsAreLocal; exports.effectsFingerprint = _chunkT3QZ6S47cjs.effectsFingerprint; exports.effectsMargin = _chunkT3QZ6S47cjs.effectsMargin; exports.effectsScale = _chunkT3QZ6S47cjs.effectsScale; exports.emptySurface = _chunkSZ6KMZNMcjs.emptySurface; exports.encodePng = _chunkT3QZ6S47cjs.encodePng; exports.fillRect = _chunkSZ6KMZNMcjs.fillRect; exports.findLayer = _chunkT3QZ6S47cjs.findLayer; exports.finishTile = _chunkSZ6KMZNMcjs.finishTile; exports.flattenLayers = _chunkT3QZ6S47cjs.flattenLayers; exports.gaussianBlur = _chunkT3QZ6S47cjs.gaussianBlur; exports.gradientT = _chunkT3QZ6S47cjs.gradientT; exports.hasActiveEffects = _chunkT3QZ6S47cjs.hasActiveEffects; exports.hashNoise = _chunkT3QZ6S47cjs.hashNoise; exports.inflate = _chunkT3QZ6S47cjs.inflate; exports.inflateRaw = _chunkT3QZ6S47cjs.inflateRaw; exports.insertLayer = _chunkT3QZ6S47cjs.insertLayer; exports.isBlendMode = _chunkSZ6KMZNMcjs.isBlendMode; exports.isInterpolation = _chunkT3QZ6S47cjs.isInterpolation; exports.isLayerEffectKind = _chunkT3QZ6S47cjs.isLayerEffectKind; exports.isLayerLocked = _chunkT3QZ6S47cjs.isLayerLocked; exports.isPainterlyBlendMode = _chunkSZ6KMZNMcjs.isPainterlyBlendMode; exports.isPng = _chunkT3QZ6S47cjs.isPng; exports.isSeparableBlendMode = _chunkSZ6KMZNMcjs.isSeparableBlendMode; exports.keysWeight = _chunkT3QZ6S47cjs.keysWeight; exports.layerEffectFields = _chunkT3QZ6S47cjs.layerEffectFields; exports.layerEffectLabel = _chunkT3QZ6S47cjs.layerEffectLabel; exports.mapLayer = _chunkT3QZ6S47cjs.mapLayer; exports.mergeLayerEffect = _chunkT3QZ6S47cjs.mergeLayerEffect; exports.mixPigment8 = _chunkSZ6KMZNMcjs.mixPigment8; exports.mixPigmentRgb = _chunkSZ6KMZNMcjs.mixPigmentRgb; exports.newEffectId = _chunkT3QZ6S47cjs.newEffectId; exports.normalizeBlendMode = _chunkSZ6KMZNMcjs.normalizeBlendMode; exports.normalizeLayerEffects = _chunkT3QZ6S47cjs.normalizeLayerEffects; exports.packRgba = _chunkSZ6KMZNMcjs.packRgba; exports.parseDataUrl = _chunkT3QZ6S47cjs.parseDataUrl; exports.parseEffectColor = _chunkT3QZ6S47cjs.parseEffectColor; exports.patchEffectMaps = _chunkT3QZ6S47cjs.patchEffectMaps; exports.pngDataUrl = _chunkT3QZ6S47cjs.pngDataUrl; exports.readPixel = _chunkSZ6KMZNMcjs.readPixel; exports.readRegion = _chunkSZ6KMZNMcjs.readRegion; exports.reduceSurface = _chunkT3QZ6S47cjs.reduceSurface; exports.renderLayerEffects = _chunkT3QZ6S47cjs.renderLayerEffects; exports.scaleLayerEffect = _chunkT3QZ6S47cjs.scaleLayerEffect; exports.setLum = _chunkSZ6KMZNMcjs.setLum; exports.solidSurface = _chunkSZ6KMZNMcjs.solidSurface; exports.standardBlendMode = _chunkSZ6KMZNMcjs.standardBlendMode; exports.surfaceBytes = _chunkSZ6KMZNMcjs.surfaceBytes; exports.surfaceFromPixels = _chunkSZ6KMZNMcjs.surfaceFromPixels; exports.surfacesEqual = _chunkSZ6KMZNMcjs.surfacesEqual; exports.tileCoord = _chunkSZ6KMZNMcjs.tileCoord; exports.tileKey = _chunkSZ6KMZNMcjs.tileKey; exports.tileRect = _chunkSZ6KMZNMcjs.tileRect; exports.tilesInRect = _chunkSZ6KMZNMcjs.tilesInRect; exports.transformSurface = _chunkT3QZ6S47cjs.transformSurface; exports.transformedBounds = _chunkT3QZ6S47cjs.transformedBounds; exports.translateSurface = _chunkSZ6KMZNMcjs.translateSurface; exports.uniformTile = _chunkSZ6KMZNMcjs.uniformTile; exports.validateEffectGradient = _chunkT3QZ6S47cjs.validateEffectGradient; exports.validateLayerEffect = _chunkT3QZ6S47cjs.validateLayerEffect; exports.validateLayerEffects = _chunkT3QZ6S47cjs.validateLayerEffects; exports.warpSurface = _chunkT3QZ6S47cjs.warpSurface; exports.writeRegion = _chunkSZ6KMZNMcjs.writeRegion;
|
|
224
232
|
//# 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;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;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;AACF,
|
|
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;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;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;AACF,60MAAC","file":"/home/runner/work/editor/editor/packages/core/dist/raster/index.cjs"}
|
package/dist/raster/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BlendMode } from '../surface-
|
|
2
|
-
export {
|
|
3
|
-
import { j as LayerEffects, g as GlobalLight, W as PatternTile, i as LayerEffect, v as EffectContour, J as GradientStyle } from '../compositor-
|
|
4
|
-
export { B as BevelContour, m as BevelEmbossEffect, n as BevelStyle, o as BevelTechnique, p as BevelTexture, q as ColorOverlayEffect, r as CompositeCallOptions, s as CompositeStats, C as CompositorLayer, k as CompositorOptions, aA as CompositorProfile, t as ContourPoint, D as DEFAULT_GLOBAL_LIGHT, u as DropShadowEffect, w as EffectFill, x as EffectGradient, E as EffectPattern, y as EffectPatternRef, z as GlowTechnique, A as GradientColorStop, F as GradientOpacityStop, H as GradientOverlayEffect, G as GroupBlendMode, aB as GroupIn, K as INTERPOLATIONS, M as InnerGlowEffect, N as InnerShadowEffect, I as Interpolation, O as LAYER_EFFECT_KINDS, P as LayerEffectError, l as LayerEffectKind, h as LayerLocation, L as LayerLocks, Q as MAX_EFFECT_REACH, S as MAX_TRANSFORM_PIXELS, T as OuterGlowEffect, U as PatternOverlayEffect, V as PatternPlacement, aC as PixelFilterSpec, c as RasterCompositor, a as RasterGroupLayer, R as RasterLayer, e as RasterLayerBase, f as RasterMask, aD as RasterNode, b as RasterPixelLayer, d as RasterSources, X as ResampleOptions, Y as SatinEffect, Z as StrokeEffect, _ as StrokePosition, $ as TransformTooLargeError, a0 as blendTile, a1 as builtinPattern, a2 as builtinPatternIds, a3 as changedTiles, a4 as compositeSurfaceOver, a5 as defaultEffectGradient, a6 as defaultLayerEffect, a7 as effectColorHex, a8 as effectReach, a9 as effectsFingerprint, aa as effectsMargin, ab as effectsScale, ac as findLayer, ad as flattenLayers, ae as hasActiveEffects, af as hashNoise, ag as insertLayer, ah as isInterpolation, ai as isLayerEffectKind, aj as isLayerLocked, ak as keysWeight, al as layerEffectFields, am as layerEffectLabel, an as mapLayer, ao as mergeLayerEffect, ap as newEffectId, aq as normalizeLayerEffects, ar as parseEffectColor, as as reduceSurface, at as scaleLayerEffect, au as transformSurface, av as transformedBounds, aw as validateEffectGradient, ax as validateLayerEffect, ay as validateLayerEffects, az as warpSurface } from '../compositor-
|
|
1
|
+
import { B as BlendMode } from '../surface-CkKOHGPm.cjs';
|
|
2
|
+
export { c as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, d as PAINTERLY_BLEND_MODES, P as PixelSurface, R as RasterRect, g as Rgb, h as Rgba, S as SHADOW_AMBIENT, j as SurfaceDraft, k as TILE, l as TILE_SHIFT, e as Tile, T as TileKey, a as TiledSurface, m as blendChannel, n as blendImageData, o as blendLum, p as blendPixel, q as blendRgb, r as canvasCompositeOperation, t as collectTiles, u as contentBounds, v as emptySurface, w as fillRect, x as finishTile, i as isBlendMode, f as isPainterlyBlendMode, y as isSeparableBlendMode, z as mixPigment8, A as mixPigmentRgb, C as normalizeBlendMode, D as packRgba, E as readPixel, F as readRegion, G as setLum, H as solidSurface, s as standardBlendMode, I as surfaceBytes, J as surfaceFromPixels, K as surfacesEqual, L as tileCoord, N as tileKey, O as tileRect, Q as tilesInRect, U as translateSurface, V as uniformTile, W as writeRegion } from '../surface-CkKOHGPm.cjs';
|
|
3
|
+
import { j as LayerEffects, g as GlobalLight, W as PatternTile, i as LayerEffect, v as EffectContour, J as GradientStyle } from '../compositor-D92URMlm.cjs';
|
|
4
|
+
export { B as BevelContour, m as BevelEmbossEffect, n as BevelStyle, o as BevelTechnique, p as BevelTexture, q as ColorOverlayEffect, r as CompositeCallOptions, s as CompositeStats, C as CompositorLayer, k as CompositorOptions, aA as CompositorProfile, t as ContourPoint, D as DEFAULT_GLOBAL_LIGHT, u as DropShadowEffect, w as EffectFill, x as EffectGradient, E as EffectPattern, y as EffectPatternRef, z as GlowTechnique, A as GradientColorStop, F as GradientOpacityStop, H as GradientOverlayEffect, G as GroupBlendMode, aB as GroupIn, K as INTERPOLATIONS, M as InnerGlowEffect, N as InnerShadowEffect, I as Interpolation, O as LAYER_EFFECT_KINDS, P as LayerEffectError, l as LayerEffectKind, h as LayerLocation, L as LayerLocks, Q as MAX_EFFECT_REACH, S as MAX_TRANSFORM_PIXELS, T as OuterGlowEffect, U as PatternOverlayEffect, V as PatternPlacement, aC as PixelFilterSpec, c as RasterCompositor, a as RasterGroupLayer, R as RasterLayer, e as RasterLayerBase, f as RasterMask, aD as RasterNode, b as RasterPixelLayer, d as RasterSources, X as ResampleOptions, Y as SatinEffect, Z as StrokeEffect, _ as StrokePosition, $ as TransformTooLargeError, a0 as blendTile, a1 as builtinPattern, a2 as builtinPatternIds, a3 as changedTiles, a4 as compositeSurfaceOver, a5 as defaultEffectGradient, a6 as defaultLayerEffect, a7 as effectColorHex, a8 as effectReach, a9 as effectsFingerprint, aa as effectsMargin, ab as effectsScale, ac as findLayer, ad as flattenLayers, ae as hasActiveEffects, af as hashNoise, ag as insertLayer, ah as isInterpolation, ai as isLayerEffectKind, aj as isLayerLocked, ak as keysWeight, al as layerEffectFields, am as layerEffectLabel, an as mapLayer, ao as mergeLayerEffect, ap as newEffectId, aq as normalizeLayerEffects, ar as parseEffectColor, as as reduceSurface, at as scaleLayerEffect, au as transformSurface, av as transformedBounds, aw as validateEffectGradient, ax as validateLayerEffect, ay as validateLayerEffects, az as warpSurface } from '../compositor-D92URMlm.cjs';
|
|
5
5
|
import '../types-CwMPoRMU.cjs';
|
|
6
6
|
|
|
7
7
|
/** Above this σ a Gaussian is approximated by three box passes (cost independent of σ). */
|
package/dist/raster/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as BlendMode } from '../surface-
|
|
2
|
-
export {
|
|
3
|
-
import { j as LayerEffects, g as GlobalLight, W as PatternTile, i as LayerEffect, v as EffectContour, J as GradientStyle } from '../compositor-
|
|
4
|
-
export { B as BevelContour, m as BevelEmbossEffect, n as BevelStyle, o as BevelTechnique, p as BevelTexture, q as ColorOverlayEffect, r as CompositeCallOptions, s as CompositeStats, C as CompositorLayer, k as CompositorOptions, aA as CompositorProfile, t as ContourPoint, D as DEFAULT_GLOBAL_LIGHT, u as DropShadowEffect, w as EffectFill, x as EffectGradient, E as EffectPattern, y as EffectPatternRef, z as GlowTechnique, A as GradientColorStop, F as GradientOpacityStop, H as GradientOverlayEffect, G as GroupBlendMode, aB as GroupIn, K as INTERPOLATIONS, M as InnerGlowEffect, N as InnerShadowEffect, I as Interpolation, O as LAYER_EFFECT_KINDS, P as LayerEffectError, l as LayerEffectKind, h as LayerLocation, L as LayerLocks, Q as MAX_EFFECT_REACH, S as MAX_TRANSFORM_PIXELS, T as OuterGlowEffect, U as PatternOverlayEffect, V as PatternPlacement, aC as PixelFilterSpec, c as RasterCompositor, a as RasterGroupLayer, R as RasterLayer, e as RasterLayerBase, f as RasterMask, aD as RasterNode, b as RasterPixelLayer, d as RasterSources, X as ResampleOptions, Y as SatinEffect, Z as StrokeEffect, _ as StrokePosition, $ as TransformTooLargeError, a0 as blendTile, a1 as builtinPattern, a2 as builtinPatternIds, a3 as changedTiles, a4 as compositeSurfaceOver, a5 as defaultEffectGradient, a6 as defaultLayerEffect, a7 as effectColorHex, a8 as effectReach, a9 as effectsFingerprint, aa as effectsMargin, ab as effectsScale, ac as findLayer, ad as flattenLayers, ae as hasActiveEffects, af as hashNoise, ag as insertLayer, ah as isInterpolation, ai as isLayerEffectKind, aj as isLayerLocked, ak as keysWeight, al as layerEffectFields, am as layerEffectLabel, an as mapLayer, ao as mergeLayerEffect, ap as newEffectId, aq as normalizeLayerEffects, ar as parseEffectColor, as as reduceSurface, at as scaleLayerEffect, au as transformSurface, av as transformedBounds, aw as validateEffectGradient, ax as validateLayerEffect, ay as validateLayerEffects, az as warpSurface } from '../compositor-
|
|
1
|
+
import { B as BlendMode } from '../surface-CkKOHGPm.js';
|
|
2
|
+
export { c as BLEND_MODES, b as BlendModeInfo, M as MaskSurface, d as PAINTERLY_BLEND_MODES, P as PixelSurface, R as RasterRect, g as Rgb, h as Rgba, S as SHADOW_AMBIENT, j as SurfaceDraft, k as TILE, l as TILE_SHIFT, e as Tile, T as TileKey, a as TiledSurface, m as blendChannel, n as blendImageData, o as blendLum, p as blendPixel, q as blendRgb, r as canvasCompositeOperation, t as collectTiles, u as contentBounds, v as emptySurface, w as fillRect, x as finishTile, i as isBlendMode, f as isPainterlyBlendMode, y as isSeparableBlendMode, z as mixPigment8, A as mixPigmentRgb, C as normalizeBlendMode, D as packRgba, E as readPixel, F as readRegion, G as setLum, H as solidSurface, s as standardBlendMode, I as surfaceBytes, J as surfaceFromPixels, K as surfacesEqual, L as tileCoord, N as tileKey, O as tileRect, Q as tilesInRect, U as translateSurface, V as uniformTile, W as writeRegion } from '../surface-CkKOHGPm.js';
|
|
3
|
+
import { j as LayerEffects, g as GlobalLight, W as PatternTile, i as LayerEffect, v as EffectContour, J as GradientStyle } from '../compositor-Kt_M4ruo.js';
|
|
4
|
+
export { B as BevelContour, m as BevelEmbossEffect, n as BevelStyle, o as BevelTechnique, p as BevelTexture, q as ColorOverlayEffect, r as CompositeCallOptions, s as CompositeStats, C as CompositorLayer, k as CompositorOptions, aA as CompositorProfile, t as ContourPoint, D as DEFAULT_GLOBAL_LIGHT, u as DropShadowEffect, w as EffectFill, x as EffectGradient, E as EffectPattern, y as EffectPatternRef, z as GlowTechnique, A as GradientColorStop, F as GradientOpacityStop, H as GradientOverlayEffect, G as GroupBlendMode, aB as GroupIn, K as INTERPOLATIONS, M as InnerGlowEffect, N as InnerShadowEffect, I as Interpolation, O as LAYER_EFFECT_KINDS, P as LayerEffectError, l as LayerEffectKind, h as LayerLocation, L as LayerLocks, Q as MAX_EFFECT_REACH, S as MAX_TRANSFORM_PIXELS, T as OuterGlowEffect, U as PatternOverlayEffect, V as PatternPlacement, aC as PixelFilterSpec, c as RasterCompositor, a as RasterGroupLayer, R as RasterLayer, e as RasterLayerBase, f as RasterMask, aD as RasterNode, b as RasterPixelLayer, d as RasterSources, X as ResampleOptions, Y as SatinEffect, Z as StrokeEffect, _ as StrokePosition, $ as TransformTooLargeError, a0 as blendTile, a1 as builtinPattern, a2 as builtinPatternIds, a3 as changedTiles, a4 as compositeSurfaceOver, a5 as defaultEffectGradient, a6 as defaultLayerEffect, a7 as effectColorHex, a8 as effectReach, a9 as effectsFingerprint, aa as effectsMargin, ab as effectsScale, ac as findLayer, ad as flattenLayers, ae as hasActiveEffects, af as hashNoise, ag as insertLayer, ah as isInterpolation, ai as isLayerEffectKind, aj as isLayerLocked, ak as keysWeight, al as layerEffectFields, am as layerEffectLabel, an as mapLayer, ao as mergeLayerEffect, ap as newEffectId, aq as normalizeLayerEffects, ar as parseEffectColor, as as reduceSurface, at as scaleLayerEffect, au as transformSurface, av as transformedBounds, aw as validateEffectGradient, ax as validateLayerEffect, ay as validateLayerEffects, az as warpSurface } from '../compositor-Kt_M4ruo.js';
|
|
5
5
|
import '../types-CwMPoRMU.js';
|
|
6
6
|
|
|
7
7
|
/** Above this σ a Gaussian is approximated by three box passes (cost independent of σ). */
|
package/dist/raster/index.js
CHANGED
|
@@ -71,10 +71,12 @@ import {
|
|
|
71
71
|
validateLayerEffect,
|
|
72
72
|
validateLayerEffects,
|
|
73
73
|
warpSurface
|
|
74
|
-
} from "../chunk-
|
|
74
|
+
} from "../chunk-G4BIYE6R.js";
|
|
75
75
|
import "../chunk-GX332W2C.js";
|
|
76
76
|
import {
|
|
77
77
|
BLEND_MODES,
|
|
78
|
+
PAINTERLY_BLEND_MODES,
|
|
79
|
+
SHADOW_AMBIENT,
|
|
78
80
|
SurfaceDraft,
|
|
79
81
|
TILE,
|
|
80
82
|
TILE_SHIFT,
|
|
@@ -91,6 +93,7 @@ import {
|
|
|
91
93
|
fillRect,
|
|
92
94
|
finishTile,
|
|
93
95
|
isBlendMode,
|
|
96
|
+
isPainterlyBlendMode,
|
|
94
97
|
isSeparableBlendMode,
|
|
95
98
|
mixPigment8,
|
|
96
99
|
mixPigmentRgb,
|
|
@@ -100,6 +103,7 @@ import {
|
|
|
100
103
|
readRegion,
|
|
101
104
|
setLum,
|
|
102
105
|
solidSurface,
|
|
106
|
+
standardBlendMode,
|
|
103
107
|
surfaceBytes,
|
|
104
108
|
surfaceFromPixels,
|
|
105
109
|
surfacesEqual,
|
|
@@ -110,7 +114,7 @@ import {
|
|
|
110
114
|
translateSurface,
|
|
111
115
|
uniformTile,
|
|
112
116
|
writeRegion
|
|
113
|
-
} from "../chunk-
|
|
117
|
+
} from "../chunk-WMBIJCHA.js";
|
|
114
118
|
export {
|
|
115
119
|
BLEND_MODES,
|
|
116
120
|
CURVE_LUT_SIZE,
|
|
@@ -121,9 +125,11 @@ export {
|
|
|
121
125
|
LayerEffectError,
|
|
122
126
|
MAX_EFFECT_REACH,
|
|
123
127
|
MAX_TRANSFORM_PIXELS,
|
|
128
|
+
PAINTERLY_BLEND_MODES,
|
|
124
129
|
PatternPlacement,
|
|
125
130
|
PatternTile,
|
|
126
131
|
RasterCompositor,
|
|
132
|
+
SHADOW_AMBIENT,
|
|
127
133
|
STROKE_CHAMFER_MAX,
|
|
128
134
|
SurfaceDraft,
|
|
129
135
|
TILE,
|
|
@@ -180,6 +186,7 @@ export {
|
|
|
180
186
|
isInterpolation,
|
|
181
187
|
isLayerEffectKind,
|
|
182
188
|
isLayerLocked,
|
|
189
|
+
isPainterlyBlendMode,
|
|
183
190
|
isPng,
|
|
184
191
|
isSeparableBlendMode,
|
|
185
192
|
keysWeight,
|
|
@@ -204,6 +211,7 @@ export {
|
|
|
204
211
|
scaleLayerEffect,
|
|
205
212
|
setLum,
|
|
206
213
|
solidSurface,
|
|
214
|
+
standardBlendMode,
|
|
207
215
|
surfaceBytes,
|
|
208
216
|
surfaceFromPixels,
|
|
209
217
|
surfacesEqual,
|
|
@@ -1,13 +1,29 @@
|
|
|
1
|
-
type BlendMode = 'normal' | 'darken' | 'multiply' | 'color-burn' | 'linear-burn' | 'darker-color' | 'lighten' | 'screen' | 'color-dodge' | 'linear-dodge' | 'lighter-color' | 'overlay' | 'soft-light' | 'hard-light' | 'vivid-light' | 'linear-light' | 'pin-light' | 'hard-mix' | 'difference' | 'exclusion' | 'subtract' | 'divide' | 'hue' | 'saturation' | 'color' | 'luminosity' | 'pigment';
|
|
1
|
+
type BlendMode = 'normal' | 'darken' | 'multiply' | 'color-burn' | 'linear-burn' | 'darker-color' | 'lighten' | 'screen' | 'color-dodge' | 'linear-dodge' | 'lighter-color' | 'overlay' | 'soft-light' | 'hard-light' | 'vivid-light' | 'linear-light' | 'pin-light' | 'hard-mix' | 'difference' | 'exclusion' | 'subtract' | 'divide' | 'hue' | 'saturation' | 'color' | 'luminosity' | 'pigment' | 'watercolor' | 'tint' | 'highlight' | 'shadow';
|
|
2
2
|
interface BlendModeInfo {
|
|
3
3
|
id: BlendMode;
|
|
4
4
|
label: string;
|
|
5
5
|
/** Canvas `globalCompositeOperation` with the same maths, when there is one. */
|
|
6
6
|
canvas: GlobalCompositeOperation | null;
|
|
7
|
+
/** True for the painterly modes (`watercolor`, `tint`, `highlight`, `shadow`), which no other app has. */
|
|
8
|
+
painterly?: boolean;
|
|
9
|
+
/** The nearest standard (Photoshop) mode, for formats that lack this one (PSD). Missing: it is standard. */
|
|
10
|
+
standard?: BlendMode;
|
|
11
|
+
/** One sentence on what the mode does (painterly and pigment modes). */
|
|
12
|
+
description?: string;
|
|
7
13
|
}
|
|
8
14
|
/** Every blend mode, in Photoshop's menu order. */
|
|
9
15
|
declare const BLEND_MODES: readonly BlendModeInfo[];
|
|
10
16
|
declare function isBlendMode(value: unknown): value is BlendMode;
|
|
17
|
+
/** The painterly modes, in menu order. */
|
|
18
|
+
declare const PAINTERLY_BLEND_MODES: readonly BlendMode[];
|
|
19
|
+
/** Whether a mode is one of the painterly modes (`watercolor`, `tint`, `highlight`, `shadow`). */
|
|
20
|
+
declare function isPainterlyBlendMode(mode: unknown): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The nearest standard (Photoshop) mode: the mode itself when it is standard, `normal` for
|
|
23
|
+
* `pigment`, and each painterly mode's closest relative (watercolour and shadow → multiply,
|
|
24
|
+
* tint → color, highlight → screen). For writing formats that lack our modes, such as PSD.
|
|
25
|
+
*/
|
|
26
|
+
declare function standardBlendMode(mode: BlendMode): BlendMode;
|
|
11
27
|
/** A stored blend mode, or `normal` for a missing / unknown value. */
|
|
12
28
|
declare function normalizeBlendMode(value: unknown): BlendMode;
|
|
13
29
|
/**
|
|
@@ -33,6 +49,8 @@ declare function setLum(c: readonly number[], l: number): Rgb;
|
|
|
33
49
|
* returns `Cs`; composite it with {@link blendPixel} or {@link mixPigmentRgb}.
|
|
34
50
|
*/
|
|
35
51
|
declare function blendRgb(mode: BlendMode, cb: readonly number[], cs: readonly number[]): Rgb;
|
|
52
|
+
/** Shadow's ambient light: the share of light that still reaches a fully shaded area. */
|
|
53
|
+
declare const SHADOW_AMBIENT = 0.2;
|
|
36
54
|
/**
|
|
37
55
|
* The `pigment` mode's colour: `t` of `cs` mixed into `cb` like paint (`lerpPigment`), written to
|
|
38
56
|
* `out[0..2]`. `t ≥ 1` (or equal colours) is `cs` exactly. Colours are 0..1.
|
|
@@ -190,4 +208,4 @@ declare function collectTiles(surface: TiledSurface, into: Set<Tile>): void;
|
|
|
190
208
|
/** True when two surfaces hold the same pixels (cheap when they share tiles). */
|
|
191
209
|
declare function surfacesEqual(a: TiledSurface, b: TiledSurface): boolean;
|
|
192
210
|
|
|
193
|
-
export {
|
|
211
|
+
export { mixPigmentRgb as A, type BlendMode as B, normalizeBlendMode as C, packRgba as D, readPixel as E, readRegion as F, setLum as G, solidSurface as H, surfaceBytes as I, surfaceFromPixels as J, surfacesEqual as K, tileCoord as L, type MaskSurface as M, tileKey as N, tileRect as O, type PixelSurface as P, tilesInRect as Q, type RasterRect as R, SHADOW_AMBIENT as S, type TileKey as T, translateSurface as U, uniformTile as V, writeRegion as W, TiledSurface as a, type BlendModeInfo as b, BLEND_MODES as c, PAINTERLY_BLEND_MODES as d, type Tile as e, isPainterlyBlendMode as f, type Rgb as g, type Rgba as h, isBlendMode as i, SurfaceDraft as j, TILE as k, TILE_SHIFT as l, blendChannel as m, blendImageData as n, blendLum as o, blendPixel as p, blendRgb as q, canvasCompositeOperation as r, standardBlendMode as s, collectTiles as t, contentBounds as u, emptySurface as v, fillRect as w, finishTile as x, isSeparableBlendMode as y, mixPigment8 as z };
|
|
@@ -1,13 +1,29 @@
|
|
|
1
|
-
type BlendMode = 'normal' | 'darken' | 'multiply' | 'color-burn' | 'linear-burn' | 'darker-color' | 'lighten' | 'screen' | 'color-dodge' | 'linear-dodge' | 'lighter-color' | 'overlay' | 'soft-light' | 'hard-light' | 'vivid-light' | 'linear-light' | 'pin-light' | 'hard-mix' | 'difference' | 'exclusion' | 'subtract' | 'divide' | 'hue' | 'saturation' | 'color' | 'luminosity' | 'pigment';
|
|
1
|
+
type BlendMode = 'normal' | 'darken' | 'multiply' | 'color-burn' | 'linear-burn' | 'darker-color' | 'lighten' | 'screen' | 'color-dodge' | 'linear-dodge' | 'lighter-color' | 'overlay' | 'soft-light' | 'hard-light' | 'vivid-light' | 'linear-light' | 'pin-light' | 'hard-mix' | 'difference' | 'exclusion' | 'subtract' | 'divide' | 'hue' | 'saturation' | 'color' | 'luminosity' | 'pigment' | 'watercolor' | 'tint' | 'highlight' | 'shadow';
|
|
2
2
|
interface BlendModeInfo {
|
|
3
3
|
id: BlendMode;
|
|
4
4
|
label: string;
|
|
5
5
|
/** Canvas `globalCompositeOperation` with the same maths, when there is one. */
|
|
6
6
|
canvas: GlobalCompositeOperation | null;
|
|
7
|
+
/** True for the painterly modes (`watercolor`, `tint`, `highlight`, `shadow`), which no other app has. */
|
|
8
|
+
painterly?: boolean;
|
|
9
|
+
/** The nearest standard (Photoshop) mode, for formats that lack this one (PSD). Missing: it is standard. */
|
|
10
|
+
standard?: BlendMode;
|
|
11
|
+
/** One sentence on what the mode does (painterly and pigment modes). */
|
|
12
|
+
description?: string;
|
|
7
13
|
}
|
|
8
14
|
/** Every blend mode, in Photoshop's menu order. */
|
|
9
15
|
declare const BLEND_MODES: readonly BlendModeInfo[];
|
|
10
16
|
declare function isBlendMode(value: unknown): value is BlendMode;
|
|
17
|
+
/** The painterly modes, in menu order. */
|
|
18
|
+
declare const PAINTERLY_BLEND_MODES: readonly BlendMode[];
|
|
19
|
+
/** Whether a mode is one of the painterly modes (`watercolor`, `tint`, `highlight`, `shadow`). */
|
|
20
|
+
declare function isPainterlyBlendMode(mode: unknown): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The nearest standard (Photoshop) mode: the mode itself when it is standard, `normal` for
|
|
23
|
+
* `pigment`, and each painterly mode's closest relative (watercolour and shadow → multiply,
|
|
24
|
+
* tint → color, highlight → screen). For writing formats that lack our modes, such as PSD.
|
|
25
|
+
*/
|
|
26
|
+
declare function standardBlendMode(mode: BlendMode): BlendMode;
|
|
11
27
|
/** A stored blend mode, or `normal` for a missing / unknown value. */
|
|
12
28
|
declare function normalizeBlendMode(value: unknown): BlendMode;
|
|
13
29
|
/**
|
|
@@ -33,6 +49,8 @@ declare function setLum(c: readonly number[], l: number): Rgb;
|
|
|
33
49
|
* returns `Cs`; composite it with {@link blendPixel} or {@link mixPigmentRgb}.
|
|
34
50
|
*/
|
|
35
51
|
declare function blendRgb(mode: BlendMode, cb: readonly number[], cs: readonly number[]): Rgb;
|
|
52
|
+
/** Shadow's ambient light: the share of light that still reaches a fully shaded area. */
|
|
53
|
+
declare const SHADOW_AMBIENT = 0.2;
|
|
36
54
|
/**
|
|
37
55
|
* The `pigment` mode's colour: `t` of `cs` mixed into `cb` like paint (`lerpPigment`), written to
|
|
38
56
|
* `out[0..2]`. `t ≥ 1` (or equal colours) is `cs` exactly. Colours are 0..1.
|
|
@@ -190,4 +208,4 @@ declare function collectTiles(surface: TiledSurface, into: Set<Tile>): void;
|
|
|
190
208
|
/** True when two surfaces hold the same pixels (cheap when they share tiles). */
|
|
191
209
|
declare function surfacesEqual(a: TiledSurface, b: TiledSurface): boolean;
|
|
192
210
|
|
|
193
|
-
export {
|
|
211
|
+
export { mixPigmentRgb as A, type BlendMode as B, normalizeBlendMode as C, packRgba as D, readPixel as E, readRegion as F, setLum as G, solidSurface as H, surfaceBytes as I, surfaceFromPixels as J, surfacesEqual as K, tileCoord as L, type MaskSurface as M, tileKey as N, tileRect as O, type PixelSurface as P, tilesInRect as Q, type RasterRect as R, SHADOW_AMBIENT as S, type TileKey as T, translateSurface as U, uniformTile as V, writeRegion as W, TiledSurface as a, type BlendModeInfo as b, BLEND_MODES as c, PAINTERLY_BLEND_MODES as d, type Tile as e, isPainterlyBlendMode as f, type Rgb as g, type Rgba as h, isBlendMode as i, SurfaceDraft as j, TILE as k, TILE_SHIFT as l, blendChannel as m, blendImageData as n, blendLum as o, blendPixel as p, blendRgb as q, canvasCompositeOperation as r, standardBlendMode as s, collectTiles as t, contentBounds as u, emptySurface as v, fillRect as w, finishTile as x, isSeparableBlendMode as y, mixPigment8 as z };
|
|
@@ -321,6 +321,20 @@ interface VectorBlend extends VectorBlendOptions {
|
|
|
321
321
|
/** The anchor of each key's first subpath its blend starts from, by key id (the Blend tool's clicks). */
|
|
322
322
|
starts?: Record<string, number>;
|
|
323
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* How a mask group's mask (its first, bottom child) hides the rest: `clip` (a clipping mask: the
|
|
326
|
+
* mask's outline, fully opaque; its paint is not drawn), `alpha` (an opacity mask by the mask's
|
|
327
|
+
* drawn alpha: soft edges, gradients and opacity count) or `luminance` (by its brightness times
|
|
328
|
+
* its alpha: white shows, black hides).
|
|
329
|
+
*/
|
|
330
|
+
type VectorMaskType = 'clip' | 'alpha' | 'luminance';
|
|
331
|
+
declare const VECTOR_MASK_TYPES: readonly VectorMaskType[];
|
|
332
|
+
/** A group's mask settings (`VectorGroupNode.mask`). */
|
|
333
|
+
interface VectorMask {
|
|
334
|
+
type: VectorMaskType;
|
|
335
|
+
/** Show the contents where the mask hides them and hide them where it shows them. Default false. */
|
|
336
|
+
invert?: boolean;
|
|
337
|
+
}
|
|
324
338
|
/** A group of nodes that select and transform together. */
|
|
325
339
|
interface VectorGroupNode extends VectorNodeBase {
|
|
326
340
|
type: 'group';
|
|
@@ -336,6 +350,14 @@ interface VectorGroupNode extends VectorNodeBase {
|
|
|
336
350
|
* bottom operand's style.
|
|
337
351
|
*/
|
|
338
352
|
liveBoolean?: VectorBooleanOperation | null;
|
|
353
|
+
/**
|
|
354
|
+
* Makes the group a mask group: its first (bottom) child is the mask and the children above it
|
|
355
|
+
* show only where the mask lets them (see `VectorMaskType`). Hit-testing, bounds, snapping and
|
|
356
|
+
* booleans use the masked result. A hidden mask child turns the mask off (the contents draw
|
|
357
|
+
* whole). The group's own opacity, blend mode and filters apply to the masked result, and its
|
|
358
|
+
* path effects to the contents (not the mask). Ignored on blends and live booleans.
|
|
359
|
+
*/
|
|
360
|
+
mask?: VectorMask | null;
|
|
339
361
|
}
|
|
340
362
|
type VectorNode = VectorPathNode | VectorGroupNode;
|
|
341
363
|
/** A vector drawing: an artboard and its nodes, bottom to top. */
|
|
@@ -730,6 +752,8 @@ interface VectorBooleanOperand {
|
|
|
730
752
|
declare function foldVectorBooleanOperands(operands: readonly VectorBooleanOperand[]): BezierPath;
|
|
731
753
|
/** Applies an effect stack to shapes, top to bottom (disabled effects skipped). */
|
|
732
754
|
declare function applyVectorEffects(shapes: readonly VectorAppearanceShape[], effects: readonly VectorEffect[] | null | undefined): VectorAppearanceShape[];
|
|
755
|
+
/** The shapes of a child in its parent's space (hidden children have none), ordered by its index. */
|
|
756
|
+
declare function vectorChildAppearanceShapes(child: VectorNode, index: number): VectorAppearanceShape[];
|
|
733
757
|
/** The paths entering effect `effectId` of the node's stack (those above it applied), in the node's own space. */
|
|
734
758
|
declare function vectorEffectInputPaths(node: VectorNode, effectId: string): BezierPath[] | null;
|
|
735
759
|
/** The box effect `effectId` (an envelope) bends: the combined bounds of the paths entering it, in the node's own space. */
|
|
@@ -779,7 +803,7 @@ declare function sanitizeVectorEffects(value: unknown): VectorEffect[];
|
|
|
779
803
|
declare function transformVectorEffects(effects: readonly VectorEffect[], m: AffineMatrix, node?: VectorNode): VectorEffect[];
|
|
780
804
|
/**
|
|
781
805
|
* The live groups (live booleans and groups with effects) being edited: those in `ids` and those
|
|
782
|
-
* holding a node in `ids
|
|
806
|
+
* holding a node in `ids`; mask groups only when they hold one. Their children are hit and outlined as stored instead of as drawn, so
|
|
783
807
|
* each operand can be picked (figcraft `crates/engine/src/booleans.rs`, `result_outline`).
|
|
784
808
|
*/
|
|
785
809
|
declare function vectorEnteredGroups(nodes: readonly VectorNode[], ids: readonly string[]): Set<string>;
|
|
@@ -1255,4 +1279,4 @@ declare function parseSvgTransform(value: string | undefined): AffineMatrix;
|
|
|
1255
1279
|
/** Parses SVG markup into a vector document. Throws when there is no `<svg>` element. */
|
|
1256
1280
|
declare function parseVectorSvg(svg: string, options?: VectorSvgImportOptions): VectorDocument;
|
|
1257
1281
|
|
|
1258
|
-
export { type
|
|
1282
|
+
export { type VectorPaintDef as $, type VectorGradientPatch as A, type VectorBlendMode as B, type VectorFilterType as C, type VectorEffectType as D, type VectorEnvelopeParams as E, type VectorAlign as F, type VectorDistribute as G, type VectorArrange as H, type VectorBooleanOperation as I, type VectorMaskType as J, type VectorMask as K, type VectorAverageAxis as L, type VectorWarpMesh as M, type VectorFillRule as N, type VectorRenderFilter as O, type VectorAppearanceShape as P, type VectorArrowhead as Q, type VectorBlendSpacing as R, type VectorGradientInterpolation as S, type VectorGradientSpread as T, type VectorGradientType as U, type VectorDocument as V, type VectorStrokeAlign as W, type VectorStrokeGradientMode as X, type VectorFilterParamSpec as Y, type VectorEffectParamSpec as Z, type VectorRenderStrokeParts as _, type VectorNode as a, expandVectorAppearances as a$, type VectorArrowAlign as a0, type VectorEffect as a1, type VectorPaintLayer as a2, type VectorStrokeLayer as a3, type VectorFilter as a4, type VectorBlend as a5, type VectorMergeMode as a6, type VectorLineJoin as a7, type VectorEffectParamsMap as a8, type VectorStrokeSettings as a9, type VectorFilterParamsMap as aA, type VectorFilterPrimitive as aB, type VectorGradientPoints as aC, type VectorGradientRamp as aD, type VectorGradientSvgOptions as aE, type VectorGradientUnits as aF, type VectorLineCap as aG, type VectorMatrix as aH, type VectorPaintSvgOptions as aI, type VectorRgba as aJ, type VectorStrokeLayerKind as aK, type VectorSvgImportOptions as aL, type VectorSvgPatternDef as aM, type VectorSvgWrapper as aN, type VectorWarpStyle as aO, activeVectorEffects as aP, activeVectorFilters as aQ, applyVectorCornersAttribute as aR, applyVectorEffects as aS, applyVectorGradientPatch as aT, applyVectorGradientSpread as aU, clearVectorLiveBooleanCache as aV, convertVectorGradient as aW, createVectorEffect as aX, createVectorFilter as aY, defaultVectorGradient as aZ, expandVectorAppearance as a_, VECTOR_ARROWHEADS as aa, VECTOR_BLEND_MODES as ab, VECTOR_BLEND_SPACINGS as ac, VECTOR_CORNER_KINDS as ad, VECTOR_EFFECT_DEFAULTS as ae, VECTOR_EFFECT_LABELS as af, VECTOR_EFFECT_PARAM_SPECS as ag, VECTOR_EFFECT_TYPES as ah, VECTOR_FILTER_DEFAULTS as ai, VECTOR_FILTER_LABELS as aj, VECTOR_FILTER_MENU as ak, VECTOR_FILTER_PARAM_SPECS as al, VECTOR_FILTER_TYPES as am, VECTOR_GRADIENT_INTERPOLATIONS as an, VECTOR_GRADIENT_MAX_PERIODS as ao, VECTOR_GRADIENT_MIN_STOPS as ap, VECTOR_GRADIENT_SPREADS as aq, VECTOR_GRADIENT_TYPES as ar, VECTOR_MASK_TYPES as as, VECTOR_MERGE_MODES as at, VECTOR_PATHFINDER_OPERATIONS as au, VECTOR_STROKE_GRADIENT_MODES as av, VECTOR_TOOLS as aw, VECTOR_TRANSFORM_HANDLES as ax, type VectorBooleanOperand as ay, type VectorCorner as az, type VectorBounds as b, vectorGradientMidpointPosition as b$, expandVectorGradientSpread as b0, expandVectorGradientStops as b1, explicitVectorGradient as b2, foldVectorBooleanOperands as b3, gradientMidpointRemap as b4, hasExplicitGradientGeometry as b5, hasOwnVectorAppearance as b6, hasVectorAppearance as b7, insertVectorGradientStop as b8, isCentredVectorGradient as b9, spanVectorGradientStops as bA, transformVectorEffects as bB, transformVectorGradient as bC, transformVectorPaint as bD, vectorAppearanceNodes as bE, vectorAppearanceOutline as bF, vectorAppearanceShapes as bG, vectorBoxMatrix as bH, vectorChildAppearanceShapes as bI, vectorCornersAttribute as bJ, vectorDocumentToSvg as bK, vectorEffectInputBounds as bL, vectorEffectInputPaths as bM, vectorEnteredGroups as bN, vectorEnvelopeFrame as bO, vectorEnvelopeMap as bP, vectorEnvelopeMesh as bQ, vectorFilterMarkup as bR, vectorFilterParamKeys as bS, vectorFilterReach as bT, vectorFilterSvg as bU, vectorGradientArea as bV, vectorGradientAspect as bW, vectorGradientFocalParam as bX, vectorGradientHandles as bY, vectorGradientMatrix as bZ, vectorGradientMidpointFromPosition as b_, isVectorFilterType as ba, isVectorGradient as bb, isVectorLiveBoolean as bc, mapVectorGradient as bd, mapVectorPaint as be, moveVectorGradientHandle as bf, moveVectorGradientStop as bg, normalizeVectorEffectParams as bh, normalizeVectorFilterParams as bi, parseSvgTransform as bj, parseVectorColor as bk, parseVectorSvg as bl, patternAttrs as bm, periodicVectorGradientStops as bn, pinVectorGradient as bo, removeVectorGradientStop as bp, reverseVectorGradient as bq, samplePlainStops as br, sampleVectorGradient as bs, sampleVectorGradientAt as bt, sampleVectorPaintDefAt as bu, sanitizeVectorEffects as bv, sanitizeVectorFilters as bw, sanitizeVectorGradient as bx, setVectorGradientVector as by, sortedVectorGradientStops as bz, type VectorSvgExportOptions as c, vectorGradientNeedsExpansion as c0, vectorGradientParam as c1, vectorGradientPoints as c2, vectorGradientRamp as c3, vectorGradientSvgDefs as c4, vectorGradientTAt as c5, vectorGradientUnitsMatrix as c6, vectorLiveBooleanSteps as c7, vectorNodeEnvelope as c8, vectorNodeFilterSvg as c9, vectorNodeLocalPaintBounds as ca, vectorOperandOperation as cb, vectorPaintToSvg as cc, vectorPathLocalBounds as cd, vectorStrokeSvgParts as ce, widthProfileFromAttribute as cf, widthProfileToAttribute as cg, type Vec2 as d, type VectorSubpath as e, type VectorAnchor as f, type VectorPathNode as g, type VectorAnchorType as h, type VectorPaint as i, type VectorGroupNode as j, type VectorCornerKind as k, type VectorWidthPoint as l, type VectorGradientHandle as m, type VectorGradient as n, type VectorGradientStop as o, type VectorViewport as p, type VectorTransformHandle as q, type VectorAnchorRef as r, type VectorPathfinderOperation as s, type VectorTool as t, type VectorDefaults as u, type VectorStyle as v, type VectorHandleRef as w, type VectorSegmentRef as x, type VectorBlendOptions as y, type VectorModifiers as z };
|
|
@@ -321,6 +321,20 @@ interface VectorBlend extends VectorBlendOptions {
|
|
|
321
321
|
/** The anchor of each key's first subpath its blend starts from, by key id (the Blend tool's clicks). */
|
|
322
322
|
starts?: Record<string, number>;
|
|
323
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* How a mask group's mask (its first, bottom child) hides the rest: `clip` (a clipping mask: the
|
|
326
|
+
* mask's outline, fully opaque; its paint is not drawn), `alpha` (an opacity mask by the mask's
|
|
327
|
+
* drawn alpha: soft edges, gradients and opacity count) or `luminance` (by its brightness times
|
|
328
|
+
* its alpha: white shows, black hides).
|
|
329
|
+
*/
|
|
330
|
+
type VectorMaskType = 'clip' | 'alpha' | 'luminance';
|
|
331
|
+
declare const VECTOR_MASK_TYPES: readonly VectorMaskType[];
|
|
332
|
+
/** A group's mask settings (`VectorGroupNode.mask`). */
|
|
333
|
+
interface VectorMask {
|
|
334
|
+
type: VectorMaskType;
|
|
335
|
+
/** Show the contents where the mask hides them and hide them where it shows them. Default false. */
|
|
336
|
+
invert?: boolean;
|
|
337
|
+
}
|
|
324
338
|
/** A group of nodes that select and transform together. */
|
|
325
339
|
interface VectorGroupNode extends VectorNodeBase {
|
|
326
340
|
type: 'group';
|
|
@@ -336,6 +350,14 @@ interface VectorGroupNode extends VectorNodeBase {
|
|
|
336
350
|
* bottom operand's style.
|
|
337
351
|
*/
|
|
338
352
|
liveBoolean?: VectorBooleanOperation | null;
|
|
353
|
+
/**
|
|
354
|
+
* Makes the group a mask group: its first (bottom) child is the mask and the children above it
|
|
355
|
+
* show only where the mask lets them (see `VectorMaskType`). Hit-testing, bounds, snapping and
|
|
356
|
+
* booleans use the masked result. A hidden mask child turns the mask off (the contents draw
|
|
357
|
+
* whole). The group's own opacity, blend mode and filters apply to the masked result, and its
|
|
358
|
+
* path effects to the contents (not the mask). Ignored on blends and live booleans.
|
|
359
|
+
*/
|
|
360
|
+
mask?: VectorMask | null;
|
|
339
361
|
}
|
|
340
362
|
type VectorNode = VectorPathNode | VectorGroupNode;
|
|
341
363
|
/** A vector drawing: an artboard and its nodes, bottom to top. */
|
|
@@ -730,6 +752,8 @@ interface VectorBooleanOperand {
|
|
|
730
752
|
declare function foldVectorBooleanOperands(operands: readonly VectorBooleanOperand[]): BezierPath;
|
|
731
753
|
/** Applies an effect stack to shapes, top to bottom (disabled effects skipped). */
|
|
732
754
|
declare function applyVectorEffects(shapes: readonly VectorAppearanceShape[], effects: readonly VectorEffect[] | null | undefined): VectorAppearanceShape[];
|
|
755
|
+
/** The shapes of a child in its parent's space (hidden children have none), ordered by its index. */
|
|
756
|
+
declare function vectorChildAppearanceShapes(child: VectorNode, index: number): VectorAppearanceShape[];
|
|
733
757
|
/** The paths entering effect `effectId` of the node's stack (those above it applied), in the node's own space. */
|
|
734
758
|
declare function vectorEffectInputPaths(node: VectorNode, effectId: string): BezierPath[] | null;
|
|
735
759
|
/** The box effect `effectId` (an envelope) bends: the combined bounds of the paths entering it, in the node's own space. */
|
|
@@ -779,7 +803,7 @@ declare function sanitizeVectorEffects(value: unknown): VectorEffect[];
|
|
|
779
803
|
declare function transformVectorEffects(effects: readonly VectorEffect[], m: AffineMatrix, node?: VectorNode): VectorEffect[];
|
|
780
804
|
/**
|
|
781
805
|
* The live groups (live booleans and groups with effects) being edited: those in `ids` and those
|
|
782
|
-
* holding a node in `ids
|
|
806
|
+
* holding a node in `ids`; mask groups only when they hold one. Their children are hit and outlined as stored instead of as drawn, so
|
|
783
807
|
* each operand can be picked (figcraft `crates/engine/src/booleans.rs`, `result_outline`).
|
|
784
808
|
*/
|
|
785
809
|
declare function vectorEnteredGroups(nodes: readonly VectorNode[], ids: readonly string[]): Set<string>;
|
|
@@ -1255,4 +1279,4 @@ declare function parseSvgTransform(value: string | undefined): AffineMatrix;
|
|
|
1255
1279
|
/** Parses SVG markup into a vector document. Throws when there is no `<svg>` element. */
|
|
1256
1280
|
declare function parseVectorSvg(svg: string, options?: VectorSvgImportOptions): VectorDocument;
|
|
1257
1281
|
|
|
1258
|
-
export { type
|
|
1282
|
+
export { type VectorPaintDef as $, type VectorGradientPatch as A, type VectorBlendMode as B, type VectorFilterType as C, type VectorEffectType as D, type VectorEnvelopeParams as E, type VectorAlign as F, type VectorDistribute as G, type VectorArrange as H, type VectorBooleanOperation as I, type VectorMaskType as J, type VectorMask as K, type VectorAverageAxis as L, type VectorWarpMesh as M, type VectorFillRule as N, type VectorRenderFilter as O, type VectorAppearanceShape as P, type VectorArrowhead as Q, type VectorBlendSpacing as R, type VectorGradientInterpolation as S, type VectorGradientSpread as T, type VectorGradientType as U, type VectorDocument as V, type VectorStrokeAlign as W, type VectorStrokeGradientMode as X, type VectorFilterParamSpec as Y, type VectorEffectParamSpec as Z, type VectorRenderStrokeParts as _, type VectorNode as a, expandVectorAppearances as a$, type VectorArrowAlign as a0, type VectorEffect as a1, type VectorPaintLayer as a2, type VectorStrokeLayer as a3, type VectorFilter as a4, type VectorBlend as a5, type VectorMergeMode as a6, type VectorLineJoin as a7, type VectorEffectParamsMap as a8, type VectorStrokeSettings as a9, type VectorFilterParamsMap as aA, type VectorFilterPrimitive as aB, type VectorGradientPoints as aC, type VectorGradientRamp as aD, type VectorGradientSvgOptions as aE, type VectorGradientUnits as aF, type VectorLineCap as aG, type VectorMatrix as aH, type VectorPaintSvgOptions as aI, type VectorRgba as aJ, type VectorStrokeLayerKind as aK, type VectorSvgImportOptions as aL, type VectorSvgPatternDef as aM, type VectorSvgWrapper as aN, type VectorWarpStyle as aO, activeVectorEffects as aP, activeVectorFilters as aQ, applyVectorCornersAttribute as aR, applyVectorEffects as aS, applyVectorGradientPatch as aT, applyVectorGradientSpread as aU, clearVectorLiveBooleanCache as aV, convertVectorGradient as aW, createVectorEffect as aX, createVectorFilter as aY, defaultVectorGradient as aZ, expandVectorAppearance as a_, VECTOR_ARROWHEADS as aa, VECTOR_BLEND_MODES as ab, VECTOR_BLEND_SPACINGS as ac, VECTOR_CORNER_KINDS as ad, VECTOR_EFFECT_DEFAULTS as ae, VECTOR_EFFECT_LABELS as af, VECTOR_EFFECT_PARAM_SPECS as ag, VECTOR_EFFECT_TYPES as ah, VECTOR_FILTER_DEFAULTS as ai, VECTOR_FILTER_LABELS as aj, VECTOR_FILTER_MENU as ak, VECTOR_FILTER_PARAM_SPECS as al, VECTOR_FILTER_TYPES as am, VECTOR_GRADIENT_INTERPOLATIONS as an, VECTOR_GRADIENT_MAX_PERIODS as ao, VECTOR_GRADIENT_MIN_STOPS as ap, VECTOR_GRADIENT_SPREADS as aq, VECTOR_GRADIENT_TYPES as ar, VECTOR_MASK_TYPES as as, VECTOR_MERGE_MODES as at, VECTOR_PATHFINDER_OPERATIONS as au, VECTOR_STROKE_GRADIENT_MODES as av, VECTOR_TOOLS as aw, VECTOR_TRANSFORM_HANDLES as ax, type VectorBooleanOperand as ay, type VectorCorner as az, type VectorBounds as b, vectorGradientMidpointPosition as b$, expandVectorGradientSpread as b0, expandVectorGradientStops as b1, explicitVectorGradient as b2, foldVectorBooleanOperands as b3, gradientMidpointRemap as b4, hasExplicitGradientGeometry as b5, hasOwnVectorAppearance as b6, hasVectorAppearance as b7, insertVectorGradientStop as b8, isCentredVectorGradient as b9, spanVectorGradientStops as bA, transformVectorEffects as bB, transformVectorGradient as bC, transformVectorPaint as bD, vectorAppearanceNodes as bE, vectorAppearanceOutline as bF, vectorAppearanceShapes as bG, vectorBoxMatrix as bH, vectorChildAppearanceShapes as bI, vectorCornersAttribute as bJ, vectorDocumentToSvg as bK, vectorEffectInputBounds as bL, vectorEffectInputPaths as bM, vectorEnteredGroups as bN, vectorEnvelopeFrame as bO, vectorEnvelopeMap as bP, vectorEnvelopeMesh as bQ, vectorFilterMarkup as bR, vectorFilterParamKeys as bS, vectorFilterReach as bT, vectorFilterSvg as bU, vectorGradientArea as bV, vectorGradientAspect as bW, vectorGradientFocalParam as bX, vectorGradientHandles as bY, vectorGradientMatrix as bZ, vectorGradientMidpointFromPosition as b_, isVectorFilterType as ba, isVectorGradient as bb, isVectorLiveBoolean as bc, mapVectorGradient as bd, mapVectorPaint as be, moveVectorGradientHandle as bf, moveVectorGradientStop as bg, normalizeVectorEffectParams as bh, normalizeVectorFilterParams as bi, parseSvgTransform as bj, parseVectorColor as bk, parseVectorSvg as bl, patternAttrs as bm, periodicVectorGradientStops as bn, pinVectorGradient as bo, removeVectorGradientStop as bp, reverseVectorGradient as bq, samplePlainStops as br, sampleVectorGradient as bs, sampleVectorGradientAt as bt, sampleVectorPaintDefAt as bu, sanitizeVectorEffects as bv, sanitizeVectorFilters as bw, sanitizeVectorGradient as bx, setVectorGradientVector as by, sortedVectorGradientStops as bz, type VectorSvgExportOptions as c, vectorGradientNeedsExpansion as c0, vectorGradientParam as c1, vectorGradientPoints as c2, vectorGradientRamp as c3, vectorGradientSvgDefs as c4, vectorGradientTAt as c5, vectorGradientUnitsMatrix as c6, vectorLiveBooleanSteps as c7, vectorNodeEnvelope as c8, vectorNodeFilterSvg as c9, vectorNodeLocalPaintBounds as ca, vectorOperandOperation as cb, vectorPaintToSvg as cc, vectorPathLocalBounds as cd, vectorStrokeSvgParts as ce, widthProfileFromAttribute as cf, widthProfileToAttribute as cg, type Vec2 as d, type VectorSubpath as e, type VectorAnchor as f, type VectorPathNode as g, type VectorAnchorType as h, type VectorPaint as i, type VectorGroupNode as j, type VectorCornerKind as k, type VectorWidthPoint as l, type VectorGradientHandle as m, type VectorGradient as n, type VectorGradientStop as o, type VectorViewport as p, type VectorTransformHandle as q, type VectorAnchorRef as r, type VectorPathfinderOperation as s, type VectorTool as t, type VectorDefaults as u, type VectorStyle as v, type VectorHandleRef as w, type VectorSegmentRef as x, type VectorBlendOptions as y, type VectorModifiers as z };
|