@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.
- package/dist/implementation/AbstractTreeNodeData.d.ts +33 -33
- package/dist/implementation/AbstractTreeNodeData.js +81 -81
- package/dist/implementation/AbstractTreeNodeData.js.map +1 -1
- package/dist/implementation/Tree.d.ts +13 -13
- package/dist/implementation/Tree.js +115 -115
- package/dist/implementation/Tree.js.map +1 -1
- package/dist/implementation/TreeNode.d.ts +78 -78
- package/dist/implementation/TreeNode.js +432 -432
- package/dist/implementation/TreeNode.js.map +1 -1
- package/dist/implementation/data/AnimationData.d.ts +32 -32
- package/dist/implementation/data/AnimationData.js +290 -290
- package/dist/implementation/data/AnimationData.js.map +1 -1
- package/dist/implementation/data/ChunkData.d.ts +14 -14
- package/dist/implementation/data/ChunkData.js +46 -46
- package/dist/implementation/data/ChunkData.js.map +1 -1
- package/dist/implementation/data/CustomData.d.ts +24 -24
- package/dist/implementation/data/CustomData.js +50 -50
- package/dist/implementation/data/GeometryData.d.ts +100 -100
- package/dist/implementation/data/GeometryData.js +326 -326
- package/dist/implementation/data/GeometryData.js.map +1 -1
- package/dist/implementation/data/HTMLElementAnchorData.d.ts +102 -102
- package/dist/implementation/data/HTMLElementAnchorData.js +273 -273
- package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -1
- package/dist/implementation/data/InstanceData.d.ts +21 -21
- package/dist/implementation/data/InstanceData.js +58 -58
- package/dist/implementation/material/AbstractMaterialData.d.ts +68 -68
- package/dist/implementation/material/AbstractMaterialData.js +224 -224
- package/dist/implementation/material/MapData.d.ts +53 -53
- package/dist/implementation/material/MapData.js +190 -190
- package/dist/implementation/material/MaterialBasicLineData.d.ts +14 -14
- package/dist/implementation/material/MaterialBasicLineData.js +90 -90
- package/dist/implementation/material/MaterialGemData.d.ts +46 -46
- package/dist/implementation/material/MaterialGemData.js +288 -288
- package/dist/implementation/material/MaterialLambertData.d.ts +21 -21
- package/dist/implementation/material/MaterialLambertData.js +146 -146
- package/dist/implementation/material/MaterialMultiPointData.d.ts +99 -99
- package/dist/implementation/material/MaterialMultiPointData.js +650 -650
- package/dist/implementation/material/MaterialPhongData.d.ts +25 -25
- package/dist/implementation/material/MaterialPhongData.js +170 -170
- package/dist/implementation/material/MaterialPointData.d.ts +19 -19
- package/dist/implementation/material/MaterialPointData.js +131 -131
- package/dist/implementation/material/MaterialShadowData.d.ts +14 -14
- package/dist/implementation/material/MaterialShadowData.js +35 -35
- package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts +27 -27
- package/dist/implementation/material/MaterialSpecularGlossinessData.js +179 -179
- package/dist/implementation/material/MaterialStandardData.d.ts +75 -75
- package/dist/implementation/material/MaterialStandardData.js +467 -467
- package/dist/implementation/material/MaterialUnlitData.d.ts +17 -17
- package/dist/implementation/material/MaterialUnlitData.js +119 -119
- package/dist/implementation/material/MaterialVariantsData.d.ts +15 -15
- package/dist/implementation/material/MaterialVariantsData.js +61 -61
- package/dist/implementation/material/MaterialVariantsData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFAttributesData.d.ts +22 -22
- package/dist/implementation/sdtf/SDTFAttributesData.js +99 -99
- package/dist/implementation/sdtf/SDTFAttributesData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFItemData.d.ts +18 -18
- package/dist/implementation/sdtf/SDTFItemData.js +59 -59
- package/dist/implementation/sdtf/SDTFItemData.js.map +1 -1
- package/dist/implementation/sdtf/SDTFOverviewData.d.ts +12 -12
- package/dist/implementation/sdtf/SDTFOverviewData.js +106 -106
- package/dist/implementation/sdtf/SDTFOverviewData.js.map +1 -1
- package/dist/index.d.ts +35 -35
- package/dist/index.js +59 -59
- package/package.json +6 -6
|
@@ -1,132 +1,132 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
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");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
8
|
-
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
9
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
10
|
-
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");
|
|
11
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12
|
-
};
|
|
13
|
-
var _MaterialPointData_size, _MaterialPointData_sizeAttenuation;
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.MaterialPointData = void 0;
|
|
16
|
-
const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
|
|
17
|
-
const AbstractMaterialData_1 = require("./AbstractMaterialData");
|
|
18
|
-
class MaterialPointData extends AbstractMaterialData_1.AbstractMaterialData {
|
|
19
|
-
// #endregion Properties (2)
|
|
20
|
-
// #region Constructors (1)
|
|
21
|
-
/**
|
|
22
|
-
* Creates a material data object.
|
|
23
|
-
*
|
|
24
|
-
* @param _attributes the attributes of the material
|
|
25
|
-
* @param id the id
|
|
26
|
-
*/
|
|
27
|
-
constructor(properties, id, version) {
|
|
28
|
-
super(properties, id, version);
|
|
29
|
-
// #region Properties (2)
|
|
30
|
-
_MaterialPointData_size.set(this, undefined);
|
|
31
|
-
_MaterialPointData_sizeAttenuation.set(this, undefined);
|
|
32
|
-
if (!properties)
|
|
33
|
-
return;
|
|
34
|
-
if (properties.size !== undefined)
|
|
35
|
-
this.size = properties.size;
|
|
36
|
-
if (properties.sizeAttenuation !== undefined)
|
|
37
|
-
this.sizeAttenuation = properties.sizeAttenuation;
|
|
38
|
-
}
|
|
39
|
-
// #endregion Constructors (1)
|
|
40
|
-
// #region Public Accessors (4)
|
|
41
|
-
get size() {
|
|
42
|
-
return __classPrivateFieldGet(this, _MaterialPointData_size, "f");
|
|
43
|
-
}
|
|
44
|
-
set size(value) {
|
|
45
|
-
__classPrivateFieldSet(this, _MaterialPointData_size, value, "f");
|
|
46
|
-
}
|
|
47
|
-
get sizeAttenuation() {
|
|
48
|
-
return __classPrivateFieldGet(this, _MaterialPointData_sizeAttenuation, "f");
|
|
49
|
-
}
|
|
50
|
-
set sizeAttenuation(value) {
|
|
51
|
-
__classPrivateFieldSet(this, _MaterialPointData_sizeAttenuation, value, "f");
|
|
52
|
-
}
|
|
53
|
-
// #endregion Public Accessors (4)
|
|
54
|
-
// #region Public Methods (3)
|
|
55
|
-
clone() {
|
|
56
|
-
return new MaterialPointData({
|
|
57
|
-
alphaMap: this.alphaMap,
|
|
58
|
-
alphaCutoff: this.alphaCutoff,
|
|
59
|
-
alphaMode: this.alphaMode,
|
|
60
|
-
aoMap: this.aoMap,
|
|
61
|
-
aoMapIntensity: this.aoMapIntensity,
|
|
62
|
-
bumpMap: this.bumpMap,
|
|
63
|
-
bumpScale: this.bumpScale,
|
|
64
|
-
color: this.color,
|
|
65
|
-
depthTest: this.depthTest,
|
|
66
|
-
depthWrite: this.depthWrite,
|
|
67
|
-
emissiveMap: this.emissiveMap,
|
|
68
|
-
emissiveness: this.emissiveness,
|
|
69
|
-
shading: this.shading,
|
|
70
|
-
map: this.map,
|
|
71
|
-
name: this.name,
|
|
72
|
-
normalMap: this.normalMap,
|
|
73
|
-
normalScale: this.normalScale,
|
|
74
|
-
opacity: this.opacity,
|
|
75
|
-
side: this.side,
|
|
76
|
-
transparent: this.transparent,
|
|
77
|
-
size: this.size,
|
|
78
|
-
sizeAttenuation: this.sizeAttenuation,
|
|
79
|
-
}, this.id, this.version);
|
|
80
|
-
}
|
|
81
|
-
copy(source) {
|
|
82
|
-
this.alphaCutoff = source.alphaCutoff;
|
|
83
|
-
this.alphaMap = source.alphaMap;
|
|
84
|
-
this.alphaMode = source.alphaMode;
|
|
85
|
-
this.aoMap = source.aoMap;
|
|
86
|
-
this.aoMapIntensity = source.aoMapIntensity;
|
|
87
|
-
this.bumpMap = source.bumpMap;
|
|
88
|
-
this.bumpScale = source.bumpScale;
|
|
89
|
-
this.color = source.color;
|
|
90
|
-
this.depthTest = source.depthTest;
|
|
91
|
-
this.depthWrite = source.depthWrite;
|
|
92
|
-
this.emissiveMap = source.emissiveMap;
|
|
93
|
-
this.emissiveness = source.emissiveness;
|
|
94
|
-
this.materialOutput = source.materialOutput;
|
|
95
|
-
this.map = source.map;
|
|
96
|
-
this.normalMap = source.normalMap;
|
|
97
|
-
this.normalScale = source.normalScale;
|
|
98
|
-
this.opacity = source.opacity;
|
|
99
|
-
this.shading = source.shading;
|
|
100
|
-
this.side = source.side;
|
|
101
|
-
this.transparent = source.transparent;
|
|
102
|
-
this.size = source.size;
|
|
103
|
-
this.sizeAttenuation = source.sizeAttenuation;
|
|
104
|
-
}
|
|
105
|
-
reset() {
|
|
106
|
-
this.alphaCutoff = 0;
|
|
107
|
-
this.alphaMap = undefined;
|
|
108
|
-
this.alphaMode = viewer_shared_types_1.MATERIAL_ALPHA.OPAQUE;
|
|
109
|
-
this.aoMap = undefined;
|
|
110
|
-
this.aoMapIntensity = 1.0;
|
|
111
|
-
this.bumpMap = undefined;
|
|
112
|
-
this.bumpScale = 1.0;
|
|
113
|
-
this.color = "#ffffff";
|
|
114
|
-
this.depthTest = undefined;
|
|
115
|
-
this.depthWrite = undefined;
|
|
116
|
-
this.emissiveMap = undefined;
|
|
117
|
-
this.emissiveness = "#000000";
|
|
118
|
-
this.materialOutput = false;
|
|
119
|
-
this.map = undefined;
|
|
120
|
-
this.normalMap = undefined;
|
|
121
|
-
this.normalScale = 1.0;
|
|
122
|
-
this.opacity = 1.0;
|
|
123
|
-
this.shading = viewer_shared_types_1.MATERIAL_SHADING.SMOOTH;
|
|
124
|
-
this.side = viewer_shared_types_1.MATERIAL_SIDE.DOUBLE;
|
|
125
|
-
this.transparent = undefined;
|
|
126
|
-
this.size = undefined;
|
|
127
|
-
this.sizeAttenuation = undefined;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
exports.MaterialPointData = MaterialPointData;
|
|
131
|
-
_MaterialPointData_size = new WeakMap(), _MaterialPointData_sizeAttenuation = new WeakMap();
|
|
1
|
+
"use strict";
|
|
2
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
+
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");
|
|
5
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
+
};
|
|
7
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
8
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
9
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
10
|
+
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");
|
|
11
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
12
|
+
};
|
|
13
|
+
var _MaterialPointData_size, _MaterialPointData_sizeAttenuation;
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.MaterialPointData = void 0;
|
|
16
|
+
const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
|
|
17
|
+
const AbstractMaterialData_1 = require("./AbstractMaterialData");
|
|
18
|
+
class MaterialPointData extends AbstractMaterialData_1.AbstractMaterialData {
|
|
19
|
+
// #endregion Properties (2)
|
|
20
|
+
// #region Constructors (1)
|
|
21
|
+
/**
|
|
22
|
+
* Creates a material data object.
|
|
23
|
+
*
|
|
24
|
+
* @param _attributes the attributes of the material
|
|
25
|
+
* @param id the id
|
|
26
|
+
*/
|
|
27
|
+
constructor(properties, id, version) {
|
|
28
|
+
super(properties, id, version);
|
|
29
|
+
// #region Properties (2)
|
|
30
|
+
_MaterialPointData_size.set(this, undefined);
|
|
31
|
+
_MaterialPointData_sizeAttenuation.set(this, undefined);
|
|
32
|
+
if (!properties)
|
|
33
|
+
return;
|
|
34
|
+
if (properties.size !== undefined)
|
|
35
|
+
this.size = properties.size;
|
|
36
|
+
if (properties.sizeAttenuation !== undefined)
|
|
37
|
+
this.sizeAttenuation = properties.sizeAttenuation;
|
|
38
|
+
}
|
|
39
|
+
// #endregion Constructors (1)
|
|
40
|
+
// #region Public Accessors (4)
|
|
41
|
+
get size() {
|
|
42
|
+
return __classPrivateFieldGet(this, _MaterialPointData_size, "f");
|
|
43
|
+
}
|
|
44
|
+
set size(value) {
|
|
45
|
+
__classPrivateFieldSet(this, _MaterialPointData_size, value, "f");
|
|
46
|
+
}
|
|
47
|
+
get sizeAttenuation() {
|
|
48
|
+
return __classPrivateFieldGet(this, _MaterialPointData_sizeAttenuation, "f");
|
|
49
|
+
}
|
|
50
|
+
set sizeAttenuation(value) {
|
|
51
|
+
__classPrivateFieldSet(this, _MaterialPointData_sizeAttenuation, value, "f");
|
|
52
|
+
}
|
|
53
|
+
// #endregion Public Accessors (4)
|
|
54
|
+
// #region Public Methods (3)
|
|
55
|
+
clone() {
|
|
56
|
+
return new MaterialPointData({
|
|
57
|
+
alphaMap: this.alphaMap,
|
|
58
|
+
alphaCutoff: this.alphaCutoff,
|
|
59
|
+
alphaMode: this.alphaMode,
|
|
60
|
+
aoMap: this.aoMap,
|
|
61
|
+
aoMapIntensity: this.aoMapIntensity,
|
|
62
|
+
bumpMap: this.bumpMap,
|
|
63
|
+
bumpScale: this.bumpScale,
|
|
64
|
+
color: this.color,
|
|
65
|
+
depthTest: this.depthTest,
|
|
66
|
+
depthWrite: this.depthWrite,
|
|
67
|
+
emissiveMap: this.emissiveMap,
|
|
68
|
+
emissiveness: this.emissiveness,
|
|
69
|
+
shading: this.shading,
|
|
70
|
+
map: this.map,
|
|
71
|
+
name: this.name,
|
|
72
|
+
normalMap: this.normalMap,
|
|
73
|
+
normalScale: this.normalScale,
|
|
74
|
+
opacity: this.opacity,
|
|
75
|
+
side: this.side,
|
|
76
|
+
transparent: this.transparent,
|
|
77
|
+
size: this.size,
|
|
78
|
+
sizeAttenuation: this.sizeAttenuation,
|
|
79
|
+
}, this.id, this.version);
|
|
80
|
+
}
|
|
81
|
+
copy(source) {
|
|
82
|
+
this.alphaCutoff = source.alphaCutoff;
|
|
83
|
+
this.alphaMap = source.alphaMap;
|
|
84
|
+
this.alphaMode = source.alphaMode;
|
|
85
|
+
this.aoMap = source.aoMap;
|
|
86
|
+
this.aoMapIntensity = source.aoMapIntensity;
|
|
87
|
+
this.bumpMap = source.bumpMap;
|
|
88
|
+
this.bumpScale = source.bumpScale;
|
|
89
|
+
this.color = source.color;
|
|
90
|
+
this.depthTest = source.depthTest;
|
|
91
|
+
this.depthWrite = source.depthWrite;
|
|
92
|
+
this.emissiveMap = source.emissiveMap;
|
|
93
|
+
this.emissiveness = source.emissiveness;
|
|
94
|
+
this.materialOutput = source.materialOutput;
|
|
95
|
+
this.map = source.map;
|
|
96
|
+
this.normalMap = source.normalMap;
|
|
97
|
+
this.normalScale = source.normalScale;
|
|
98
|
+
this.opacity = source.opacity;
|
|
99
|
+
this.shading = source.shading;
|
|
100
|
+
this.side = source.side;
|
|
101
|
+
this.transparent = source.transparent;
|
|
102
|
+
this.size = source.size;
|
|
103
|
+
this.sizeAttenuation = source.sizeAttenuation;
|
|
104
|
+
}
|
|
105
|
+
reset() {
|
|
106
|
+
this.alphaCutoff = 0;
|
|
107
|
+
this.alphaMap = undefined;
|
|
108
|
+
this.alphaMode = viewer_shared_types_1.MATERIAL_ALPHA.OPAQUE;
|
|
109
|
+
this.aoMap = undefined;
|
|
110
|
+
this.aoMapIntensity = 1.0;
|
|
111
|
+
this.bumpMap = undefined;
|
|
112
|
+
this.bumpScale = 1.0;
|
|
113
|
+
this.color = "#ffffff";
|
|
114
|
+
this.depthTest = undefined;
|
|
115
|
+
this.depthWrite = undefined;
|
|
116
|
+
this.emissiveMap = undefined;
|
|
117
|
+
this.emissiveness = "#000000";
|
|
118
|
+
this.materialOutput = false;
|
|
119
|
+
this.map = undefined;
|
|
120
|
+
this.normalMap = undefined;
|
|
121
|
+
this.normalScale = 1.0;
|
|
122
|
+
this.opacity = 1.0;
|
|
123
|
+
this.shading = viewer_shared_types_1.MATERIAL_SHADING.SMOOTH;
|
|
124
|
+
this.side = viewer_shared_types_1.MATERIAL_SIDE.DOUBLE;
|
|
125
|
+
this.transparent = undefined;
|
|
126
|
+
this.size = undefined;
|
|
127
|
+
this.sizeAttenuation = undefined;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.MaterialPointData = MaterialPointData;
|
|
131
|
+
_MaterialPointData_size = new WeakMap(), _MaterialPointData_sizeAttenuation = new WeakMap();
|
|
132
132
|
//# sourceMappingURL=MaterialPointData.js.map
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { IMaterialShadowData, IMaterialShadowDataProperties } from "@shapediver/viewer.shared.types";
|
|
2
|
-
import { AbstractMaterialData } from "./AbstractMaterialData";
|
|
3
|
-
export declare class MaterialShadowData extends AbstractMaterialData implements IMaterialShadowData {
|
|
4
|
-
/**
|
|
5
|
-
* Creates a material data object.
|
|
6
|
-
*
|
|
7
|
-
* @param _attributes the attributes of the material
|
|
8
|
-
* @param id the id
|
|
9
|
-
*/
|
|
10
|
-
constructor(properties?: IMaterialShadowDataProperties, id?: string, version?: string);
|
|
11
|
-
reset(): void;
|
|
12
|
-
clone(): IMaterialShadowData;
|
|
13
|
-
copy(source: MaterialShadowData): void;
|
|
14
|
-
}
|
|
1
|
+
import { IMaterialShadowData, IMaterialShadowDataProperties } from "@shapediver/viewer.shared.types";
|
|
2
|
+
import { AbstractMaterialData } from "./AbstractMaterialData";
|
|
3
|
+
export declare class MaterialShadowData extends AbstractMaterialData implements IMaterialShadowData {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a material data object.
|
|
6
|
+
*
|
|
7
|
+
* @param _attributes the attributes of the material
|
|
8
|
+
* @param id the id
|
|
9
|
+
*/
|
|
10
|
+
constructor(properties?: IMaterialShadowDataProperties, id?: string, version?: string);
|
|
11
|
+
reset(): void;
|
|
12
|
+
clone(): IMaterialShadowData;
|
|
13
|
+
copy(source: MaterialShadowData): void;
|
|
14
|
+
}
|
|
15
15
|
//# sourceMappingURL=MaterialShadowData.d.ts.map
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MaterialShadowData = void 0;
|
|
4
|
-
const AbstractMaterialData_1 = require("./AbstractMaterialData");
|
|
5
|
-
class MaterialShadowData extends AbstractMaterialData_1.AbstractMaterialData {
|
|
6
|
-
// #region Constructors (1)
|
|
7
|
-
/**
|
|
8
|
-
* Creates a material data object.
|
|
9
|
-
*
|
|
10
|
-
* @param _attributes the attributes of the material
|
|
11
|
-
* @param id the id
|
|
12
|
-
*/
|
|
13
|
-
constructor(properties, id, version) {
|
|
14
|
-
super(properties, id, version);
|
|
15
|
-
if (!properties)
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
// #endregion Constructors (1)
|
|
19
|
-
// #region Public Methods (1)
|
|
20
|
-
reset() {
|
|
21
|
-
this.color = "#000000";
|
|
22
|
-
this.opacity = 1.0;
|
|
23
|
-
}
|
|
24
|
-
clone() {
|
|
25
|
-
return new MaterialShadowData({
|
|
26
|
-
color: this.color,
|
|
27
|
-
opacity: this.opacity,
|
|
28
|
-
}, this.id, this.version);
|
|
29
|
-
}
|
|
30
|
-
copy(source) {
|
|
31
|
-
this.color = source.color;
|
|
32
|
-
this.opacity = source.opacity;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.MaterialShadowData = MaterialShadowData;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaterialShadowData = void 0;
|
|
4
|
+
const AbstractMaterialData_1 = require("./AbstractMaterialData");
|
|
5
|
+
class MaterialShadowData extends AbstractMaterialData_1.AbstractMaterialData {
|
|
6
|
+
// #region Constructors (1)
|
|
7
|
+
/**
|
|
8
|
+
* Creates a material data object.
|
|
9
|
+
*
|
|
10
|
+
* @param _attributes the attributes of the material
|
|
11
|
+
* @param id the id
|
|
12
|
+
*/
|
|
13
|
+
constructor(properties, id, version) {
|
|
14
|
+
super(properties, id, version);
|
|
15
|
+
if (!properties)
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
// #endregion Constructors (1)
|
|
19
|
+
// #region Public Methods (1)
|
|
20
|
+
reset() {
|
|
21
|
+
this.color = "#000000";
|
|
22
|
+
this.opacity = 1.0;
|
|
23
|
+
}
|
|
24
|
+
clone() {
|
|
25
|
+
return new MaterialShadowData({
|
|
26
|
+
color: this.color,
|
|
27
|
+
opacity: this.opacity,
|
|
28
|
+
}, this.id, this.version);
|
|
29
|
+
}
|
|
30
|
+
copy(source) {
|
|
31
|
+
this.color = source.color;
|
|
32
|
+
this.opacity = source.opacity;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.MaterialShadowData = MaterialShadowData;
|
|
36
36
|
//# sourceMappingURL=MaterialShadowData.js.map
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { Color, IMapData, IMaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties } from "@shapediver/viewer.shared.types";
|
|
2
|
-
import { AbstractMaterialData } from "./AbstractMaterialData";
|
|
3
|
-
export declare class MaterialSpecularGlossinessData extends AbstractMaterialData implements IMaterialSpecularGlossinessData {
|
|
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?: IMaterialSpecularGlossinessDataProperties, id?: string, version?: string);
|
|
12
|
-
get envMap(): string | string[] | undefined;
|
|
13
|
-
set envMap(value: string | string[] | undefined);
|
|
14
|
-
get glossiness(): number;
|
|
15
|
-
set glossiness(value: number);
|
|
16
|
-
get glossinessMap(): IMapData | undefined;
|
|
17
|
-
set glossinessMap(value: IMapData | undefined);
|
|
18
|
-
get specular(): Color;
|
|
19
|
-
set specular(value: Color);
|
|
20
|
-
get specularGlossinessMap(): IMapData | undefined;
|
|
21
|
-
set specularGlossinessMap(value: IMapData | undefined);
|
|
22
|
-
get specularMap(): IMapData | undefined;
|
|
23
|
-
set specularMap(value: IMapData | undefined);
|
|
24
|
-
clone(): IMaterialSpecularGlossinessData;
|
|
25
|
-
copy(source: MaterialSpecularGlossinessData): void;
|
|
26
|
-
reset(): void;
|
|
27
|
-
}
|
|
1
|
+
import { Color, IMapData, IMaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties } from "@shapediver/viewer.shared.types";
|
|
2
|
+
import { AbstractMaterialData } from "./AbstractMaterialData";
|
|
3
|
+
export declare class MaterialSpecularGlossinessData extends AbstractMaterialData implements IMaterialSpecularGlossinessData {
|
|
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?: IMaterialSpecularGlossinessDataProperties, id?: string, version?: string);
|
|
12
|
+
get envMap(): string | string[] | undefined;
|
|
13
|
+
set envMap(value: string | string[] | undefined);
|
|
14
|
+
get glossiness(): number;
|
|
15
|
+
set glossiness(value: number);
|
|
16
|
+
get glossinessMap(): IMapData | undefined;
|
|
17
|
+
set glossinessMap(value: IMapData | undefined);
|
|
18
|
+
get specular(): Color;
|
|
19
|
+
set specular(value: Color);
|
|
20
|
+
get specularGlossinessMap(): IMapData | undefined;
|
|
21
|
+
set specularGlossinessMap(value: IMapData | undefined);
|
|
22
|
+
get specularMap(): IMapData | undefined;
|
|
23
|
+
set specularMap(value: IMapData | undefined);
|
|
24
|
+
clone(): IMaterialSpecularGlossinessData;
|
|
25
|
+
copy(source: MaterialSpecularGlossinessData): void;
|
|
26
|
+
reset(): void;
|
|
27
|
+
}
|
|
28
28
|
//# sourceMappingURL=MaterialSpecularGlossinessData.d.ts.map
|