@pixerate/editor-react 0.167.0 → 0.170.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/{chunk-65EL63YS.js → chunk-2UD3JH4W.js} +1137 -1376
- package/dist/chunk-EP6C5N54.js +406 -0
- package/dist/image-editor/LayerEffectsPanel.d.cts +3 -2
- package/dist/image-editor/LayerEffectsPanel.d.ts +3 -2
- package/dist/image-editor/index.cjs +121 -121
- package/dist/image-editor/index.js +10 -9
- package/dist/index.cjs +121 -121
- package/dist/index.js +10 -9
- package/dist/paint-editor/PaintLayersPanel.d.cts +2 -1
- package/dist/paint-editor/PaintLayersPanel.d.ts +2 -1
- package/dist/paint-editor/StickerPanel.d.cts +1 -1
- package/dist/paint-editor/StickerPanel.d.ts +1 -1
- package/dist/paint-editor/StickerPicker.d.cts +17 -0
- package/dist/paint-editor/StickerPicker.d.ts +17 -0
- package/dist/paint-editor/index.cjs +947 -626
- package/dist/paint-editor/index.d.cts +1 -0
- package/dist/paint-editor/index.d.ts +1 -0
- package/dist/paint-editor/index.js +464 -373
- package/package.json +3 -3
- package/dist/chunk-AJCWF6SN.js +0 -125
package/dist/index.js
CHANGED
|
@@ -33,16 +33,10 @@ import {
|
|
|
33
33
|
EdgeColorPanel,
|
|
34
34
|
FreeTransformOptionsBar,
|
|
35
35
|
Histogram,
|
|
36
|
-
ImageCheckbox,
|
|
37
|
-
ImageColor,
|
|
38
36
|
ImageEditor,
|
|
39
37
|
ImageEditorCanvas,
|
|
40
|
-
ImageEditorControlsProvider,
|
|
41
38
|
ImageEffectControls,
|
|
42
39
|
ImageProviderEffectsPanel,
|
|
43
|
-
ImageRange,
|
|
44
|
-
ImageSelect,
|
|
45
|
-
LayerEffectsPanel,
|
|
46
40
|
LayersPanel,
|
|
47
41
|
MaskEdgeCheck,
|
|
48
42
|
PaintGradientEditor,
|
|
@@ -57,11 +51,18 @@ import {
|
|
|
57
51
|
TypeOptionsBar,
|
|
58
52
|
VectorMaskEdgesPanel,
|
|
59
53
|
useImageEditor,
|
|
60
|
-
useImageEditorControls,
|
|
61
54
|
useImageEffectsTools,
|
|
62
55
|
useImageHistogram
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import
|
|
56
|
+
} from "./chunk-2UD3JH4W.js";
|
|
57
|
+
import {
|
|
58
|
+
ImageCheckbox,
|
|
59
|
+
ImageColor,
|
|
60
|
+
ImageEditorControlsProvider,
|
|
61
|
+
ImageRange,
|
|
62
|
+
ImageSelect,
|
|
63
|
+
LayerEffectsPanel,
|
|
64
|
+
useImageEditorControls
|
|
65
|
+
} from "./chunk-EP6C5N54.js";
|
|
65
66
|
import "./chunk-TOYSB4DK.js";
|
|
66
67
|
import "./chunk-5RPB4WGT.js";
|
|
67
68
|
import "./chunk-KIRIU53A.js";
|
|
@@ -6,7 +6,8 @@ export interface PaintLayersPanelProps {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* The layer stack, top first: visibility, names (double-click to rename), the active layer's
|
|
9
|
-
* opacity, blend mode and locks, and
|
|
9
|
+
* opacity, blend mode and locks, its light and its layer style (the image editor's
|
|
10
|
+
* `LayerEffectsPanel`), and new layer / group, duplicate, move up / down, merge down and
|
|
10
11
|
* delete. Every change is one undo step.
|
|
11
12
|
*/
|
|
12
13
|
export declare const PaintLayersPanel: React.FC<PaintLayersPanelProps>;
|
|
@@ -6,7 +6,8 @@ export interface PaintLayersPanelProps {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* The layer stack, top first: visibility, names (double-click to rename), the active layer's
|
|
9
|
-
* opacity, blend mode and locks, and
|
|
9
|
+
* opacity, blend mode and locks, its light and its layer style (the image editor's
|
|
10
|
+
* `LayerEffectsPanel`), and new layer / group, duplicate, move up / down, merge down and
|
|
10
11
|
* delete. Every change is one undo step.
|
|
11
12
|
*/
|
|
12
13
|
export declare const PaintLayersPanel: React.FC<PaintLayersPanelProps>;
|
|
@@ -6,7 +6,7 @@ export interface StickerPanelProps {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* The active layer's stickers: pick one (here, or with the Stickers tool on the canvas) to change
|
|
9
|
-
* its
|
|
9
|
+
* its sticker (from the sticker library), place, size, rotation, opacity and colour, bring it to the front or back, or delete it
|
|
10
10
|
* (each change one undo step). Shows nothing for a layer without stickers.
|
|
11
11
|
*/
|
|
12
12
|
export declare const StickerPanel: React.FC<StickerPanelProps>;
|
|
@@ -6,7 +6,7 @@ export interface StickerPanelProps {
|
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* The active layer's stickers: pick one (here, or with the Stickers tool on the canvas) to change
|
|
9
|
-
* its
|
|
9
|
+
* its sticker (from the sticker library), place, size, rotation, opacity and colour, bring it to the front or back, or delete it
|
|
10
10
|
* (each change one undo step). Shows nothing for a layer without stickers.
|
|
11
11
|
*/
|
|
12
12
|
export declare const StickerPanel: React.FC<StickerPanelProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PaintEditorController } from '@pixerate/editor/paint-editor';
|
|
3
|
+
export interface StickerPickerProps {
|
|
4
|
+
controller: PaintEditorController;
|
|
5
|
+
/** Refs shown as chosen. */
|
|
6
|
+
selected: readonly string[];
|
|
7
|
+
/** Called with a sticker's ref when it is clicked. */
|
|
8
|
+
onPick: (ref: string) => void;
|
|
9
|
+
/** Accessible name of the sticker list (default "Stickers"). */
|
|
10
|
+
label?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Stickers from the paint editor's sticker library (`controller.stickersProvider`), searchable,
|
|
14
|
+
* by category and a page at a time; clicking one calls `onPick` with its ref. Chosen stickers
|
|
15
|
+
* whose art failed to load say why.
|
|
16
|
+
*/
|
|
17
|
+
export declare const StickerPicker: React.FC<StickerPickerProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type PaintEditorController } from '@pixerate/editor/paint-editor';
|
|
3
|
+
export interface StickerPickerProps {
|
|
4
|
+
controller: PaintEditorController;
|
|
5
|
+
/** Refs shown as chosen. */
|
|
6
|
+
selected: readonly string[];
|
|
7
|
+
/** Called with a sticker's ref when it is clicked. */
|
|
8
|
+
onPick: (ref: string) => void;
|
|
9
|
+
/** Accessible name of the sticker list (default "Stickers"). */
|
|
10
|
+
label?: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Stickers from the paint editor's sticker library (`controller.stickersProvider`), searchable,
|
|
14
|
+
* by category and a page at a time; clicking one calls `onPick` with its ref. Chosen stickers
|
|
15
|
+
* whose art failed to load say why.
|
|
16
|
+
*/
|
|
17
|
+
export declare const StickerPicker: React.FC<StickerPickerProps>;
|