@pixerate/editor 0.137.0 → 0.139.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/agent/index.cjs +2 -2
- package/dist/agent/index.d.cts +3 -3
- package/dist/agent/index.d.ts +3 -3
- package/dist/agent/index.js +1 -1
- package/dist/animation-editor/index.cjs +57 -57
- package/dist/animation-editor/index.d.cts +6 -5
- package/dist/animation-editor/index.d.ts +6 -5
- package/dist/animation-editor/index.js +4 -4
- package/dist/{arrange-CKXK_hf7.d.cts → arrange-j_mLiFMO.d.cts} +1 -1
- package/dist/{arrange-BUREmgD9.d.ts → arrange-q5HQvnnB.d.ts} +1 -1
- package/dist/{bezier-Dywv3Bw8.d.ts → bezier-B6cK8SR6.d.ts} +2 -2
- package/dist/{bezier-CZ2AhjID.d.cts → bezier-CEJ8Uw4O.d.cts} +2 -2
- package/dist/{brushTypes-C7N3EBK7.d.cts → brushTypes-MX5UVs_m.d.cts} +27 -2
- package/dist/{brushTypes-C7N3EBK7.d.ts → brushTypes-MX5UVs_m.d.ts} +27 -2
- package/dist/{brushes-DJmUbIgz.d.ts → brushes-CQpL7_Lc.d.ts} +2 -107
- package/dist/{brushes-CnvZSYYU.d.cts → brushes-aEnjqoji.d.cts} +2 -107
- package/dist/{brushstrokeRender-IMFY3FF6.cjs → brushstrokeRender-PP6NTF6M.cjs} +52 -24
- package/dist/brushstrokeRender-PP6NTF6M.cjs.map +1 -0
- package/dist/{brushstrokeRender-2FAXA3XC.js → brushstrokeRender-QGEYJ4OZ.js} +40 -12
- package/dist/brushstrokeRender-QGEYJ4OZ.js.map +1 -0
- package/dist/{builtins-Cc-bH-3U.d.cts → builtins-BakDiKWf.d.cts} +3 -2
- package/dist/{builtins-ZU1GJnUA.d.ts → builtins-CE33vyv2.d.ts} +3 -2
- package/dist/canvas/index.cjs +16 -9
- package/dist/canvas/index.cjs.map +1 -1
- package/dist/canvas/index.d.cts +60 -14
- package/dist/canvas/index.d.ts +60 -14
- package/dist/canvas/index.js +10 -3
- package/dist/canvas/index.js.map +1 -1
- package/dist/{chunk-PRSRYHQD.cjs → chunk-3QHPFSQM.cjs} +36 -36
- package/dist/{chunk-PRSRYHQD.cjs.map → chunk-3QHPFSQM.cjs.map} +1 -1
- package/dist/{chunk-QBWEH3IM.cjs → chunk-3T5O225T.cjs} +391 -76
- package/dist/chunk-3T5O225T.cjs.map +1 -0
- package/dist/{chunk-EQQMGO42.js → chunk-C2J7GOMJ.js} +18 -5
- package/dist/chunk-C2J7GOMJ.js.map +1 -0
- package/dist/{chunk-2XS6LTUP.cjs → chunk-C46AZEBE.cjs} +104 -339
- package/dist/chunk-C46AZEBE.cjs.map +1 -0
- package/dist/{chunk-HUO3TI4C.js → chunk-CPSMARTX.js} +6 -241
- package/dist/chunk-CPSMARTX.js.map +1 -0
- package/dist/{chunk-KEENUAFN.cjs → chunk-DLLUOVQX.cjs} +18 -5
- package/dist/chunk-DLLUOVQX.cjs.map +1 -0
- package/dist/{chunk-LSXXAJG3.js → chunk-J7DSKTKB.js} +5 -4
- package/dist/chunk-J7DSKTKB.js.map +1 -0
- package/dist/{chunk-6S6362D2.js → chunk-NI6RORDS.js} +2 -2
- package/dist/{chunk-XN2NBLV5.cjs → chunk-PMEHFHSP.cjs} +82 -82
- package/dist/{chunk-XN2NBLV5.cjs.map → chunk-PMEHFHSP.cjs.map} +1 -1
- package/dist/{chunk-5FSRTP6E.js → chunk-PQFVLOMR.js} +319 -4
- package/dist/chunk-PQFVLOMR.js.map +1 -0
- package/dist/{chunk-OIBIRXRG.js → chunk-PSPLRQL6.js} +2 -2
- package/dist/{chunk-SYT2TLQF.js → chunk-QEIN6JQO.js} +2 -2
- package/dist/{chunk-3D77LOBM.js → chunk-TJBYBSTN.js} +51 -6
- package/dist/chunk-TJBYBSTN.js.map +1 -0
- package/dist/{chunk-DFSZO2B5.cjs → chunk-UFL5N4DK.cjs} +5 -4
- package/dist/chunk-UFL5N4DK.cjs.map +1 -0
- package/dist/{chunk-TLCTTQFF.cjs → chunk-VEHVXRJU.cjs} +17 -17
- package/dist/{chunk-TLCTTQFF.cjs.map → chunk-VEHVXRJU.cjs.map} +1 -1
- package/dist/{chunk-5OOIUXNJ.cjs → chunk-XFXHA5MU.cjs} +55 -10
- package/dist/chunk-XFXHA5MU.cjs.map +1 -0
- package/dist/commands/index.cjs +2 -2
- package/dist/commands/index.d.cts +3 -3
- package/dist/commands/index.d.ts +3 -3
- package/dist/commands/index.js +1 -1
- package/dist/effects/index.d.cts +5 -4
- package/dist/effects/index.d.ts +5 -4
- package/dist/{export-DwnZ_hvQ.d.ts → export-0ZaTK__4.d.ts} +4 -4
- package/dist/{export-41rL6Cne.d.ts → export-C45v6MYq.d.ts} +1 -1
- package/dist/{export-CyJdfP_Z.d.cts → export-D-7WCDJ9.d.cts} +4 -4
- package/dist/{export-D9mXp05Q.d.cts → export-DSdCfd6O.d.cts} +1 -1
- package/dist/grain-BWmGZxP4.d.cts +58 -0
- package/dist/grain-BWmGZxP4.d.ts +58 -0
- package/dist/{helpers-v6GMazzg.d.cts → helpers-Cavy1TB7.d.cts} +21 -1
- package/dist/{helpers-C-RgeyvH.d.ts → helpers-LZQ4cpg4.d.ts} +21 -1
- package/dist/image-editor/index.cjs +695 -677
- package/dist/image-editor/index.cjs.map +1 -1
- package/dist/image-editor/index.d.cts +12 -11
- package/dist/image-editor/index.d.ts +12 -11
- package/dist/image-editor/index.js +23 -5
- package/dist/image-editor/index.js.map +1 -1
- package/dist/{opentype-KR_jj6b_.d.cts → opentype-BpIJhGpj.d.cts} +1 -1
- package/dist/{opentype-a1KAW-qs.d.ts → opentype-CyxDScVz.d.ts} +1 -1
- package/dist/paint/index.cjs +21 -3
- package/dist/paint/index.cjs.map +1 -1
- package/dist/paint/index.d.cts +72 -5
- package/dist/paint/index.d.ts +72 -5
- package/dist/paint/index.js +20 -2
- package/dist/paint-editor/index.cjs +171 -171
- package/dist/paint-editor/index.cjs.map +1 -1
- package/dist/paint-editor/index.d.cts +77 -29
- package/dist/paint-editor/index.d.ts +77 -29
- package/dist/paint-editor/index.js +12 -12
- package/dist/{pathfinder-BHS4vQNm.d.cts → pathfinder-BMQEcS0k.d.cts} +2 -2
- package/dist/{pathfinder-BVvTIBMo.d.ts → pathfinder-CQIxubuP.d.ts} +2 -2
- package/dist/{pool-CZQOrSXZ.d.ts → pool-Cynuj89K.d.ts} +1 -1
- package/dist/{pool-FjZZmZ80.d.cts → pool-DedjxDKo.d.cts} +1 -1
- package/dist/{rand-8xbUb6ur.d.ts → rand-COS4_E1g.d.ts} +17 -1
- package/dist/{rand-Cw9VLrVC.d.cts → rand-D1JqpR-p.d.cts} +17 -1
- package/dist/{svg-DTb40ICU.d.cts → svg-RcixtBFR.d.cts} +2 -2
- package/dist/{svg-CSz3mzkw.d.ts → svg-nWBJEpnk.d.ts} +2 -2
- package/dist/{tools-Ca0kI1qo.d.cts → tools-CL82d7nw.d.cts} +1 -1
- package/dist/{tools-B0wXP5cF.d.ts → tools-DrxgDnXY.d.ts} +1 -1
- package/dist/vector/index.cjs +995 -955
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +44 -18
- package/dist/vector/index.d.ts +44 -18
- package/dist/vector/index.js +55 -15
- package/dist/vector/index.js.map +1 -1
- package/dist/video-editor/index.d.cts +5 -4
- package/dist/video-editor/index.d.ts +5 -4
- package/dist/{warp-DTOp0lON.d.cts → warp-CHi_P_G6.d.cts} +1 -1
- package/dist/{warp-pd7hrH4T.d.ts → warp-CPaHULUL.d.ts} +1 -1
- package/package.json +1 -1
- package/skills/pixerate-canvas/SKILL.md +12 -5
- package/skills/pixerate-vector/SKILL.md +4 -2
- package/dist/brushstrokeRender-2FAXA3XC.js.map +0 -1
- package/dist/brushstrokeRender-IMFY3FF6.cjs.map +0 -1
- package/dist/chunk-2XS6LTUP.cjs.map +0 -1
- package/dist/chunk-3D77LOBM.js.map +0 -1
- package/dist/chunk-5FSRTP6E.js.map +0 -1
- package/dist/chunk-5OOIUXNJ.cjs.map +0 -1
- package/dist/chunk-DFSZO2B5.cjs.map +0 -1
- package/dist/chunk-EQQMGO42.js.map +0 -1
- package/dist/chunk-HUO3TI4C.js.map +0 -1
- package/dist/chunk-KEENUAFN.cjs.map +0 -1
- package/dist/chunk-LSXXAJG3.js.map +0 -1
- package/dist/chunk-QBWEH3IM.cjs.map +0 -1
- /package/dist/{chunk-6S6362D2.js.map → chunk-NI6RORDS.js.map} +0 -0
- /package/dist/{chunk-OIBIRXRG.js.map → chunk-PSPLRQL6.js.map} +0 -0
- /package/dist/{chunk-SYT2TLQF.js.map → chunk-QEIN6JQO.js.map} +0 -0
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { W as WetWorld, c as WetTilt, d as WetParams, e as WetFlowSpec, f as WetWorldOptions, g as WetGpuProvider, h as WetBackendInfo, i as WetSnapshot, j as WetPaperInput } from '../rand-D1JqpR-p.cjs';
|
|
2
|
+
export { D as DEFAULT_FLOW, k as DEFAULT_WET_PARAMS, T as TileableNoise, l as WET_FLOW_KINDS, m as WET_PARAM_KEYS, n as WetFlowKind, o as WetSupport, p as hash2, q as mix32, r as normalizeFlow, s as normalizeWetParams, t as rand01, u as randSigned, v as seedFromString, w as wetSupport } from '../rand-D1JqpR-p.cjs';
|
|
3
|
+
import { G as GrainPattern, a as PaperTiling, b as GrainTuning, P as PaperGrain } from '../grain-BWmGZxP4.cjs';
|
|
4
|
+
export { c as GRAIN_PATTERNS, d as GRAIN_TILE, e as PaperGrainSettings, g as grainCatch, f as grainHeights } from '../grain-BWmGZxP4.cjs';
|
|
3
5
|
import { a1 as RasterLayer, a0 as RasterGroupLayer, a5 as RasterPixelLayer, C as CompositorLayer, a as RasterCompositor, R as RasterSources, U as LayerLocks } from '../deep-CcwHkQdb.cjs';
|
|
6
|
+
import { P as PaintBrush, a as PenPoint, S as StrokeCopy, W as WetMediumKind, b as Sticker, M as MultiColorSettings, c as PaintBrushInput, B as BrushLibraryFile, I as ImpastoTool, d as ParticleKind, e as ParticleRender, f as StampKind, g as WetTool } from '../brushes-aEnjqoji.cjs';
|
|
7
|
+
export { h as BRUSH_ID, i as BRUSH_ROTATIONS, j as BUILTIN_BRUSHES, k as BristleSettings, l as BristleStroke, m as BrushBehavior, n as BrushBehaviorInput, o as BrushDynamics, p as BrushRotation, C as CoverageStroke, D as DEFAULT_BEHAVIOR, q as DEFAULT_BRISTLE, r as DEFAULT_BRUSH_ID, s as DEFAULT_DYNAMICS, t as DEFAULT_IMPASTO, u as DEFAULT_MULTI_COLOR, v as DEFAULT_PARTICLE, w as DEFAULT_STICKER, x as DEFAULT_WET_BRUSH, y as DryStroke, z as DryStrokeOptions, A as IDENTITY_COPY, E as IMPASTO_TOOLS, F as ImpastoSettings, L as Linear2, G as MULTI_COLOR_MODES, H as MultiColorMode, J as PAINT_BRUSH_CATEGORIES, K as PAINT_BRUSH_ENGINES, N as PARTICLE_KINDS, O as PARTICLE_RENDERS, Q as PaintBrushCategory, R as PaintBrushEngine, T as ParticleSettings, U as ParticleStroke, V as PenDab, X as PenDabWalker, Y as PenSmoother, Z as ProceduralStrokeOptions, _ as STAMP_KINDS, $ as StickerSettings, a0 as StickerSpray, a1 as StickerSprayInit, a2 as WET_MEDIA, a3 as WET_TOOLS, a4 as WetBrushSettings, a5 as brushTakesPaint, a6 as brushToJSON, a7 as drawSticker, a8 as isWetBrush, a9 as isWetCapable, aa as mixerTip, ab as multiColorToPaint, ac as normalizeBehavior, ad as normalizeBristle, ae as normalizeDynamics, af as normalizeImpasto, ag as normalizeMultiColor, ah as normalizePaintBrush, ai as normalizeParticle, aj as normalizeStickerSettings, ak as normalizeStickerUpdate, al as normalizeWetBrush, am as paintToMultiColor, an as parseBrushLibrary, ao as penOrientation, ap as renderStickers, aq as stampCoverage, ar as stickerRect, as as stickerSurface, at as tiltToOrientation, au as toStrokePoint, av as usesPaintExchange } from '../brushes-aEnjqoji.cjs';
|
|
4
8
|
import { g as MixerLoad, a as PaintGradientSource, R as RgbTriple, P as PaintTileTarget, b as MixingModel, e as PaintSource } from '../blending-D7jCmjO6.cjs';
|
|
5
9
|
export { l as DEFAULT_PAINT_GRADIENT, m as DEFAULT_PAINT_GRADIENT_MAPPING, n as MAX_BRUSH_SIZE, o as PAINT_COLOR_JSON_SCHEMA, p as PAINT_GRADIENT_FULL_SPEED, q as PAINT_GRADIENT_JSON_SCHEMA, r as PAINT_GRADIENT_KIT, s as PAINT_GRADIENT_MAPPINGS, t as PAINT_GRADIENT_MAPPING_LABELS, u as PAINT_GRADIENT_PRESETS, v as PAINT_GRADIENT_REPEATS, w as PAINT_GRADIENT_REPEAT_LABELS, x as PAINT_GRADIENT_SPACES, y as PAINT_GRADIENT_SPACE_LABELS, z as PAINT_SOURCE_JSON_SCHEMA, A as PaintColorSource, E as PaintDabParams, F as PaintGradientKit, G as PaintGradientMapping, H as PaintGradientMappingKind, I as PaintGradientRepeat, J as PaintGradientSample, K as PaintGradientSampler, L as PaintGradientSpace, N as PaintGradientStop, O as PaintRgb, Q as PaintSourceError, U as addPaintGradientStop, V as hexToPaintRgb, W as isGradientPaint, X as normalizeHexColor, Y as paintGradientMappingFor, Z as paintSourceColor, _ as paintSourceCss, $ as parsePaintSource, a0 as readPaintSource, a1 as removePaintGradientStop, a2 as resolvePaintGradient, a3 as reversePaintGradient, a4 as scalePaintGradient, a5 as solidPaint, a6 as updatePaintGradientStop } from '../blending-D7jCmjO6.cjs';
|
|
6
|
-
import { W as WetWorld, c as WetTilt, d as WetParams, e as WetFlowSpec, f as WetWorldOptions, g as WetGpuProvider, h as WetBackendInfo, i as WetSnapshot, j as WetPaperInput } from '../rand-Cw9VLrVC.cjs';
|
|
7
|
-
export { D as DEFAULT_FLOW, k as DEFAULT_WET_PARAMS, l as WET_FLOW_KINDS, m as WET_PARAM_KEYS, n as WetFlowKind, o as WetSupport, p as hash2, q as mix32, r as normalizeFlow, s as normalizeWetParams, t as rand01, w as wetSupport } from '../rand-Cw9VLrVC.cjs';
|
|
8
10
|
import { R as RasterRect, T as TiledSurface, a as BlendMode, b as BlendModeInfo } from '../surface-1MRncXpF.cjs';
|
|
9
11
|
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.cjs';
|
|
10
|
-
import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-
|
|
11
|
-
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-
|
|
12
|
-
import { V as VideoProject, D as VideoFfmpegExport } from '../export-
|
|
12
|
+
import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-Cavy1TB7.cjs';
|
|
13
|
+
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-D-7WCDJ9.cjs';
|
|
14
|
+
import { V as VideoProject, D as VideoFfmpegExport } from '../export-DSdCfd6O.cjs';
|
|
13
15
|
import { g as PresenceStore, e as PresenceClock, d as PresenceActorInfo, c as PresenceActor, f as PresenceState } from '../presence-Cb6WhcrQ.cjs';
|
|
14
16
|
import { a as AgentToolProvider, A as AgentTool } from '../registry-BqA1AZt0.cjs';
|
|
15
17
|
import '../types-CwMPoRMU.cjs';
|
|
@@ -20,33 +22,79 @@ import '../provenance-DmlcgdzT.cjs';
|
|
|
20
22
|
import '../sourcemap-C8AH3MBQ.cjs';
|
|
21
23
|
import '../tokens-D7yXvUU6.cjs';
|
|
22
24
|
import '../builtin-CY97ppKM.cjs';
|
|
23
|
-
import '../bezier-
|
|
24
|
-
import '../brushTypes-
|
|
25
|
-
import '../warp-
|
|
25
|
+
import '../bezier-CEJ8Uw4O.cjs';
|
|
26
|
+
import '../brushTypes-MX5UVs_m.cjs';
|
|
27
|
+
import '../warp-CHi_P_G6.cjs';
|
|
26
28
|
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Paper: a generated grain height map (0 = valley, 1 = peak) that tiles across the canvas, a paper
|
|
31
|
+
* colour, grain depth, and the three properties wet media will read later (absorption,
|
|
32
|
+
* permeability, roughness). Dry media catch the peaks: a light stroke only marks the high grain, a
|
|
33
|
+
* firm one fills the valleys too. Everything is generated from a pattern and a seed, so a paper is
|
|
34
|
+
* a few numbers in the document, never a bitmap, and no third-party texture is bundled.
|
|
32
35
|
*/
|
|
33
36
|
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
/** Paper families, as a library groups them. */
|
|
38
|
+
type PaperFamily = 'watercolor' | 'drawing' | 'pastel' | 'canvas' | 'panel' | 'smooth';
|
|
39
|
+
declare const PAPER_FAMILIES: readonly PaperFamily[];
|
|
40
|
+
interface PaperSettings {
|
|
41
|
+
/** The library preset this paper started from (`custom` when it matches none). */
|
|
42
|
+
preset: string;
|
|
43
|
+
name: string;
|
|
44
|
+
family: PaperFamily;
|
|
45
|
+
pattern: GrainPattern;
|
|
46
|
+
/** Grain seed: another seed gives another sheet of the same paper. */
|
|
47
|
+
seed: number;
|
|
48
|
+
/** Paper colour #rrggbb. */
|
|
49
|
+
color: string;
|
|
50
|
+
/** Grain scale: 1 is the pattern's natural size, 2 twice as coarse (0.25..8). */
|
|
51
|
+
scale: number;
|
|
52
|
+
/** How the grain tile repeats: `repeat` or `mirror` (alternate tiles flipped, so seams vanish). */
|
|
53
|
+
tiling: PaperTiling;
|
|
54
|
+
/** Grain depth 0..1: how much grain-responsive dry media skip the valleys (0: none). */
|
|
55
|
+
depth: number;
|
|
56
|
+
/** How much the grain shades the paper colour on screen and in exports, 0..1. */
|
|
57
|
+
shading: number;
|
|
58
|
+
/** The height map as dry media read it. */
|
|
59
|
+
dry: GrainTuning;
|
|
60
|
+
/** The height map as wet media will read it (stored now; wet media is a later phase). */
|
|
61
|
+
wet: GrainTuning;
|
|
62
|
+
/** Wet media: how fast the paper takes up water, 0..1. */
|
|
63
|
+
absorption: number;
|
|
64
|
+
/** Wet media: how far water spreads inside the paper, 0..1. */
|
|
65
|
+
permeability: number;
|
|
66
|
+
/** Wet media: how much the grain catches pigment, 0..1. */
|
|
67
|
+
roughness: number;
|
|
68
|
+
/** Metallic paper (gold or silver leaf, pearlescent card): the grain catches the light, 0..1 (default 0). */
|
|
69
|
+
metallic?: number;
|
|
70
|
+
}
|
|
71
|
+
type PaperPreset = PaperSettings;
|
|
72
|
+
/** The built-in paper library: generated papers in families. */
|
|
73
|
+
declare const PAPER_LIBRARY: readonly PaperPreset[];
|
|
74
|
+
declare const DEFAULT_PAPER: Readonly<PaperSettings>;
|
|
75
|
+
/** A paper from the library by id, or `undefined`. */
|
|
76
|
+
declare function paperPreset(id: string): PaperSettings | undefined;
|
|
77
|
+
declare function clonePaper(p: PaperSettings): PaperSettings;
|
|
38
78
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* repeats exactly every `size` pixels.
|
|
79
|
+
* A paper with every field in range. Missing fields come from `base` (default: the library preset
|
|
80
|
+
* named by `raw.preset`, else cold pressed).
|
|
42
81
|
*/
|
|
43
|
-
declare
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
82
|
+
declare function normalizePaper(raw?: Partial<PaperSettings> | Record<string, unknown>, base?: PaperSettings): PaperSettings;
|
|
83
|
+
/** `#rrggbb` → [r, g, b] 0..255. */
|
|
84
|
+
declare function hexToRgb8(hex: string): [number, number, number];
|
|
85
|
+
/**
|
|
86
|
+
* The paper as opaque RGBA over `rect` (document pixels): its colour, darkened in the valleys by
|
|
87
|
+
* `shading`.
|
|
88
|
+
*/
|
|
89
|
+
declare function renderPaper(paper: PaperSettings, rect: {
|
|
90
|
+
x: number;
|
|
91
|
+
y: number;
|
|
92
|
+
width: number;
|
|
93
|
+
height: number;
|
|
94
|
+
}, grain?: PaperGrain, light?: {
|
|
95
|
+
azimuth: number;
|
|
96
|
+
elevation: number;
|
|
97
|
+
}): Uint8ClampedArray;
|
|
50
98
|
|
|
51
99
|
/**
|
|
52
100
|
* Painting guides: mirror and kaleidoscope symmetry (every stroke paints its reflected or rotated
|
|
@@ -2998,4 +3046,4 @@ declare const PAPER_TARGET = "paper";
|
|
|
2998
3046
|
/** The effect tools for a paint editor (see the module comment). */
|
|
2999
3047
|
declare function createPaintEffectsToolProvider(controller: PaintEditorController, options?: PaintEffectsToolProviderOptions): AgentToolProvider;
|
|
3000
3048
|
|
|
3001
|
-
export { type Affine, BLEND_MENU_GROUPS, BRUSH_SLIDERS, type BlendMenuGroup, BlendMode, BlendModeInfo, type BrushEngineControls, BrushLibraryFile, type BrushThumbnail, type ColorWheel, DEFAULT_DPI, DEFAULT_LIGHTING, DEFAULT_SWATCHES, DEFAULT_VIEW, type FillLayerOptions, GPU_LEAD, HARMONY_KINDS, type Hand, type HarmonyColor, type HarmonyKind, IDENTITY_AFFINE, IMPASTO_TOOL_LABELS, type ImageEncoder, type ImageFormat, type ImageNode, ImpastoTool, LIGHT_SLIDERS, type LayerUpdate, LitCache, type LoadedPaintDocument, MAX_CANVAS_SIDE, MAX_COORDINATE, MAX_IMAGE_SIDE, MAX_ZOOM, MIN_CANVAS_SIDE, MIN_ZOOM, MIXING_PAD_HEIGHT, MIXING_PAD_WIDTH, MixingPad, type MixingPadTool, MultiColorSettings, PAD_SAMPLE_SIZES, PAINT_EFFECT_PLACES, PAINT_FORMAT, PAINT_SCHEMA_VERSION, PAINT_TOOLS, PAPER_EFFECT_BLENDS, PAPER_EFFECT_NODE_ID, PAPER_NODE_ID, PAPER_SLIDERS, PAPER_TARGET, PARTICLE_KIND_LABELS, PARTICLE_RENDER_LABELS, type PadMixOptions, type PadMixPart, type Paint2DContext, type PaintAgentCommand, type PaintAssetStore, PaintBrush, PaintBrushInput, type PaintCanvas, PaintCanvasPresenter, PaintDabStroke, type PaintDabStrokeOptions, PaintDirector, type PaintDirectorOptions, PaintDocumentError, type PaintDocumentExtensions, type PaintDocumentState, PaintEditorController, PaintEditorError, type PaintEditorOptions, type PaintEditorState, type PaintEditorToolProviderOptions, type PaintEffectPlace, type PaintEffectSource, PaintEffectsRenderer, type PaintEffectsToolProviderOptions, type PaintEvent, PaintGesture, PaintGradientSource, type PaintGroupLayer, type PaintGuides, type PaintLayer, type PaintLayerInfo, type PaintLighting, type PaintPaperEffect, type PaintPerformanceResult, type PaintPixelLayer, type PaintPointerEvent, PaintPresence, type PaintPresenceActor, type PaintPresenceState, type PaintReplayOptions, PaintSource, type PaintStrokeInit, type PaintStrokeResult, PaintStrokeSession, type PaintTool, type PaintView, type PaintWetHost, PaintWetLayers, type PaintWetOptions, type PaintWetStateInfo, type PaperEffectBlend, PaperGrain, type PaperNode, PaperSettings, ParticleKind, ParticleRender, PenPoint, type PerspectiveGuide, PerspectiveSnapper, type PixelImage, type Point2, type PointerSample, type RecordedStroke, type ReferenceImage, type RenderOptions, type ReplayFrame, type ReplayOptions, type Rgb255, SNAP_DECIDE_DISTANCE, STAMP_LABELS, STENCIL_KINDS, STENCIL_SHAPES, STICKER_SLIDERS, SYMMETRY_MODES, type SavedMixingPadInfo, type SavedThickChannels, type SerializeOptions, type SerializedPaintDocument, type SliderControl, StampKind, type Stencil, type StencilInput, type StencilKind, type StencilShape, StencilSnapper, Sticker, StrokeCopy, type StrokeSessionHost, type StrokeSessionInit, type StrokeVariation, type Swatch, type SymmetryGuide, type SymmetryMode, TRACING_NODE_ID, type ThickChannels, ThickStrokeDriver, type ThickStrokeInit,
|
|
3049
|
+
export { type Affine, BLEND_MENU_GROUPS, BRUSH_SLIDERS, type BlendMenuGroup, BlendMode, BlendModeInfo, type BrushEngineControls, BrushLibraryFile, type BrushThumbnail, type ColorWheel, DEFAULT_DPI, DEFAULT_LIGHTING, DEFAULT_PAPER, DEFAULT_SWATCHES, DEFAULT_VIEW, type FillLayerOptions, GPU_LEAD, GrainPattern, GrainTuning, HARMONY_KINDS, type Hand, type HarmonyColor, type HarmonyKind, IDENTITY_AFFINE, IMPASTO_TOOL_LABELS, type ImageEncoder, type ImageFormat, type ImageNode, ImpastoTool, LIGHT_SLIDERS, type LayerUpdate, LitCache, type LoadedPaintDocument, MAX_CANVAS_SIDE, MAX_COORDINATE, MAX_IMAGE_SIDE, MAX_ZOOM, MIN_CANVAS_SIDE, MIN_ZOOM, MIXING_PAD_HEIGHT, MIXING_PAD_WIDTH, MixingPad, type MixingPadTool, MultiColorSettings, PAD_SAMPLE_SIZES, PAINT_EFFECT_PLACES, PAINT_FORMAT, PAINT_SCHEMA_VERSION, PAINT_TOOLS, PAPER_EFFECT_BLENDS, PAPER_EFFECT_NODE_ID, PAPER_FAMILIES, PAPER_LIBRARY, PAPER_NODE_ID, PAPER_SLIDERS, PAPER_TARGET, PARTICLE_KIND_LABELS, PARTICLE_RENDER_LABELS, type PadMixOptions, type PadMixPart, type Paint2DContext, type PaintAgentCommand, type PaintAssetStore, PaintBrush, PaintBrushInput, type PaintCanvas, PaintCanvasPresenter, PaintDabStroke, type PaintDabStrokeOptions, PaintDirector, type PaintDirectorOptions, PaintDocumentError, type PaintDocumentExtensions, type PaintDocumentState, PaintEditorController, PaintEditorError, type PaintEditorOptions, type PaintEditorState, type PaintEditorToolProviderOptions, type PaintEffectPlace, type PaintEffectSource, PaintEffectsRenderer, type PaintEffectsToolProviderOptions, type PaintEvent, PaintGesture, PaintGradientSource, type PaintGroupLayer, type PaintGuides, type PaintLayer, type PaintLayerInfo, type PaintLighting, type PaintPaperEffect, type PaintPerformanceResult, type PaintPixelLayer, type PaintPointerEvent, PaintPresence, type PaintPresenceActor, type PaintPresenceState, type PaintReplayOptions, PaintSource, type PaintStrokeInit, type PaintStrokeResult, PaintStrokeSession, type PaintTool, type PaintView, type PaintWetHost, PaintWetLayers, type PaintWetOptions, type PaintWetStateInfo, type PaperEffectBlend, type PaperFamily, PaperGrain, type PaperNode, type PaperSettings, PaperTiling, ParticleKind, ParticleRender, PenPoint, type PerspectiveGuide, PerspectiveSnapper, type PixelImage, type Point2, type PointerSample, type RecordedStroke, type ReferenceImage, type RenderOptions, type ReplayFrame, type ReplayOptions, type Rgb255, SNAP_DECIDE_DISTANCE, STAMP_LABELS, STENCIL_KINDS, STENCIL_SHAPES, STICKER_SLIDERS, SYMMETRY_MODES, type SavedMixingPadInfo, type SavedThickChannels, type SerializeOptions, type SerializedPaintDocument, type SliderControl, StampKind, type Stencil, type StencilInput, type StencilKind, type StencilShape, StencilSnapper, Sticker, StrokeCopy, type StrokeSessionHost, type StrokeSessionInit, type StrokeVariation, type Swatch, type SymmetryGuide, type SymmetryMode, TRACING_NODE_ID, type ThickChannels, ThickStrokeDriver, type ThickStrokeInit, type TimeLapse, type TimeLapseOptions, type TracingImage, type ViewLayer, type ViewportBox, WET_GPU_MODES, WET_GPU_OPTIONS, WET_MEDIUM_LABELS, WET_MEDIUM_PARAMS, WET_PARAM_SCHEMA, WET_PARAM_SLIDERS, WET_SPEED_SLIDER, WET_TILT_SLIDERS, WET_TOOL_LABELS, WetBackendInfo, type WetEngineInfo, type WetEvent, WetFlowSpec, type WetGpuMode, type WetLayerInfo, type WetLayerSettings, WetMediumKind, WetParams, WetStrokeDriver, type WetStrokeInit, WetTilt, WetTool, affineCopy, applyAffine, brushEngineControls, brushLoadColor, brushLoadForStroke, buildTimeLapse, checkPaintEffectPlace, clonePaper, colorHarmony, composeAffine, contactSheet, createPaintCompositor, createPaintDocument, createPaintEditorToolProvider, createPaintEffectsToolProvider, createPaintLayer, createPaintReplayTools, createPaintStickerTools, createPaintThickTools, createPaintWetTools, decodeImageBlob, defaultGuides, defaultImageEncoder, deserializePaintDocument, deserializePaintDocumentAsync, documentExtensions, documentToScreen, downloadBytes, downsampleRgba, drawWaterOverlay, effectLayersToJSON, emptiedLayers, emptyThickChannels, fitZoom, guideOverlay, handlePaintShortcut, hexToRgb8, hslToRgb, hsvToRgb, hueToWheel, invertAffine, isPalmTouch, lightTile, lightingKey, mapPenPoint, mixPixels, mixerLoadForStroke, multiColorForDab, multiColorGradient, multiColorPalette, multiColorSliders, newPaintLayerId, nextPaperEffectVersion, normalizeBrushStroke, normalizeCanvas, normalizeLighting, normalizePaper, normalizePerspective, normalizeRotation, normalizeStencil, normalizeSymmetry, normalizeView, overPixels, padSampleRadius, paperEffectFromJSON, paperEffectToJSON, paperGrain, paperKey, paperNode, paperPreset, parseHexColor, patchBrushValue, patchPath, perspectiveDirections, perspectiveGuideLines, pointerToPenPoint, quickStencil, readPaintEffectSource, readPath, readSwatch, reliefInfo, renderBrushThumbnail, renderColorWheel, renderPaper, replayFrame, replayItems, replayPainting, rgbToHexColor, rgbToHsl, rgbToHsv, samplePressure, scaleStencil, screenToDocument, serializePaintDocument, serializePaintDocumentExternal, startWetClock, stencilMask, stencilOutline, strokeBounds, strokeDuration, strokeSchedule, sweepPath, symmetryAxisAngles, symmetryAxisSegments, symmetryCopies, thickFromJSON, thickToJSON, thumbnailStroke, timeLapseVideo, timeLapseZip, toggleStamp, variationAffine, varyStroke, viewCssTransform, viewMatrix, viewPenToDocument, wetEngineSummary, wetPaperInput, wetPigmentOf, wheelAngle, wheelPick, wheelPoint, wheelToHue };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { W as WetWorld, c as WetTilt, d as WetParams, e as WetFlowSpec, f as WetWorldOptions, g as WetGpuProvider, h as WetBackendInfo, i as WetSnapshot, j as WetPaperInput } from '../rand-COS4_E1g.js';
|
|
2
|
+
export { D as DEFAULT_FLOW, k as DEFAULT_WET_PARAMS, T as TileableNoise, l as WET_FLOW_KINDS, m as WET_PARAM_KEYS, n as WetFlowKind, o as WetSupport, p as hash2, q as mix32, r as normalizeFlow, s as normalizeWetParams, t as rand01, u as randSigned, v as seedFromString, w as wetSupport } from '../rand-COS4_E1g.js';
|
|
3
|
+
import { G as GrainPattern, a as PaperTiling, b as GrainTuning, P as PaperGrain } from '../grain-BWmGZxP4.js';
|
|
4
|
+
export { c as GRAIN_PATTERNS, d as GRAIN_TILE, e as PaperGrainSettings, g as grainCatch, f as grainHeights } from '../grain-BWmGZxP4.js';
|
|
3
5
|
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';
|
|
6
|
+
import { P as PaintBrush, a as PenPoint, S as StrokeCopy, W as WetMediumKind, b as Sticker, M as MultiColorSettings, c as PaintBrushInput, B as BrushLibraryFile, I as ImpastoTool, d as ParticleKind, e as ParticleRender, f as StampKind, g as WetTool } from '../brushes-CQpL7_Lc.js';
|
|
7
|
+
export { h as BRUSH_ID, i as BRUSH_ROTATIONS, j as BUILTIN_BRUSHES, k as BristleSettings, l as BristleStroke, m as BrushBehavior, n as BrushBehaviorInput, o as BrushDynamics, p as BrushRotation, C as CoverageStroke, D as DEFAULT_BEHAVIOR, q as DEFAULT_BRISTLE, r as DEFAULT_BRUSH_ID, s as DEFAULT_DYNAMICS, t as DEFAULT_IMPASTO, u as DEFAULT_MULTI_COLOR, v as DEFAULT_PARTICLE, w as DEFAULT_STICKER, x as DEFAULT_WET_BRUSH, y as DryStroke, z as DryStrokeOptions, A as IDENTITY_COPY, E as IMPASTO_TOOLS, F as ImpastoSettings, L as Linear2, G as MULTI_COLOR_MODES, H as MultiColorMode, J as PAINT_BRUSH_CATEGORIES, K as PAINT_BRUSH_ENGINES, N as PARTICLE_KINDS, O as PARTICLE_RENDERS, Q as PaintBrushCategory, R as PaintBrushEngine, T as ParticleSettings, U as ParticleStroke, V as PenDab, X as PenDabWalker, Y as PenSmoother, Z as ProceduralStrokeOptions, _ as STAMP_KINDS, $ as StickerSettings, a0 as StickerSpray, a1 as StickerSprayInit, a2 as WET_MEDIA, a3 as WET_TOOLS, a4 as WetBrushSettings, a5 as brushTakesPaint, a6 as brushToJSON, a7 as drawSticker, a8 as isWetBrush, a9 as isWetCapable, aa as mixerTip, ab as multiColorToPaint, ac as normalizeBehavior, ad as normalizeBristle, ae as normalizeDynamics, af as normalizeImpasto, ag as normalizeMultiColor, ah as normalizePaintBrush, ai as normalizeParticle, aj as normalizeStickerSettings, ak as normalizeStickerUpdate, al as normalizeWetBrush, am as paintToMultiColor, an as parseBrushLibrary, ao as penOrientation, ap as renderStickers, aq as stampCoverage, ar as stickerRect, as as stickerSurface, at as tiltToOrientation, au as toStrokePoint, av as usesPaintExchange } from '../brushes-CQpL7_Lc.js';
|
|
4
8
|
import { g as MixerLoad, a as PaintGradientSource, R as RgbTriple, P as PaintTileTarget, b as MixingModel, e as PaintSource } from '../blending-NgF3qo3d.js';
|
|
5
9
|
export { l as DEFAULT_PAINT_GRADIENT, m as DEFAULT_PAINT_GRADIENT_MAPPING, n as MAX_BRUSH_SIZE, o as PAINT_COLOR_JSON_SCHEMA, p as PAINT_GRADIENT_FULL_SPEED, q as PAINT_GRADIENT_JSON_SCHEMA, r as PAINT_GRADIENT_KIT, s as PAINT_GRADIENT_MAPPINGS, t as PAINT_GRADIENT_MAPPING_LABELS, u as PAINT_GRADIENT_PRESETS, v as PAINT_GRADIENT_REPEATS, w as PAINT_GRADIENT_REPEAT_LABELS, x as PAINT_GRADIENT_SPACES, y as PAINT_GRADIENT_SPACE_LABELS, z as PAINT_SOURCE_JSON_SCHEMA, A as PaintColorSource, E as PaintDabParams, F as PaintGradientKit, G as PaintGradientMapping, H as PaintGradientMappingKind, I as PaintGradientRepeat, J as PaintGradientSample, K as PaintGradientSampler, L as PaintGradientSpace, N as PaintGradientStop, O as PaintRgb, Q as PaintSourceError, U as addPaintGradientStop, V as hexToPaintRgb, W as isGradientPaint, X as normalizeHexColor, Y as paintGradientMappingFor, Z as paintSourceColor, _ as paintSourceCss, $ as parsePaintSource, a0 as readPaintSource, a1 as removePaintGradientStop, a2 as resolvePaintGradient, a3 as reversePaintGradient, a4 as scalePaintGradient, a5 as solidPaint, a6 as updatePaintGradientStop } from '../blending-NgF3qo3d.js';
|
|
6
|
-
import { W as WetWorld, c as WetTilt, d as WetParams, e as WetFlowSpec, f as WetWorldOptions, g as WetGpuProvider, h as WetBackendInfo, i as WetSnapshot, j as WetPaperInput } from '../rand-8xbUb6ur.js';
|
|
7
|
-
export { D as DEFAULT_FLOW, k as DEFAULT_WET_PARAMS, l as WET_FLOW_KINDS, m as WET_PARAM_KEYS, n as WetFlowKind, o as WetSupport, p as hash2, q as mix32, r as normalizeFlow, s as normalizeWetParams, t as rand01, w as wetSupport } from '../rand-8xbUb6ur.js';
|
|
8
10
|
import { R as RasterRect, T as TiledSurface, a as BlendMode, b as BlendModeInfo } from '../surface-1MRncXpF.js';
|
|
9
11
|
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';
|
|
10
|
-
import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-
|
|
11
|
-
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-
|
|
12
|
-
import { V as VideoProject, D as VideoFfmpegExport } from '../export-
|
|
12
|
+
import { e as EffectValue, E as EffectProvider, f as EffectDescription, a as EffectRenderRequest, b as EffectPixels, v as EffectsSlot } from '../helpers-LZQ4cpg4.js';
|
|
13
|
+
import { I as ImageEditorAssetStore, S as SerializedLayer, P as PsdExportResult } from '../export-0ZaTK__4.js';
|
|
14
|
+
import { V as VideoProject, D as VideoFfmpegExport } from '../export-C45v6MYq.js';
|
|
13
15
|
import { g as PresenceStore, e as PresenceClock, d as PresenceActorInfo, c as PresenceActor, f as PresenceState } from '../presence-Cb6WhcrQ.js';
|
|
14
16
|
import { a as AgentToolProvider, A as AgentTool } from '../registry-D-4fit9C.js';
|
|
15
17
|
import '../types-CwMPoRMU.js';
|
|
@@ -20,33 +22,79 @@ import '../provenance-uh5r2TQ8.js';
|
|
|
20
22
|
import '../sourcemap-DA1Evhrv.js';
|
|
21
23
|
import '../tokens-D7yXvUU6.js';
|
|
22
24
|
import '../builtin-CY97ppKM.js';
|
|
23
|
-
import '../bezier-
|
|
24
|
-
import '../brushTypes-
|
|
25
|
-
import '../warp-
|
|
25
|
+
import '../bezier-B6cK8SR6.js';
|
|
26
|
+
import '../brushTypes-MX5UVs_m.js';
|
|
27
|
+
import '../warp-CPaHULUL.js';
|
|
26
28
|
|
|
27
29
|
/**
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
30
|
+
* Paper: a generated grain height map (0 = valley, 1 = peak) that tiles across the canvas, a paper
|
|
31
|
+
* colour, grain depth, and the three properties wet media will read later (absorption,
|
|
32
|
+
* permeability, roughness). Dry media catch the peaks: a light stroke only marks the high grain, a
|
|
33
|
+
* firm one fills the valleys too. Everything is generated from a pattern and a seed, so a paper is
|
|
34
|
+
* a few numbers in the document, never a bitmap, and no third-party texture is bundled.
|
|
32
35
|
*/
|
|
33
36
|
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
/** Paper families, as a library groups them. */
|
|
38
|
+
type PaperFamily = 'watercolor' | 'drawing' | 'pastel' | 'canvas' | 'panel' | 'smooth';
|
|
39
|
+
declare const PAPER_FAMILIES: readonly PaperFamily[];
|
|
40
|
+
interface PaperSettings {
|
|
41
|
+
/** The library preset this paper started from (`custom` when it matches none). */
|
|
42
|
+
preset: string;
|
|
43
|
+
name: string;
|
|
44
|
+
family: PaperFamily;
|
|
45
|
+
pattern: GrainPattern;
|
|
46
|
+
/** Grain seed: another seed gives another sheet of the same paper. */
|
|
47
|
+
seed: number;
|
|
48
|
+
/** Paper colour #rrggbb. */
|
|
49
|
+
color: string;
|
|
50
|
+
/** Grain scale: 1 is the pattern's natural size, 2 twice as coarse (0.25..8). */
|
|
51
|
+
scale: number;
|
|
52
|
+
/** How the grain tile repeats: `repeat` or `mirror` (alternate tiles flipped, so seams vanish). */
|
|
53
|
+
tiling: PaperTiling;
|
|
54
|
+
/** Grain depth 0..1: how much grain-responsive dry media skip the valleys (0: none). */
|
|
55
|
+
depth: number;
|
|
56
|
+
/** How much the grain shades the paper colour on screen and in exports, 0..1. */
|
|
57
|
+
shading: number;
|
|
58
|
+
/** The height map as dry media read it. */
|
|
59
|
+
dry: GrainTuning;
|
|
60
|
+
/** The height map as wet media will read it (stored now; wet media is a later phase). */
|
|
61
|
+
wet: GrainTuning;
|
|
62
|
+
/** Wet media: how fast the paper takes up water, 0..1. */
|
|
63
|
+
absorption: number;
|
|
64
|
+
/** Wet media: how far water spreads inside the paper, 0..1. */
|
|
65
|
+
permeability: number;
|
|
66
|
+
/** Wet media: how much the grain catches pigment, 0..1. */
|
|
67
|
+
roughness: number;
|
|
68
|
+
/** Metallic paper (gold or silver leaf, pearlescent card): the grain catches the light, 0..1 (default 0). */
|
|
69
|
+
metallic?: number;
|
|
70
|
+
}
|
|
71
|
+
type PaperPreset = PaperSettings;
|
|
72
|
+
/** The built-in paper library: generated papers in families. */
|
|
73
|
+
declare const PAPER_LIBRARY: readonly PaperPreset[];
|
|
74
|
+
declare const DEFAULT_PAPER: Readonly<PaperSettings>;
|
|
75
|
+
/** A paper from the library by id, or `undefined`. */
|
|
76
|
+
declare function paperPreset(id: string): PaperSettings | undefined;
|
|
77
|
+
declare function clonePaper(p: PaperSettings): PaperSettings;
|
|
38
78
|
/**
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* repeats exactly every `size` pixels.
|
|
79
|
+
* A paper with every field in range. Missing fields come from `base` (default: the library preset
|
|
80
|
+
* named by `raw.preset`, else cold pressed).
|
|
42
81
|
*/
|
|
43
|
-
declare
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
82
|
+
declare function normalizePaper(raw?: Partial<PaperSettings> | Record<string, unknown>, base?: PaperSettings): PaperSettings;
|
|
83
|
+
/** `#rrggbb` → [r, g, b] 0..255. */
|
|
84
|
+
declare function hexToRgb8(hex: string): [number, number, number];
|
|
85
|
+
/**
|
|
86
|
+
* The paper as opaque RGBA over `rect` (document pixels): its colour, darkened in the valleys by
|
|
87
|
+
* `shading`.
|
|
88
|
+
*/
|
|
89
|
+
declare function renderPaper(paper: PaperSettings, rect: {
|
|
90
|
+
x: number;
|
|
91
|
+
y: number;
|
|
92
|
+
width: number;
|
|
93
|
+
height: number;
|
|
94
|
+
}, grain?: PaperGrain, light?: {
|
|
95
|
+
azimuth: number;
|
|
96
|
+
elevation: number;
|
|
97
|
+
}): Uint8ClampedArray;
|
|
50
98
|
|
|
51
99
|
/**
|
|
52
100
|
* Painting guides: mirror and kaleidoscope symmetry (every stroke paints its reflected or rotated
|
|
@@ -2998,4 +3046,4 @@ declare const PAPER_TARGET = "paper";
|
|
|
2998
3046
|
/** The effect tools for a paint editor (see the module comment). */
|
|
2999
3047
|
declare function createPaintEffectsToolProvider(controller: PaintEditorController, options?: PaintEffectsToolProviderOptions): AgentToolProvider;
|
|
3000
3048
|
|
|
3001
|
-
export { type Affine, BLEND_MENU_GROUPS, BRUSH_SLIDERS, type BlendMenuGroup, BlendMode, BlendModeInfo, type BrushEngineControls, BrushLibraryFile, type BrushThumbnail, type ColorWheel, DEFAULT_DPI, DEFAULT_LIGHTING, DEFAULT_SWATCHES, DEFAULT_VIEW, type FillLayerOptions, GPU_LEAD, HARMONY_KINDS, type Hand, type HarmonyColor, type HarmonyKind, IDENTITY_AFFINE, IMPASTO_TOOL_LABELS, type ImageEncoder, type ImageFormat, type ImageNode, ImpastoTool, LIGHT_SLIDERS, type LayerUpdate, LitCache, type LoadedPaintDocument, MAX_CANVAS_SIDE, MAX_COORDINATE, MAX_IMAGE_SIDE, MAX_ZOOM, MIN_CANVAS_SIDE, MIN_ZOOM, MIXING_PAD_HEIGHT, MIXING_PAD_WIDTH, MixingPad, type MixingPadTool, MultiColorSettings, PAD_SAMPLE_SIZES, PAINT_EFFECT_PLACES, PAINT_FORMAT, PAINT_SCHEMA_VERSION, PAINT_TOOLS, PAPER_EFFECT_BLENDS, PAPER_EFFECT_NODE_ID, PAPER_NODE_ID, PAPER_SLIDERS, PAPER_TARGET, PARTICLE_KIND_LABELS, PARTICLE_RENDER_LABELS, type PadMixOptions, type PadMixPart, type Paint2DContext, type PaintAgentCommand, type PaintAssetStore, PaintBrush, PaintBrushInput, type PaintCanvas, PaintCanvasPresenter, PaintDabStroke, type PaintDabStrokeOptions, PaintDirector, type PaintDirectorOptions, PaintDocumentError, type PaintDocumentExtensions, type PaintDocumentState, PaintEditorController, PaintEditorError, type PaintEditorOptions, type PaintEditorState, type PaintEditorToolProviderOptions, type PaintEffectPlace, type PaintEffectSource, PaintEffectsRenderer, type PaintEffectsToolProviderOptions, type PaintEvent, PaintGesture, PaintGradientSource, type PaintGroupLayer, type PaintGuides, type PaintLayer, type PaintLayerInfo, type PaintLighting, type PaintPaperEffect, type PaintPerformanceResult, type PaintPixelLayer, type PaintPointerEvent, PaintPresence, type PaintPresenceActor, type PaintPresenceState, type PaintReplayOptions, PaintSource, type PaintStrokeInit, type PaintStrokeResult, PaintStrokeSession, type PaintTool, type PaintView, type PaintWetHost, PaintWetLayers, type PaintWetOptions, type PaintWetStateInfo, type PaperEffectBlend, PaperGrain, type PaperNode, PaperSettings, ParticleKind, ParticleRender, PenPoint, type PerspectiveGuide, PerspectiveSnapper, type PixelImage, type Point2, type PointerSample, type RecordedStroke, type ReferenceImage, type RenderOptions, type ReplayFrame, type ReplayOptions, type Rgb255, SNAP_DECIDE_DISTANCE, STAMP_LABELS, STENCIL_KINDS, STENCIL_SHAPES, STICKER_SLIDERS, SYMMETRY_MODES, type SavedMixingPadInfo, type SavedThickChannels, type SerializeOptions, type SerializedPaintDocument, type SliderControl, StampKind, type Stencil, type StencilInput, type StencilKind, type StencilShape, StencilSnapper, Sticker, StrokeCopy, type StrokeSessionHost, type StrokeSessionInit, type StrokeVariation, type Swatch, type SymmetryGuide, type SymmetryMode, TRACING_NODE_ID, type ThickChannels, ThickStrokeDriver, type ThickStrokeInit,
|
|
3049
|
+
export { type Affine, BLEND_MENU_GROUPS, BRUSH_SLIDERS, type BlendMenuGroup, BlendMode, BlendModeInfo, type BrushEngineControls, BrushLibraryFile, type BrushThumbnail, type ColorWheel, DEFAULT_DPI, DEFAULT_LIGHTING, DEFAULT_PAPER, DEFAULT_SWATCHES, DEFAULT_VIEW, type FillLayerOptions, GPU_LEAD, GrainPattern, GrainTuning, HARMONY_KINDS, type Hand, type HarmonyColor, type HarmonyKind, IDENTITY_AFFINE, IMPASTO_TOOL_LABELS, type ImageEncoder, type ImageFormat, type ImageNode, ImpastoTool, LIGHT_SLIDERS, type LayerUpdate, LitCache, type LoadedPaintDocument, MAX_CANVAS_SIDE, MAX_COORDINATE, MAX_IMAGE_SIDE, MAX_ZOOM, MIN_CANVAS_SIDE, MIN_ZOOM, MIXING_PAD_HEIGHT, MIXING_PAD_WIDTH, MixingPad, type MixingPadTool, MultiColorSettings, PAD_SAMPLE_SIZES, PAINT_EFFECT_PLACES, PAINT_FORMAT, PAINT_SCHEMA_VERSION, PAINT_TOOLS, PAPER_EFFECT_BLENDS, PAPER_EFFECT_NODE_ID, PAPER_FAMILIES, PAPER_LIBRARY, PAPER_NODE_ID, PAPER_SLIDERS, PAPER_TARGET, PARTICLE_KIND_LABELS, PARTICLE_RENDER_LABELS, type PadMixOptions, type PadMixPart, type Paint2DContext, type PaintAgentCommand, type PaintAssetStore, PaintBrush, PaintBrushInput, type PaintCanvas, PaintCanvasPresenter, PaintDabStroke, type PaintDabStrokeOptions, PaintDirector, type PaintDirectorOptions, PaintDocumentError, type PaintDocumentExtensions, type PaintDocumentState, PaintEditorController, PaintEditorError, type PaintEditorOptions, type PaintEditorState, type PaintEditorToolProviderOptions, type PaintEffectPlace, type PaintEffectSource, PaintEffectsRenderer, type PaintEffectsToolProviderOptions, type PaintEvent, PaintGesture, PaintGradientSource, type PaintGroupLayer, type PaintGuides, type PaintLayer, type PaintLayerInfo, type PaintLighting, type PaintPaperEffect, type PaintPerformanceResult, type PaintPixelLayer, type PaintPointerEvent, PaintPresence, type PaintPresenceActor, type PaintPresenceState, type PaintReplayOptions, PaintSource, type PaintStrokeInit, type PaintStrokeResult, PaintStrokeSession, type PaintTool, type PaintView, type PaintWetHost, PaintWetLayers, type PaintWetOptions, type PaintWetStateInfo, type PaperEffectBlend, type PaperFamily, PaperGrain, type PaperNode, type PaperSettings, PaperTiling, ParticleKind, ParticleRender, PenPoint, type PerspectiveGuide, PerspectiveSnapper, type PixelImage, type Point2, type PointerSample, type RecordedStroke, type ReferenceImage, type RenderOptions, type ReplayFrame, type ReplayOptions, type Rgb255, SNAP_DECIDE_DISTANCE, STAMP_LABELS, STENCIL_KINDS, STENCIL_SHAPES, STICKER_SLIDERS, SYMMETRY_MODES, type SavedMixingPadInfo, type SavedThickChannels, type SerializeOptions, type SerializedPaintDocument, type SliderControl, StampKind, type Stencil, type StencilInput, type StencilKind, type StencilShape, StencilSnapper, Sticker, StrokeCopy, type StrokeSessionHost, type StrokeSessionInit, type StrokeVariation, type Swatch, type SymmetryGuide, type SymmetryMode, TRACING_NODE_ID, type ThickChannels, ThickStrokeDriver, type ThickStrokeInit, type TimeLapse, type TimeLapseOptions, type TracingImage, type ViewLayer, type ViewportBox, WET_GPU_MODES, WET_GPU_OPTIONS, WET_MEDIUM_LABELS, WET_MEDIUM_PARAMS, WET_PARAM_SCHEMA, WET_PARAM_SLIDERS, WET_SPEED_SLIDER, WET_TILT_SLIDERS, WET_TOOL_LABELS, WetBackendInfo, type WetEngineInfo, type WetEvent, WetFlowSpec, type WetGpuMode, type WetLayerInfo, type WetLayerSettings, WetMediumKind, WetParams, WetStrokeDriver, type WetStrokeInit, WetTilt, WetTool, affineCopy, applyAffine, brushEngineControls, brushLoadColor, brushLoadForStroke, buildTimeLapse, checkPaintEffectPlace, clonePaper, colorHarmony, composeAffine, contactSheet, createPaintCompositor, createPaintDocument, createPaintEditorToolProvider, createPaintEffectsToolProvider, createPaintLayer, createPaintReplayTools, createPaintStickerTools, createPaintThickTools, createPaintWetTools, decodeImageBlob, defaultGuides, defaultImageEncoder, deserializePaintDocument, deserializePaintDocumentAsync, documentExtensions, documentToScreen, downloadBytes, downsampleRgba, drawWaterOverlay, effectLayersToJSON, emptiedLayers, emptyThickChannels, fitZoom, guideOverlay, handlePaintShortcut, hexToRgb8, hslToRgb, hsvToRgb, hueToWheel, invertAffine, isPalmTouch, lightTile, lightingKey, mapPenPoint, mixPixels, mixerLoadForStroke, multiColorForDab, multiColorGradient, multiColorPalette, multiColorSliders, newPaintLayerId, nextPaperEffectVersion, normalizeBrushStroke, normalizeCanvas, normalizeLighting, normalizePaper, normalizePerspective, normalizeRotation, normalizeStencil, normalizeSymmetry, normalizeView, overPixels, padSampleRadius, paperEffectFromJSON, paperEffectToJSON, paperGrain, paperKey, paperNode, paperPreset, parseHexColor, patchBrushValue, patchPath, perspectiveDirections, perspectiveGuideLines, pointerToPenPoint, quickStencil, readPaintEffectSource, readPath, readSwatch, reliefInfo, renderBrushThumbnail, renderColorWheel, renderPaper, replayFrame, replayItems, replayPainting, rgbToHexColor, rgbToHsl, rgbToHsv, samplePressure, scaleStencil, screenToDocument, serializePaintDocument, serializePaintDocumentExternal, startWetClock, stencilMask, stencilOutline, strokeBounds, strokeDuration, strokeSchedule, sweepPath, symmetryAxisAngles, symmetryAxisSegments, symmetryCopies, thickFromJSON, thickToJSON, thumbnailStroke, timeLapseVideo, timeLapseZip, toggleStamp, variationAffine, varyStroke, viewCssTransform, viewMatrix, viewPenToDocument, wetEngineSummary, wetPaperInput, wetPigmentOf, wheelAngle, wheelPick, wheelPoint, wheelToHue };
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolveExternalAssets,
|
|
8
8
|
serializeLayers,
|
|
9
9
|
serializeLayersExternal
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-QEIN6JQO.js";
|
|
11
11
|
import "../chunk-CTTF4KYV.js";
|
|
12
12
|
import {
|
|
13
13
|
EffectRendererPool
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
realPresenceClock,
|
|
55
55
|
tweenPresenceCursor
|
|
56
56
|
} from "../chunk-B6DSIEXA.js";
|
|
57
|
-
import "../chunk-
|
|
57
|
+
import "../chunk-TJBYBSTN.js";
|
|
58
58
|
import {
|
|
59
59
|
BRUSH_ID,
|
|
60
60
|
BRUSH_ROTATIONS,
|
|
@@ -71,8 +71,6 @@ import {
|
|
|
71
71
|
DEFAULT_STICKER,
|
|
72
72
|
DEFAULT_WET_BRUSH,
|
|
73
73
|
DryStroke,
|
|
74
|
-
GRAIN_PATTERNS,
|
|
75
|
-
GRAIN_TILE,
|
|
76
74
|
IDENTITY_COPY,
|
|
77
75
|
IMPASTO_TOOLS,
|
|
78
76
|
MULTI_COLOR_MODES,
|
|
@@ -82,21 +80,17 @@ import {
|
|
|
82
80
|
PAPER_LIBRARY,
|
|
83
81
|
PARTICLE_KINDS,
|
|
84
82
|
PARTICLE_RENDERS,
|
|
85
|
-
PaperGrain,
|
|
86
83
|
ParticleStroke,
|
|
87
84
|
PenDabWalker,
|
|
88
85
|
PenSmoother,
|
|
89
86
|
STAMP_KINDS,
|
|
90
87
|
StickerSpray,
|
|
91
|
-
TileableNoise,
|
|
92
88
|
WET_MEDIA,
|
|
93
89
|
WET_TOOLS,
|
|
94
90
|
brushTakesPaint,
|
|
95
91
|
brushToJSON,
|
|
96
92
|
clonePaper,
|
|
97
93
|
drawSticker,
|
|
98
|
-
grainCatch,
|
|
99
|
-
grainHeights,
|
|
100
94
|
hexToRgb8,
|
|
101
95
|
isWetBrush,
|
|
102
96
|
isWetCapable,
|
|
@@ -117,17 +111,15 @@ import {
|
|
|
117
111
|
paperPreset,
|
|
118
112
|
parseBrushLibrary,
|
|
119
113
|
penOrientation,
|
|
120
|
-
randSigned,
|
|
121
114
|
renderPaper,
|
|
122
115
|
renderStickers,
|
|
123
|
-
seedFromString,
|
|
124
116
|
stampCoverage,
|
|
125
117
|
stickerRect,
|
|
126
118
|
stickerSurface,
|
|
127
119
|
tiltToOrientation,
|
|
128
120
|
toStrokePoint,
|
|
129
121
|
usesPaintExchange
|
|
130
|
-
} from "../chunk-
|
|
122
|
+
} from "../chunk-CPSMARTX.js";
|
|
131
123
|
import "../chunk-A3BVTI3G.js";
|
|
132
124
|
import "../chunk-YGJIER2R.js";
|
|
133
125
|
import "../chunk-KHNZ6MOU.js";
|
|
@@ -143,6 +135,8 @@ import {
|
|
|
143
135
|
DEFAULT_PAINT_GRADIENT,
|
|
144
136
|
DEFAULT_PAINT_GRADIENT_MAPPING,
|
|
145
137
|
EMPTY_MIXER_LOAD,
|
|
138
|
+
GRAIN_PATTERNS,
|
|
139
|
+
GRAIN_TILE,
|
|
146
140
|
MAX_BRUSH_SIZE,
|
|
147
141
|
MIXING_MODELS,
|
|
148
142
|
PAINT_COLOR_JSON_SCHEMA,
|
|
@@ -160,8 +154,10 @@ import {
|
|
|
160
154
|
PaintExchange,
|
|
161
155
|
PaintGradientSampler,
|
|
162
156
|
PaintSourceError,
|
|
157
|
+
PaperGrain,
|
|
163
158
|
SmudgeTip,
|
|
164
159
|
TileMedium,
|
|
160
|
+
TileableNoise,
|
|
165
161
|
addPaintGradientStop,
|
|
166
162
|
applyStrokeToTile,
|
|
167
163
|
blenderDab,
|
|
@@ -169,6 +165,8 @@ import {
|
|
|
169
165
|
createBlenderScratch,
|
|
170
166
|
dabRect,
|
|
171
167
|
exchangeRates,
|
|
168
|
+
grainCatch,
|
|
169
|
+
grainHeights,
|
|
172
170
|
hash2,
|
|
173
171
|
hexToPaintRgb,
|
|
174
172
|
isGradientPaint,
|
|
@@ -181,15 +179,17 @@ import {
|
|
|
181
179
|
paintSourceCss,
|
|
182
180
|
parsePaintSource,
|
|
183
181
|
rand01,
|
|
182
|
+
randSigned,
|
|
184
183
|
rasterizeDab,
|
|
185
184
|
readPaintSource,
|
|
186
185
|
removePaintGradientStop,
|
|
187
186
|
resolvePaintGradient,
|
|
188
187
|
reversePaintGradient,
|
|
189
188
|
scalePaintGradient,
|
|
189
|
+
seedFromString,
|
|
190
190
|
solidPaint,
|
|
191
191
|
updatePaintGradientStop
|
|
192
|
-
} from "../chunk-
|
|
192
|
+
} from "../chunk-PQFVLOMR.js";
|
|
193
193
|
import "../chunk-63AZAUSN.js";
|
|
194
194
|
import {
|
|
195
195
|
BLEND_MODES,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Point } from './brushTypes-
|
|
2
|
-
import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-
|
|
1
|
+
import { P as Point } from './brushTypes-MX5UVs_m.cjs';
|
|
2
|
+
import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-CEJ8Uw4O.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Curve-preserving boolean operations (union, intersection, difference, xor and divide) on
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as Point } from './brushTypes-
|
|
2
|
-
import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-
|
|
1
|
+
import { P as Point } from './brushTypes-MX5UVs_m.js';
|
|
2
|
+
import { B as BezierPath, P as PolygonBooleanOperation, a as BezierPathInput, b as PolygonFillRule, c as BezierSegment, d as BezierContour } from './bezier-B6cK8SR6.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-LZQ4cpg4.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-Cavy1TB7.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* `EffectRendererPool`: keeps a few live renderers, reused per effect, size and depth.
|
|
@@ -1114,5 +1114,21 @@ declare function mix32(h: number): number;
|
|
|
1114
1114
|
declare function hash2(x: number, y: number, salt: number): number;
|
|
1115
1115
|
/** Uniform in [0, 1) from a seed, an index and a stream (one stream per random quantity). */
|
|
1116
1116
|
declare function rand01(seed: number, index: number, stream: number): number;
|
|
1117
|
+
/** Uniform in [-1, 1). */
|
|
1118
|
+
declare function randSigned(seed: number, index: number, stream: number): number;
|
|
1119
|
+
/** A seed from a string (FNV-1a, then mixed). */
|
|
1120
|
+
declare function seedFromString(text: string): number;
|
|
1121
|
+
/**
|
|
1122
|
+
* Tileable fractal value noise in 0..1 over a `size`-pixel square: `cellsX × cellsY` lattice cells
|
|
1123
|
+
* at the base octave (unequal counts give fibres and streaks), doubling per octave, so the result
|
|
1124
|
+
* repeats exactly every `size` pixels.
|
|
1125
|
+
*/
|
|
1126
|
+
declare class TileableNoise {
|
|
1127
|
+
readonly size: number;
|
|
1128
|
+
private readonly octaves;
|
|
1129
|
+
constructor(size: number, cellsX: number, cellsY: number, octaves: number, salt: number);
|
|
1130
|
+
/** Fractal noise at pixel (x, y). */
|
|
1131
|
+
at(x: number, y: number): number;
|
|
1132
|
+
}
|
|
1117
1133
|
|
|
1118
|
-
export {
|
|
1134
|
+
export { P_D0 as $, EY as A, FLAG_BOTTOM as B, type CloneTransform as C, DEFAULT_FLOW as D, EX as E, FLAG_ALIVE as F, FLAG_LEFT as G, FLAG_RIGHT as H, FLAG_TOP as I, FLAG_WET as J, FLAT as K, FREE_INTERVAL as L, IDENTITY_CLONE_TRANSFORM as M, MAX_BATCH as N, MAX_TILT_ACCEL as O, MAX_WET_LANES as P, MAX_WET_SLOTS as Q, type RetouchSettings as R, OPP as S, TileableNoise as T, PAPER_CAPACITY as U, PARAM as V, WetWorld as W, PARAM_FLOATS as X, PIGMENT_CHANNELS as Y, PLANE as Z, PLANE_BYTES as _, type RetouchApply as a, rgbaViewOfGrey as a$, P_EDGE as a0, P_FX as a1, P_FY as a2, P_H as a3, P_P0 as a4, P_RHO as a5, P_SW as a6, P_UX as a7, P_UY as a8, type PixelSource as a9, type WetPaper as aA, type WetWorkerLayout as aB, WetWorkerPool as aC, WetWorldError as aD, applyRetouchToTile as aE, applyToneToDeepTile as aF, boxBlurPixels as aG, canShareMemory as aH, cloneSamplePoint as aI, createWetGpuEngine as aJ, dodgeBurn as aK, dodgeBurnCurve as aL, dsincos as aM, edgeBits as aN, findWebGpu as aO, flowField as aP, healPixels as aQ, isIdentityCloneTransform as aR, latticeViscosity as aS, loadWetKernel as aT, luma as aU, normalizeRetouch as aV, normalizeTilt as aW, packWetParams as aX, perDabStrength as aY, readSourceRegion as aZ, retouchFilter as a_, RETOUCH_SAMPLES as aa, RegionPixelSource as ab, type RetouchDabEffect as ac, RetouchDabStroke as ad, type RetouchSample as ae, SET_PLANES as af, SLOT_BYTES as ag, SLOT_PLANES as ah, SLOT_SIDE as ai, SPOT_HEAL_TYPES as aj, STRIP as ak, type SpotHealType as al, TONE_RANGES as am, TilePixelSource as an, type ToneRange as ao, TransformedPixelSource as ap, U_MAX as aq, W9 as ar, WET_TILE as as, type WetFlowField as at, WetGpuEngine as au, type WetGpuJob as av, type WetGpuSupport as aw, type WetKernelKind as ax, type WetLaneOptions as ay, type WetLaneStats as az, type RetouchPaint as b, saturationOf as b0, smudgeEffect as b1, sponge as b2, spongeEffect as b3, spotHealPixels as b4, spotHealWindow as b5, toneOf as b6, wetGpuSupport as b7, wetSimdSupported as b8, type WetTilt as c, type WetParams as d, type WetFlowSpec as e, type WetWorldOptions as f, type WetGpuProvider as g, type WetBackendInfo as h, type WetSnapshot as i, type WetPaperInput as j, DEFAULT_WET_PARAMS as k, WET_FLOW_KINDS as l, WET_PARAM_KEYS as m, type WetFlowKind as n, type WetSupport as o, hash2 as p, mix32 as q, normalizeFlow as r, normalizeWetParams as s, rand01 as t, randSigned as u, seedFromString as v, wetSupport as w, DEFAULT_RETOUCH as x, DEFAULT_WET_PAPER as y, DRY_EPS as z };
|
|
@@ -1114,5 +1114,21 @@ declare function mix32(h: number): number;
|
|
|
1114
1114
|
declare function hash2(x: number, y: number, salt: number): number;
|
|
1115
1115
|
/** Uniform in [0, 1) from a seed, an index and a stream (one stream per random quantity). */
|
|
1116
1116
|
declare function rand01(seed: number, index: number, stream: number): number;
|
|
1117
|
+
/** Uniform in [-1, 1). */
|
|
1118
|
+
declare function randSigned(seed: number, index: number, stream: number): number;
|
|
1119
|
+
/** A seed from a string (FNV-1a, then mixed). */
|
|
1120
|
+
declare function seedFromString(text: string): number;
|
|
1121
|
+
/**
|
|
1122
|
+
* Tileable fractal value noise in 0..1 over a `size`-pixel square: `cellsX × cellsY` lattice cells
|
|
1123
|
+
* at the base octave (unequal counts give fibres and streaks), doubling per octave, so the result
|
|
1124
|
+
* repeats exactly every `size` pixels.
|
|
1125
|
+
*/
|
|
1126
|
+
declare class TileableNoise {
|
|
1127
|
+
readonly size: number;
|
|
1128
|
+
private readonly octaves;
|
|
1129
|
+
constructor(size: number, cellsX: number, cellsY: number, octaves: number, salt: number);
|
|
1130
|
+
/** Fractal noise at pixel (x, y). */
|
|
1131
|
+
at(x: number, y: number): number;
|
|
1132
|
+
}
|
|
1117
1133
|
|
|
1118
|
-
export {
|
|
1134
|
+
export { P_D0 as $, EY as A, FLAG_BOTTOM as B, type CloneTransform as C, DEFAULT_FLOW as D, EX as E, FLAG_ALIVE as F, FLAG_LEFT as G, FLAG_RIGHT as H, FLAG_TOP as I, FLAG_WET as J, FLAT as K, FREE_INTERVAL as L, IDENTITY_CLONE_TRANSFORM as M, MAX_BATCH as N, MAX_TILT_ACCEL as O, MAX_WET_LANES as P, MAX_WET_SLOTS as Q, type RetouchSettings as R, OPP as S, TileableNoise as T, PAPER_CAPACITY as U, PARAM as V, WetWorld as W, PARAM_FLOATS as X, PIGMENT_CHANNELS as Y, PLANE as Z, PLANE_BYTES as _, type RetouchApply as a, rgbaViewOfGrey as a$, P_EDGE as a0, P_FX as a1, P_FY as a2, P_H as a3, P_P0 as a4, P_RHO as a5, P_SW as a6, P_UX as a7, P_UY as a8, type PixelSource as a9, type WetPaper as aA, type WetWorkerLayout as aB, WetWorkerPool as aC, WetWorldError as aD, applyRetouchToTile as aE, applyToneToDeepTile as aF, boxBlurPixels as aG, canShareMemory as aH, cloneSamplePoint as aI, createWetGpuEngine as aJ, dodgeBurn as aK, dodgeBurnCurve as aL, dsincos as aM, edgeBits as aN, findWebGpu as aO, flowField as aP, healPixels as aQ, isIdentityCloneTransform as aR, latticeViscosity as aS, loadWetKernel as aT, luma as aU, normalizeRetouch as aV, normalizeTilt as aW, packWetParams as aX, perDabStrength as aY, readSourceRegion as aZ, retouchFilter as a_, RETOUCH_SAMPLES as aa, RegionPixelSource as ab, type RetouchDabEffect as ac, RetouchDabStroke as ad, type RetouchSample as ae, SET_PLANES as af, SLOT_BYTES as ag, SLOT_PLANES as ah, SLOT_SIDE as ai, SPOT_HEAL_TYPES as aj, STRIP as ak, type SpotHealType as al, TONE_RANGES as am, TilePixelSource as an, type ToneRange as ao, TransformedPixelSource as ap, U_MAX as aq, W9 as ar, WET_TILE as as, type WetFlowField as at, WetGpuEngine as au, type WetGpuJob as av, type WetGpuSupport as aw, type WetKernelKind as ax, type WetLaneOptions as ay, type WetLaneStats as az, type RetouchPaint as b, saturationOf as b0, smudgeEffect as b1, sponge as b2, spongeEffect as b3, spotHealPixels as b4, spotHealWindow as b5, toneOf as b6, wetGpuSupport as b7, wetSimdSupported as b8, type WetTilt as c, type WetParams as d, type WetFlowSpec as e, type WetWorldOptions as f, type WetGpuProvider as g, type WetBackendInfo as h, type WetSnapshot as i, type WetPaperInput as j, DEFAULT_WET_PARAMS as k, WET_FLOW_KINDS as l, WET_PARAM_KEYS as m, type WetFlowKind as n, type WetSupport as o, hash2 as p, mix32 as q, normalizeFlow as r, normalizeWetParams as s, rand01 as t, randSigned as u, seedFromString as v, wetSupport as w, DEFAULT_RETOUCH as x, DEFAULT_WET_PAPER as y, DRY_EPS as z };
|
|
@@ -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-CEJ8Uw4O.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-Cavy1TB7.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-B6cK8SR6.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-LZQ4cpg4.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-Cavy1TB7.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-LZQ4cpg4.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The agent tools for provider effects, shared by every editor that takes an `EffectProvider`:
|