@pixerate/editor-svelte 0.167.1 → 0.168.1
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.
|
@@ -25,6 +25,13 @@ export declare function createCanvasDraw<TNode extends CanvasNode = CanvasNode>(
|
|
|
25
25
|
eraseAt: (point: import("@pixerate/editor/canvas").Point, radius?: number) => any[];
|
|
26
26
|
/** Draws a whole stroke at once (agents, code); validates the brush first. One undo step. */
|
|
27
27
|
drawStroke: (input: import("@pixerate/editor/canvas").DrawStrokeInput) => Promise<import("@pixerate/editor/canvas").DrawStrokeResult<any>>;
|
|
28
|
+
/** A node's box in canvas coordinates (lets gesture commands such as `canvas.circle` take `{ nodeId }`). */
|
|
29
|
+
nodeBounds: (id: string) => {
|
|
30
|
+
x: number;
|
|
31
|
+
y: number;
|
|
32
|
+
width: number;
|
|
33
|
+
height: number;
|
|
34
|
+
} | undefined;
|
|
28
35
|
/** The dry paint presets `style.brush` accepts (loads the paint engine). */
|
|
29
36
|
listBrushes: typeof import("@pixerate/editor/canvas").listCanvasBrushes;
|
|
30
37
|
};
|
|
@@ -44,6 +44,8 @@ export function createCanvasDraw(options) {
|
|
|
44
44
|
eraseAt: controller.eraseAt,
|
|
45
45
|
/** Draws a whole stroke at once (agents, code); validates the brush first. One undo step. */
|
|
46
46
|
drawStroke: controller.drawStroke,
|
|
47
|
+
/** A node's box in canvas coordinates (lets gesture commands such as `canvas.circle` take `{ nodeId }`). */
|
|
48
|
+
nodeBounds: controller.nodeBounds,
|
|
47
49
|
/** The dry paint presets `style.brush` accepts (loads the paint engine). */
|
|
48
50
|
listBrushes: controller.listBrushes
|
|
49
51
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixerate/editor-svelte",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.168.1",
|
|
4
4
|
"description": "Svelte bindings and prompt/rich-text components for @pixerate/editor",
|
|
5
5
|
"author": "Pixerate",
|
|
6
6
|
"license": "MIT",
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"**/*.css"
|
|
166
166
|
],
|
|
167
167
|
"dependencies": {
|
|
168
|
-
"@pixerate/editor": "0.
|
|
168
|
+
"@pixerate/editor": "0.228.1"
|
|
169
169
|
},
|
|
170
170
|
"peerDependencies": {
|
|
171
171
|
"@dagrejs/dagre": "^1.1.4",
|