@pixerate/editor 0.203.0 → 0.204.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.
@@ -1378,6 +1378,16 @@ export declare class VectorEditorController {
1378
1378
  * placed by position.
1379
1379
  */
1380
1380
  reorderNode(id: string, index: number): VectorActionResult;
1381
+ /**
1382
+ * Moves a node into group `parentId` (null: the top level; left out: where it is) at `index`
1383
+ * among its new siblings (bottom to top, 0 the bottom; left out: the top), as dragging it in a
1384
+ * layers panel does. It stays where it is on the canvas. Clipping groups and blends keep their
1385
+ * children: their mask and keys are placed by position.
1386
+ */
1387
+ moveNode(id: string, options?: {
1388
+ parentId?: string | null;
1389
+ index?: number;
1390
+ }): VectorActionResult;
1381
1391
  /**
1382
1392
  * Combines the selected paths (two or more) into one with a boolean operation. `subtract`
1383
1393
  * removes the upper shapes from the lowest one. The result takes the lowest shape's style
@@ -1378,6 +1378,16 @@ export declare class VectorEditorController {
1378
1378
  * placed by position.
1379
1379
  */
1380
1380
  reorderNode(id: string, index: number): VectorActionResult;
1381
+ /**
1382
+ * Moves a node into group `parentId` (null: the top level; left out: where it is) at `index`
1383
+ * among its new siblings (bottom to top, 0 the bottom; left out: the top), as dragging it in a
1384
+ * layers panel does. It stays where it is on the canvas. Clipping groups and blends keep their
1385
+ * children: their mask and keys are placed by position.
1386
+ */
1387
+ moveNode(id: string, options?: {
1388
+ parentId?: string | null;
1389
+ index?: number;
1390
+ }): VectorActionResult;
1381
1391
  /**
1382
1392
  * Combines the selected paths (two or more) into one with a boolean operation. `subtract`
1383
1393
  * removes the upper shapes from the lowest one. The result takes the lowest shape's style