@shapediver/viewer.shared.node-tree 1.12.2 → 1.12.5
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/AbstractTreeNodeData.d.ts +11 -0
- package/dist/AbstractTreeNodeData.d.ts.map +1 -1
- package/dist/AbstractTreeNodeData.js +15 -0
- package/dist/AbstractTreeNodeData.js.map +1 -1
- package/dist/Tree.d.ts +37 -0
- package/dist/Tree.d.ts.map +1 -1
- package/dist/Tree.js +44 -0
- package/dist/Tree.js.map +1 -1
- package/dist/TreeNode.d.ts +42 -0
- package/dist/TreeNode.d.ts.map +1 -1
- package/dist/TreeNode.js +51 -0
- package/dist/TreeNode.js.map +1 -1
- package/package.json +4 -4
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { ITreeNodeData } from './interfaces/ITreeNodeData';
|
|
2
2
|
export declare abstract class AbstractTreeNodeData implements ITreeNodeData {
|
|
3
3
|
#private;
|
|
4
|
+
/**
|
|
5
|
+
* Creates a tree node data object.
|
|
6
|
+
*
|
|
7
|
+
* @param id Id of this data object
|
|
8
|
+
*/
|
|
4
9
|
constructor(id?: string);
|
|
5
10
|
get id(): string;
|
|
6
11
|
get version(): string;
|
|
12
|
+
/**
|
|
13
|
+
* Update the version
|
|
14
|
+
*/
|
|
7
15
|
updateVersion(): void;
|
|
16
|
+
/**
|
|
17
|
+
* Clones the tree node data.
|
|
18
|
+
*/
|
|
8
19
|
abstract clone(): ITreeNodeData;
|
|
9
20
|
}
|
|
10
21
|
//# sourceMappingURL=AbstractTreeNodeData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractTreeNodeData.d.ts","sourceRoot":"","sources":["../src/AbstractTreeNodeData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,8BAAsB,oBAAqB,YAAW,aAAa;;
|
|
1
|
+
{"version":3,"file":"AbstractTreeNodeData.d.ts","sourceRoot":"","sources":["../src/AbstractTreeNodeData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAE1D,8BAAsB,oBAAqB,YAAW,aAAa;;IAajE;;;;OAIG;gBACS,EAAE,CAAC,EAAE,MAAM;IASvB,IAAW,EAAE,IAAI,MAAM,CAEtB;IAED,IAAW,OAAO,IAAI,MAAM,CAE3B;IAMD;;OAEG;IACI,aAAa,IAAI,IAAI;IAQ5B;;OAEG;aACa,KAAK,IAAI,aAAa;CAGvC"}
|
|
@@ -16,7 +16,15 @@ exports.AbstractTreeNodeData = void 0;
|
|
|
16
16
|
const tsyringe_1 = require("tsyringe");
|
|
17
17
|
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
18
18
|
class AbstractTreeNodeData {
|
|
19
|
+
// #endregion Properties (3)
|
|
20
|
+
// #region Constructors (1)
|
|
21
|
+
/**
|
|
22
|
+
* Creates a tree node data object.
|
|
23
|
+
*
|
|
24
|
+
* @param id Id of this data object
|
|
25
|
+
*/
|
|
19
26
|
constructor(id) {
|
|
27
|
+
// #region Properties (3)
|
|
20
28
|
_AbstractTreeNodeData_version.set(this, void 0);
|
|
21
29
|
_AbstractTreeNodeData_id.set(this, void 0);
|
|
22
30
|
_AbstractTreeNodeData_uuidGenerator.set(this, tsyringe_1.container.resolve(viewer_shared_services_1.UuidGenerator));
|
|
@@ -24,12 +32,19 @@ class AbstractTreeNodeData {
|
|
|
24
32
|
__classPrivateFieldSet(this, _AbstractTreeNodeData_id, id || __classPrivateFieldGet(this, _AbstractTreeNodeData_uuidGenerator, "f").create(), "f");
|
|
25
33
|
__classPrivateFieldSet(this, _AbstractTreeNodeData_version, __classPrivateFieldGet(this, _AbstractTreeNodeData_uuidGenerator, "f").create(), "f");
|
|
26
34
|
}
|
|
35
|
+
// #endregion Constructors (1)
|
|
36
|
+
// #region Public Accessors (2)
|
|
27
37
|
get id() {
|
|
28
38
|
return __classPrivateFieldGet(this, _AbstractTreeNodeData_id, "f");
|
|
29
39
|
}
|
|
30
40
|
get version() {
|
|
31
41
|
return __classPrivateFieldGet(this, _AbstractTreeNodeData_version, "f");
|
|
32
42
|
}
|
|
43
|
+
// #endregion Public Accessors (2)
|
|
44
|
+
// #region Public Methods (1)
|
|
45
|
+
/**
|
|
46
|
+
* Update the version
|
|
47
|
+
*/
|
|
33
48
|
updateVersion() {
|
|
34
49
|
__classPrivateFieldSet(this, _AbstractTreeNodeData_version, __classPrivateFieldGet(this, _AbstractTreeNodeData_uuidGenerator, "f").create(), "f");
|
|
35
50
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractTreeNodeData.js","sourceRoot":"","sources":["../src/AbstractTreeNodeData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAAoC;AACpC,+EAA0F;AAI1F,MAAsB,oBAAoB;
|
|
1
|
+
{"version":3,"file":"AbstractTreeNodeData.js","sourceRoot":"","sources":["../src/AbstractTreeNodeData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,uCAAoC;AACpC,+EAA0F;AAI1F,MAAsB,oBAAoB;IASxC,4BAA4B;IAE5B,2BAA2B;IAE3B;;;;OAIG;IACH,YAAY,EAAW;QAjBvB,yBAAyB;QAEzB,gDAAiB;QAEjB,2CAAqB;QACrB,8CAAwD,oBAAS,CAAC,OAAO,CAAC,sCAAa,CAAC,EAAC;QACzF,4CAAkD,oBAAS,CAAC,OAAO,CAAC,oCAAW,CAAC,EAAC;QAY/E,uBAAA,IAAI,4BAAO,EAAE,IAAI,uBAAA,IAAI,2CAAe,CAAC,MAAM,EAAE,MAAA,CAAC;QAC9C,uBAAA,IAAI,iCAAY,uBAAA,IAAI,2CAAe,CAAC,MAAM,EAAE,MAAA,CAAC;IAC/C,CAAC;IAED,8BAA8B;IAE9B,+BAA+B;IAE/B,IAAW,EAAE;QACX,OAAO,uBAAA,IAAI,gCAAI,CAAC;IAClB,CAAC;IAED,IAAW,OAAO;QAChB,OAAO,uBAAA,IAAI,qCAAS,CAAC;IACvB,CAAC;IAED,kCAAkC;IAElC,6BAA6B;IAE7B;;OAEG;IACI,aAAa;QAClB,uBAAA,IAAI,iCAAY,uBAAA,IAAI,2CAAe,CAAC,MAAM,EAAE,MAAA,CAAC;IAC/C,CAAC;CAYF;AAxDD,oDAwDC"}
|
package/dist/Tree.d.ts
CHANGED
|
@@ -1,12 +1,49 @@
|
|
|
1
1
|
import { TreeNode } from './TreeNode';
|
|
2
2
|
export declare class Tree {
|
|
3
3
|
#private;
|
|
4
|
+
/**
|
|
5
|
+
* @ignore
|
|
6
|
+
* Management of the main tree node.
|
|
7
|
+
*/
|
|
4
8
|
constructor();
|
|
5
9
|
get root(): TreeNode;
|
|
10
|
+
/**
|
|
11
|
+
* Add the node as a child of the corresponding parent node.
|
|
12
|
+
*
|
|
13
|
+
* @param node the node to be added
|
|
14
|
+
* @param parent the targeted parent node
|
|
15
|
+
* @param root optional root at which the process begins, root node will be used per default
|
|
16
|
+
*/
|
|
6
17
|
addNode(node: TreeNode, parent?: TreeNode, root?: TreeNode): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Add the node at the corresponding path. (paths are dot separated ids)
|
|
20
|
+
*
|
|
21
|
+
* @param node the node to be added
|
|
22
|
+
* @param path the path at which the node should be added
|
|
23
|
+
* @param root optional root at which the process begins, root node will be used per default
|
|
24
|
+
*/
|
|
7
25
|
addNodeAtPath(node: TreeNode, path?: string, root?: TreeNode): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Remove a node from the tree.
|
|
28
|
+
*
|
|
29
|
+
* @param node the node to remove
|
|
30
|
+
* @param root optional root at which the process begins, root node will be used per default
|
|
31
|
+
*/
|
|
8
32
|
removeNode(node: TreeNode, root?: TreeNode): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Remove a node via the path of it.
|
|
35
|
+
*
|
|
36
|
+
* @param path the path of the node to be removed
|
|
37
|
+
* @param root optional root at which the process begins, root node will be used per default
|
|
38
|
+
*/
|
|
9
39
|
removeNodeAtPath(path: string, root?: TreeNode): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Get the node at the provided path.
|
|
42
|
+
*
|
|
43
|
+
* @param path
|
|
44
|
+
* @param root
|
|
45
|
+
* @returns
|
|
46
|
+
*/
|
|
10
47
|
getNodeAtPath(path?: string, root?: TreeNode): TreeNode | null;
|
|
11
48
|
}
|
|
12
49
|
//# sourceMappingURL=Tree.d.ts.map
|
package/dist/Tree.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../src/Tree.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,qBACa,IAAI;;;
|
|
1
|
+
{"version":3,"file":"Tree.d.ts","sourceRoot":"","sources":["../src/Tree.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,qBACa,IAAI;;IASf;;;OAGG;;IAOH,IAAW,IAAI,IAAI,QAAQ,CAE1B;IAMD;;;;;;OAMG;IACI,OAAO,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,GAAE,QAAqB,EAAE,IAAI,GAAE,QAAqB,GAAG,OAAO;IAenG;;;;;;OAMG;IACI,aAAa,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,GAAE,MAA4B,EAAE,IAAI,GAAE,QAAqB,GAAG,OAAO;IAoB9G;;;;;OAKG;IACI,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,GAAE,QAAqB,GAAG,OAAO;IAgBvE;;;;;OAKG;IACI,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,QAAqB,GAAG,OAAO;IAqB3E;;;;;;OAMG;IACI,aAAa,CAAC,IAAI,GAAE,MAA4B,EAAE,IAAI,GAAE,QAAqB,GAAG,QAAQ,GAAG,IAAI;CAkBvG"}
|
package/dist/Tree.js
CHANGED
|
@@ -19,12 +19,30 @@ exports.Tree = void 0;
|
|
|
19
19
|
const tsyringe_1 = require("tsyringe");
|
|
20
20
|
const TreeNode_1 = require("./TreeNode");
|
|
21
21
|
let Tree = class Tree {
|
|
22
|
+
// #endregion Properties (1)
|
|
23
|
+
// #region Constructors (1)
|
|
24
|
+
/**
|
|
25
|
+
* @ignore
|
|
26
|
+
* Management of the main tree node.
|
|
27
|
+
*/
|
|
22
28
|
constructor() {
|
|
29
|
+
// #region Properties (1)
|
|
23
30
|
_Tree_root.set(this, new TreeNode_1.TreeNode('root'));
|
|
24
31
|
}
|
|
32
|
+
// #endregion Constructors (1)
|
|
33
|
+
// #region Public Accessors (1)
|
|
25
34
|
get root() {
|
|
26
35
|
return __classPrivateFieldGet(this, _Tree_root, "f");
|
|
27
36
|
}
|
|
37
|
+
// #endregion Public Accessors (1)
|
|
38
|
+
// #region Public Methods (4)
|
|
39
|
+
/**
|
|
40
|
+
* Add the node as a child of the corresponding parent node.
|
|
41
|
+
*
|
|
42
|
+
* @param node the node to be added
|
|
43
|
+
* @param parent the targeted parent node
|
|
44
|
+
* @param root optional root at which the process begins, root node will be used per default
|
|
45
|
+
*/
|
|
28
46
|
addNode(node, parent = __classPrivateFieldGet(this, _Tree_root, "f"), root = __classPrivateFieldGet(this, _Tree_root, "f")) {
|
|
29
47
|
if (root === parent) {
|
|
30
48
|
root.addChild(node);
|
|
@@ -38,6 +56,13 @@ let Tree = class Tree {
|
|
|
38
56
|
}
|
|
39
57
|
return false;
|
|
40
58
|
}
|
|
59
|
+
/**
|
|
60
|
+
* Add the node at the corresponding path. (paths are dot separated ids)
|
|
61
|
+
*
|
|
62
|
+
* @param node the node to be added
|
|
63
|
+
* @param path the path at which the node should be added
|
|
64
|
+
* @param root optional root at which the process begins, root node will be used per default
|
|
65
|
+
*/
|
|
41
66
|
addNodeAtPath(node, path = this.root.getPath(), root = __classPrivateFieldGet(this, _Tree_root, "f")) {
|
|
42
67
|
if (root.name === path) {
|
|
43
68
|
root.addChild(node);
|
|
@@ -55,6 +80,12 @@ let Tree = class Tree {
|
|
|
55
80
|
}
|
|
56
81
|
return false;
|
|
57
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Remove a node from the tree.
|
|
85
|
+
*
|
|
86
|
+
* @param node the node to remove
|
|
87
|
+
* @param root optional root at which the process begins, root node will be used per default
|
|
88
|
+
*/
|
|
58
89
|
removeNode(node, root = __classPrivateFieldGet(this, _Tree_root, "f")) {
|
|
59
90
|
if (root.hasChild(node)) {
|
|
60
91
|
root.removeChild(node);
|
|
@@ -68,6 +99,12 @@ let Tree = class Tree {
|
|
|
68
99
|
}
|
|
69
100
|
return false;
|
|
70
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* Remove a node via the path of it.
|
|
104
|
+
*
|
|
105
|
+
* @param path the path of the node to be removed
|
|
106
|
+
* @param root optional root at which the process begins, root node will be used per default
|
|
107
|
+
*/
|
|
71
108
|
removeNodeAtPath(path, root = __classPrivateFieldGet(this, _Tree_root, "f")) {
|
|
72
109
|
var _a;
|
|
73
110
|
if (root.name === path) {
|
|
@@ -86,6 +123,13 @@ let Tree = class Tree {
|
|
|
86
123
|
}
|
|
87
124
|
return false;
|
|
88
125
|
}
|
|
126
|
+
/**
|
|
127
|
+
* Get the node at the provided path.
|
|
128
|
+
*
|
|
129
|
+
* @param path
|
|
130
|
+
* @param root
|
|
131
|
+
* @returns
|
|
132
|
+
*/
|
|
89
133
|
getNodeAtPath(path = this.root.getPath(), root = __classPrivateFieldGet(this, _Tree_root, "f")) {
|
|
90
134
|
if (root.name === path)
|
|
91
135
|
return root;
|
package/dist/Tree.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tree.js","sourceRoot":"","sources":["../src/Tree.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,uCAAoC;AAEpC,yCAAqC;AAGrC,IAAa,IAAI,GAAjB,MAAa,IAAI;
|
|
1
|
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,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBAC7C,MAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAC/B,MAAM,GAAG,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,EAAE,KAAK,CAAC,CAAC;gBACrD,IAAG,GAAG;oBAAE,OAAO,GAAG,CAAC;aACpB;SACF;QACD,OAAO,IAAI,CAAC;IACd,CAAC;CAGF,CAAA;;AAtJY,IAAI;IADhB,oBAAS,EAAE;;GACC,IAAI,CAsJhB;AAtJY,oBAAI"}
|
package/dist/TreeNode.d.ts
CHANGED
|
@@ -8,6 +8,14 @@ export interface ITransformation {
|
|
|
8
8
|
}
|
|
9
9
|
export declare class TreeNode {
|
|
10
10
|
#private;
|
|
11
|
+
/**
|
|
12
|
+
* Creation of a node that can be used in the node tree.
|
|
13
|
+
*
|
|
14
|
+
* @param name the name of the node
|
|
15
|
+
* @param parent the parent of this node
|
|
16
|
+
* @param data the array of data
|
|
17
|
+
* @param transformations the array of transformations
|
|
18
|
+
*/
|
|
11
19
|
constructor(name?: string, parent?: TreeNode | null, data?: ITreeNodeData[], transformations?: ITransformation[]);
|
|
12
20
|
get boundingBox(): Box;
|
|
13
21
|
set boundingBox(value: Box);
|
|
@@ -34,14 +42,48 @@ export declare class TreeNode {
|
|
|
34
42
|
get visible(): boolean;
|
|
35
43
|
set visible(value: boolean);
|
|
36
44
|
get worldMatrix(): mat4;
|
|
45
|
+
/**
|
|
46
|
+
* Add a child from the children of this node.
|
|
47
|
+
*
|
|
48
|
+
* @param child the child to add
|
|
49
|
+
*/
|
|
37
50
|
addChild(child: TreeNode): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Clones this node and all its children.
|
|
53
|
+
*/
|
|
38
54
|
clone(): TreeNode;
|
|
55
|
+
/**
|
|
56
|
+
* Clones this node and all its children.
|
|
57
|
+
*/
|
|
39
58
|
cloneInstance(): TreeNode;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the child with the specified id
|
|
61
|
+
* @return {TreeNode}
|
|
62
|
+
*/
|
|
40
63
|
getChild(id: string): TreeNode | null;
|
|
64
|
+
/**
|
|
65
|
+
* Return the path to this node.
|
|
66
|
+
*/
|
|
41
67
|
getPath(): string;
|
|
68
|
+
/**
|
|
69
|
+
* Check for existence of a child from the children of this node.
|
|
70
|
+
*
|
|
71
|
+
* @param child the child to check
|
|
72
|
+
*/
|
|
42
73
|
hasChild(child: TreeNode): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Remove a child from the children of this node.
|
|
76
|
+
*
|
|
77
|
+
* @param child the child to remove
|
|
78
|
+
*/
|
|
43
79
|
removeChild(child: TreeNode): boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Update the version
|
|
82
|
+
*/
|
|
44
83
|
updateVersion(): void;
|
|
84
|
+
/**
|
|
85
|
+
* Only updates the version of this node.
|
|
86
|
+
*/
|
|
45
87
|
updateVersionAtomic(): void;
|
|
46
88
|
}
|
|
47
89
|
//# sourceMappingURL=TreeNode.d.ts.map
|
package/dist/TreeNode.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeNode.d.ts","sourceRoot":"","sources":["../src/TreeNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAGhC,OAAO,EAAE,GAAG,EAAE,MAAM,gCAAgC,CAAA;AAEpD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAElD,MAAM,WAAW,eAAe;IAG9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,IAAI,CAAA;CAGb;AAED,qBAAa,QAAQ;;
|
|
1
|
+
{"version":3,"file":"TreeNode.d.ts","sourceRoot":"","sources":["../src/TreeNode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,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,GAAG,EAAE,MAAM,GAAG,SAAS,CAAA;KACzB,EAEA;IAED,IAAW,OAAO,IAAI,MAAM,CAE3B;IAED,IAAW,OAAO,IAAI,OAAO,CAE5B;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,OAAO,EAGhC;IAED,IAAW,WAAW,IAAI,IAAI,CAa7B;IAMD;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO;IAUzC;;OAEG;IACI,KAAK,IAAI,QAAQ;IAgBxB;;OAEG;IACI,aAAa,IAAI,QAAQ;IAgBhC;;;OAGG;IACI,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,QAAQ,GAAG,IAAI;IAO5C;;OAEG;IACI,OAAO,IAAI,MAAM;IAUxB;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO;IAIzC;;;;OAIG;IACI,WAAW,CAAC,KAAK,EAAE,QAAQ,GAAG,OAAO;IAQ5C;;OAEG;IACI,aAAa,IAAI,IAAI;IAa5B;;OAEG;IACI,mBAAmB,IAAI,IAAI;CAKnC"}
|
package/dist/TreeNode.js
CHANGED
|
@@ -18,8 +18,19 @@ const tsyringe_1 = require("tsyringe");
|
|
|
18
18
|
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
19
19
|
const viewer_shared_math_1 = require("@shapediver/viewer.shared.math");
|
|
20
20
|
class TreeNode {
|
|
21
|
+
// #endregion Properties (10)
|
|
22
|
+
// #region Constructors (1)
|
|
23
|
+
/**
|
|
24
|
+
* Creation of a node that can be used in the node tree.
|
|
25
|
+
*
|
|
26
|
+
* @param name the name of the node
|
|
27
|
+
* @param parent the parent of this node
|
|
28
|
+
* @param data the array of data
|
|
29
|
+
* @param transformations the array of transformations
|
|
30
|
+
*/
|
|
21
31
|
constructor(name = 'node', parent = null, data = [], transformations = []) {
|
|
22
32
|
var _a;
|
|
33
|
+
// #region Properties (10)
|
|
23
34
|
_TreeNode_children.set(this, []);
|
|
24
35
|
_TreeNode_data.set(this, []);
|
|
25
36
|
_TreeNode_eventEngine.set(this, tsyringe_1.container.resolve(viewer_shared_services_1.EventEngine));
|
|
@@ -41,6 +52,8 @@ class TreeNode {
|
|
|
41
52
|
__classPrivateFieldSet(this, _TreeNode_version, __classPrivateFieldGet(this, _TreeNode_uuidGenerator, "f").create(), "f");
|
|
42
53
|
(_a = __classPrivateFieldGet(this, _TreeNode_parent, "f")) === null || _a === void 0 ? void 0 : _a.addChild(this);
|
|
43
54
|
}
|
|
55
|
+
// #endregion Constructors (1)
|
|
56
|
+
// #region Public Accessors (14)
|
|
44
57
|
get boundingBox() {
|
|
45
58
|
return __classPrivateFieldGet(this, _TreeNode_boundingBox, "f");
|
|
46
59
|
}
|
|
@@ -85,8 +98,10 @@ class TreeNode {
|
|
|
85
98
|
return __classPrivateFieldGet(this, _TreeNode_parent, "f");
|
|
86
99
|
}
|
|
87
100
|
set parent(value) {
|
|
101
|
+
// check if it was removed from previous parent
|
|
88
102
|
if (value === null && __classPrivateFieldGet(this, _TreeNode_parent, "f") !== null)
|
|
89
103
|
__classPrivateFieldGet(this, _TreeNode_parent, "f").removeChild(this);
|
|
104
|
+
// check if it is in children of new parent
|
|
90
105
|
if (value !== null)
|
|
91
106
|
value.addChild(this);
|
|
92
107
|
__classPrivateFieldSet(this, _TreeNode_parent, value, "f");
|
|
@@ -125,6 +140,13 @@ class TreeNode {
|
|
|
125
140
|
}
|
|
126
141
|
return matrix;
|
|
127
142
|
}
|
|
143
|
+
// #endregion Public Accessors (14)
|
|
144
|
+
// #region Public Methods (9)
|
|
145
|
+
/**
|
|
146
|
+
* Add a child from the children of this node.
|
|
147
|
+
*
|
|
148
|
+
* @param child the child to add
|
|
149
|
+
*/
|
|
128
150
|
addChild(child) {
|
|
129
151
|
if (this.hasChild(child))
|
|
130
152
|
return false;
|
|
@@ -134,6 +156,9 @@ class TreeNode {
|
|
|
134
156
|
child.parent = this;
|
|
135
157
|
return true;
|
|
136
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Clones this node and all its children.
|
|
161
|
+
*/
|
|
137
162
|
clone() {
|
|
138
163
|
const clone = new TreeNode(this.name);
|
|
139
164
|
clone.visible = this.visible;
|
|
@@ -148,6 +173,9 @@ class TreeNode {
|
|
|
148
173
|
});
|
|
149
174
|
return clone;
|
|
150
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Clones this node and all its children.
|
|
178
|
+
*/
|
|
151
179
|
cloneInstance() {
|
|
152
180
|
const clone = new TreeNode(this.name);
|
|
153
181
|
clone.visible = this.visible;
|
|
@@ -162,12 +190,19 @@ class TreeNode {
|
|
|
162
190
|
});
|
|
163
191
|
return clone;
|
|
164
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* Returns the child with the specified id
|
|
195
|
+
* @return {TreeNode}
|
|
196
|
+
*/
|
|
165
197
|
getChild(id) {
|
|
166
198
|
for (let i = 0; i < __classPrivateFieldGet(this, _TreeNode_children, "f").length; i++)
|
|
167
199
|
if (__classPrivateFieldGet(this, _TreeNode_children, "f")[i].id === id)
|
|
168
200
|
return __classPrivateFieldGet(this, _TreeNode_children, "f")[i];
|
|
169
201
|
return null;
|
|
170
202
|
}
|
|
203
|
+
/**
|
|
204
|
+
* Return the path to this node.
|
|
205
|
+
*/
|
|
171
206
|
getPath() {
|
|
172
207
|
let path = this.name;
|
|
173
208
|
let node = this.parent;
|
|
@@ -177,9 +212,19 @@ class TreeNode {
|
|
|
177
212
|
}
|
|
178
213
|
return path;
|
|
179
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* Check for existence of a child from the children of this node.
|
|
217
|
+
*
|
|
218
|
+
* @param child the child to check
|
|
219
|
+
*/
|
|
180
220
|
hasChild(child) {
|
|
181
221
|
return __classPrivateFieldGet(this, _TreeNode_children, "f").includes(child);
|
|
182
222
|
}
|
|
223
|
+
/**
|
|
224
|
+
* Remove a child from the children of this node.
|
|
225
|
+
*
|
|
226
|
+
* @param child the child to remove
|
|
227
|
+
*/
|
|
183
228
|
removeChild(child) {
|
|
184
229
|
const index = __classPrivateFieldGet(this, _TreeNode_children, "f").indexOf(child);
|
|
185
230
|
if (index === -1)
|
|
@@ -188,6 +233,9 @@ class TreeNode {
|
|
|
188
233
|
child.parent = null;
|
|
189
234
|
return true;
|
|
190
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Update the version
|
|
238
|
+
*/
|
|
191
239
|
updateVersion() {
|
|
192
240
|
let node = this;
|
|
193
241
|
while (node.parent !== null) {
|
|
@@ -198,6 +246,9 @@ class TreeNode {
|
|
|
198
246
|
__classPrivateFieldGet(this, _TreeNode_children, "f")[i].updateVersion();
|
|
199
247
|
__classPrivateFieldSet(this, _TreeNode_version, __classPrivateFieldGet(this, _TreeNode_uuidGenerator, "f").create(), "f");
|
|
200
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* Only updates the version of this node.
|
|
251
|
+
*/
|
|
201
252
|
updateVersionAtomic() {
|
|
202
253
|
__classPrivateFieldSet(this, _TreeNode_version, __classPrivateFieldGet(this, _TreeNode_uuidGenerator, "f").create(), "f");
|
|
203
254
|
}
|
package/dist/TreeNode.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeNode.js","sourceRoot":"","sources":["../src/TreeNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAAgC;AAChC,uCAAoC;AACpC,+EAA0F;AAC1F,uEAAoD;AAcpD,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"TreeNode.js","sourceRoot":"","sources":["../src/TreeNode.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,yCAAgC;AAChC,uCAAoC;AACpC,+EAA0F;AAC1F,uEAAoD;AAcpD,MAAa,QAAQ;IAoBnB,6BAA6B;IAE7B,2BAA2B;IAE3B;;;;;;;OAOG;IACH,YACE,OAAe,MAAM,EACrB,SAA0B,IAAI,EAC9B,OAAwB,EAAE,EAC1B,kBAAqC,EAAE;;QAnCzC,0BAA0B;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C;QAC/B,uBAAA,IAAI,0BAAU,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QAChC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACI,aAAa;QAClB,IAAI,IAAI,GAAa,IAAI,CAAC;QAC1B,OAAO,IAAI,CAAC,MAAM,KAAK,IAAI,EAAE;YAC3B,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC;YACnB,IAAI,CAAC,mBAAmB,EAAE,CAAC;SAC5B;QAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,uBAAA,IAAI,0BAAU,CAAC,MAAM,EAAE,CAAC,EAAE;YAC5C,uBAAA,IAAI,0BAAU,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;QAEpC,uBAAA,IAAI,qBAAY,uBAAA,IAAI,+BAAe,CAAC,MAAM,EAAE,MAAA,CAAC;IAC/C,CAAC;IAED;;OAEG;IACI,mBAAmB;QACxB,uBAAA,IAAI,qBAAY,uBAAA,IAAI,+BAAe,CAAC,MAAM,EAAE,MAAA,CAAC;IAC/C,CAAC;CAGF;AAtSD,4BAsSC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.shared.node-tree",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"testEnvironment": "node"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@shapediver/viewer.shared.math": "1.12.
|
|
40
|
-
"@shapediver/viewer.shared.services": "1.12.
|
|
39
|
+
"@shapediver/viewer.shared.math": "1.12.5",
|
|
40
|
+
"@shapediver/viewer.shared.services": "1.12.5",
|
|
41
41
|
"gl-matrix": "3.3.0",
|
|
42
42
|
"tsyringe": "^4.5.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "cd648ec4f2c16e23d306b3886df79e18e9b01fe8"
|
|
45
45
|
}
|