@pixerate/editor-react 0.169.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.
@@ -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 stamp, place, size, rotation, opacity and colour, bring it to the front or back, or delete it
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 stamp, place, size, rotation, opacity and colour, bring it to the front or back, or delete it
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>;