@shapediver/viewer.shared.node-tree 3.15.12 → 3.16.1
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/dist/implementation/AbstractTreeNodeData.d.ts +4 -1
- package/dist/implementation/AbstractTreeNodeData.d.ts.map +1 -1
- package/dist/implementation/AbstractTreeNodeData.js +9 -10
- package/dist/implementation/AbstractTreeNodeData.js.map +1 -1
- package/dist/implementation/Tree.d.ts +1 -2
- package/dist/implementation/Tree.d.ts.map +1 -1
- package/dist/implementation/Tree.js.map +1 -1
- package/dist/implementation/TreeNode.d.ts +8 -14
- package/dist/implementation/TreeNode.d.ts.map +1 -1
- package/dist/implementation/TreeNode.js +102 -77
- package/dist/implementation/TreeNode.js.map +1 -1
- package/dist/implementation/data/AnimationData.d.ts +33 -0
- package/dist/implementation/data/AnimationData.d.ts.map +1 -0
- package/dist/implementation/data/AnimationData.js +291 -0
- package/dist/implementation/data/AnimationData.js.map +1 -0
- package/dist/implementation/data/ChunkData.d.ts +15 -0
- package/dist/implementation/data/ChunkData.d.ts.map +1 -0
- package/dist/implementation/data/ChunkData.js +47 -0
- package/dist/implementation/data/ChunkData.js.map +1 -0
- package/dist/implementation/data/CustomData.d.ts +25 -0
- package/dist/implementation/data/CustomData.d.ts.map +1 -0
- package/dist/implementation/data/CustomData.js +51 -0
- package/dist/implementation/data/CustomData.js.map +1 -0
- package/dist/implementation/data/GeometryData.d.ts +101 -0
- package/dist/implementation/data/GeometryData.d.ts.map +1 -0
- package/dist/implementation/data/GeometryData.js +327 -0
- package/dist/implementation/data/GeometryData.js.map +1 -0
- package/dist/implementation/data/HTMLElementAnchorData.d.ts +103 -0
- package/dist/implementation/data/HTMLElementAnchorData.d.ts.map +1 -0
- package/dist/implementation/data/HTMLElementAnchorData.js +274 -0
- package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -0
- package/dist/implementation/data/InstanceData.d.ts +22 -0
- package/dist/implementation/data/InstanceData.d.ts.map +1 -0
- package/dist/implementation/data/InstanceData.js +59 -0
- package/dist/implementation/data/InstanceData.js.map +1 -0
- package/dist/implementation/material/AbstractMaterialData.d.ts +69 -0
- package/dist/implementation/material/AbstractMaterialData.d.ts.map +1 -0
- package/dist/implementation/material/AbstractMaterialData.js +225 -0
- package/dist/implementation/material/AbstractMaterialData.js.map +1 -0
- package/dist/implementation/material/MapData.d.ts +54 -0
- package/dist/implementation/material/MapData.d.ts.map +1 -0
- package/dist/implementation/material/MapData.js +191 -0
- package/dist/implementation/material/MapData.js.map +1 -0
- package/dist/implementation/material/MaterialBasicLineData.d.ts +15 -0
- package/dist/implementation/material/MaterialBasicLineData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialBasicLineData.js +91 -0
- package/dist/implementation/material/MaterialBasicLineData.js.map +1 -0
- package/dist/implementation/material/MaterialGemData.d.ts +47 -0
- package/dist/implementation/material/MaterialGemData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialGemData.js +289 -0
- package/dist/implementation/material/MaterialGemData.js.map +1 -0
- package/dist/implementation/material/MaterialLambertData.d.ts +22 -0
- package/dist/implementation/material/MaterialLambertData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialLambertData.js +147 -0
- package/dist/implementation/material/MaterialLambertData.js.map +1 -0
- package/dist/implementation/material/MaterialMultiPointData.d.ts +100 -0
- package/dist/implementation/material/MaterialMultiPointData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialMultiPointData.js +651 -0
- package/dist/implementation/material/MaterialMultiPointData.js.map +1 -0
- package/dist/implementation/material/MaterialPhongData.d.ts +26 -0
- package/dist/implementation/material/MaterialPhongData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialPhongData.js +171 -0
- package/dist/implementation/material/MaterialPhongData.js.map +1 -0
- package/dist/implementation/material/MaterialPointData.d.ts +20 -0
- package/dist/implementation/material/MaterialPointData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialPointData.js +132 -0
- package/dist/implementation/material/MaterialPointData.js.map +1 -0
- package/dist/implementation/material/MaterialShadowData.d.ts +15 -0
- package/dist/implementation/material/MaterialShadowData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialShadowData.js +36 -0
- package/dist/implementation/material/MaterialShadowData.js.map +1 -0
- package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts +28 -0
- package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialSpecularGlossinessData.js +180 -0
- package/dist/implementation/material/MaterialSpecularGlossinessData.js.map +1 -0
- package/dist/implementation/material/MaterialStandardData.d.ts +76 -0
- package/dist/implementation/material/MaterialStandardData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialStandardData.js +468 -0
- package/dist/implementation/material/MaterialStandardData.js.map +1 -0
- package/dist/implementation/material/MaterialUnlitData.d.ts +18 -0
- package/dist/implementation/material/MaterialUnlitData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialUnlitData.js +120 -0
- package/dist/implementation/material/MaterialUnlitData.js.map +1 -0
- package/dist/implementation/material/MaterialVariantsData.d.ts +16 -0
- package/dist/implementation/material/MaterialVariantsData.d.ts.map +1 -0
- package/dist/implementation/material/MaterialVariantsData.js +62 -0
- package/dist/implementation/material/MaterialVariantsData.js.map +1 -0
- package/dist/implementation/sdtf/SDTFAttributesData.d.ts +23 -0
- package/dist/implementation/sdtf/SDTFAttributesData.d.ts.map +1 -0
- package/dist/implementation/sdtf/SDTFAttributesData.js +100 -0
- package/dist/implementation/sdtf/SDTFAttributesData.js.map +1 -0
- package/dist/implementation/sdtf/SDTFItemData.d.ts +19 -0
- package/dist/implementation/sdtf/SDTFItemData.d.ts.map +1 -0
- package/dist/implementation/sdtf/SDTFItemData.js +60 -0
- package/dist/implementation/sdtf/SDTFItemData.js.map +1 -0
- package/dist/implementation/sdtf/SDTFOverviewData.d.ts +13 -0
- package/dist/implementation/sdtf/SDTFOverviewData.d.ts.map +1 -0
- package/dist/implementation/sdtf/SDTFOverviewData.js +107 -0
- package/dist/implementation/sdtf/SDTFOverviewData.js.map +1 -0
- package/dist/index.d.ts +31 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +51 -1
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/dist/interfaces/ITree.d.ts +0 -46
- package/dist/interfaces/ITree.d.ts.map +0 -1
- package/dist/interfaces/ITree.js +0 -3
- package/dist/interfaces/ITree.js.map +0 -1
- package/dist/interfaces/ITreeNode.d.ts +0 -237
- package/dist/interfaces/ITreeNode.d.ts.map +0 -1
- package/dist/interfaces/ITreeNode.js +0 -4
- package/dist/interfaces/ITreeNode.js.map +0 -1
- package/dist/interfaces/ITreeNodeData.d.ts +0 -36
- package/dist/interfaces/ITreeNodeData.d.ts.map +0 -1
- package/dist/interfaces/ITreeNodeData.js +0 -3
- package/dist/interfaces/ITreeNodeData.js.map +0 -1
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ITreeNode } from "./ITreeNode";
|
|
2
|
-
export interface ITree {
|
|
3
|
-
/**
|
|
4
|
-
* The root of the tree.
|
|
5
|
-
*/
|
|
6
|
-
readonly root: ITreeNode;
|
|
7
|
-
/**
|
|
8
|
-
* Add the node as a child of the corresponding parent node.
|
|
9
|
-
*
|
|
10
|
-
* @param node the node to be added
|
|
11
|
-
* @param parent the targeted parent node
|
|
12
|
-
* @param root optional root at which the process begins, root node will be used per default
|
|
13
|
-
*/
|
|
14
|
-
addNode(node: ITreeNode, parent?: ITreeNode, root?: ITreeNode): boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Add the node at the corresponding path. (paths are dot separated ids)
|
|
17
|
-
*
|
|
18
|
-
* @param node the node to be added
|
|
19
|
-
* @param path the path at which the node should be added
|
|
20
|
-
* @param root optional root at which the process begins, root node will be used per default
|
|
21
|
-
*/
|
|
22
|
-
addNodeAtPath(node: ITreeNode, path?: string, root?: ITreeNode): boolean;
|
|
23
|
-
/**
|
|
24
|
-
* Get the node at the provided path.
|
|
25
|
-
*
|
|
26
|
-
* @param path
|
|
27
|
-
* @param root
|
|
28
|
-
* @returns
|
|
29
|
-
*/
|
|
30
|
-
getNodeAtPath(path?: string, root?: ITreeNode): ITreeNode | null;
|
|
31
|
-
/**
|
|
32
|
-
* Remove a node from the tree.
|
|
33
|
-
*
|
|
34
|
-
* @param node the node to remove
|
|
35
|
-
* @param root optional root at which the process begins, root node will be used per default
|
|
36
|
-
*/
|
|
37
|
-
removeNode(node: ITreeNode, root?: ITreeNode): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Remove a node via the path of it.
|
|
40
|
-
*
|
|
41
|
-
* @param path the path of the node to be removed
|
|
42
|
-
* @param root optional root at which the process begins, root node will be used per default
|
|
43
|
-
*/
|
|
44
|
-
removeNodeAtPath(path: string, root?: ITreeNode): boolean;
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=ITree.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ITree.d.ts","sourceRoot":"","sources":["../../src/interfaces/ITree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,MAAM,WAAW,KAAK;IAGrB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAMzB;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACxE;;;;;;OAMG;IACH,aAAa,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACzE;;;;;;OAMG;IACH,aAAa,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC;IACjE;;;;;OAKG;IACH,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACvD;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAG1D"}
|
package/dist/interfaces/ITree.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ITree.js","sourceRoot":"","sources":["../../src/interfaces/ITree.ts"],"names":[],"mappings":""}
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import { IBox } from "@shapediver/viewer.shared.math";
|
|
2
|
-
import { mat4 } from "gl-matrix";
|
|
3
|
-
import { ITreeNodeData } from "./ITreeNodeData";
|
|
4
|
-
export interface ITransformation {
|
|
5
|
-
id: string;
|
|
6
|
-
matrix: mat4;
|
|
7
|
-
}
|
|
8
|
-
export interface ITreeNode {
|
|
9
|
-
/**
|
|
10
|
-
* The bounding box of this tree node.
|
|
11
|
-
*/
|
|
12
|
-
readonly boundingBox: IBox;
|
|
13
|
-
/**
|
|
14
|
-
* The bounding box of this tree node for each viewport.
|
|
15
|
-
* As there can be properties where tree nodes are excluded from the viewport, the bounding boxes may be different per viewport.
|
|
16
|
-
* The {@link boundingBox} property can be used as the general bounding box without any viewport specific exclusions.
|
|
17
|
-
*/
|
|
18
|
-
readonly boundingBoxViewport: {
|
|
19
|
-
[key: string]: IBox;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* The children of this tree node. Can be added and remove via {@link addChild} and {@link removeChild}.
|
|
23
|
-
*/
|
|
24
|
-
readonly children: ITreeNode[];
|
|
25
|
-
/**
|
|
26
|
-
* The data of this tree node.
|
|
27
|
-
* The data can include Geometry, Materials, Lights, Cameras, but also informational or custom data.
|
|
28
|
-
*
|
|
29
|
-
* Can be added and remove via {@link addData} and {@link removeData}.
|
|
30
|
-
*/
|
|
31
|
-
readonly data: ITreeNodeData[];
|
|
32
|
-
/**
|
|
33
|
-
* The ID of the tree node.
|
|
34
|
-
*/
|
|
35
|
-
readonly id: string;
|
|
36
|
-
/**
|
|
37
|
-
* The name of the tree node.
|
|
38
|
-
*/
|
|
39
|
-
readonly name: string;
|
|
40
|
-
/**
|
|
41
|
-
* The matrix of the tree node.
|
|
42
|
-
* This is computed via all transformations in the {@link transformations} property.
|
|
43
|
-
*/
|
|
44
|
-
readonly nodeMatrix: mat4;
|
|
45
|
-
/**
|
|
46
|
-
* The original ID of the tree node, if it was copied.
|
|
47
|
-
*/
|
|
48
|
-
readonly originalId: string;
|
|
49
|
-
/**
|
|
50
|
-
* The original name of the tree node, if one was supplied.
|
|
51
|
-
*/
|
|
52
|
-
readonly originalName?: string;
|
|
53
|
-
/**
|
|
54
|
-
* The parent of the tree node.
|
|
55
|
-
* This property is automatically managed by {@link addChild} and {@link removeChild}.
|
|
56
|
-
*/
|
|
57
|
-
readonly parent?: ITreeNode;
|
|
58
|
-
/**
|
|
59
|
-
* The version of the tree node.
|
|
60
|
-
* If the version changes, the node will be marked for an update.
|
|
61
|
-
* A version change can be triggered via {@link updateVersion}.
|
|
62
|
-
*/
|
|
63
|
-
readonly version: string;
|
|
64
|
-
/**
|
|
65
|
-
* The world matrix of the tree node.
|
|
66
|
-
* This includes also the transformations of all parents.
|
|
67
|
-
*/
|
|
68
|
-
readonly worldMatrix: mat4;
|
|
69
|
-
/**
|
|
70
|
-
* The inverse matrices for the bones, if specified.
|
|
71
|
-
*/
|
|
72
|
-
boneInverses: mat4[];
|
|
73
|
-
/**
|
|
74
|
-
* The optional bones that build a skeleton for animations.
|
|
75
|
-
*/
|
|
76
|
-
bones: ITreeNode[];
|
|
77
|
-
/**
|
|
78
|
-
* The converted object of the tree node.
|
|
79
|
-
*/
|
|
80
|
-
convertedObject: {
|
|
81
|
-
[key: string]: unknown;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* An optional name that can be used for display purposes.
|
|
85
|
-
* If not specified, the {@link name} property will be used.
|
|
86
|
-
*/
|
|
87
|
-
displayName?: string;
|
|
88
|
-
/**
|
|
89
|
-
* The viewports to exclude this tree node from.
|
|
90
|
-
*/
|
|
91
|
-
excludeViewports: string[];
|
|
92
|
-
/**
|
|
93
|
-
* If for this node, global intersection tests should be performed. (default: true)
|
|
94
|
-
*/
|
|
95
|
-
intersectionTest: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* The viewports to restrict this tree node to.
|
|
98
|
-
*/
|
|
99
|
-
restrictViewports: string[];
|
|
100
|
-
/**
|
|
101
|
-
* Property to mark this node as a skin node. (default: false)
|
|
102
|
-
*/
|
|
103
|
-
skinNode: boolean;
|
|
104
|
-
/**
|
|
105
|
-
* The transformation to be applied to this tree node.
|
|
106
|
-
*/
|
|
107
|
-
transformations: ITransformation[];
|
|
108
|
-
/**
|
|
109
|
-
* The update callback for the tree node.
|
|
110
|
-
* This callback is called when the node is updated, e.g. when the version changes.
|
|
111
|
-
*/
|
|
112
|
-
updateCallback: ((newVersion: string, oldVersion: string) => void) | null;
|
|
113
|
-
/**
|
|
114
|
-
* The update callback for the converted object of the tree node.
|
|
115
|
-
*/
|
|
116
|
-
updateCallbackConvertedObject: ((newObj: unknown, oldObj: unknown, viewport: string) => void) | null;
|
|
117
|
-
/**
|
|
118
|
-
* Option to make this tree node visible. (default: true)
|
|
119
|
-
*/
|
|
120
|
-
visible: boolean;
|
|
121
|
-
/**
|
|
122
|
-
* Add a child to the children of this node.
|
|
123
|
-
*
|
|
124
|
-
* @param child the child to add
|
|
125
|
-
*/
|
|
126
|
-
addChild(child: ITreeNode): boolean;
|
|
127
|
-
/**
|
|
128
|
-
* Add a data item to node.
|
|
129
|
-
*
|
|
130
|
-
* @param data the data to add
|
|
131
|
-
*/
|
|
132
|
-
addData(data: ITreeNodeData): boolean;
|
|
133
|
-
/**
|
|
134
|
-
* Add a transformation to this node.
|
|
135
|
-
*
|
|
136
|
-
* @param transformation the transformation to add
|
|
137
|
-
*/
|
|
138
|
-
addTransformation(transformation: ITransformation): boolean;
|
|
139
|
-
/**
|
|
140
|
-
* Clones this node and all its children.
|
|
141
|
-
* The data objects like GeometryData, MaterialData, etc. are cloned as well.
|
|
142
|
-
* Depending on the size of the node and the amount of children, this can therefore be relatively slow.
|
|
143
|
-
*/
|
|
144
|
-
clone(): ITreeNode;
|
|
145
|
-
/**
|
|
146
|
-
* Clones this node and all its children.
|
|
147
|
-
* The data objects like GeometryData, MaterialData, etc. are not copied in this case.
|
|
148
|
-
*/
|
|
149
|
-
cloneInstance(): ITreeNode;
|
|
150
|
-
/**
|
|
151
|
-
* Returns the child with the specified id
|
|
152
|
-
*/
|
|
153
|
-
getChild(id: string): ITreeNode | undefined;
|
|
154
|
-
/**
|
|
155
|
-
* Returns the data item with the specified id
|
|
156
|
-
*/
|
|
157
|
-
getData(id: string): ITreeNodeData | undefined;
|
|
158
|
-
/**
|
|
159
|
-
* Test this node and all it's descendants for nodes with the specified name and return them in an array.
|
|
160
|
-
* @param name
|
|
161
|
-
*/
|
|
162
|
-
getNodesByName(name: string): ITreeNode[];
|
|
163
|
-
/**
|
|
164
|
-
* Test this nodes name and all it's descendants name for nodes for the specified regex and return them in an array.
|
|
165
|
-
* @param regex
|
|
166
|
-
*/
|
|
167
|
-
getNodesByNameWithRegex(regex: RegExp): ITreeNode[];
|
|
168
|
-
/**
|
|
169
|
-
* Return the path to this node.
|
|
170
|
-
*/
|
|
171
|
-
getPath(): string;
|
|
172
|
-
/**
|
|
173
|
-
* Return the path to this node with the original names.
|
|
174
|
-
* If no original name is set, the entry is left empty.
|
|
175
|
-
*/
|
|
176
|
-
getOriginalNamePath(): string;
|
|
177
|
-
/**
|
|
178
|
-
* Returns the transformation with the specified id
|
|
179
|
-
*/
|
|
180
|
-
getTransformation(id: string): ITransformation | undefined;
|
|
181
|
-
/**
|
|
182
|
-
* Check for existence of a child from the children of this node.
|
|
183
|
-
*
|
|
184
|
-
* @param child the child to check
|
|
185
|
-
*/
|
|
186
|
-
hasChild(child: ITreeNode): boolean;
|
|
187
|
-
/**
|
|
188
|
-
* Check for existence of a data item of this node.
|
|
189
|
-
*
|
|
190
|
-
* @param data the data item to check
|
|
191
|
-
*/
|
|
192
|
-
hasData(data: ITreeNodeData): boolean;
|
|
193
|
-
/**
|
|
194
|
-
* Check for existence of a transformation of this node.
|
|
195
|
-
*
|
|
196
|
-
* @param data the transformation to check
|
|
197
|
-
*/
|
|
198
|
-
hasTransformation(transformation: ITransformation): boolean;
|
|
199
|
-
/**
|
|
200
|
-
* Remove a child from the children of this node.
|
|
201
|
-
*
|
|
202
|
-
* @param child the child to remove
|
|
203
|
-
*/
|
|
204
|
-
removeChild(child: ITreeNode): boolean;
|
|
205
|
-
/**
|
|
206
|
-
* Remove a data item from this node.
|
|
207
|
-
*
|
|
208
|
-
* @param data the data to remove
|
|
209
|
-
*/
|
|
210
|
-
removeData(data: ITreeNodeData): boolean;
|
|
211
|
-
/**
|
|
212
|
-
* Remove a transformation from this node.
|
|
213
|
-
*
|
|
214
|
-
* @param transformation the transformation to remove
|
|
215
|
-
*/
|
|
216
|
-
removeTransformation(transformation: ITransformation): boolean;
|
|
217
|
-
/**
|
|
218
|
-
* Traverse this node and all it's children and executes the callback for all of them
|
|
219
|
-
*
|
|
220
|
-
* @param callback
|
|
221
|
-
*/
|
|
222
|
-
traverse(callback: (node: ITreeNode) => void): void;
|
|
223
|
-
/**
|
|
224
|
-
* Traverse this node and all it's children and executes the callback for all data items of them
|
|
225
|
-
*
|
|
226
|
-
* @param callback
|
|
227
|
-
*/
|
|
228
|
-
traverseData(callback: (data: ITreeNodeData) => void): void;
|
|
229
|
-
/**
|
|
230
|
-
* Update the version.
|
|
231
|
-
*
|
|
232
|
-
* @param parents if true, the version of all parents will be updated as well (default: true)
|
|
233
|
-
* @param children if true, the version of all children will be updated as well (default: true)
|
|
234
|
-
*/
|
|
235
|
-
updateVersion(parents?: boolean, children?: boolean): void;
|
|
236
|
-
}
|
|
237
|
-
//# sourceMappingURL=ITreeNode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ITreeNode.d.ts","sourceRoot":"","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E,CAAC;IACpD;;OAEG;IACH,OAAO,IAAI,MAAM,CAAC;IAClB;;;OAGG;IACH,mBAAmB,IAAI,MAAM,CAAC;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAAC;IAC3D;;;;OAIG;IACH,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC;IACpC;;;;OAIG;IACH,OAAO,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC;IACtC;;;;OAIG;IACH,iBAAiB,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC;IAC5D;;;;OAIG;IACH,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO,CAAC;IACvC;;;;OAIG;IACH,UAAU,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC;IACzC;;;;OAIG;IACH,oBAAoB,CAAC,cAAc,EAAE,eAAe,GAAG,OAAO,CAAC;IAC/D;;;;OAIG;IACH,QAAQ,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI,CAAC;IACpD;;;;OAIG;IACH,YAAY,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,GAAG,IAAI,CAAC;IAC5D;;;;;OAKG;IACH,aAAa,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAG3D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ITreeNode.js","sourceRoot":"","sources":["../../src/interfaces/ITreeNode.ts"],"names":[],"mappings":";;AA6PA,4BAA4B"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export interface ITreeNodeData {
|
|
2
|
-
/**
|
|
3
|
-
* The converted object of the tree node.
|
|
4
|
-
*/
|
|
5
|
-
convertedObject: {
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
};
|
|
8
|
-
/**
|
|
9
|
-
* The ID of the tree node data.
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
/**
|
|
13
|
-
* The update callback for the tree node data.
|
|
14
|
-
* This callback is called when the node is updated, e.g. when the version changes.
|
|
15
|
-
*/
|
|
16
|
-
updateCallback: ((newVersion: string, oldVersion: string) => void) | null;
|
|
17
|
-
/**
|
|
18
|
-
* The update callback for the converted object of the tree node.
|
|
19
|
-
*/
|
|
20
|
-
updateCallbackConvertedObject: ((newObj: unknown, oldObj: unknown, viewport: string) => void) | null;
|
|
21
|
-
/**
|
|
22
|
-
* The version of the tree node data.
|
|
23
|
-
* If the version changes, the node data will be marked for an update.
|
|
24
|
-
* A version change can be triggered via {@link updateVersion}.
|
|
25
|
-
*/
|
|
26
|
-
version: string;
|
|
27
|
-
/**
|
|
28
|
-
* Clones this node tree data.
|
|
29
|
-
*/
|
|
30
|
-
clone(): ITreeNodeData;
|
|
31
|
-
/**
|
|
32
|
-
* Update the version.
|
|
33
|
-
*/
|
|
34
|
-
updateVersion(): void;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=ITreeNodeData.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ITreeNodeData.d.ts","sourceRoot":"","sources":["../../src/interfaces/ITreeNodeData.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAG7B;;OAEG;IACH,eAAe,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAC,CAAC;IAC1C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;;OAGG;IACH,cAAc,EAAE,CAAC,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IAC1E;;OAEG;IACH,6BAA6B,EAC1B,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC,GAC9D,IAAI,CAAC;IACR;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAMhB;;OAEG;IACH,KAAK,IAAI,aAAa,CAAC;IACvB;;OAEG;IACH,aAAa,IAAI,IAAI,CAAC;CAGtB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ITreeNodeData.js","sourceRoot":"","sources":["../../src/interfaces/ITreeNodeData.ts"],"names":[],"mappings":""}
|