@pixerate/editor 0.256.0 → 0.258.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 +40 -38
- package/dist/agent/index.js +9 -7
- package/dist/animation/index.cjs +4 -2
- package/dist/animation/index.js +4 -2
- package/dist/animation-editor/index.cjs +63 -61
- package/dist/animation-editor/index.js +7 -5
- package/dist/brushes/colour.d.cts +11 -0
- package/dist/brushes/colour.d.ts +11 -0
- package/dist/brushes/index.cjs +51 -30
- package/dist/brushes/index.d.cts +1 -0
- package/dist/brushes/index.d.ts +1 -0
- package/dist/brushes/index.js +25 -4
- package/dist/brushes/resolve.d.cts +2 -0
- package/dist/brushes/resolve.d.ts +2 -0
- package/dist/brushes/schema.d.cts +1 -0
- package/dist/brushes/schema.d.ts +1 -0
- package/dist/brushes/tools.d.cts +7 -0
- package/dist/brushes/tools.d.ts +7 -0
- package/dist/brushes/types.d.cts +10 -2
- package/dist/brushes/types.d.ts +10 -2
- package/dist/brushes/ui.d.cts +14 -3
- package/dist/brushes/ui.d.ts +14 -3
- package/dist/{brushstrokeRender-HCOQUSWW.js → brushstrokeRender-JI4W6F2G.js} +2 -2
- package/dist/{brushstrokeRender-ZZOXI5O5.cjs → brushstrokeRender-MQ6PSDM5.cjs} +11 -11
- package/dist/canvas/index.cjs +20 -18
- package/dist/canvas/index.js +7 -5
- package/dist/chart/index.cjs +159 -157
- package/dist/chart/index.js +9 -7
- package/dist/{chunk-7272D3K2.js → chunk-2EUW2XZX.js} +27 -276
- package/dist/{chunk-L6Y7TSQ4.js → chunk-2VJ6OVJV.js} +1 -1
- package/dist/{chunk-6ZZKRH7R.js → chunk-47V3WXDG.js} +2 -2
- package/dist/{chunk-H7ET2ISK.cjs → chunk-4IMD2TLY.cjs} +52 -52
- package/dist/{chunk-VUKUTT2W.js → chunk-4M4E3N6X.js} +1 -1
- package/dist/{chunk-TBAVCLEQ.cjs → chunk-5Q5MLXAD.cjs} +23 -23
- package/dist/{chunk-MONXNVZK.js → chunk-6I23ZCGK.js} +5 -3
- package/dist/{chunk-GOBOCZZI.js → chunk-6NQPKNUZ.js} +1 -1
- package/dist/{chunk-WYGSR3IJ.js → chunk-AORZ5M5C.js} +1 -1
- package/dist/chunk-AVTPZO4Z.cjs +142 -0
- package/dist/{chunk-WKMUBATU.js → chunk-C2WEIEUB.js} +1 -1
- package/dist/{chunk-P3K2JCJA.js → chunk-D5BXSOSU.js} +3 -3
- package/dist/chunk-E2V5DA3W.js +36 -0
- package/dist/{chunk-WZOGDKCQ.js → chunk-F7CPSRLN.js} +0 -133
- package/dist/chunk-FJBQTZS4.js +17 -0
- package/dist/{chunk-SOSBOS5T.cjs → chunk-G23BTQA5.cjs} +22 -22
- package/dist/{chunk-EUIDTZNQ.cjs → chunk-I3Y2Q3PM.cjs} +59 -308
- package/dist/{chunk-YHUMGBZD.js → chunk-ICTPLVSR.js} +22 -4
- package/dist/{chunk-LRNUZKWV.cjs → chunk-IPUTIUGQ.cjs} +1 -1
- package/dist/{chunk-6GRUVGKU.js → chunk-ITURMC2M.js} +3 -3
- package/dist/{chunk-HYWRU5VX.js → chunk-IXQZHCOF.js} +1 -1
- package/dist/chunk-J5UQHWVL.js +142 -0
- package/dist/{chunk-YBAPT7NL.js → chunk-JC2SHA4A.js} +1 -23
- package/dist/chunk-LRTR4ASZ.cjs +17 -0
- package/dist/{chunk-HUAISCUX.cjs → chunk-M2HG5DJ2.cjs} +18 -18
- package/dist/{chunk-N76AMOKE.cjs → chunk-MDLEGVEN.cjs} +42 -42
- package/dist/chunk-MEGSQUQO.cjs +36 -0
- package/dist/chunk-MLLTWAXH.cjs +276 -0
- package/dist/{chunk-RHPSE2YR.js → chunk-MQ6MGIQM.js} +2 -2
- package/dist/{chunk-PGPFWC35.cjs → chunk-MQGQTKVW.cjs} +51 -33
- package/dist/{chunk-5YWWQ36H.cjs → chunk-O3ZVZSNJ.cjs} +9 -9
- package/dist/{chunk-GCTUOTCW.cjs → chunk-P3PZ63M3.cjs} +35 -35
- package/dist/{chunk-WRZ6C4TU.cjs → chunk-P6WYDBTH.cjs} +4 -4
- package/dist/{chunk-CJ6TBL2N.cjs → chunk-RHEMMGCN.cjs} +16 -16
- package/dist/{chunk-HIMGBZAM.cjs → chunk-RSIKDWOP.cjs} +201 -38
- package/dist/{chunk-SABJMH6M.cjs → chunk-RVGP2XLF.cjs} +2 -135
- package/dist/{chunk-JVRLGV3C.js → chunk-SMTUQWGY.js} +184 -21
- package/dist/{chunk-DMTEQ6SH.js → chunk-SSFMWJDK.js} +4 -4
- package/dist/{chunk-TFF2GTGN.cjs → chunk-SXQHWXEL.cjs} +2 -24
- package/dist/{chunk-IWEVV63O.cjs → chunk-UEYLANO3.cjs} +18 -16
- package/dist/chunk-VR6OGHU5.js +276 -0
- package/dist/{chunk-AF23QK5F.js → chunk-YQ4PQTBB.js} +1 -1
- package/dist/{chunk-B7V34GIH.cjs → chunk-YSGW7VV4.cjs} +88 -88
- package/dist/{chunk-3NS5C7FB.cjs → chunk-YYBW6DF2.cjs} +76 -76
- package/dist/{chunk-UFEDHACQ.js → chunk-Z7BX4TWO.js} +2 -2
- package/dist/{chunk-RUONPPMC.cjs → chunk-ZSE25IZA.cjs} +8 -8
- package/dist/color/index.cjs +7 -3
- package/dist/color/index.js +18 -14
- package/dist/export/index.cjs +8 -6
- package/dist/export/index.js +7 -5
- package/dist/extensions/index.cjs +11 -9
- package/dist/extensions/index.js +10 -8
- package/dist/gradient/index.cjs +33 -31
- package/dist/gradient/index.js +5 -3
- package/dist/image-editor/brush-presets.d.cts +4 -1
- package/dist/image-editor/brush-presets.d.ts +4 -1
- package/dist/image-editor/controller.d.cts +10 -5
- package/dist/image-editor/controller.d.ts +10 -5
- package/dist/image-editor/index.cjs +1090 -1073
- package/dist/image-editor/index.js +37 -20
- package/dist/index.cjs +17 -15
- package/dist/index.js +11 -9
- package/dist/paint-editor/brushes.d.cts +18 -1
- package/dist/paint-editor/brushes.d.ts +18 -1
- package/dist/paint-editor/collaboration.d.cts +38 -0
- package/dist/paint-editor/collaboration.d.ts +38 -0
- package/dist/paint-editor/controller.d.cts +60 -0
- package/dist/paint-editor/controller.d.ts +60 -0
- package/dist/paint-editor/engine.d.cts +7 -0
- package/dist/paint-editor/engine.d.ts +7 -0
- package/dist/paint-editor/index.cjs +1564 -1324
- package/dist/paint-editor/index.js +1198 -958
- package/dist/paint-editor/mark-settings.d.cts +1 -1
- package/dist/paint-editor/mark-settings.d.ts +1 -1
- package/dist/paint-editor/procedural.d.cts +4 -2
- package/dist/paint-editor/procedural.d.ts +4 -2
- package/dist/paint-editor/stamp-tip.d.cts +45 -0
- package/dist/paint-editor/stamp-tip.d.ts +45 -0
- package/dist/paint-editor/stroke.d.cts +4 -0
- package/dist/paint-editor/stroke.d.ts +4 -0
- package/dist/stickers/index.cjs +4 -2
- package/dist/stickers/index.js +6 -4
- package/dist/typography/index.cjs +3 -2
- package/dist/typography/index.js +2 -1
- package/dist/vector/index.cjs +971 -969
- package/dist/vector/index.js +8 -6
- package/dist/video-editor/index.cjs +4 -2
- package/dist/video-editor/index.js +4 -2
- package/package.json +1 -1
- package/skills/pixerate-brushes/SKILL.md +21 -11
- package/skills/pixerate-brushes-design/SKILL.md +6 -2
- package/skills/pixerate-brushes-design/evals/canvas-chalk.json +8 -8
- package/skills/pixerate-canvas/SKILL.md +3 -2
- package/skills/pixerate-image-editor/SKILL.md +1 -1
- package/skills/pixerate-paint-editor/SKILL.md +5 -1
- package/skills/pixerate-vector/SKILL.md +1 -1
|
@@ -79,7 +79,7 @@ export interface ParticleSettings {
|
|
|
79
79
|
/** Wave: how far out of step the particles' waves are (0: all in step; 1: random phases). */
|
|
80
80
|
wavePhaseJitter: number;
|
|
81
81
|
/** Dots and beads: up to four sticker stamps drawn instead of round marks (empty: round). */
|
|
82
|
-
dotTextures: StampKind
|
|
82
|
+
dotTextures: Array<StampKind | `${string}:${string}`>;
|
|
83
83
|
dotTextureOrder: DotTextureOrder;
|
|
84
84
|
dotRotation: DotRotation;
|
|
85
85
|
}
|
|
@@ -79,7 +79,7 @@ export interface ParticleSettings {
|
|
|
79
79
|
/** Wave: how far out of step the particles' waves are (0: all in step; 1: random phases). */
|
|
80
80
|
wavePhaseJitter: number;
|
|
81
81
|
/** Dots and beads: up to four sticker stamps drawn instead of round marks (empty: round). */
|
|
82
|
-
dotTextures: StampKind
|
|
82
|
+
dotTextures: Array<StampKind | `${string}:${string}`>;
|
|
83
83
|
dotTextureOrder: DotTextureOrder;
|
|
84
84
|
dotRotation: DotRotation;
|
|
85
85
|
}
|
|
@@ -28,7 +28,7 @@ import type { PaintBrush } from './brushes.cjs';
|
|
|
28
28
|
import { type EffectPaintPixels } from './effect-paint.cjs';
|
|
29
29
|
import { PenDabWalker, PenSmoother, type PenDab, type PenPoint, type StrokeCopy } from './engine.cjs';
|
|
30
30
|
import { type PaperGrain } from './paper.cjs';
|
|
31
|
-
import type {
|
|
31
|
+
import type { StickerArtLookup } from './sticker-art.cjs';
|
|
32
32
|
export { DEFAULT_BRISTLE, DEFAULT_PARTICLE, DOT_ROTATIONS, DOT_TEXTURE_ORDERS, MAX_DOT_TEXTURES, normalizeBristle, normalizeParticle, PARTICLE_KINDS, PARTICLE_RENDERS, RIBBON_PAIRS, type BristleSettings, type DotRotation, type DotTextureOrder, type ParticleKind, type ParticleRender, type ParticleSettings, type RibbonPairs, } from './mark-settings.cjs';
|
|
33
33
|
export interface ProceduralStrokeOptions {
|
|
34
34
|
grain: PaperGrain | null;
|
|
@@ -39,6 +39,8 @@ export interface ProceduralStrokeOptions {
|
|
|
39
39
|
paint?: PaintGradientSource | null;
|
|
40
40
|
/** Effect paint: each pixel of a mark takes its colour (and alpha) from these canvas-sized pixels. */
|
|
41
41
|
effect?: EffectPaintPixels | null;
|
|
42
|
+
/** Loaded sticker art, for textured dots of stickers from the sticker library. */
|
|
43
|
+
stampArt?: StickerArtLookup;
|
|
42
44
|
}
|
|
43
45
|
/** What a coverage-building stroke engine provides to the stroke session. */
|
|
44
46
|
export interface CoverageStroke {
|
|
@@ -81,7 +83,7 @@ declare abstract class MarkStroke implements CoverageStroke {
|
|
|
81
83
|
* Stamps a textured mark: `kind` from the sticker stamps over a square of half-size `r`, turned
|
|
82
84
|
* `rotation` radians clockwise, with flow `alpha` towards `opacity`. Small marks are supersampled.
|
|
83
85
|
*/
|
|
84
|
-
protected stamp(x: number, y: number, r: number, kind:
|
|
86
|
+
protected stamp(x: number, y: number, r: number, kind: string, rotation: number, seed: number, alpha: number, opacity: number, pressure: number, rects: RasterRect[]): void;
|
|
85
87
|
/** A scratch buffer of `n` values (reused; valid until the next mark). */
|
|
86
88
|
protected scratch(n: number): Float32Array;
|
|
87
89
|
/**
|
|
@@ -28,7 +28,7 @@ import type { PaintBrush } from './brushes.js';
|
|
|
28
28
|
import { type EffectPaintPixels } from './effect-paint.js';
|
|
29
29
|
import { PenDabWalker, PenSmoother, type PenDab, type PenPoint, type StrokeCopy } from './engine.js';
|
|
30
30
|
import { type PaperGrain } from './paper.js';
|
|
31
|
-
import type {
|
|
31
|
+
import type { StickerArtLookup } from './sticker-art.js';
|
|
32
32
|
export { DEFAULT_BRISTLE, DEFAULT_PARTICLE, DOT_ROTATIONS, DOT_TEXTURE_ORDERS, MAX_DOT_TEXTURES, normalizeBristle, normalizeParticle, PARTICLE_KINDS, PARTICLE_RENDERS, RIBBON_PAIRS, type BristleSettings, type DotRotation, type DotTextureOrder, type ParticleKind, type ParticleRender, type ParticleSettings, type RibbonPairs, } from './mark-settings.js';
|
|
33
33
|
export interface ProceduralStrokeOptions {
|
|
34
34
|
grain: PaperGrain | null;
|
|
@@ -39,6 +39,8 @@ export interface ProceduralStrokeOptions {
|
|
|
39
39
|
paint?: PaintGradientSource | null;
|
|
40
40
|
/** Effect paint: each pixel of a mark takes its colour (and alpha) from these canvas-sized pixels. */
|
|
41
41
|
effect?: EffectPaintPixels | null;
|
|
42
|
+
/** Loaded sticker art, for textured dots of stickers from the sticker library. */
|
|
43
|
+
stampArt?: StickerArtLookup;
|
|
42
44
|
}
|
|
43
45
|
/** What a coverage-building stroke engine provides to the stroke session. */
|
|
44
46
|
export interface CoverageStroke {
|
|
@@ -81,7 +83,7 @@ declare abstract class MarkStroke implements CoverageStroke {
|
|
|
81
83
|
* Stamps a textured mark: `kind` from the sticker stamps over a square of half-size `r`, turned
|
|
82
84
|
* `rotation` radians clockwise, with flow `alpha` towards `opacity`. Small marks are supersampled.
|
|
83
85
|
*/
|
|
84
|
-
protected stamp(x: number, y: number, r: number, kind:
|
|
86
|
+
protected stamp(x: number, y: number, r: number, kind: string, rotation: number, seed: number, alpha: number, opacity: number, pressure: number, rects: RasterRect[]): void;
|
|
85
87
|
/** A scratch buffer of `n` values (reused; valid until the next mark). */
|
|
86
88
|
protected scratch(n: number): Float32Array;
|
|
87
89
|
/**
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stamp tips: a dab, a particle dot or a spray droplet shaped like a sticker instead of the round
|
|
3
|
+
* computed tip. An editor stamp (`editor:star`, or a bare `star`) is drawn from its coverage
|
|
4
|
+
* function; any other sticker ref from its loaded art (`StickerArtCache`), by its alpha. The mark
|
|
5
|
+
* is laid in the paint colour: a stamp tip takes the sticker's shape, never its colours (keep
|
|
6
|
+
* those with `marks: objects`, which lays editable stickers).
|
|
7
|
+
*/
|
|
8
|
+
import type { RasterRect as CropBox } from '../raster/surface.cjs';
|
|
9
|
+
import type { StickerArtLookup } from './sticker-art.cjs';
|
|
10
|
+
/** Coverage 0..1 of a stamp at (u, v) of its unit square (−1..1, y down); `seed` varies shapes with random parts. */
|
|
11
|
+
export type StampSampler = (u: number, v: number, seed: number) => number;
|
|
12
|
+
/**
|
|
13
|
+
* The sampler of a stamp ref: an editor stamp's coverage, or the alpha of a sticker's loaded art
|
|
14
|
+
* (bilinear, centred in the unit square, aspect kept). `null` when the art is not loaded (or the
|
|
15
|
+
* ref is not a sticker): the caller paints the round tip instead.
|
|
16
|
+
*/
|
|
17
|
+
export declare function stampSampler(ref: string, art?: StickerArtLookup): StampSampler | null;
|
|
18
|
+
/** A dab of a stamp tip: centre, radius (px), roundness squashing it across, angle (radians, counter-clockwise) and flow. */
|
|
19
|
+
export interface StampDab {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
radius: number;
|
|
23
|
+
roundness: number;
|
|
24
|
+
angle: number;
|
|
25
|
+
alpha: number;
|
|
26
|
+
}
|
|
27
|
+
/** The pixel rectangle a stamp dab can touch. */
|
|
28
|
+
export declare function stampDabRect(d: StampDab): CropBox;
|
|
29
|
+
/**
|
|
30
|
+
* Rasterizes one stamp dab over `rect` into `out` (coverage × flow): the stamp's unit square spans
|
|
31
|
+
* the tip's diameter, squashed by roundness and turned by the tip angle as a round tip would be.
|
|
32
|
+
* Small dabs are supersampled.
|
|
33
|
+
*/
|
|
34
|
+
export declare function rasterizeStampDab(d: StampDab, sample: StampSampler, seed: number, rect: CropBox, out: Float32Array): void;
|
|
35
|
+
/** The sticker refs a brush lays that need loaded art (provider stickers; editor stamps need none). */
|
|
36
|
+
export declare function brushStickerRefs(brush: {
|
|
37
|
+
engine: string;
|
|
38
|
+
stamp: string | null;
|
|
39
|
+
sticker: {
|
|
40
|
+
stamps: readonly string[];
|
|
41
|
+
};
|
|
42
|
+
particle: {
|
|
43
|
+
dotTextures: readonly string[];
|
|
44
|
+
};
|
|
45
|
+
}): string[];
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stamp tips: a dab, a particle dot or a spray droplet shaped like a sticker instead of the round
|
|
3
|
+
* computed tip. An editor stamp (`editor:star`, or a bare `star`) is drawn from its coverage
|
|
4
|
+
* function; any other sticker ref from its loaded art (`StickerArtCache`), by its alpha. The mark
|
|
5
|
+
* is laid in the paint colour: a stamp tip takes the sticker's shape, never its colours (keep
|
|
6
|
+
* those with `marks: objects`, which lays editable stickers).
|
|
7
|
+
*/
|
|
8
|
+
import type { RasterRect as CropBox } from '../raster/surface.js';
|
|
9
|
+
import type { StickerArtLookup } from './sticker-art.js';
|
|
10
|
+
/** Coverage 0..1 of a stamp at (u, v) of its unit square (−1..1, y down); `seed` varies shapes with random parts. */
|
|
11
|
+
export type StampSampler = (u: number, v: number, seed: number) => number;
|
|
12
|
+
/**
|
|
13
|
+
* The sampler of a stamp ref: an editor stamp's coverage, or the alpha of a sticker's loaded art
|
|
14
|
+
* (bilinear, centred in the unit square, aspect kept). `null` when the art is not loaded (or the
|
|
15
|
+
* ref is not a sticker): the caller paints the round tip instead.
|
|
16
|
+
*/
|
|
17
|
+
export declare function stampSampler(ref: string, art?: StickerArtLookup): StampSampler | null;
|
|
18
|
+
/** A dab of a stamp tip: centre, radius (px), roundness squashing it across, angle (radians, counter-clockwise) and flow. */
|
|
19
|
+
export interface StampDab {
|
|
20
|
+
x: number;
|
|
21
|
+
y: number;
|
|
22
|
+
radius: number;
|
|
23
|
+
roundness: number;
|
|
24
|
+
angle: number;
|
|
25
|
+
alpha: number;
|
|
26
|
+
}
|
|
27
|
+
/** The pixel rectangle a stamp dab can touch. */
|
|
28
|
+
export declare function stampDabRect(d: StampDab): CropBox;
|
|
29
|
+
/**
|
|
30
|
+
* Rasterizes one stamp dab over `rect` into `out` (coverage × flow): the stamp's unit square spans
|
|
31
|
+
* the tip's diameter, squashed by roundness and turned by the tip angle as a round tip would be.
|
|
32
|
+
* Small dabs are supersampled.
|
|
33
|
+
*/
|
|
34
|
+
export declare function rasterizeStampDab(d: StampDab, sample: StampSampler, seed: number, rect: CropBox, out: Float32Array): void;
|
|
35
|
+
/** The sticker refs a brush lays that need loaded art (provider stickers; editor stamps need none). */
|
|
36
|
+
export declare function brushStickerRefs(brush: {
|
|
37
|
+
engine: string;
|
|
38
|
+
stamp: string | null;
|
|
39
|
+
sticker: {
|
|
40
|
+
stamps: readonly string[];
|
|
41
|
+
};
|
|
42
|
+
particle: {
|
|
43
|
+
dotTextures: readonly string[];
|
|
44
|
+
};
|
|
45
|
+
}): string[];
|
|
@@ -26,6 +26,8 @@ export interface StrokeSessionHost {
|
|
|
26
26
|
update(layerId: string, surface: TiledSurface, rects: RasterRect[]): void;
|
|
27
27
|
/** Ends the stroke: `surface` is the new pixels, or `null` when nothing changed / it was cancelled. */
|
|
28
28
|
commit(session: PaintStrokeSession, surface: TiledSurface | null, cancelled: boolean): void;
|
|
29
|
+
/** Hears the raw samples as they arrive (after the input filter), before they are painted. */
|
|
30
|
+
sampled?(session: PaintStrokeSession, points: readonly PenPoint[]): void;
|
|
29
31
|
}
|
|
30
32
|
export interface StrokeSessionInit {
|
|
31
33
|
layerId: string;
|
|
@@ -77,6 +79,8 @@ export interface StrokeSessionInit {
|
|
|
77
79
|
nextId: number;
|
|
78
80
|
art?: StickerArtLookup;
|
|
79
81
|
};
|
|
82
|
+
/** Loaded sticker art for stamp tips and textured particle dots of stickers from the sticker library. */
|
|
83
|
+
stampArt?: StickerArtLookup;
|
|
80
84
|
/** Gradient paint (resolved: concrete colours), or `null` for the one colour. Recorded with the stroke. */
|
|
81
85
|
paint?: PaintGradientSource | null;
|
|
82
86
|
/**
|
|
@@ -26,6 +26,8 @@ export interface StrokeSessionHost {
|
|
|
26
26
|
update(layerId: string, surface: TiledSurface, rects: RasterRect[]): void;
|
|
27
27
|
/** Ends the stroke: `surface` is the new pixels, or `null` when nothing changed / it was cancelled. */
|
|
28
28
|
commit(session: PaintStrokeSession, surface: TiledSurface | null, cancelled: boolean): void;
|
|
29
|
+
/** Hears the raw samples as they arrive (after the input filter), before they are painted. */
|
|
30
|
+
sampled?(session: PaintStrokeSession, points: readonly PenPoint[]): void;
|
|
29
31
|
}
|
|
30
32
|
export interface StrokeSessionInit {
|
|
31
33
|
layerId: string;
|
|
@@ -77,6 +79,8 @@ export interface StrokeSessionInit {
|
|
|
77
79
|
nextId: number;
|
|
78
80
|
art?: StickerArtLookup;
|
|
79
81
|
};
|
|
82
|
+
/** Loaded sticker art for stamp tips and textured particle dots of stickers from the sticker library. */
|
|
83
|
+
stampArt?: StickerArtLookup;
|
|
80
84
|
/** Gradient paint (resolved: concrete colours), or `null` for the one colour. Recorded with the stroke. */
|
|
81
85
|
paint?: PaintGradientSource | null;
|
|
82
86
|
/**
|
package/dist/stickers/index.cjs
CHANGED
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
var _chunkRVGP2XLFcjs = require('../chunk-RVGP2XLF.cjs');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
|
|
14
|
+
var _chunkAVTPZO4Zcjs = require('../chunk-AVTPZO4Z.cjs');
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
|
|
@@ -334,4 +336,4 @@ async function checkStickerProvider(provider, options = {}) {
|
|
|
334
336
|
|
|
335
337
|
|
|
336
338
|
|
|
337
|
-
exports.DEFAULT_STICKER_PAGE = _chunkJSDND7DFcjs.DEFAULT_STICKER_PAGE; exports.EDITOR_STICKERS_ID = _chunkJSDND7DFcjs.EDITOR_STICKERS_ID; exports.MAX_STICKER_PAGE = _chunkJSDND7DFcjs.MAX_STICKER_PAGE; exports.STAMP_KINDS = _chunkJSDND7DFcjs.STAMP_KINDS; exports.StickerBrowser =
|
|
339
|
+
exports.DEFAULT_STICKER_PAGE = _chunkJSDND7DFcjs.DEFAULT_STICKER_PAGE; exports.EDITOR_STICKERS_ID = _chunkJSDND7DFcjs.EDITOR_STICKERS_ID; exports.MAX_STICKER_PAGE = _chunkJSDND7DFcjs.MAX_STICKER_PAGE; exports.STAMP_KINDS = _chunkJSDND7DFcjs.STAMP_KINDS; exports.StickerBrowser = _chunkRVGP2XLFcjs.StickerBrowser; exports.StickerError = _chunkU67EN7GGcjs.StickerError; exports.StickersSlot = _chunkJSDND7DFcjs.StickersSlot; exports.checkStickerProvider = checkStickerProvider; exports.checkStickerSearchOptions = _chunkJSDND7DFcjs.checkStickerSearchOptions; exports.closestStickerRefs = _chunkJSDND7DFcjs.closestStickerRefs; exports.combineStickerProviders = combineStickerProviders; exports.createFakeStickerProvider = createFakeStickerProvider; exports.createInsertStickerTool = _chunkAVTPZO4Zcjs.createInsertStickerTool; exports.createStickerToolProvider = _chunkAVTPZO4Zcjs.createStickerToolProvider; exports.createStickerTools = _chunkAVTPZO4Zcjs.createStickerTools; exports.describeStickerRef = _chunkAVTPZO4Zcjs.describeStickerRef; exports.editorStampOf = _chunkJSDND7DFcjs.editorStampOf; exports.editorStickers = _chunkRVGP2XLFcjs.editorStickers; exports.insertSticker = _chunkAVTPZO4Zcjs.insertSticker; exports.normalizeStickerRef = _chunkJSDND7DFcjs.normalizeStickerRef; exports.parseStickerRef = _chunkJSDND7DFcjs.parseStickerRef; exports.stampCoverage = _chunkJSDND7DFcjs.stampCoverage; exports.stampOutline = _chunkRVGP2XLFcjs.stampOutline; exports.stampPixels = _chunkRVGP2XLFcjs.stampPixels; exports.stickerForAgent = _chunkAVTPZO4Zcjs.stickerForAgent; exports.stickerIdFor = _chunkJSDND7DFcjs.stickerIdFor; exports.stickerPage = _chunkJSDND7DFcjs.stickerPage; exports.stickerRefOf = _chunkJSDND7DFcjs.stickerRefOf;
|
package/dist/stickers/index.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StickerBrowser,
|
|
3
|
+
editorStickers,
|
|
4
|
+
stampOutline,
|
|
5
|
+
stampPixels
|
|
6
|
+
} from "../chunk-F7CPSRLN.js";
|
|
7
|
+
import {
|
|
3
8
|
createInsertStickerTool,
|
|
4
9
|
createStickerToolProvider,
|
|
5
10
|
createStickerTools,
|
|
6
11
|
describeStickerRef,
|
|
7
|
-
editorStickers,
|
|
8
12
|
insertSticker,
|
|
9
|
-
stampOutline,
|
|
10
|
-
stampPixels,
|
|
11
13
|
stickerForAgent
|
|
12
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-J5UQHWVL.js";
|
|
13
15
|
import {
|
|
14
16
|
DEFAULT_STICKER_PAGE,
|
|
15
17
|
EDITOR_STICKERS_ID,
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
var _chunk4XSBOGMKcjs = require('../chunk-4XSBOGMK.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkMEGSQUQOcjs = require('../chunk-MEGSQUQO.cjs');
|
|
22
|
+
require('../chunk-SXQHWXEL.cjs');
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
|
|
@@ -572,7 +573,7 @@ function checkTypographyAccessibility(options) {
|
|
|
572
573
|
if (font.size < 12) issues.push(`${font.size}px text is hard to read at any contrast; use 12px or more (16px for body text).`);
|
|
573
574
|
const weight = _chunk4XSBOGMKcjs.normalizeFontWeight.call(void 0, font.weight);
|
|
574
575
|
if (weight <= 300 && font.size < 24) issues.push(`Weight ${weight} at ${font.size}px has thin strokes that lower effective contrast; use 400 or heavier below 24px.`);
|
|
575
|
-
const suggestion = passesAA ? void 0 :
|
|
576
|
+
const suggestion = passesAA ? void 0 : _chunkMEGSQUQOcjs.suggestAccessibleForeground.call(void 0, fg, bg, { large });
|
|
576
577
|
return {
|
|
577
578
|
ratio,
|
|
578
579
|
large,
|
package/dist/typography/index.js
CHANGED