@shapediver/viewer.shared.node-tree 3.16.7 → 3.16.9

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 (64) hide show
  1. package/dist/implementation/AbstractTreeNodeData.d.ts +33 -33
  2. package/dist/implementation/AbstractTreeNodeData.js +81 -81
  3. package/dist/implementation/AbstractTreeNodeData.js.map +1 -1
  4. package/dist/implementation/Tree.d.ts +13 -13
  5. package/dist/implementation/Tree.js +115 -115
  6. package/dist/implementation/Tree.js.map +1 -1
  7. package/dist/implementation/TreeNode.d.ts +78 -78
  8. package/dist/implementation/TreeNode.js +432 -432
  9. package/dist/implementation/TreeNode.js.map +1 -1
  10. package/dist/implementation/data/AnimationData.d.ts +32 -32
  11. package/dist/implementation/data/AnimationData.js +290 -290
  12. package/dist/implementation/data/AnimationData.js.map +1 -1
  13. package/dist/implementation/data/ChunkData.d.ts +14 -14
  14. package/dist/implementation/data/ChunkData.js +46 -46
  15. package/dist/implementation/data/ChunkData.js.map +1 -1
  16. package/dist/implementation/data/CustomData.d.ts +24 -24
  17. package/dist/implementation/data/CustomData.js +50 -50
  18. package/dist/implementation/data/GeometryData.d.ts +100 -100
  19. package/dist/implementation/data/GeometryData.js +326 -326
  20. package/dist/implementation/data/GeometryData.js.map +1 -1
  21. package/dist/implementation/data/HTMLElementAnchorData.d.ts +102 -102
  22. package/dist/implementation/data/HTMLElementAnchorData.js +273 -273
  23. package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -1
  24. package/dist/implementation/data/InstanceData.d.ts +21 -21
  25. package/dist/implementation/data/InstanceData.js +58 -58
  26. package/dist/implementation/material/AbstractMaterialData.d.ts +68 -68
  27. package/dist/implementation/material/AbstractMaterialData.js +224 -224
  28. package/dist/implementation/material/MapData.d.ts +53 -53
  29. package/dist/implementation/material/MapData.js +190 -190
  30. package/dist/implementation/material/MaterialBasicLineData.d.ts +14 -14
  31. package/dist/implementation/material/MaterialBasicLineData.js +90 -90
  32. package/dist/implementation/material/MaterialGemData.d.ts +46 -46
  33. package/dist/implementation/material/MaterialGemData.js +288 -288
  34. package/dist/implementation/material/MaterialLambertData.d.ts +21 -21
  35. package/dist/implementation/material/MaterialLambertData.js +146 -146
  36. package/dist/implementation/material/MaterialMultiPointData.d.ts +99 -99
  37. package/dist/implementation/material/MaterialMultiPointData.js +650 -650
  38. package/dist/implementation/material/MaterialPhongData.d.ts +25 -25
  39. package/dist/implementation/material/MaterialPhongData.js +170 -170
  40. package/dist/implementation/material/MaterialPointData.d.ts +19 -19
  41. package/dist/implementation/material/MaterialPointData.js +131 -131
  42. package/dist/implementation/material/MaterialShadowData.d.ts +14 -14
  43. package/dist/implementation/material/MaterialShadowData.js +35 -35
  44. package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts +27 -27
  45. package/dist/implementation/material/MaterialSpecularGlossinessData.js +179 -179
  46. package/dist/implementation/material/MaterialStandardData.d.ts +75 -75
  47. package/dist/implementation/material/MaterialStandardData.js +467 -467
  48. package/dist/implementation/material/MaterialUnlitData.d.ts +17 -17
  49. package/dist/implementation/material/MaterialUnlitData.js +119 -119
  50. package/dist/implementation/material/MaterialVariantsData.d.ts +15 -15
  51. package/dist/implementation/material/MaterialVariantsData.js +61 -61
  52. package/dist/implementation/material/MaterialVariantsData.js.map +1 -1
  53. package/dist/implementation/sdtf/SDTFAttributesData.d.ts +22 -22
  54. package/dist/implementation/sdtf/SDTFAttributesData.js +99 -99
  55. package/dist/implementation/sdtf/SDTFAttributesData.js.map +1 -1
  56. package/dist/implementation/sdtf/SDTFItemData.d.ts +18 -18
  57. package/dist/implementation/sdtf/SDTFItemData.js +59 -59
  58. package/dist/implementation/sdtf/SDTFItemData.js.map +1 -1
  59. package/dist/implementation/sdtf/SDTFOverviewData.d.ts +12 -12
  60. package/dist/implementation/sdtf/SDTFOverviewData.js +106 -106
  61. package/dist/implementation/sdtf/SDTFOverviewData.js.map +1 -1
  62. package/dist/index.d.ts +35 -35
  63. package/dist/index.js +59 -59
  64. package/package.json +6 -6
@@ -1,59 +1,59 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _InstanceData_instanceColors, _InstanceData_instanceMatrices;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.InstanceData = void 0;
16
- const AbstractTreeNodeData_1 = require("../AbstractTreeNodeData");
17
- class InstanceData extends AbstractTreeNodeData_1.AbstractTreeNodeData {
18
- // #endregion Properties (2)
19
- // #region Constructors (1)
20
- /**
21
- * Creates a instanceMatrices data node.
22
- *
23
- * @param _data the data as key- value pairs
24
- * @param id the id
25
- */
26
- constructor(instanceMatrices = [], instanceColors = [], id, version) {
27
- super(id, version);
28
- // #region Properties (2)
29
- _InstanceData_instanceColors.set(this, []);
30
- _InstanceData_instanceMatrices.set(this, []);
31
- __classPrivateFieldSet(this, _InstanceData_instanceMatrices, instanceMatrices, "f");
32
- __classPrivateFieldSet(this, _InstanceData_instanceColors, instanceColors, "f");
33
- }
34
- // #endregion Constructors (1)
35
- // #region Public Getters And Setters (4)
36
- get instanceColors() {
37
- return __classPrivateFieldGet(this, _InstanceData_instanceColors, "f");
38
- }
39
- set instanceColors(value) {
40
- __classPrivateFieldSet(this, _InstanceData_instanceColors, value, "f");
41
- }
42
- get instanceMatrices() {
43
- return __classPrivateFieldGet(this, _InstanceData_instanceMatrices, "f");
44
- }
45
- set instanceMatrices(value) {
46
- __classPrivateFieldSet(this, _InstanceData_instanceMatrices, value, "f");
47
- }
48
- // #endregion Public Getters And Setters (4)
49
- // #region Public Methods (1)
50
- /**
51
- * Clones the scene graph data.
52
- */
53
- clone() {
54
- return new InstanceData(this.instanceMatrices, this.instanceColors, this.id, this.version);
55
- }
56
- }
57
- exports.InstanceData = InstanceData;
58
- _InstanceData_instanceColors = new WeakMap(), _InstanceData_instanceMatrices = new WeakMap();
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _InstanceData_instanceColors, _InstanceData_instanceMatrices;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.InstanceData = void 0;
16
+ const AbstractTreeNodeData_1 = require("../AbstractTreeNodeData");
17
+ class InstanceData extends AbstractTreeNodeData_1.AbstractTreeNodeData {
18
+ // #endregion Properties (2)
19
+ // #region Constructors (1)
20
+ /**
21
+ * Creates a instanceMatrices data node.
22
+ *
23
+ * @param _data the data as key- value pairs
24
+ * @param id the id
25
+ */
26
+ constructor(instanceMatrices = [], instanceColors = [], id, version) {
27
+ super(id, version);
28
+ // #region Properties (2)
29
+ _InstanceData_instanceColors.set(this, []);
30
+ _InstanceData_instanceMatrices.set(this, []);
31
+ __classPrivateFieldSet(this, _InstanceData_instanceMatrices, instanceMatrices, "f");
32
+ __classPrivateFieldSet(this, _InstanceData_instanceColors, instanceColors, "f");
33
+ }
34
+ // #endregion Constructors (1)
35
+ // #region Public Getters And Setters (4)
36
+ get instanceColors() {
37
+ return __classPrivateFieldGet(this, _InstanceData_instanceColors, "f");
38
+ }
39
+ set instanceColors(value) {
40
+ __classPrivateFieldSet(this, _InstanceData_instanceColors, value, "f");
41
+ }
42
+ get instanceMatrices() {
43
+ return __classPrivateFieldGet(this, _InstanceData_instanceMatrices, "f");
44
+ }
45
+ set instanceMatrices(value) {
46
+ __classPrivateFieldSet(this, _InstanceData_instanceMatrices, value, "f");
47
+ }
48
+ // #endregion Public Getters And Setters (4)
49
+ // #region Public Methods (1)
50
+ /**
51
+ * Clones the scene graph data.
52
+ */
53
+ clone() {
54
+ return new InstanceData(this.instanceMatrices, this.instanceColors, this.id, this.version);
55
+ }
56
+ }
57
+ exports.InstanceData = InstanceData;
58
+ _InstanceData_instanceColors = new WeakMap(), _InstanceData_instanceMatrices = new WeakMap();
59
59
  //# sourceMappingURL=InstanceData.js.map
@@ -1,69 +1,69 @@
1
- import { Color, IMapData, IMaterialAbstractData, IMaterialAbstractDataProperties, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from "@shapediver/viewer.shared.types";
2
- import { AbstractTreeNodeData } from "../AbstractTreeNodeData";
3
- export declare abstract class AbstractMaterialData extends AbstractTreeNodeData implements IMaterialAbstractData {
4
- #private;
5
- /**
6
- * Creates a material data object.
7
- *
8
- * @param _attributes the attributes of the material
9
- * @param id the id
10
- */
11
- constructor(properties?: IMaterialAbstractDataProperties, id?: string, version?: string);
12
- get alphaCutoff(): number;
13
- set alphaCutoff(value: number);
14
- get alphaMap(): IMapData | undefined;
15
- set alphaMap(value: IMapData | undefined);
16
- get alphaMode(): MATERIAL_ALPHA;
17
- set alphaMode(value: MATERIAL_ALPHA);
18
- get aoMap(): IMapData | undefined;
19
- set aoMap(value: IMapData | undefined);
20
- get aoMapIntensity(): number;
21
- set aoMapIntensity(value: number);
22
- get bumpMap(): IMapData | undefined;
23
- set bumpMap(value: IMapData | undefined);
24
- get bumpScale(): number;
25
- set bumpScale(value: number);
26
- get color(): Color;
27
- set color(value: Color);
28
- get depthTest(): boolean | undefined;
29
- set depthTest(value: boolean | undefined);
30
- get depthWrite(): boolean | undefined;
31
- set depthWrite(value: boolean | undefined);
32
- get emissiveMap(): IMapData | undefined;
33
- set emissiveMap(value: IMapData | undefined);
34
- get emissiveness(): Color;
35
- set emissiveness(value: Color);
36
- get map(): IMapData | undefined;
37
- set map(value: IMapData | undefined);
38
- get materialOutput(): boolean;
39
- set materialOutput(value: boolean);
40
- get name(): string | undefined;
41
- set name(value: string | undefined);
42
- get normalMap(): IMapData | undefined;
43
- set normalMap(value: IMapData | undefined);
44
- get normalScale(): number;
45
- set normalScale(value: number);
46
- get opacity(): number;
47
- set opacity(value: number);
48
- get shading(): MATERIAL_SHADING;
49
- set shading(value: MATERIAL_SHADING);
50
- get side(): MATERIAL_SIDE;
51
- set side(value: MATERIAL_SIDE);
52
- get transparent(): boolean | undefined;
53
- set transparent(value: boolean | undefined);
54
- /**
55
- * Clones the scene graph data.
56
- */
57
- abstract clone(): IMaterialAbstractData;
58
- /**
59
- * Copy all properties of another material data object.
60
- *
61
- * @param source
62
- */
63
- abstract copy(source: IMaterialAbstractData): void;
64
- /**
65
- * Reset the material data.
66
- */
67
- abstract reset(): void;
68
- }
1
+ import { Color, IMapData, IMaterialAbstractData, IMaterialAbstractDataProperties, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from "@shapediver/viewer.shared.types";
2
+ import { AbstractTreeNodeData } from "../AbstractTreeNodeData";
3
+ export declare abstract class AbstractMaterialData extends AbstractTreeNodeData implements IMaterialAbstractData {
4
+ #private;
5
+ /**
6
+ * Creates a material data object.
7
+ *
8
+ * @param _attributes the attributes of the material
9
+ * @param id the id
10
+ */
11
+ constructor(properties?: IMaterialAbstractDataProperties, id?: string, version?: string);
12
+ get alphaCutoff(): number;
13
+ set alphaCutoff(value: number);
14
+ get alphaMap(): IMapData | undefined;
15
+ set alphaMap(value: IMapData | undefined);
16
+ get alphaMode(): MATERIAL_ALPHA;
17
+ set alphaMode(value: MATERIAL_ALPHA);
18
+ get aoMap(): IMapData | undefined;
19
+ set aoMap(value: IMapData | undefined);
20
+ get aoMapIntensity(): number;
21
+ set aoMapIntensity(value: number);
22
+ get bumpMap(): IMapData | undefined;
23
+ set bumpMap(value: IMapData | undefined);
24
+ get bumpScale(): number;
25
+ set bumpScale(value: number);
26
+ get color(): Color;
27
+ set color(value: Color);
28
+ get depthTest(): boolean | undefined;
29
+ set depthTest(value: boolean | undefined);
30
+ get depthWrite(): boolean | undefined;
31
+ set depthWrite(value: boolean | undefined);
32
+ get emissiveMap(): IMapData | undefined;
33
+ set emissiveMap(value: IMapData | undefined);
34
+ get emissiveness(): Color;
35
+ set emissiveness(value: Color);
36
+ get map(): IMapData | undefined;
37
+ set map(value: IMapData | undefined);
38
+ get materialOutput(): boolean;
39
+ set materialOutput(value: boolean);
40
+ get name(): string | undefined;
41
+ set name(value: string | undefined);
42
+ get normalMap(): IMapData | undefined;
43
+ set normalMap(value: IMapData | undefined);
44
+ get normalScale(): number;
45
+ set normalScale(value: number);
46
+ get opacity(): number;
47
+ set opacity(value: number);
48
+ get shading(): MATERIAL_SHADING;
49
+ set shading(value: MATERIAL_SHADING);
50
+ get side(): MATERIAL_SIDE;
51
+ set side(value: MATERIAL_SIDE);
52
+ get transparent(): boolean | undefined;
53
+ set transparent(value: boolean | undefined);
54
+ /**
55
+ * Clones the scene graph data.
56
+ */
57
+ abstract clone(): IMaterialAbstractData;
58
+ /**
59
+ * Copy all properties of another material data object.
60
+ *
61
+ * @param source
62
+ */
63
+ abstract copy(source: IMaterialAbstractData): void;
64
+ /**
65
+ * Reset the material data.
66
+ */
67
+ abstract reset(): void;
68
+ }
69
69
  //# sourceMappingURL=AbstractMaterialData.d.ts.map