@shapediver/viewer.shared.types 3.5.4 → 3.5.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/implementation/data/InstanceMatricesData.d.ts +1 -4
- package/dist/implementation/data/InstanceMatricesData.d.ts.map +1 -1
- package/dist/implementation/data/InstanceMatricesData.js +8 -16
- package/dist/implementation/data/InstanceMatricesData.js.map +1 -1
- package/dist/interfaces/data/IInstanceMatricesData.d.ts +0 -2
- package/dist/interfaces/data/IInstanceMatricesData.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
|
|
2
2
|
import { IInstanceMatricesData } from '../../interfaces/data/IInstanceMatricesData';
|
|
3
3
|
import { mat4 } from 'gl-matrix';
|
|
4
|
-
import { Color } from '../../types';
|
|
5
4
|
export declare class InstanceMatricesData extends AbstractTreeNodeData implements IInstanceMatricesData {
|
|
6
5
|
#private;
|
|
7
6
|
/**
|
|
@@ -10,9 +9,7 @@ export declare class InstanceMatricesData extends AbstractTreeNodeData implement
|
|
|
10
9
|
* @param _data the data as key- value pairs
|
|
11
10
|
* @param id the id
|
|
12
11
|
*/
|
|
13
|
-
constructor(instanceMatrices?: mat4[],
|
|
14
|
-
get instanceColors(): Color[];
|
|
15
|
-
set instanceColors(value: Color[]);
|
|
12
|
+
constructor(instanceMatrices?: mat4[], id?: string, version?: string);
|
|
16
13
|
get instanceMatrices(): mat4[];
|
|
17
14
|
set instanceMatrices(value: mat4[]);
|
|
18
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstanceMatricesData.d.ts","sourceRoot":"","sources":["../../../src/implementation/data/InstanceMatricesData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"InstanceMatricesData.d.ts","sourceRoot":"","sources":["../../../src/implementation/data/InstanceMatricesData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,qBAAa,oBAAqB,SAAQ,oBAAqB,YAAW,qBAAqB;;IAS3F;;;;;OAKG;gBAEC,gBAAgB,GAAE,IAAI,EAAO,EAC7B,EAAE,CAAC,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,MAAM;IAUpB,IAAW,gBAAgB,IAAI,IAAI,EAAE,CAEpC;IAED,IAAW,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,EAExC;IAMD;;OAEG;IACI,KAAK,IAAI,qBAAqB;CAKxC"}
|
|
@@ -10,12 +10,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
10
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
11
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
12
12
|
};
|
|
13
|
-
var
|
|
13
|
+
var _InstanceMatricesData_instanceMatrices;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.InstanceMatricesData = void 0;
|
|
16
16
|
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
|
|
17
17
|
class InstanceMatricesData extends viewer_shared_node_tree_1.AbstractTreeNodeData {
|
|
18
|
-
// #endregion Properties (
|
|
18
|
+
// #endregion Properties (1)
|
|
19
19
|
// #region Constructors (1)
|
|
20
20
|
/**
|
|
21
21
|
* Creates a instanceMatrices data node.
|
|
@@ -23,37 +23,29 @@ class InstanceMatricesData extends viewer_shared_node_tree_1.AbstractTreeNodeDat
|
|
|
23
23
|
* @param _data the data as key- value pairs
|
|
24
24
|
* @param id the id
|
|
25
25
|
*/
|
|
26
|
-
constructor(instanceMatrices = [],
|
|
26
|
+
constructor(instanceMatrices = [], id, version) {
|
|
27
27
|
super(id, version);
|
|
28
|
-
// #region Properties (
|
|
29
|
-
_InstanceMatricesData_instanceColors.set(this, []);
|
|
28
|
+
// #region Properties (1)
|
|
30
29
|
_InstanceMatricesData_instanceMatrices.set(this, []);
|
|
31
30
|
__classPrivateFieldSet(this, _InstanceMatricesData_instanceMatrices, instanceMatrices, "f");
|
|
32
|
-
__classPrivateFieldSet(this, _InstanceMatricesData_instanceColors, instanceColors, "f");
|
|
33
31
|
}
|
|
34
32
|
// #endregion Constructors (1)
|
|
35
|
-
// #region Public Getters And Setters (
|
|
36
|
-
get instanceColors() {
|
|
37
|
-
return __classPrivateFieldGet(this, _InstanceMatricesData_instanceColors, "f");
|
|
38
|
-
}
|
|
39
|
-
set instanceColors(value) {
|
|
40
|
-
__classPrivateFieldSet(this, _InstanceMatricesData_instanceColors, value, "f");
|
|
41
|
-
}
|
|
33
|
+
// #region Public Getters And Setters (2)
|
|
42
34
|
get instanceMatrices() {
|
|
43
35
|
return __classPrivateFieldGet(this, _InstanceMatricesData_instanceMatrices, "f");
|
|
44
36
|
}
|
|
45
37
|
set instanceMatrices(value) {
|
|
46
38
|
__classPrivateFieldSet(this, _InstanceMatricesData_instanceMatrices, value, "f");
|
|
47
39
|
}
|
|
48
|
-
// #endregion Public Getters And Setters (
|
|
40
|
+
// #endregion Public Getters And Setters (2)
|
|
49
41
|
// #region Public Methods (1)
|
|
50
42
|
/**
|
|
51
43
|
* Clones the scene graph data.
|
|
52
44
|
*/
|
|
53
45
|
clone() {
|
|
54
|
-
return new InstanceMatricesData(this.instanceMatrices, this.
|
|
46
|
+
return new InstanceMatricesData(this.instanceMatrices, this.id, this.version);
|
|
55
47
|
}
|
|
56
48
|
}
|
|
57
49
|
exports.InstanceMatricesData = InstanceMatricesData;
|
|
58
|
-
|
|
50
|
+
_InstanceMatricesData_instanceMatrices = new WeakMap();
|
|
59
51
|
//# sourceMappingURL=InstanceMatricesData.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InstanceMatricesData.js","sourceRoot":"","sources":["../../../src/implementation/data/InstanceMatricesData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iFAA2E;
|
|
1
|
+
{"version":3,"file":"InstanceMatricesData.js","sourceRoot":"","sources":["../../../src/implementation/data/InstanceMatricesData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iFAA2E;AAI3E,MAAa,oBAAqB,SAAQ,8CAAoB;IAK1D,4BAA4B;IAE5B,2BAA2B;IAE3B;;;;;OAKG;IACH,YACI,mBAA2B,EAAE,EAC7B,EAAW,EACX,OAAgB;QAEhB,KAAK,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QAnBvB,yBAAyB;QAEzB,iDAA4B,EAAE,EAAC;QAkB3B,uBAAA,IAAI,0CAAqB,gBAAgB,MAAA,CAAC;IAC9C,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,gBAAgB;QACvB,OAAO,uBAAA,IAAI,8CAAkB,CAAC;IAClC,CAAC;IAED,IAAW,gBAAgB,CAAC,KAAa;QACrC,uBAAA,IAAI,0CAAqB,KAAK,MAAA,CAAC;IACnC,CAAC;IAED,4CAA4C;IAE5C,6BAA6B;IAE7B;;OAEG;IACI,KAAK;QACR,OAAO,IAAI,oBAAoB,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAClF,CAAC;CAGJ;AAhDD,oDAgDC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
|
|
2
2
|
import { mat4 } from 'gl-matrix';
|
|
3
|
-
import { Color } from '../../types';
|
|
4
3
|
export interface IInstanceMatricesData extends ITreeNodeData {
|
|
5
|
-
instanceColors: Color[];
|
|
6
4
|
instanceMatrices: mat4[];
|
|
7
5
|
clone(): IInstanceMatricesData;
|
|
8
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IInstanceMatricesData.d.ts","sourceRoot":"","sources":["../../../src/interfaces/data/IInstanceMatricesData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"IInstanceMatricesData.d.ts","sourceRoot":"","sources":["../../../src/interfaces/data/IInstanceMatricesData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,qBAAsB,SAAQ,aAAa;IAGxD,gBAAgB,EAAE,IAAI,EAAE,CAAC;IAMzB,KAAK,IAAI,qBAAqB,CAAC;CAGlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.shared.types",
|
|
3
|
-
"version": "3.5.
|
|
3
|
+
"version": "3.5.5",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@shapediver/sdk.geometry-api-sdk-v2": "1.12.2",
|
|
42
42
|
"@shapediver/sdk.sdtf-v1": "1.5.3",
|
|
43
|
-
"@shapediver/viewer.shared.math": "3.5.
|
|
44
|
-
"@shapediver/viewer.shared.node-tree": "3.5.
|
|
45
|
-
"@shapediver/viewer.shared.services": "3.5.
|
|
43
|
+
"@shapediver/viewer.shared.math": "3.5.5",
|
|
44
|
+
"@shapediver/viewer.shared.node-tree": "3.5.5",
|
|
45
|
+
"@shapediver/viewer.shared.services": "3.5.5",
|
|
46
46
|
"gl-matrix": "3.3.0",
|
|
47
47
|
"zod": "^3.23.8"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "c7f06566e67aa2453d7fa74cbca02952ed94fdbe"
|
|
50
50
|
}
|