@pixerate/editor 0.132.0 → 0.133.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation-editor/index.cjs +55 -55
- package/dist/animation-editor/index.d.cts +4 -4
- package/dist/animation-editor/index.d.ts +4 -4
- package/dist/animation-editor/index.js +2 -2
- package/dist/{bezier-0IHDCvv_.d.ts → bezier-BAGdL89w.d.ts} +1 -1
- package/dist/{bezier-oCBfrGDG.d.cts → bezier-DL2wPsFf.d.cts} +1 -1
- package/dist/canvas/index.d.cts +7 -7
- package/dist/canvas/index.d.ts +7 -7
- package/dist/{chunk-MZXQTKUM.cjs → chunk-24ATT2PE.cjs} +10 -6
- package/dist/chunk-24ATT2PE.cjs.map +1 -0
- package/dist/{chunk-AHUYMDYW.js → chunk-2HC4DRF4.js} +10 -6
- package/dist/chunk-2HC4DRF4.js.map +1 -0
- package/dist/{chunk-OYPJGGF3.cjs → chunk-2QKUD3E2.cjs} +36 -36
- package/dist/{chunk-OYPJGGF3.cjs.map → chunk-2QKUD3E2.cjs.map} +1 -1
- package/dist/{chunk-55UEZIU4.cjs → chunk-65GNHOD4.cjs} +231 -191
- package/dist/chunk-65GNHOD4.cjs.map +1 -0
- package/dist/{chunk-YRZ6NVE3.js → chunk-6CTZAGZ2.js} +235 -4
- package/dist/chunk-6CTZAGZ2.js.map +1 -0
- package/dist/{chunk-G5FX56KX.js → chunk-AOCFL7L7.js} +51 -11
- package/dist/chunk-AOCFL7L7.js.map +1 -0
- package/dist/{chunk-YYJKIESX.cjs → chunk-F7GGEAO2.cjs} +4 -2
- package/dist/chunk-F7GGEAO2.cjs.map +1 -0
- package/dist/{chunk-IEYXYMRQ.js → chunk-FOBB6AIO.js} +3 -1
- package/dist/chunk-FOBB6AIO.js.map +1 -0
- package/dist/{chunk-W6M7C7R3.cjs → chunk-NVTHUPJ6.cjs} +236 -5
- package/dist/chunk-NVTHUPJ6.cjs.map +1 -0
- package/dist/{chunk-ECVI5QRE.js → chunk-VGZSIXX3.js} +2 -2
- package/dist/effects/index.d.cts +4 -4
- package/dist/effects/index.d.ts +4 -4
- package/dist/{export-D-gkjBkB.d.cts → export-BICOEM9d.d.cts} +10 -10
- package/dist/{export-CfAogLEr.d.cts → export-CeFplzAW.d.cts} +1 -1
- package/dist/{export-ByJvAvR7.d.ts → export-XnuX8FZ2.d.ts} +10 -10
- package/dist/{export-Crl82sbE.d.ts → export-zB4HITwP.d.ts} +1 -1
- package/dist/{helpers-CoIeXQnW.d.cts → helpers-BuKdqUlM.d.cts} +23 -1
- package/dist/{helpers-BCd2-PAR.d.ts → helpers-cssRNUzH.d.ts} +23 -1
- package/dist/image-editor/index.cjs +983 -874
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +32 -13
- package/dist/image-editor/index.d.ts +32 -13
- package/dist/image-editor/index.js +124 -15
- package/dist/image-editor/index.js.map +1 -1
- package/dist/{opentype-BDahNRTe.d.cts → opentype-C3iyIFRx.d.cts} +1 -1
- package/dist/{opentype-BQFEvy-t.d.ts → opentype-DG5Lkwul.d.ts} +1 -1
- package/dist/paint/index.cjs +8 -2
- package/dist/paint/index.cjs.map +1 -1
- package/dist/paint/index.d.cts +14 -3
- package/dist/paint/index.d.ts +14 -3
- package/dist/paint/index.js +7 -1
- package/dist/paint-editor/index.cjs +78 -78
- package/dist/paint-editor/index.d.cts +7 -7
- package/dist/paint-editor/index.d.ts +7 -7
- package/dist/paint-editor/index.js +3 -3
- package/dist/{pathfinder-01ZgAwqV.d.cts → pathfinder-8vXik95z.d.cts} +1 -1
- package/dist/{pathfinder-DaVdT8jq.d.ts → pathfinder-DKLt4UDG.d.ts} +1 -1
- package/dist/{pool-D2A3WTt9.d.ts → pool-C69pkWRz.d.ts} +1 -1
- package/dist/{pool-D6a45MoE.d.cts → pool-VAWcYUbs.d.cts} +1 -1
- package/dist/{rand-pQQ2sJTk.d.ts → rand-BaqEOs1Y.d.ts} +17 -4
- package/dist/{rand-DTXAssW1.d.cts → rand-DdpFzCo6.d.cts} +17 -4
- package/dist/raster/index.cjs +2 -2
- package/dist/raster/index.d.cts +4 -4
- package/dist/raster/index.d.ts +4 -4
- package/dist/raster/index.js +1 -1
- package/dist/{svg-CcDz7Zq2.d.cts → svg-BThlZmja.d.cts} +2 -2
- package/dist/{svg-DELNVerw.d.ts → svg-CEYpvsgH.d.ts} +2 -2
- package/dist/{tools-BFvkFnRj.d.cts → tools-CRnZJXXr.d.cts} +1 -1
- package/dist/{tools-D7ws-OKL.d.ts → tools-CVGqEpO8.d.ts} +1 -1
- package/dist/vector/index.cjs +1383 -1044
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +102 -12
- package/dist/vector/index.d.ts +102 -12
- package/dist/vector/index.js +342 -3
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.d.cts +4 -4
- package/dist/video-editor/index.d.ts +4 -4
- package/dist/{warp-DErXW5rz.d.cts → warp-ChcFDdlT.d.cts} +1 -1
- package/dist/{warp-2N9wkOkL.d.ts → warp-mKylbLiF.d.ts} +1 -1
- package/package.json +1 -1
- package/skills/pixerate-image-editor/SKILL.md +1 -1
- package/skills/pixerate-image-editor/references/retouching.md +3 -2
- package/dist/chunk-55UEZIU4.cjs.map +0 -1
- package/dist/chunk-AHUYMDYW.js.map +0 -1
- package/dist/chunk-G5FX56KX.js.map +0 -1
- package/dist/chunk-IEYXYMRQ.js.map +0 -1
- package/dist/chunk-MZXQTKUM.cjs.map +0 -1
- package/dist/chunk-W6M7C7R3.cjs.map +0 -1
- package/dist/chunk-YRZ6NVE3.js.map +0 -1
- package/dist/chunk-YYJKIESX.cjs.map +0 -1
- /package/dist/{chunk-ECVI5QRE.js.map → chunk-VGZSIXX3.js.map} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a1 as RasterLayer, a0 as RasterGroupLayer, a5 as RasterPixelLayer, C as CompositorLayer, a as RasterCompositor, R as RasterSources, U as LayerLocks } from '../deep-wwJa7aR6.js';
|
|
2
|
-
import { D as Dab, C as CoverageMap, B as BrushSettings, e as StrokePoint, g as PaintTileTarget, i as PaintGradientSource, T as TileMedium, M as MixerSettings, j as MixingModel, k as BlenderSettings, l as SmudgeSettings, P as PaintSource, a as MixerLoad, W as WetWorld, m as WetTilt, n as WetParams, o as WetFlowSpec, p as RgbTriple, q as WetWorldOptions, r as WetGpuProvider, s as WetBackendInfo, t as WetSnapshot, u as WetPaperInput } from '../rand-
|
|
3
|
-
export { v as DEFAULT_FLOW, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRADIENT_MAPPING, y as DEFAULT_WET_PARAMS, z as MAX_BRUSH_SIZE, A as PAINT_COLOR_JSON_SCHEMA, E as PAINT_GRADIENT_FULL_SPEED, F as PAINT_GRADIENT_JSON_SCHEMA, G as PAINT_GRADIENT_KIT, H as PAINT_GRADIENT_MAPPINGS, I as PAINT_GRADIENT_MAPPING_LABELS, J as PAINT_GRADIENT_PRESETS, K as PAINT_GRADIENT_REPEATS, L as PAINT_GRADIENT_REPEAT_LABELS, N as PAINT_GRADIENT_SPACES, O as PAINT_GRADIENT_SPACE_LABELS, Q as PAINT_SOURCE_JSON_SCHEMA, U as PaintColorSource, V as PaintDabParams, X as PaintGradientKit, Y as PaintGradientMapping, Z as PaintGradientMappingKind, _ as PaintGradientRepeat, $ as PaintGradientSample, a0 as PaintGradientSampler, a1 as PaintGradientSpace, a2 as PaintGradientStop, a3 as PaintRgb, a4 as PaintSourceError, a5 as WET_FLOW_KINDS, a6 as WET_PARAM_KEYS, a7 as WetFlowKind, a8 as WetSupport, a9 as addPaintGradientStop, aa as hash2, ab as hexToPaintRgb, ac as isGradientPaint, ad as mix32, ae as normalizeFlow, af as normalizeHexColor, ag as normalizeWetParams, ah as paintGradientMappingFor, ai as paintSourceColor, aj as paintSourceCss, ak as parsePaintSource, al as rand01, am as readPaintSource, an as removePaintGradientStop, ao as resolvePaintGradient, ap as reversePaintGradient, aq as scalePaintGradient, ar as solidPaint, as as updatePaintGradientStop, at as wetSupport } from '../rand-
|
|
2
|
+
import { D as Dab, C as CoverageMap, B as BrushSettings, e as StrokePoint, g as PaintTileTarget, i as PaintGradientSource, T as TileMedium, M as MixerSettings, j as MixingModel, k as BlenderSettings, l as SmudgeSettings, P as PaintSource, a as MixerLoad, W as WetWorld, m as WetTilt, n as WetParams, o as WetFlowSpec, p as RgbTriple, q as WetWorldOptions, r as WetGpuProvider, s as WetBackendInfo, t as WetSnapshot, u as WetPaperInput } from '../rand-BaqEOs1Y.js';
|
|
3
|
+
export { v as DEFAULT_FLOW, w as DEFAULT_PAINT_GRADIENT, x as DEFAULT_PAINT_GRADIENT_MAPPING, y as DEFAULT_WET_PARAMS, z as MAX_BRUSH_SIZE, A as PAINT_COLOR_JSON_SCHEMA, E as PAINT_GRADIENT_FULL_SPEED, F as PAINT_GRADIENT_JSON_SCHEMA, G as PAINT_GRADIENT_KIT, H as PAINT_GRADIENT_MAPPINGS, I as PAINT_GRADIENT_MAPPING_LABELS, J as PAINT_GRADIENT_PRESETS, K as PAINT_GRADIENT_REPEATS, L as PAINT_GRADIENT_REPEAT_LABELS, N as PAINT_GRADIENT_SPACES, O as PAINT_GRADIENT_SPACE_LABELS, Q as PAINT_SOURCE_JSON_SCHEMA, U as PaintColorSource, V as PaintDabParams, X as PaintGradientKit, Y as PaintGradientMapping, Z as PaintGradientMappingKind, _ as PaintGradientRepeat, $ as PaintGradientSample, a0 as PaintGradientSampler, a1 as PaintGradientSpace, a2 as PaintGradientStop, a3 as PaintRgb, a4 as PaintSourceError, a5 as WET_FLOW_KINDS, a6 as WET_PARAM_KEYS, a7 as WetFlowKind, a8 as WetSupport, a9 as addPaintGradientStop, aa as hash2, ab as hexToPaintRgb, ac as isGradientPaint, ad as mix32, ae as normalizeFlow, af as normalizeHexColor, ag as normalizeWetParams, ah as paintGradientMappingFor, ai as paintSourceColor, aj as paintSourceCss, ak as parsePaintSource, al as rand01, am as readPaintSource, an as removePaintGradientStop, ao as resolvePaintGradient, ap as reversePaintGradient, aq as scalePaintGradient, ar as solidPaint, as as updatePaintGradientStop, at as wetSupport } from '../rand-BaqEOs1Y.js';
|
|
4
4
|
import { R as RasterRect, T as TiledSurface, a as BlendMode, b as BlendModeInfo } from '../surface-1MRncXpF.js';
|
|
5
5
|
export { B as BLEND_MODES, P as PAINTERLY_BLEND_MODES, i as Tile, v as isBlendMode, w as isPainterlyBlendMode, I as standardBlendMode } from '../surface-1MRncXpF.js';
|
|
6
|
-
import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-
|
|
7
|
-
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-
|
|
8
|
-
import { V as VideoProject, D as VideoFfmpegExport } from '../export-
|
|
6
|
+
import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-cssRNUzH.js';
|
|
7
|
+
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-XnuX8FZ2.js';
|
|
8
|
+
import { V as VideoProject, D as VideoFfmpegExport } from '../export-zB4HITwP.js';
|
|
9
9
|
import { g as PresenceStore, e as PresenceClock, d as PresenceActorInfo, c as PresenceActor, f as PresenceState } from '../presence-Cb6WhcrQ.js';
|
|
10
10
|
import { a as AgentToolProvider, A as AgentTool } from '../registry-D-4fit9C.js';
|
|
11
11
|
import '../types-CwMPoRMU.js';
|
|
@@ -13,9 +13,9 @@ import '../schema-Di0CS6Pe.js';
|
|
|
13
13
|
import '../evaluate-BbCeF6pt.js';
|
|
14
14
|
import '../easing-lM0Xo9Ni.js';
|
|
15
15
|
import '../builtin-CY97ppKM.js';
|
|
16
|
-
import '../bezier-
|
|
16
|
+
import '../bezier-BAGdL89w.js';
|
|
17
17
|
import '../brushTypes-C7N3EBK7.js';
|
|
18
|
-
import '../warp-
|
|
18
|
+
import '../warp-mKylbLiF.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Seeded, deterministic noise for paper grain and brush jitter (photocraft's counter-based
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
resolveExternalAssets,
|
|
81
81
|
serializeLayers,
|
|
82
82
|
serializeLayersExternal
|
|
83
|
-
} from "../chunk-
|
|
83
|
+
} from "../chunk-AOCFL7L7.js";
|
|
84
84
|
import "../chunk-CTTF4KYV.js";
|
|
85
85
|
import {
|
|
86
86
|
EffectRendererPool
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
insertLayer,
|
|
93
93
|
isLayerLocked,
|
|
94
94
|
mapLayer
|
|
95
|
-
} from "../chunk-
|
|
95
|
+
} from "../chunk-2HC4DRF4.js";
|
|
96
96
|
import "../chunk-GX332W2C.js";
|
|
97
97
|
import {
|
|
98
98
|
DEFAULT_FLOW,
|
|
@@ -211,7 +211,7 @@ import {
|
|
|
211
211
|
realPresenceClock,
|
|
212
212
|
tweenPresenceCursor
|
|
213
213
|
} from "../chunk-B6DSIEXA.js";
|
|
214
|
-
import "../chunk-
|
|
214
|
+
import "../chunk-FOBB6AIO.js";
|
|
215
215
|
import "../chunk-YGJIER2R.js";
|
|
216
216
|
import "../chunk-KHNZ6MOU.js";
|
|
217
217
|
import {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as Point } from './brushTypes-C7N3EBK7.cjs';
|
|
2
|
-
import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-
|
|
2
|
+
import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-DL2wPsFf.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Curve-preserving boolean operations (union, intersection, difference, xor and divide) on
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { P as Point } from './brushTypes-C7N3EBK7.js';
|
|
2
|
-
import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-
|
|
2
|
+
import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-BAGdL89w.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Curve-preserving boolean operations (union, intersection, difference, xor and divide) on
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EffectProvider, a as EffectRenderRequest, b as EffectPixels } from './helpers-
|
|
1
|
+
import { E as EffectProvider, a as EffectRenderRequest, b as EffectPixels } from './helpers-cssRNUzH.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `EffectRendererPool`: keeps a few live renderers, reused per effect, size and depth.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { E as EffectProvider, a as EffectRenderRequest, b as EffectPixels } from './helpers-
|
|
1
|
+
import { E as EffectProvider, a as EffectRenderRequest, b as EffectPixels } from './helpers-BuKdqUlM.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `EffectRendererPool`: keeps a few live renderers, reused per effect, size and depth.
|
|
@@ -1071,7 +1071,7 @@ declare function perDabStrength(e: number, spacing: number): number;
|
|
|
1071
1071
|
type RetouchSample = 'current' | 'current-below' | 'all';
|
|
1072
1072
|
declare const RETOUCH_SAMPLES: readonly RetouchSample[];
|
|
1073
1073
|
/** How the Spot Healing Brush finds its source. */
|
|
1074
|
-
type SpotHealType = 'proximity-match' | 'smooth';
|
|
1074
|
+
type SpotHealType = 'proximity-match' | 'content-aware' | 'smooth';
|
|
1075
1075
|
declare const SPOT_HEAL_TYPES: readonly SpotHealType[];
|
|
1076
1076
|
/** The retouching tools' options. */
|
|
1077
1077
|
interface RetouchSettings {
|
|
@@ -1079,7 +1079,7 @@ interface RetouchSettings {
|
|
|
1079
1079
|
aligned: boolean;
|
|
1080
1080
|
/** Clone / heal / spot heal: what is sampled (default `current`: the target layer). */
|
|
1081
1081
|
sample: RetouchSample;
|
|
1082
|
-
/** Spot heal: `proximity-match` (default: the best matching patch nearby) or `smooth` (a smooth fill from the edges). */
|
|
1082
|
+
/** Spot heal: `proximity-match` (default: the best matching patch nearby), `content-aware` (texture and edges synthesised from patches around it) or `smooth` (a smooth fill from the edges). */
|
|
1083
1083
|
spotType: SpotHealType;
|
|
1084
1084
|
/** Dodge / burn: the tonal range (default `midtones`). */
|
|
1085
1085
|
range: ToneRange;
|
|
@@ -1091,12 +1091,25 @@ interface RetouchSettings {
|
|
|
1091
1091
|
spongeMode: 'desaturate' | 'saturate';
|
|
1092
1092
|
/** Sponge: damp the change where colours would clip (default true). */
|
|
1093
1093
|
vibrance: boolean;
|
|
1094
|
-
/** Smudge: how strongly the finger carries and lays paint, 0..1 (default 0.5). */
|
|
1094
|
+
/** Smudge: how strongly the finger carries and lays paint; Blur / Sharpen: how strongly they act, 0..1 (default 0.5). */
|
|
1095
1095
|
strength: number;
|
|
1096
|
+
/** History Brush: how many undo steps back it paints from; 0 (default) is the oldest state history keeps. */
|
|
1097
|
+
historySteps: number;
|
|
1096
1098
|
}
|
|
1097
1099
|
declare const DEFAULT_RETOUCH: Readonly<RetouchSettings>;
|
|
1098
1100
|
/** Retouch settings with every field valid (missing or invalid fields from `base`). */
|
|
1099
1101
|
declare function normalizeRetouch(raw?: Partial<RetouchSettings>, base?: RetouchSettings): RetouchSettings;
|
|
1102
|
+
/**
|
|
1103
|
+
* Box blur of `data` (`w × h × n` floats) in place, `r` pixels each side, edges clamped. RGBA
|
|
1104
|
+
* blurs premultiplied, so transparent pixels lend no colour. Run twice for a near-Gaussian.
|
|
1105
|
+
*/
|
|
1106
|
+
declare function boxBlurPixels(data: Float32Array, w: number, h: number, n: 1 | 4, r: number): void;
|
|
1107
|
+
/**
|
|
1108
|
+
* The Blur / Sharpen tools' filter over a padded region (`w × h × n` floats on the 0..255 scale,
|
|
1109
|
+
* in place): `blur` is two box passes of `radius`; `sharpen` is an unsharp mask of `amount`
|
|
1110
|
+
* over a radius-1 blur (colour only; alpha kept). Values stay at or above 0.
|
|
1111
|
+
*/
|
|
1112
|
+
declare function retouchFilter(data: Float32Array, w: number, h: number, n: 1 | 4, kind: 'blur' | 'sharpen', radius?: number, amount?: number): void;
|
|
1100
1113
|
/** Pixels a retouching stroke samples, by document pixel. */
|
|
1101
1114
|
interface PixelSource {
|
|
1102
1115
|
/** Straight RGBA 0..255 of document pixel (x, y) into `out`; false (and `out` zeroed) where there is nothing. */
|
|
@@ -2094,4 +2107,4 @@ declare function hash2(x: number, y: number, salt: number): number;
|
|
|
2094
2107
|
/** Uniform in [0, 1) from a seed, an index and a stream (one stream per random quantity). */
|
|
2095
2108
|
declare function rand01(seed: number, index: number, stream: number): number;
|
|
2096
2109
|
|
|
2097
|
-
export { type PaintGradientSample as $, PAINT_COLOR_JSON_SCHEMA as A, type BrushSettings as B, CoverageMap as C, type Dab as D, PAINT_GRADIENT_FULL_SPEED as E, PAINT_GRADIENT_JSON_SCHEMA as F, PAINT_GRADIENT_KIT as G, PAINT_GRADIENT_MAPPINGS as H, PAINT_GRADIENT_MAPPING_LABELS as I, PAINT_GRADIENT_PRESETS as J, PAINT_GRADIENT_REPEATS as K, PAINT_GRADIENT_REPEAT_LABELS as L, type MixerSettings as M, PAINT_GRADIENT_SPACES as N, PAINT_GRADIENT_SPACE_LABELS as O, type PaintSource as P, PAINT_SOURCE_JSON_SCHEMA as Q, type RetouchSettings as R, StrokeCoverage as S, TileMedium as T, type PaintColorSource as U, type PaintDabParams as V, WetWorld as W, type PaintGradientKit as X, type PaintGradientMapping as Y, type PaintGradientMappingKind as Z, type PaintGradientRepeat as _, type MixerLoad as a, PLANE as a$, PaintGradientSampler as a0, type PaintGradientSpace as a1, type PaintGradientStop as a2, type PaintRgb as a3, PaintSourceError as a4, WET_FLOW_KINDS as a5, WET_PARAM_KEYS as a6, type WetFlowKind as a7, type WetSupport as a8, addPaintGradientStop as a9, DEFAULT_WET_PAPER as aA, DRY_EPS as aB, DabWalker as aC, EMPTY_MIXER_LOAD as aD, EX as aE, EY as aF, type ExchangeRates as aG, FLAG_ALIVE as aH, FLAG_BOTTOM as aI, FLAG_LEFT as aJ, FLAG_RIGHT as aK, FLAG_TOP as aL, FLAG_WET as aM, FLAT as aN, FREE_INTERVAL as aO, MAX_BATCH as aP, MAX_TILT_ACCEL as aQ, MAX_WET_LANES as aR, MAX_WET_SLOTS as aS, MIXER_DRAIN as aT, MIXER_PICKUP_RATE as aU, MIXING_MODELS as aV, OPP as aW, PAPER_CAPACITY as aX, PARAM as aY, PARAM_FLOATS as aZ, PIGMENT_CHANNELS as a_, hash2 as aa, hexToPaintRgb as ab, isGradientPaint as ac, mix32 as ad, normalizeFlow as ae, normalizeHexColor as af, normalizeWetParams as ag, paintGradientMappingFor as ah, paintSourceColor as ai, paintSourceCss as aj, parsePaintSource as ak, rand01 as al, readPaintSource as am, removePaintGradientStop as an, resolvePaintGradient as ao, reversePaintGradient as ap, scalePaintGradient as aq, solidPaint as ar, updatePaintGradientStop as as, wetSupport as at, type BlenderScratch as au, DEFAULT_BLENDER as av, DEFAULT_BRUSH as aw, DEFAULT_MIXER as ax, DEFAULT_RETOUCH as ay, DEFAULT_SMUDGE as az, type MixerTarget as b,
|
|
2110
|
+
export { type PaintGradientSample as $, PAINT_COLOR_JSON_SCHEMA as A, type BrushSettings as B, CoverageMap as C, type Dab as D, PAINT_GRADIENT_FULL_SPEED as E, PAINT_GRADIENT_JSON_SCHEMA as F, PAINT_GRADIENT_KIT as G, PAINT_GRADIENT_MAPPINGS as H, PAINT_GRADIENT_MAPPING_LABELS as I, PAINT_GRADIENT_PRESETS as J, PAINT_GRADIENT_REPEATS as K, PAINT_GRADIENT_REPEAT_LABELS as L, type MixerSettings as M, PAINT_GRADIENT_SPACES as N, PAINT_GRADIENT_SPACE_LABELS as O, type PaintSource as P, PAINT_SOURCE_JSON_SCHEMA as Q, type RetouchSettings as R, StrokeCoverage as S, TileMedium as T, type PaintColorSource as U, type PaintDabParams as V, WetWorld as W, type PaintGradientKit as X, type PaintGradientMapping as Y, type PaintGradientMappingKind as Z, type PaintGradientRepeat as _, type MixerLoad as a, PLANE as a$, PaintGradientSampler as a0, type PaintGradientSpace as a1, type PaintGradientStop as a2, type PaintRgb as a3, PaintSourceError as a4, WET_FLOW_KINDS as a5, WET_PARAM_KEYS as a6, type WetFlowKind as a7, type WetSupport as a8, addPaintGradientStop as a9, DEFAULT_WET_PAPER as aA, DRY_EPS as aB, DabWalker as aC, EMPTY_MIXER_LOAD as aD, EX as aE, EY as aF, type ExchangeRates as aG, FLAG_ALIVE as aH, FLAG_BOTTOM as aI, FLAG_LEFT as aJ, FLAG_RIGHT as aK, FLAG_TOP as aL, FLAG_WET as aM, FLAT as aN, FREE_INTERVAL as aO, MAX_BATCH as aP, MAX_TILT_ACCEL as aQ, MAX_WET_LANES as aR, MAX_WET_SLOTS as aS, MIXER_DRAIN as aT, MIXER_PICKUP_RATE as aU, MIXING_MODELS as aV, OPP as aW, PAPER_CAPACITY as aX, PARAM as aY, PARAM_FLOATS as aZ, PIGMENT_CHANNELS as a_, hash2 as aa, hexToPaintRgb as ab, isGradientPaint as ac, mix32 as ad, normalizeFlow as ae, normalizeHexColor as af, normalizeWetParams as ag, paintGradientMappingFor as ah, paintSourceColor as ai, paintSourceCss as aj, parsePaintSource as ak, rand01 as al, readPaintSource as am, removePaintGradientStop as an, resolvePaintGradient as ao, reversePaintGradient as ap, scalePaintGradient as aq, solidPaint as ar, updatePaintGradientStop as as, wetSupport as at, type BlenderScratch as au, DEFAULT_BLENDER as av, DEFAULT_BRUSH as aw, DEFAULT_MIXER as ax, DEFAULT_RETOUCH as ay, DEFAULT_SMUDGE as az, type MixerTarget as b, dodgeBurn as b$, PLANE_BYTES as b0, P_D0 as b1, P_EDGE as b2, P_FX as b3, P_FY as b4, P_H as b5, P_P0 as b6, P_RHO as b7, P_SW as b8, P_UX as b9, W9 as bA, WET_TILE as bB, type WetFlowField as bC, WetGpuEngine as bD, type WetGpuJob as bE, type WetGpuSupport as bF, type WetKernelKind as bG, type WetLaneOptions as bH, type WetLaneStats as bI, type WetPaper as bJ, type WetWorkerLayout as bK, WetWorkerPool as bL, WetWorldError as bM, applyRetouchToTile as bN, applyStrokeToDeepTile as bO, applyStrokeToTile as bP, applyToneToDeepTile as bQ, blendRadius as bR, blenderDab as bS, boxBlurPixels as bT, canShareMemory as bU, cleanMixer as bV, coverageTileCoord as bW, createBlenderScratch as bX, createWetGpuEngine as bY, dabCoverage as bZ, dabRect as b_, P_UY as ba, PaintExchange as bb, type PaintMedium as bc, type PaintPixels as bd, type PaintSample as be, type PixelSource as bf, RETOUCH_SAMPLES as bg, RegionPixelSource as bh, type RetouchDabEffect as bi, RetouchDabStroke as bj, type RetouchSample as bk, SET_PLANES as bl, SLOT_BYTES as bm, SLOT_PLANES as bn, SLOT_SIDE as bo, SPOT_HEAL_TYPES as bp, STRIP as bq, type SmudgeDab as br, SmudgeTip as bs, type SpotHealType as bt, TIP_GRADIENT_STEPS as bu, TONE_RANGES as bv, type TileMediumOptions as bw, TilePixelSource as bx, type ToneRange as by, U_MAX as bz, MixerStroke as c, dodgeBurnCurve as c0, dsincos as c1, edgeBits as c2, exchangeRates as c3, findWebGpu as c4, flowField as c5, gradientDabColor as c6, healPixels as c7, latticeViscosity as c8, loadMixer as c9, toneOf as cA, walkDabs as cB, wetGpuSupport as cC, wetSimdSupported as cD, loadWetKernel as ca, luma as cb, mixerRates as cc, normalizeBlender as cd, normalizeBrush as ce, normalizeMixer as cf, normalizeRetouch as cg, normalizeSmudge as ch, normalizeTilt as ci, packWetParams as cj, perDabStrength as ck, put255 as cl, rasterizeDab as cm, readSourceRegion as cn, retouchFilter as co, rgbaViewOfGrey as cp, saturationOf as cq, smoothPoints as cr, smudgeEffect as cs, sponge as ct, spongeEffect as cu, spotHealPixels as cv, spotHealWindow as cw, tipFalloff as cx, tipReach as cy, tipShape as cz, type RetouchApply as d, type StrokePoint as e, type RetouchPaint as f, type PaintTileTarget as g, type StrokeApply as h, type PaintGradientSource as i, type MixingModel as j, type BlenderSettings as k, type SmudgeSettings as l, type WetTilt as m, type WetParams as n, type WetFlowSpec as o, type RgbTriple as p, type WetWorldOptions as q, type WetGpuProvider as r, type WetBackendInfo as s, type WetSnapshot as t, type WetPaperInput as u, DEFAULT_FLOW as v, DEFAULT_PAINT_GRADIENT as w, DEFAULT_PAINT_GRADIENT_MAPPING as x, DEFAULT_WET_PARAMS as y, MAX_BRUSH_SIZE as z };
|
|
@@ -1071,7 +1071,7 @@ declare function perDabStrength(e: number, spacing: number): number;
|
|
|
1071
1071
|
type RetouchSample = 'current' | 'current-below' | 'all';
|
|
1072
1072
|
declare const RETOUCH_SAMPLES: readonly RetouchSample[];
|
|
1073
1073
|
/** How the Spot Healing Brush finds its source. */
|
|
1074
|
-
type SpotHealType = 'proximity-match' | 'smooth';
|
|
1074
|
+
type SpotHealType = 'proximity-match' | 'content-aware' | 'smooth';
|
|
1075
1075
|
declare const SPOT_HEAL_TYPES: readonly SpotHealType[];
|
|
1076
1076
|
/** The retouching tools' options. */
|
|
1077
1077
|
interface RetouchSettings {
|
|
@@ -1079,7 +1079,7 @@ interface RetouchSettings {
|
|
|
1079
1079
|
aligned: boolean;
|
|
1080
1080
|
/** Clone / heal / spot heal: what is sampled (default `current`: the target layer). */
|
|
1081
1081
|
sample: RetouchSample;
|
|
1082
|
-
/** Spot heal: `proximity-match` (default: the best matching patch nearby) or `smooth` (a smooth fill from the edges). */
|
|
1082
|
+
/** Spot heal: `proximity-match` (default: the best matching patch nearby), `content-aware` (texture and edges synthesised from patches around it) or `smooth` (a smooth fill from the edges). */
|
|
1083
1083
|
spotType: SpotHealType;
|
|
1084
1084
|
/** Dodge / burn: the tonal range (default `midtones`). */
|
|
1085
1085
|
range: ToneRange;
|
|
@@ -1091,12 +1091,25 @@ interface RetouchSettings {
|
|
|
1091
1091
|
spongeMode: 'desaturate' | 'saturate';
|
|
1092
1092
|
/** Sponge: damp the change where colours would clip (default true). */
|
|
1093
1093
|
vibrance: boolean;
|
|
1094
|
-
/** Smudge: how strongly the finger carries and lays paint, 0..1 (default 0.5). */
|
|
1094
|
+
/** Smudge: how strongly the finger carries and lays paint; Blur / Sharpen: how strongly they act, 0..1 (default 0.5). */
|
|
1095
1095
|
strength: number;
|
|
1096
|
+
/** History Brush: how many undo steps back it paints from; 0 (default) is the oldest state history keeps. */
|
|
1097
|
+
historySteps: number;
|
|
1096
1098
|
}
|
|
1097
1099
|
declare const DEFAULT_RETOUCH: Readonly<RetouchSettings>;
|
|
1098
1100
|
/** Retouch settings with every field valid (missing or invalid fields from `base`). */
|
|
1099
1101
|
declare function normalizeRetouch(raw?: Partial<RetouchSettings>, base?: RetouchSettings): RetouchSettings;
|
|
1102
|
+
/**
|
|
1103
|
+
* Box blur of `data` (`w × h × n` floats) in place, `r` pixels each side, edges clamped. RGBA
|
|
1104
|
+
* blurs premultiplied, so transparent pixels lend no colour. Run twice for a near-Gaussian.
|
|
1105
|
+
*/
|
|
1106
|
+
declare function boxBlurPixels(data: Float32Array, w: number, h: number, n: 1 | 4, r: number): void;
|
|
1107
|
+
/**
|
|
1108
|
+
* The Blur / Sharpen tools' filter over a padded region (`w × h × n` floats on the 0..255 scale,
|
|
1109
|
+
* in place): `blur` is two box passes of `radius`; `sharpen` is an unsharp mask of `amount`
|
|
1110
|
+
* over a radius-1 blur (colour only; alpha kept). Values stay at or above 0.
|
|
1111
|
+
*/
|
|
1112
|
+
declare function retouchFilter(data: Float32Array, w: number, h: number, n: 1 | 4, kind: 'blur' | 'sharpen', radius?: number, amount?: number): void;
|
|
1100
1113
|
/** Pixels a retouching stroke samples, by document pixel. */
|
|
1101
1114
|
interface PixelSource {
|
|
1102
1115
|
/** Straight RGBA 0..255 of document pixel (x, y) into `out`; false (and `out` zeroed) where there is nothing. */
|
|
@@ -2094,4 +2107,4 @@ declare function hash2(x: number, y: number, salt: number): number;
|
|
|
2094
2107
|
/** Uniform in [0, 1) from a seed, an index and a stream (one stream per random quantity). */
|
|
2095
2108
|
declare function rand01(seed: number, index: number, stream: number): number;
|
|
2096
2109
|
|
|
2097
|
-
export { type PaintGradientSample as $, PAINT_COLOR_JSON_SCHEMA as A, type BrushSettings as B, CoverageMap as C, type Dab as D, PAINT_GRADIENT_FULL_SPEED as E, PAINT_GRADIENT_JSON_SCHEMA as F, PAINT_GRADIENT_KIT as G, PAINT_GRADIENT_MAPPINGS as H, PAINT_GRADIENT_MAPPING_LABELS as I, PAINT_GRADIENT_PRESETS as J, PAINT_GRADIENT_REPEATS as K, PAINT_GRADIENT_REPEAT_LABELS as L, type MixerSettings as M, PAINT_GRADIENT_SPACES as N, PAINT_GRADIENT_SPACE_LABELS as O, type PaintSource as P, PAINT_SOURCE_JSON_SCHEMA as Q, type RetouchSettings as R, StrokeCoverage as S, TileMedium as T, type PaintColorSource as U, type PaintDabParams as V, WetWorld as W, type PaintGradientKit as X, type PaintGradientMapping as Y, type PaintGradientMappingKind as Z, type PaintGradientRepeat as _, type MixerLoad as a, PLANE as a$, PaintGradientSampler as a0, type PaintGradientSpace as a1, type PaintGradientStop as a2, type PaintRgb as a3, PaintSourceError as a4, WET_FLOW_KINDS as a5, WET_PARAM_KEYS as a6, type WetFlowKind as a7, type WetSupport as a8, addPaintGradientStop as a9, DEFAULT_WET_PAPER as aA, DRY_EPS as aB, DabWalker as aC, EMPTY_MIXER_LOAD as aD, EX as aE, EY as aF, type ExchangeRates as aG, FLAG_ALIVE as aH, FLAG_BOTTOM as aI, FLAG_LEFT as aJ, FLAG_RIGHT as aK, FLAG_TOP as aL, FLAG_WET as aM, FLAT as aN, FREE_INTERVAL as aO, MAX_BATCH as aP, MAX_TILT_ACCEL as aQ, MAX_WET_LANES as aR, MAX_WET_SLOTS as aS, MIXER_DRAIN as aT, MIXER_PICKUP_RATE as aU, MIXING_MODELS as aV, OPP as aW, PAPER_CAPACITY as aX, PARAM as aY, PARAM_FLOATS as aZ, PIGMENT_CHANNELS as a_, hash2 as aa, hexToPaintRgb as ab, isGradientPaint as ac, mix32 as ad, normalizeFlow as ae, normalizeHexColor as af, normalizeWetParams as ag, paintGradientMappingFor as ah, paintSourceColor as ai, paintSourceCss as aj, parsePaintSource as ak, rand01 as al, readPaintSource as am, removePaintGradientStop as an, resolvePaintGradient as ao, reversePaintGradient as ap, scalePaintGradient as aq, solidPaint as ar, updatePaintGradientStop as as, wetSupport as at, type BlenderScratch as au, DEFAULT_BLENDER as av, DEFAULT_BRUSH as aw, DEFAULT_MIXER as ax, DEFAULT_RETOUCH as ay, DEFAULT_SMUDGE as az, type MixerTarget as b,
|
|
2110
|
+
export { type PaintGradientSample as $, PAINT_COLOR_JSON_SCHEMA as A, type BrushSettings as B, CoverageMap as C, type Dab as D, PAINT_GRADIENT_FULL_SPEED as E, PAINT_GRADIENT_JSON_SCHEMA as F, PAINT_GRADIENT_KIT as G, PAINT_GRADIENT_MAPPINGS as H, PAINT_GRADIENT_MAPPING_LABELS as I, PAINT_GRADIENT_PRESETS as J, PAINT_GRADIENT_REPEATS as K, PAINT_GRADIENT_REPEAT_LABELS as L, type MixerSettings as M, PAINT_GRADIENT_SPACES as N, PAINT_GRADIENT_SPACE_LABELS as O, type PaintSource as P, PAINT_SOURCE_JSON_SCHEMA as Q, type RetouchSettings as R, StrokeCoverage as S, TileMedium as T, type PaintColorSource as U, type PaintDabParams as V, WetWorld as W, type PaintGradientKit as X, type PaintGradientMapping as Y, type PaintGradientMappingKind as Z, type PaintGradientRepeat as _, type MixerLoad as a, PLANE as a$, PaintGradientSampler as a0, type PaintGradientSpace as a1, type PaintGradientStop as a2, type PaintRgb as a3, PaintSourceError as a4, WET_FLOW_KINDS as a5, WET_PARAM_KEYS as a6, type WetFlowKind as a7, type WetSupport as a8, addPaintGradientStop as a9, DEFAULT_WET_PAPER as aA, DRY_EPS as aB, DabWalker as aC, EMPTY_MIXER_LOAD as aD, EX as aE, EY as aF, type ExchangeRates as aG, FLAG_ALIVE as aH, FLAG_BOTTOM as aI, FLAG_LEFT as aJ, FLAG_RIGHT as aK, FLAG_TOP as aL, FLAG_WET as aM, FLAT as aN, FREE_INTERVAL as aO, MAX_BATCH as aP, MAX_TILT_ACCEL as aQ, MAX_WET_LANES as aR, MAX_WET_SLOTS as aS, MIXER_DRAIN as aT, MIXER_PICKUP_RATE as aU, MIXING_MODELS as aV, OPP as aW, PAPER_CAPACITY as aX, PARAM as aY, PARAM_FLOATS as aZ, PIGMENT_CHANNELS as a_, hash2 as aa, hexToPaintRgb as ab, isGradientPaint as ac, mix32 as ad, normalizeFlow as ae, normalizeHexColor as af, normalizeWetParams as ag, paintGradientMappingFor as ah, paintSourceColor as ai, paintSourceCss as aj, parsePaintSource as ak, rand01 as al, readPaintSource as am, removePaintGradientStop as an, resolvePaintGradient as ao, reversePaintGradient as ap, scalePaintGradient as aq, solidPaint as ar, updatePaintGradientStop as as, wetSupport as at, type BlenderScratch as au, DEFAULT_BLENDER as av, DEFAULT_BRUSH as aw, DEFAULT_MIXER as ax, DEFAULT_RETOUCH as ay, DEFAULT_SMUDGE as az, type MixerTarget as b, dodgeBurn as b$, PLANE_BYTES as b0, P_D0 as b1, P_EDGE as b2, P_FX as b3, P_FY as b4, P_H as b5, P_P0 as b6, P_RHO as b7, P_SW as b8, P_UX as b9, W9 as bA, WET_TILE as bB, type WetFlowField as bC, WetGpuEngine as bD, type WetGpuJob as bE, type WetGpuSupport as bF, type WetKernelKind as bG, type WetLaneOptions as bH, type WetLaneStats as bI, type WetPaper as bJ, type WetWorkerLayout as bK, WetWorkerPool as bL, WetWorldError as bM, applyRetouchToTile as bN, applyStrokeToDeepTile as bO, applyStrokeToTile as bP, applyToneToDeepTile as bQ, blendRadius as bR, blenderDab as bS, boxBlurPixels as bT, canShareMemory as bU, cleanMixer as bV, coverageTileCoord as bW, createBlenderScratch as bX, createWetGpuEngine as bY, dabCoverage as bZ, dabRect as b_, P_UY as ba, PaintExchange as bb, type PaintMedium as bc, type PaintPixels as bd, type PaintSample as be, type PixelSource as bf, RETOUCH_SAMPLES as bg, RegionPixelSource as bh, type RetouchDabEffect as bi, RetouchDabStroke as bj, type RetouchSample as bk, SET_PLANES as bl, SLOT_BYTES as bm, SLOT_PLANES as bn, SLOT_SIDE as bo, SPOT_HEAL_TYPES as bp, STRIP as bq, type SmudgeDab as br, SmudgeTip as bs, type SpotHealType as bt, TIP_GRADIENT_STEPS as bu, TONE_RANGES as bv, type TileMediumOptions as bw, TilePixelSource as bx, type ToneRange as by, U_MAX as bz, MixerStroke as c, dodgeBurnCurve as c0, dsincos as c1, edgeBits as c2, exchangeRates as c3, findWebGpu as c4, flowField as c5, gradientDabColor as c6, healPixels as c7, latticeViscosity as c8, loadMixer as c9, toneOf as cA, walkDabs as cB, wetGpuSupport as cC, wetSimdSupported as cD, loadWetKernel as ca, luma as cb, mixerRates as cc, normalizeBlender as cd, normalizeBrush as ce, normalizeMixer as cf, normalizeRetouch as cg, normalizeSmudge as ch, normalizeTilt as ci, packWetParams as cj, perDabStrength as ck, put255 as cl, rasterizeDab as cm, readSourceRegion as cn, retouchFilter as co, rgbaViewOfGrey as cp, saturationOf as cq, smoothPoints as cr, smudgeEffect as cs, sponge as ct, spongeEffect as cu, spotHealPixels as cv, spotHealWindow as cw, tipFalloff as cx, tipReach as cy, tipShape as cz, type RetouchApply as d, type StrokePoint as e, type RetouchPaint as f, type PaintTileTarget as g, type StrokeApply as h, type PaintGradientSource as i, type MixingModel as j, type BlenderSettings as k, type SmudgeSettings as l, type WetTilt as m, type WetParams as n, type WetFlowSpec as o, type RgbTriple as p, type WetWorldOptions as q, type WetGpuProvider as r, type WetBackendInfo as s, type WetSnapshot as t, type WetPaperInput as u, DEFAULT_FLOW as v, DEFAULT_PAINT_GRADIENT as w, DEFAULT_PAINT_GRADIENT_MAPPING as x, DEFAULT_WET_PARAMS as y, MAX_BRUSH_SIZE as z };
|
package/dist/raster/index.cjs
CHANGED
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunk24ATT2PEcjs = require('../chunk-24ATT2PE.cjs');
|
|
65
65
|
require('../chunk-MUUXNRU4.cjs');
|
|
66
66
|
|
|
67
67
|
|
|
@@ -512,5 +512,5 @@ function drawSurfaceToViewport(ctx, surface, mapping, view, options) {
|
|
|
512
512
|
|
|
513
513
|
|
|
514
514
|
|
|
515
|
-
exports.BIT_DEPTHS = _chunkJ5BA3BQ6cjs.BIT_DEPTHS; exports.BLEND_MODES = _chunkJ5BA3BQ6cjs.BLEND_MODES; exports.CURVE_LUT_SIZE =
|
|
515
|
+
exports.BIT_DEPTHS = _chunkJ5BA3BQ6cjs.BIT_DEPTHS; exports.BLEND_MODES = _chunkJ5BA3BQ6cjs.BLEND_MODES; exports.CURVE_LUT_SIZE = _chunk24ATT2PEcjs.CURVE_LUT_SIZE; exports.DEFAULT_GLOBAL_LIGHT = _chunk24ATT2PEcjs.DEFAULT_GLOBAL_LIGHT; exports.DIRECT_GAUSSIAN_MAX_SIGMA = _chunk24ATT2PEcjs.DIRECT_GAUSSIAN_MAX_SIGMA; exports.DeepCompositor = _chunk24ATT2PEcjs.DeepCompositor; exports.INTERPOLATIONS = _chunk24ATT2PEcjs.INTERPOLATIONS; exports.LAYER_EFFECT_KINDS = _chunk24ATT2PEcjs.LAYER_EFFECT_KINDS; exports.LayerEffectError = _chunk24ATT2PEcjs.LayerEffectError; exports.MAX_EFFECT_REACH = _chunk24ATT2PEcjs.MAX_EFFECT_REACH; exports.MAX_TRANSFORM_PIXELS = _chunk24ATT2PEcjs.MAX_TRANSFORM_PIXELS; exports.PAINTERLY_BLEND_MODES = _chunkJ5BA3BQ6cjs.PAINTERLY_BLEND_MODES; exports.PatternPlacement = _chunk24ATT2PEcjs.PatternPlacement; exports.PatternTile = _chunk24ATT2PEcjs.PatternTile; exports.RasterCompositor = _chunk24ATT2PEcjs.RasterCompositor; exports.SHADOW_AMBIENT = _chunkJ5BA3BQ6cjs.SHADOW_AMBIENT; exports.STROKE_CHAMFER_MAX = _chunk24ATT2PEcjs.STROKE_CHAMFER_MAX; exports.SurfaceDraft = _chunkJ5BA3BQ6cjs.SurfaceDraft; exports.SurfaceViewportRenderer = SurfaceViewportRenderer; exports.TILE = _chunkJ5BA3BQ6cjs.TILE; exports.TILE_SHIFT = _chunkJ5BA3BQ6cjs.TILE_SHIFT; exports.TiledSurface = _chunkJ5BA3BQ6cjs.TiledSurface; exports.TransformTooLargeError = _chunk24ATT2PEcjs.TransformTooLargeError; exports.ZlibError = _chunk643B2HKCcjs.ZlibError; exports.activeEffectItems = _chunk24ATT2PEcjs.activeEffectItems; exports.adler32 = _chunk643B2HKCcjs.adler32; exports.base64ToBytes = _chunkDCLJNVZScjs.base64ToBytes; exports.blendChannel = _chunkJ5BA3BQ6cjs.blendChannel; exports.blendImageData = _chunkJ5BA3BQ6cjs.blendImageData; exports.blendLum = _chunkJ5BA3BQ6cjs.blendLum; exports.blendPixel = _chunkJ5BA3BQ6cjs.blendPixel; exports.blendRgb = _chunkJ5BA3BQ6cjs.blendRgb; exports.blendTile = _chunk24ATT2PEcjs.blendTile; exports.buildEffectMaps = _chunk24ATT2PEcjs.buildEffectMaps; exports.builtinPattern = _chunk24ATT2PEcjs.builtinPattern; exports.builtinPatternIds = _chunk24ATT2PEcjs.builtinPatternIds; exports.bytesToBase64 = _chunkDCLJNVZScjs.bytesToBase64; exports.canvasCompositeOperation = _chunkJ5BA3BQ6cjs.canvasCompositeOperation; exports.changedTiles = _chunk24ATT2PEcjs.changedTiles; exports.collectTiles = _chunkJ5BA3BQ6cjs.collectTiles; exports.compositeLayerEffects = _chunk24ATT2PEcjs.compositeLayerEffects; exports.compositeSurfaceOver = _chunk24ATT2PEcjs.compositeSurfaceOver; exports.contentBounds = _chunkJ5BA3BQ6cjs.contentBounds; exports.contourLut = _chunk24ATT2PEcjs.contourLut; exports.convertSurfaceDepth = _chunkJ5BA3BQ6cjs.convertSurfaceDepth; exports.curveLut = _chunk24ATT2PEcjs.curveLut; exports.decodePng = _chunkDCLJNVZScjs.decodePng; exports.deepBytes = _chunkJ5BA3BQ6cjs.deepBytes; exports.deepTile = _chunkJ5BA3BQ6cjs.deepTile; exports.defaultEffectGradient = _chunk24ATT2PEcjs.defaultEffectGradient; exports.defaultLayerEffect = _chunk24ATT2PEcjs.defaultLayerEffect; exports.deflate = _chunk643B2HKCcjs.deflate; exports.deflateRaw = _chunk643B2HKCcjs.deflateRaw; exports.depthOf = _chunkJ5BA3BQ6cjs.depthOf; exports.drawSurfaceToViewport = drawSurfaceToViewport; exports.effectColorHex = _chunk24ATT2PEcjs.effectColorHex; exports.effectFillColors = _chunk24ATT2PEcjs.effectFillColors; exports.effectReach = _chunk24ATT2PEcjs.effectReach; exports.effectsAreLocal = _chunk24ATT2PEcjs.effectsAreLocal; exports.effectsFingerprint = _chunk24ATT2PEcjs.effectsFingerprint; exports.effectsMargin = _chunk24ATT2PEcjs.effectsMargin; exports.effectsScale = _chunk24ATT2PEcjs.effectsScale; exports.emptySurface = _chunkJ5BA3BQ6cjs.emptySurface; exports.encodePng = _chunkDCLJNVZScjs.encodePng; exports.fillRect = _chunkJ5BA3BQ6cjs.fillRect; exports.findLayer = _chunk24ATT2PEcjs.findLayer; exports.finishTile = _chunkJ5BA3BQ6cjs.finishTile; exports.flattenLayers = _chunk24ATT2PEcjs.flattenLayers; exports.gaussianBlur = _chunk24ATT2PEcjs.gaussianBlur; exports.gradientT = _chunk24ATT2PEcjs.gradientT; exports.hasActiveEffects = _chunk24ATT2PEcjs.hasActiveEffects; exports.hashNoise = _chunk24ATT2PEcjs.hashNoise; exports.inflate = _chunk643B2HKCcjs.inflate; exports.inflateRaw = _chunk643B2HKCcjs.inflateRaw; exports.insertLayer = _chunk24ATT2PEcjs.insertLayer; exports.isBitDepth = _chunkJ5BA3BQ6cjs.isBitDepth; exports.isBlendMode = _chunkJ5BA3BQ6cjs.isBlendMode; exports.isInterpolation = _chunk24ATT2PEcjs.isInterpolation; exports.isLayerEffectKind = _chunk24ATT2PEcjs.isLayerEffectKind; exports.isLayerLocked = _chunk24ATT2PEcjs.isLayerLocked; exports.isPainterlyBlendMode = _chunkJ5BA3BQ6cjs.isPainterlyBlendMode; exports.isPng = _chunkDCLJNVZScjs.isPng; exports.isSeparableBlendMode = _chunkJ5BA3BQ6cjs.isSeparableBlendMode; exports.keepDeepSamples = _chunkJ5BA3BQ6cjs.keepDeepSamples; exports.keysWeight = _chunk24ATT2PEcjs.keysWeight; exports.layerEffectFields = _chunk24ATT2PEcjs.layerEffectFields; exports.layerEffectLabel = _chunk24ATT2PEcjs.layerEffectLabel; exports.mapLayer = _chunk24ATT2PEcjs.mapLayer; exports.mergeLayerEffect = _chunk24ATT2PEcjs.mergeLayerEffect; exports.mixPigment8 = _chunkJ5BA3BQ6cjs.mixPigment8; exports.mixPigmentRgb = _chunkJ5BA3BQ6cjs.mixPigmentRgb; exports.newEffectId = _chunk24ATT2PEcjs.newEffectId; exports.normalizeBlendMode = _chunkJ5BA3BQ6cjs.normalizeBlendMode; exports.normalizeLayerEffects = _chunk24ATT2PEcjs.normalizeLayerEffects; exports.packRgba = _chunkJ5BA3BQ6cjs.packRgba; exports.parseDataUrl = _chunkDCLJNVZScjs.parseDataUrl; exports.parseEffectColor = _chunk24ATT2PEcjs.parseEffectColor; exports.patchEffectMaps = _chunk24ATT2PEcjs.patchEffectMaps; exports.pigment8 = _chunkJ5BA3BQ6cjs.pigment8; exports.pngDataUrl = _chunkDCLJNVZScjs.pngDataUrl; exports.proxyOf = _chunkJ5BA3BQ6cjs.proxyOf; exports.readDeepRegion = _chunkJ5BA3BQ6cjs.readDeepRegion; exports.readPixel = _chunkJ5BA3BQ6cjs.readPixel; exports.readRegion = _chunkJ5BA3BQ6cjs.readRegion; exports.reduceSurface = _chunk24ATT2PEcjs.reduceSurface; exports.renderLayerEffects = _chunk24ATT2PEcjs.renderLayerEffects; exports.scaleLayerEffect = _chunk24ATT2PEcjs.scaleLayerEffect; exports.screenToWorld = screenToWorld; exports.setLum = _chunkJ5BA3BQ6cjs.setLum; exports.solidSurface = _chunkJ5BA3BQ6cjs.solidSurface; exports.srgbDecode = _chunkJ5BA3BQ6cjs.srgbDecode; exports.srgbEncode = _chunkJ5BA3BQ6cjs.srgbEncode; exports.standardBlendMode = _chunkJ5BA3BQ6cjs.standardBlendMode; exports.surfaceBytes = _chunkJ5BA3BQ6cjs.surfaceBytes; exports.surfaceDepth = _chunkJ5BA3BQ6cjs.surfaceDepth; exports.surfaceFromDeepPixels = _chunkJ5BA3BQ6cjs.surfaceFromDeepPixels; exports.surfaceFromPixels = _chunkJ5BA3BQ6cjs.surfaceFromPixels; exports.surfaceMipLevel = surfaceMipLevel; exports.surfaceResolutionForZoom = surfaceResolutionForZoom; exports.surfaceToWorld = surfaceToWorld; exports.surfacesEqual = _chunkJ5BA3BQ6cjs.surfacesEqual; exports.tileCoord = _chunkJ5BA3BQ6cjs.tileCoord; exports.tileKey = _chunkJ5BA3BQ6cjs.tileKey; exports.tileRect = _chunkJ5BA3BQ6cjs.tileRect; exports.tileSamples = _chunkJ5BA3BQ6cjs.tileSamples; exports.tileSamples16 = _chunkJ5BA3BQ6cjs.tileSamples16; exports.tileSamples32 = _chunkJ5BA3BQ6cjs.tileSamples32; exports.tilesInRect = _chunkJ5BA3BQ6cjs.tilesInRect; exports.to16From32 = _chunkJ5BA3BQ6cjs.to16From32; exports.to16From8 = _chunkJ5BA3BQ6cjs.to16From8; exports.to32From16 = _chunkJ5BA3BQ6cjs.to32From16; exports.to32From8 = _chunkJ5BA3BQ6cjs.to32From8; exports.to8From16 = _chunkJ5BA3BQ6cjs.to8From16; exports.to8From32 = _chunkJ5BA3BQ6cjs.to8From32; exports.transformSurface = _chunk24ATT2PEcjs.transformSurface; exports.transformedBounds = _chunk24ATT2PEcjs.transformedBounds; exports.translateSurface = _chunkJ5BA3BQ6cjs.translateSurface; exports.uniformTile = _chunkJ5BA3BQ6cjs.uniformTile; exports.validateEffectGradient = _chunk24ATT2PEcjs.validateEffectGradient; exports.validateLayerEffect = _chunk24ATT2PEcjs.validateLayerEffect; exports.validateLayerEffects = _chunk24ATT2PEcjs.validateLayerEffects; exports.visibleSurfaceRect = visibleSurfaceRect; exports.visibleWorldRect = visibleWorldRect; exports.warpSurface = _chunk24ATT2PEcjs.warpSurface; exports.workingToSamples = _chunk24ATT2PEcjs.workingToSamples; exports.worldRectToSurface = worldRectToSurface; exports.worldToSurface = worldToSurface; exports.writeDeepRegion = _chunkJ5BA3BQ6cjs.writeDeepRegion; exports.writeRegion = _chunkJ5BA3BQ6cjs.writeRegion;
|
|
516
516
|
//# sourceMappingURL=index.cjs.map
|
package/dist/raster/index.d.cts
CHANGED
|
@@ -20,9 +20,9 @@ import '../types-CwMPoRMU.cjs';
|
|
|
20
20
|
* - the effect maps of layers with effects (built from the 8-bit shape); the effects themselves
|
|
21
21
|
* composite in float over the deep content (`runEffects`), and pixel filters run in float when
|
|
22
22
|
* the profile gives `pixelFiltersDeep`;
|
|
23
|
-
* -
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* - filters it cannot run in float and content layers the editor draws itself (annotations):
|
|
24
|
+
* each is rendered alone at 8 bits, converted, and blended in float with its blend mode and
|
|
25
|
+
* opacity.
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/** Float hooks of an editor's own layer kinds (see `CompositorProfile`). */
|
|
@@ -71,7 +71,7 @@ declare class DeepCompositor<L extends CompositorLayer, S extends RasterSources>
|
|
|
71
71
|
private applyClipped;
|
|
72
72
|
private applyFilterRun;
|
|
73
73
|
/** Layers drawn by the 8-bit compositor alone (effects, pixel filters, content the editor draws). */
|
|
74
|
-
/** A pixel(-like) layer with effects: composited in float through `compositeLayerEffects`. */
|
|
74
|
+
/** A pixel(-like) layer or a group with effects: composited in float through `compositeLayerEffects`. */
|
|
75
75
|
private deepEffects;
|
|
76
76
|
private renderedAlone;
|
|
77
77
|
private blendOf;
|
package/dist/raster/index.d.ts
CHANGED
|
@@ -20,9 +20,9 @@ import '../types-CwMPoRMU.js';
|
|
|
20
20
|
* - the effect maps of layers with effects (built from the 8-bit shape); the effects themselves
|
|
21
21
|
* composite in float over the deep content (`runEffects`), and pixel filters run in float when
|
|
22
22
|
* the profile gives `pixelFiltersDeep`;
|
|
23
|
-
* -
|
|
24
|
-
*
|
|
25
|
-
*
|
|
23
|
+
* - filters it cannot run in float and content layers the editor draws itself (annotations):
|
|
24
|
+
* each is rendered alone at 8 bits, converted, and blended in float with its blend mode and
|
|
25
|
+
* opacity.
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
/** Float hooks of an editor's own layer kinds (see `CompositorProfile`). */
|
|
@@ -71,7 +71,7 @@ declare class DeepCompositor<L extends CompositorLayer, S extends RasterSources>
|
|
|
71
71
|
private applyClipped;
|
|
72
72
|
private applyFilterRun;
|
|
73
73
|
/** Layers drawn by the 8-bit compositor alone (effects, pixel filters, content the editor draws). */
|
|
74
|
-
/** A pixel(-like) layer with effects: composited in float through `compositeLayerEffects`. */
|
|
74
|
+
/** A pixel(-like) layer or a group with effects: composited in float through `compositeLayerEffects`. */
|
|
75
75
|
private deepEffects;
|
|
76
76
|
private renderedAlone;
|
|
77
77
|
private blendOf;
|
package/dist/raster/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BezierPath, A as AffineMatrix } from './bezier-
|
|
2
|
-
import { V as VectorEffectType, H as VectorEffectParamsMap, I as VectorPathNode, J as VectorFillRule, K as VectorBooleanOperation, L as VectorNode, M as VectorEffect, N as VectorGroupNode, O as VectorBounds, P as VectorWarpMesh, Q as VectorInstanceNode, R as VectorFilterType, T as VectorFilterParamsMap, U as VectorFilter, W as VectorGradient, X as Vec2, Y as VectorGradientUnits, S as SvgGradientDef, Z as VectorGradientSpread, _ as VectorGradientType, $ as VectorPaint, a0 as VectorMatrix, a1 as VectorGradientStop, a2 as VectorStrokeAlign, a3 as VectorSubpath, a4 as VectorDocument, a5 as VectorWidthPoint } from './helpers-
|
|
1
|
+
import { B as BezierPath, A as AffineMatrix } from './bezier-DL2wPsFf.cjs';
|
|
2
|
+
import { V as VectorEffectType, H as VectorEffectParamsMap, I as VectorPathNode, J as VectorFillRule, K as VectorBooleanOperation, L as VectorNode, M as VectorEffect, N as VectorGroupNode, O as VectorBounds, P as VectorWarpMesh, Q as VectorInstanceNode, R as VectorFilterType, T as VectorFilterParamsMap, U as VectorFilter, W as VectorGradient, X as Vec2, Y as VectorGradientUnits, S as SvgGradientDef, Z as VectorGradientSpread, _ as VectorGradientType, $ as VectorPaint, a0 as VectorMatrix, a1 as VectorGradientStop, a2 as VectorStrokeAlign, a3 as VectorSubpath, a4 as VectorDocument, a5 as VectorWidthPoint } from './helpers-BuKdqUlM.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Live appearance: path effect stacks and live boolean groups, evaluated on demand while the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as BezierPath, A as AffineMatrix } from './bezier-
|
|
2
|
-
import { V as VectorEffectType, H as VectorEffectParamsMap, I as VectorPathNode, J as VectorFillRule, K as VectorBooleanOperation, L as VectorNode, M as VectorEffect, N as VectorGroupNode, O as VectorBounds, P as VectorWarpMesh, Q as VectorInstanceNode, R as VectorFilterType, T as VectorFilterParamsMap, U as VectorFilter, W as VectorGradient, X as Vec2, Y as VectorGradientUnits, S as SvgGradientDef, Z as VectorGradientSpread, _ as VectorGradientType, $ as VectorPaint, a0 as VectorMatrix, a1 as VectorGradientStop, a2 as VectorStrokeAlign, a3 as VectorSubpath, a4 as VectorDocument, a5 as VectorWidthPoint } from './helpers-
|
|
1
|
+
import { B as BezierPath, A as AffineMatrix } from './bezier-BAGdL89w.js';
|
|
2
|
+
import { V as VectorEffectType, H as VectorEffectParamsMap, I as VectorPathNode, J as VectorFillRule, K as VectorBooleanOperation, L as VectorNode, M as VectorEffect, N as VectorGroupNode, O as VectorBounds, P as VectorWarpMesh, Q as VectorInstanceNode, R as VectorFilterType, T as VectorFilterParamsMap, U as VectorFilter, W as VectorGradient, X as Vec2, Y as VectorGradientUnits, S as SvgGradientDef, Z as VectorGradientSpread, _ as VectorGradientType, $ as VectorPaint, a0 as VectorMatrix, a1 as VectorGradientStop, a2 as VectorStrokeAlign, a3 as VectorSubpath, a4 as VectorDocument, a5 as VectorWidthPoint } from './helpers-cssRNUzH.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Live appearance: path effect stacks and live boolean groups, evaluated on demand while the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as AgentTool, a as AgentToolProvider } from './registry-BqA1AZt0.cjs';
|
|
2
2
|
import { J as JsonSchema } from './schema-Di0CS6Pe.cjs';
|
|
3
|
-
import { E as EffectProvider, c as EffectUse } from './helpers-
|
|
3
|
+
import { E as EffectProvider, c as EffectUse } from './helpers-BuKdqUlM.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The agent tools for provider effects, shared by every editor that takes an `EffectProvider`:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as AgentTool, a as AgentToolProvider } from './registry-D-4fit9C.js';
|
|
2
2
|
import { J as JsonSchema } from './schema-Di0CS6Pe.js';
|
|
3
|
-
import { E as EffectProvider, c as EffectUse } from './helpers-
|
|
3
|
+
import { E as EffectProvider, c as EffectUse } from './helpers-cssRNUzH.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The agent tools for provider effects, shared by every editor that takes an `EffectProvider`:
|