next-flow-interface 0.26.9 → 0.26.12

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 +28 -3
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -6292,6 +6292,10 @@ export declare enum RvResourceType {
6292
6292
  }
6293
6293
 
6294
6294
  /**
6295
+ * 场景中的模型树节点的协同数据
6296
+ *
6297
+ * 记录了这个节点的信息,来源,嵌套关系
6298
+ *
6295
6299
  * @public
6296
6300
  */
6297
6301
  export declare interface RvSceneNode {
@@ -6303,6 +6307,7 @@ export declare interface RvSceneNode {
6303
6307
  name: string;
6304
6308
  fingerprint?: string;
6305
6309
  copy?: string;
6310
+ delete?: boolean;
6306
6311
  };
6307
6312
  }
6308
6313
 
@@ -6314,6 +6319,7 @@ export declare class RvSceneService {
6314
6319
  private constructor();
6315
6320
  scene: RecursiveMap<RvSceneNode>;
6316
6321
  isDescendant(nid: string, of: string): boolean;
6322
+ get(nid: string): StoredRhineVar<RvSceneNode> | undefined;
6317
6323
  /**
6318
6324
  * 是否存在来自指定mid的节点
6319
6325
  *
@@ -6324,8 +6330,14 @@ export declare class RvSceneService {
6324
6330
  isParent(nid: string, of: string): boolean;
6325
6331
  isChild(nid: string, of: string): boolean;
6326
6332
  move(nid: string, newParent?: string): void;
6327
- copy(nid: string, parent?: string): string;
6328
- getSortedRvSceneNodeWithRelatedInfoList(): SceneNodeWithRelatedInfo[];
6333
+ generateId(mid: string, layer: number, index: number): string;
6334
+ generateIdAndNameForCopy(fromNid: string): {
6335
+ nid: string;
6336
+ name: string;
6337
+ from: RvSceneNode;
6338
+ base: RvSceneNode;
6339
+ };
6340
+ getSortedSceneNodeWithRelatedInfoList(): SceneNodeWithRelatedInfo[];
6329
6341
  }
6330
6342
 
6331
6343
  /**
@@ -6434,7 +6446,20 @@ export declare class SceneService {
6434
6446
  offsetX: number;
6435
6447
  offsetY: number;
6436
6448
  };
6437
- copy(fromNid: string, parent?: string): string;
6449
+ /**
6450
+ * 复制指定节点
6451
+ *
6452
+ * @param fromNid - 从指定nid的模型复制
6453
+ * @param onlyCurrent - 是否只复制当前节点 (为false则递归复制子元素)
6454
+ * @param withNodeData - 是否同时复制节点数据
6455
+ * @param newParentNid - 新父节点nid (内部递归使用)
6456
+ */
6457
+ copy(
6458
+ fromNid: string,
6459
+ onlyCurrent?: boolean,
6460
+ withNodeData?: boolean,
6461
+ newParentNid?: string,
6462
+ ): string;
6438
6463
  }
6439
6464
 
6440
6465
  /**
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.9",
39
+ "version": "0.26.12",
40
40
  "author": "NextFlow",
41
41
  "license": "Apache-2.0",
42
42
  "keywords": [