next-flow-interface 0.26.12 → 0.26.14
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 +24 -2
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -4944,6 +4944,20 @@ export declare class RsNodeService {
|
|
|
4944
4944
|
*/
|
|
4945
4945
|
static get instance(): RsNodeService;
|
|
4946
4946
|
private constructor();
|
|
4947
|
+
/**
|
|
4948
|
+
* 移除节点映射(不销毁 Babylon 节点)
|
|
4949
|
+
*
|
|
4950
|
+
* @param nid - 节点唯一标识符
|
|
4951
|
+
* @returns 是否成功移除
|
|
4952
|
+
*/
|
|
4953
|
+
removeNodePair(nid: string): boolean;
|
|
4954
|
+
/**
|
|
4955
|
+
* 从 Babylon 场景中删除节点(包括子节点)并移除映射
|
|
4956
|
+
*
|
|
4957
|
+
* @param nid - 节点唯一标识符
|
|
4958
|
+
* @returns 是否成功删除
|
|
4959
|
+
*/
|
|
4960
|
+
remove(nid: string): boolean;
|
|
4947
4961
|
/**
|
|
4948
4962
|
* 生成场景节点结构并添加到 RvScene
|
|
4949
4963
|
*
|
|
@@ -6087,6 +6101,7 @@ export declare class RvNodeService {
|
|
|
6087
6101
|
multiInitialize(nidList: string[]): void;
|
|
6088
6102
|
isAllInitialized(nidList: string[]): boolean;
|
|
6089
6103
|
copy(fromNid: string, toNid: string): void;
|
|
6104
|
+
delete(nid: string): void;
|
|
6090
6105
|
forEachAny(
|
|
6091
6106
|
callback: (node: StoredRhineVar<RvNode>, sid: string, nid: string) => void,
|
|
6092
6107
|
nidList?: string[],
|
|
@@ -6307,8 +6322,8 @@ export declare interface RvSceneNode {
|
|
|
6307
6322
|
name: string;
|
|
6308
6323
|
fingerprint?: string;
|
|
6309
6324
|
copy?: string;
|
|
6310
|
-
delete?: boolean;
|
|
6311
6325
|
};
|
|
6326
|
+
deleted?: boolean;
|
|
6312
6327
|
}
|
|
6313
6328
|
|
|
6314
6329
|
/**
|
|
@@ -6319,7 +6334,6 @@ export declare class RvSceneService {
|
|
|
6319
6334
|
private constructor();
|
|
6320
6335
|
scene: RecursiveMap<RvSceneNode>;
|
|
6321
6336
|
isDescendant(nid: string, of: string): boolean;
|
|
6322
|
-
get(nid: string): StoredRhineVar<RvSceneNode> | undefined;
|
|
6323
6337
|
/**
|
|
6324
6338
|
* 是否存在来自指定mid的节点
|
|
6325
6339
|
*
|
|
@@ -6330,6 +6344,8 @@ export declare class RvSceneService {
|
|
|
6330
6344
|
isParent(nid: string, of: string): boolean;
|
|
6331
6345
|
isChild(nid: string, of: string): boolean;
|
|
6332
6346
|
move(nid: string, newParent?: string): void;
|
|
6347
|
+
delete(nid: string): void;
|
|
6348
|
+
getDescendantsWithSelf(nid: string): string[];
|
|
6333
6349
|
generateId(mid: string, layer: number, index: number): string;
|
|
6334
6350
|
generateIdAndNameForCopy(fromNid: string): {
|
|
6335
6351
|
nid: string;
|
|
@@ -6460,6 +6476,12 @@ export declare class SceneService {
|
|
|
6460
6476
|
withNodeData?: boolean,
|
|
6461
6477
|
newParentNid?: string,
|
|
6462
6478
|
): string;
|
|
6479
|
+
/**
|
|
6480
|
+
* 删除指定节点及其所有子节点
|
|
6481
|
+
*
|
|
6482
|
+
* @param nid - 要删除的节点nid
|
|
6483
|
+
*/
|
|
6484
|
+
delete(nid: string): void;
|
|
6463
6485
|
}
|
|
6464
6486
|
|
|
6465
6487
|
/**
|