next-flow-interface 0.26.11 → 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.
- package/index.d.ts +25 -5
- 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[],
|
|
@@ -6292,6 +6293,10 @@ export declare enum RvResourceType {
|
|
|
6292
6293
|
}
|
|
6293
6294
|
|
|
6294
6295
|
/**
|
|
6296
|
+
* 场景中的模型树节点的协同数据
|
|
6297
|
+
*
|
|
6298
|
+
* 记录了这个节点的信息,来源,嵌套关系
|
|
6299
|
+
*
|
|
6295
6300
|
* @public
|
|
6296
6301
|
*/
|
|
6297
6302
|
export declare interface RvSceneNode {
|
|
@@ -6303,8 +6308,8 @@ export declare interface RvSceneNode {
|
|
|
6303
6308
|
name: string;
|
|
6304
6309
|
fingerprint?: string;
|
|
6305
6310
|
copy?: string;
|
|
6306
|
-
delete?: boolean;
|
|
6307
6311
|
};
|
|
6312
|
+
delete?: boolean;
|
|
6308
6313
|
}
|
|
6309
6314
|
|
|
6310
6315
|
/**
|
|
@@ -6325,6 +6330,8 @@ export declare class RvSceneService {
|
|
|
6325
6330
|
isParent(nid: string, of: string): boolean;
|
|
6326
6331
|
isChild(nid: string, of: string): boolean;
|
|
6327
6332
|
move(nid: string, newParent?: string): void;
|
|
6333
|
+
delete(nid: string): void;
|
|
6334
|
+
getDescendantsWithSelf(nid: string): string[];
|
|
6328
6335
|
generateId(mid: string, layer: number, index: number): string;
|
|
6329
6336
|
generateIdAndNameForCopy(fromNid: string): {
|
|
6330
6337
|
nid: string;
|
|
@@ -6442,12 +6449,25 @@ export declare class SceneService {
|
|
|
6442
6449
|
offsetY: number;
|
|
6443
6450
|
};
|
|
6444
6451
|
/**
|
|
6445
|
-
*
|
|
6452
|
+
* 复制指定节点
|
|
6453
|
+
*
|
|
6454
|
+
* @param fromNid - 从指定nid的模型复制
|
|
6455
|
+
* @param onlyCurrent - 是否只复制当前节点 (为false则递归复制子元素)
|
|
6456
|
+
* @param withNodeData - 是否同时复制节点数据
|
|
6457
|
+
* @param newParentNid - 新父节点nid (内部递归使用)
|
|
6458
|
+
*/
|
|
6459
|
+
copy(
|
|
6460
|
+
fromNid: string,
|
|
6461
|
+
onlyCurrent?: boolean,
|
|
6462
|
+
withNodeData?: boolean,
|
|
6463
|
+
newParentNid?: string,
|
|
6464
|
+
): string;
|
|
6465
|
+
/**
|
|
6466
|
+
* 删除指定节点及其所有子节点
|
|
6446
6467
|
*
|
|
6447
|
-
* @param
|
|
6448
|
-
* @param parent
|
|
6468
|
+
* @param nid - 要删除的节点nid
|
|
6449
6469
|
*/
|
|
6450
|
-
|
|
6470
|
+
delete(nid: string): void;
|
|
6451
6471
|
}
|
|
6452
6472
|
|
|
6453
6473
|
/**
|