next-flow-interface 0.26.12 → 0.26.13

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.
Files changed (2) hide show
  1. package/index.d.ts +10 -2
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -6087,6 +6087,7 @@ export declare class RvNodeService {
6087
6087
  multiInitialize(nidList: string[]): void;
6088
6088
  isAllInitialized(nidList: string[]): boolean;
6089
6089
  copy(fromNid: string, toNid: string): void;
6090
+ delete(nid: string): void;
6090
6091
  forEachAny(
6091
6092
  callback: (node: StoredRhineVar<RvNode>, sid: string, nid: string) => void,
6092
6093
  nidList?: string[],
@@ -6307,8 +6308,8 @@ export declare interface RvSceneNode {
6307
6308
  name: string;
6308
6309
  fingerprint?: string;
6309
6310
  copy?: string;
6310
- delete?: boolean;
6311
6311
  };
6312
+ delete?: boolean;
6312
6313
  }
6313
6314
 
6314
6315
  /**
@@ -6319,7 +6320,6 @@ export declare class RvSceneService {
6319
6320
  private constructor();
6320
6321
  scene: RecursiveMap<RvSceneNode>;
6321
6322
  isDescendant(nid: string, of: string): boolean;
6322
- get(nid: string): StoredRhineVar<RvSceneNode> | undefined;
6323
6323
  /**
6324
6324
  * 是否存在来自指定mid的节点
6325
6325
  *
@@ -6330,6 +6330,8 @@ export declare class RvSceneService {
6330
6330
  isParent(nid: string, of: string): boolean;
6331
6331
  isChild(nid: string, of: string): boolean;
6332
6332
  move(nid: string, newParent?: string): void;
6333
+ delete(nid: string): void;
6334
+ getDescendantsWithSelf(nid: string): string[];
6333
6335
  generateId(mid: string, layer: number, index: number): string;
6334
6336
  generateIdAndNameForCopy(fromNid: string): {
6335
6337
  nid: string;
@@ -6460,6 +6462,12 @@ export declare class SceneService {
6460
6462
  withNodeData?: boolean,
6461
6463
  newParentNid?: string,
6462
6464
  ): string;
6465
+ /**
6466
+ * 删除指定节点及其所有子节点
6467
+ *
6468
+ * @param nid - 要删除的节点nid
6469
+ */
6470
+ delete(nid: string): void;
6463
6471
  }
6464
6472
 
6465
6473
  /**
package/package.json CHANGED
@@ -36,7 +36,7 @@
36
36
  "valtio": "2.1.7",
37
37
  "rhine-var": "0.11.2"
38
38
  },
39
- "version": "0.26.12",
39
+ "version": "0.26.13",
40
40
  "author": "NextFlow",
41
41
  "license": "Apache-2.0",
42
42
  "keywords": [