@shapediver/viewer.rendering-engine.light-engine 2.8.1 → 2.8.3
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/AbstractLight.d.ts +4 -1
- package/dist/implementation/AbstractLight.d.ts.map +1 -1
- package/dist/implementation/AbstractLight.js +18 -3
- package/dist/implementation/AbstractLight.js.map +1 -1
- package/dist/implementation/LightScene.d.ts.map +1 -1
- package/dist/implementation/LightScene.js +1 -0
- package/dist/implementation/LightScene.js.map +1 -1
- package/dist/implementation/types/AmbientLight.d.ts +1 -0
- package/dist/implementation/types/AmbientLight.d.ts.map +1 -1
- package/dist/implementation/types/AmbientLight.js +5 -2
- package/dist/implementation/types/AmbientLight.js.map +1 -1
- package/dist/implementation/types/DirectionalLight.d.ts +1 -0
- package/dist/implementation/types/DirectionalLight.d.ts.map +1 -1
- package/dist/implementation/types/DirectionalLight.js +13 -2
- package/dist/implementation/types/DirectionalLight.js.map +1 -1
- package/dist/implementation/types/HemisphereLight.d.ts +1 -0
- package/dist/implementation/types/HemisphereLight.d.ts.map +1 -1
- package/dist/implementation/types/HemisphereLight.js +7 -2
- package/dist/implementation/types/HemisphereLight.js.map +1 -1
- package/dist/implementation/types/PointLight.d.ts +1 -0
- package/dist/implementation/types/PointLight.d.ts.map +1 -1
- package/dist/implementation/types/PointLight.js +11 -2
- package/dist/implementation/types/PointLight.js.map +1 -1
- package/dist/implementation/types/SpotLight.d.ts +1 -0
- package/dist/implementation/types/SpotLight.d.ts.map +1 -1
- package/dist/implementation/types/SpotLight.js +17 -2
- package/dist/implementation/types/SpotLight.js.map +1 -1
- package/package.json +6 -6
- package/src/implementation/AbstractLight.ts +17 -3
- package/src/implementation/LightScene.ts +1 -0
- package/src/implementation/types/AmbientLight.ts +7 -3
- package/src/implementation/types/DirectionalLight.ts +11 -3
- package/src/implementation/types/HemisphereLight.ts +8 -3
- package/src/implementation/types/PointLight.ts +10 -3
- package/src/implementation/types/SpotLight.ts +13 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UuidGenerator } from '@shapediver/viewer.shared.services';
|
|
2
|
-
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
|
|
2
|
+
import { AbstractTreeNodeData, ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
3
3
|
import { ILight, LIGHT_TYPE } from '../interface/ILight';
|
|
4
4
|
import { Color } from '@shapediver/viewer.shared.types';
|
|
5
5
|
export declare abstract class AbstractLight extends AbstractTreeNodeData implements ILight {
|
|
@@ -12,6 +12,7 @@ export declare abstract class AbstractLight extends AbstractTreeNodeData impleme
|
|
|
12
12
|
name?: string;
|
|
13
13
|
order?: number;
|
|
14
14
|
id?: string;
|
|
15
|
+
version?: string;
|
|
15
16
|
});
|
|
16
17
|
get color(): Color;
|
|
17
18
|
set color(value: Color);
|
|
@@ -21,6 +22,8 @@ export declare abstract class AbstractLight extends AbstractTreeNodeData impleme
|
|
|
21
22
|
set name(value: string | undefined);
|
|
22
23
|
get order(): number | undefined;
|
|
23
24
|
set order(value: number | undefined);
|
|
25
|
+
set parentNode(value: ITreeNode | undefined);
|
|
26
|
+
get parentNode(): ITreeNode | undefined;
|
|
24
27
|
get type(): LIGHT_TYPE;
|
|
25
28
|
set useNodeData(value: boolean);
|
|
26
29
|
get useNodeData(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractLight.d.ts","sourceRoot":"","sources":["../../src/implementation/AbstractLight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAA;
|
|
1
|
+
{"version":3,"file":"AbstractLight.d.ts","sourceRoot":"","sources":["../../src/implementation/AbstractLight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAA;AAErF,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACxD,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAA;AAEvD,8BAAsB,aAAc,SAAQ,oBAAqB,YAAW,MAAM;;IAY9E,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,aAAa,CAA0B;gBAM9D,UAAU,EAAE;QACpB,KAAK,EAAE,KAAK,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,IAAI,EAAE,UAAU,CAAC;QACjB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;KACnB;IAaD,IAAW,KAAK,IAAI,KAAK,CAExB;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,KAAK,EAI5B;IAED,IAAW,SAAS,IAAI,MAAM,CAE7B;IAED,IAAW,SAAS,CAAC,KAAK,EAAE,MAAM,EAIjC;IAED,IAAW,IAAI,IAAI,MAAM,GAAG,SAAS,CAEpC;IAED,IAAW,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAIxC;IAED,IAAW,KAAK,IAAI,MAAM,GAAG,SAAS,CAErC;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAIzC;IAED,IAAW,UAAU,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,EAEjD;IAED,IAAW,UAAU,IAAI,SAAS,GAAG,SAAS,CAE7C;IAED,IAAW,IAAI,IAAI,UAAU,CAE5B;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,OAAO,EAEpC;IAED,IAAW,WAAW,IAAI,OAAO,CAEhC;CAGJ"}
|
|
@@ -10,7 +10,7 @@ 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 _AbstractLight_type, _AbstractLight_color, _AbstractLight_intensity, _AbstractLight_name, _AbstractLight_order, _AbstractLight_useNodeData;
|
|
13
|
+
var _AbstractLight_type, _AbstractLight_color, _AbstractLight_intensity, _AbstractLight_name, _AbstractLight_order, _AbstractLight_useNodeData, _AbstractLight_parentNode;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.AbstractLight = void 0;
|
|
16
16
|
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
@@ -19,7 +19,7 @@ class AbstractLight extends viewer_shared_node_tree_1.AbstractTreeNodeData {
|
|
|
19
19
|
// #endregion Properties (6)
|
|
20
20
|
// #region Constructors (1)
|
|
21
21
|
constructor(properties) {
|
|
22
|
-
super(properties.id);
|
|
22
|
+
super(properties.id, properties.version);
|
|
23
23
|
// #region Properties (6)
|
|
24
24
|
_AbstractLight_type.set(this, void 0);
|
|
25
25
|
_AbstractLight_color.set(this, void 0);
|
|
@@ -27,6 +27,7 @@ class AbstractLight extends viewer_shared_node_tree_1.AbstractTreeNodeData {
|
|
|
27
27
|
_AbstractLight_name.set(this, void 0);
|
|
28
28
|
_AbstractLight_order.set(this, void 0);
|
|
29
29
|
_AbstractLight_useNodeData.set(this, false);
|
|
30
|
+
_AbstractLight_parentNode.set(this, void 0);
|
|
30
31
|
this._uuidGenerator = viewer_shared_services_1.UuidGenerator.instance;
|
|
31
32
|
__classPrivateFieldSet(this, _AbstractLight_color, properties.color, "f");
|
|
32
33
|
__classPrivateFieldSet(this, _AbstractLight_intensity, properties.intensity, "f");
|
|
@@ -42,6 +43,8 @@ class AbstractLight extends viewer_shared_node_tree_1.AbstractTreeNodeData {
|
|
|
42
43
|
set color(value) {
|
|
43
44
|
__classPrivateFieldSet(this, _AbstractLight_color, value, "f");
|
|
44
45
|
this.updateVersion();
|
|
46
|
+
if (this.parentNode)
|
|
47
|
+
this.parentNode.updateVersion();
|
|
45
48
|
}
|
|
46
49
|
get intensity() {
|
|
47
50
|
return __classPrivateFieldGet(this, _AbstractLight_intensity, "f");
|
|
@@ -49,6 +52,8 @@ class AbstractLight extends viewer_shared_node_tree_1.AbstractTreeNodeData {
|
|
|
49
52
|
set intensity(value) {
|
|
50
53
|
__classPrivateFieldSet(this, _AbstractLight_intensity, value, "f");
|
|
51
54
|
this.updateVersion();
|
|
55
|
+
if (this.parentNode)
|
|
56
|
+
this.parentNode.updateVersion();
|
|
52
57
|
}
|
|
53
58
|
get name() {
|
|
54
59
|
return __classPrivateFieldGet(this, _AbstractLight_name, "f");
|
|
@@ -56,6 +61,8 @@ class AbstractLight extends viewer_shared_node_tree_1.AbstractTreeNodeData {
|
|
|
56
61
|
set name(value) {
|
|
57
62
|
__classPrivateFieldSet(this, _AbstractLight_name, value, "f");
|
|
58
63
|
this.updateVersion();
|
|
64
|
+
if (this.parentNode)
|
|
65
|
+
this.parentNode.updateVersion();
|
|
59
66
|
}
|
|
60
67
|
get order() {
|
|
61
68
|
return __classPrivateFieldGet(this, _AbstractLight_order, "f");
|
|
@@ -63,6 +70,14 @@ class AbstractLight extends viewer_shared_node_tree_1.AbstractTreeNodeData {
|
|
|
63
70
|
set order(value) {
|
|
64
71
|
__classPrivateFieldSet(this, _AbstractLight_order, value, "f");
|
|
65
72
|
this.updateVersion();
|
|
73
|
+
if (this.parentNode)
|
|
74
|
+
this.parentNode.updateVersion();
|
|
75
|
+
}
|
|
76
|
+
set parentNode(value) {
|
|
77
|
+
__classPrivateFieldSet(this, _AbstractLight_parentNode, value, "f");
|
|
78
|
+
}
|
|
79
|
+
get parentNode() {
|
|
80
|
+
return __classPrivateFieldGet(this, _AbstractLight_parentNode, "f");
|
|
66
81
|
}
|
|
67
82
|
get type() {
|
|
68
83
|
return __classPrivateFieldGet(this, _AbstractLight_type, "f");
|
|
@@ -75,5 +90,5 @@ class AbstractLight extends viewer_shared_node_tree_1.AbstractTreeNodeData {
|
|
|
75
90
|
}
|
|
76
91
|
}
|
|
77
92
|
exports.AbstractLight = AbstractLight;
|
|
78
|
-
_AbstractLight_type = new WeakMap(), _AbstractLight_color = new WeakMap(), _AbstractLight_intensity = new WeakMap(), _AbstractLight_name = new WeakMap(), _AbstractLight_order = new WeakMap(), _AbstractLight_useNodeData = new WeakMap();
|
|
93
|
+
_AbstractLight_type = new WeakMap(), _AbstractLight_color = new WeakMap(), _AbstractLight_intensity = new WeakMap(), _AbstractLight_name = new WeakMap(), _AbstractLight_order = new WeakMap(), _AbstractLight_useNodeData = new WeakMap(), _AbstractLight_parentNode = new WeakMap();
|
|
79
94
|
//# sourceMappingURL=AbstractLight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AbstractLight.js","sourceRoot":"","sources":["../../src/implementation/AbstractLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+EAAkE;AAClE,
|
|
1
|
+
{"version":3,"file":"AbstractLight.js","sourceRoot":"","sources":["../../src/implementation/AbstractLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+EAAkE;AAClE,iFAAqF;AAKrF,MAAsB,aAAc,SAAQ,8CAAoB;IAc5D,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,UAQX;QACG,KAAK,CAAC,UAAU,CAAC,EAAE,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;QA1B7C,yBAAyB;QAEzB,sCAA2B;QAE3B,uCAAc;QACd,2CAAmB;QACnB,sCAAe;QACf,uCAAgB;QAChB,qCAAwB,KAAK,EAAC;QAC9B,4CAAwB;QAEL,mBAAc,GAAkB,sCAAa,CAAC,QAAQ,CAAC;QAgBtE,uBAAA,IAAI,wBAAU,UAAU,CAAC,KAAK,MAAA,CAAC;QAC/B,uBAAA,IAAI,4BAAc,UAAU,CAAC,SAAS,MAAA,CAAC;QAC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AAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;YAAE,OAAO,KAAK,CAAC;QAEpC,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAChD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YACpC,IAAG,IAAI,IAAI,IAAI,CAAC,IAAI,KAAK,EAAE,EAAE;gBACzB,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;gBAC7B,MAAM;aACT;SACJ;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACxB,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC;QAC3B,IAAG,IAAI,CAAC,OAAO;YAAE,IAAI,CAAC,OAAO,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC;IAChB,CAAC;CAGJ;AAnHD,gCAmHC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmbientLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/AmbientLight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,qBAAa,YAAa,SAAQ,aAAc,YAAW,aAAa;;gBASxD,UAAU,EAAE;QACpB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"AmbientLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/AmbientLight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAGxD,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,qBAAa,YAAa,SAAQ,aAAc,YAAW,aAAa;;gBASxD,UAAU,EAAE;QACpB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;KACnB;IAgBD,IAAW,aAAa,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,YAAY,CAAA;KAAE,CAEhE;IAMM,KAAK,IAAI,aAAa;CAYhC"}
|
|
@@ -19,7 +19,8 @@ class AmbientLight extends AbstractLight_1.AbstractLight {
|
|
|
19
19
|
type: ILight_1.LIGHT_TYPE.AMBIENT,
|
|
20
20
|
name: properties.name,
|
|
21
21
|
order: properties.order,
|
|
22
|
-
id: properties.id
|
|
22
|
+
id: properties.id,
|
|
23
|
+
version: properties.version
|
|
23
24
|
});
|
|
24
25
|
// #region Properties (1)
|
|
25
26
|
_AmbientLight_threeJsObject.set(this, {});
|
|
@@ -36,7 +37,9 @@ class AmbientLight extends AbstractLight_1.AbstractLight {
|
|
|
36
37
|
color: this.color || '#ffffff',
|
|
37
38
|
intensity: this.intensity || 0.5,
|
|
38
39
|
name: this.name,
|
|
39
|
-
order: this.order
|
|
40
|
+
order: this.order,
|
|
41
|
+
id: this.id,
|
|
42
|
+
version: this.version
|
|
40
43
|
});
|
|
41
44
|
}
|
|
42
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmbientLight.js","sourceRoot":"","sources":["../../../src/implementation/types/AmbientLight.ts"],"names":[],"mappings":";;;;;;;;;AAGA,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,YAAa,SAAQ,6BAAa;IAK3C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,
|
|
1
|
+
{"version":3,"file":"AmbientLight.js","sourceRoot":"","sources":["../../../src/implementation/types/AmbientLight.ts"],"names":[],"mappings":";;;;;;;;;AAGA,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,YAAa,SAAQ,6BAAa;IAK3C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,UAOX;QACG,KAAK,CAAC;YACF,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;YACpC,SAAS,EAAE,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxE,IAAI,EAAE,mBAAU,CAAC,OAAO;YACxB,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,EAAE,EAAE,UAAU,CAAC,EAAE;YACjB,OAAO,EAAE,UAAU,CAAC,OAAO;SAC9B,CAAC,CAAC;QAxBP,yBAAyB;QAEzB,sCAAwD,EAAE,EAAC;IAuB3D,CAAC;IAED,8BAA8B;IAE9B,+BAA+B;IAE/B,IAAW,aAAa;QACpB,OAAO,uBAAA,IAAI,mCAAe,CAAC;IAC/B,CAAC;IAED,kCAAkC;IAElC,6BAA6B;IAEtB,KAAK;QACR,OAAO,IAAI,YAAY,CAAC;YACpB,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,SAAS;YAC9B,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,GAAG;YAChC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;SACxB,CAAC,CAAC;IACP,CAAC;CAGJ;AApDD,oCAoDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/DirectionalLight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAGxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,qBAAa,gBAAiB,SAAQ,aAAc,YAAW,iBAAiB;;gBAahE,UAAU,EAAE;QACpB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,IAAI,CAAC;QACjB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/DirectionalLight.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAGxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,qBAAa,gBAAiB,SAAQ,aAAc,YAAW,iBAAiB;;gBAahE,UAAU,EAAE;QACpB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,SAAS,CAAC,EAAE,IAAI,CAAC;QACjB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;QAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;KACnB;IAqBD,IAAW,UAAU,IAAI,OAAO,CAE/B;IAED,IAAW,UAAU,CAAC,KAAK,EAAE,OAAO,EAInC;IAED,IAAW,SAAS,IAAI,IAAI,CAE3B;IAED,IAAW,SAAS,CAAC,KAAK,EAAE,IAAI,EAI/B;IAED,IAAW,aAAa,IAAI,MAAM,CAEjC;IAED,IAAW,aAAa,CAAC,KAAK,EAAE,MAAM,EAIrC;IAED,IAAW,mBAAmB,IAAI,MAAM,CAEvC;IAED,IAAW,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAI3C;IAED,IAAW,aAAa,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,gBAAgB,CAAA;KAAE,CAEpE;IAMM,KAAK,IAAI,iBAAiB;CAgBpC"}
|
|
@@ -26,7 +26,8 @@ class DirectionalLight extends AbstractLight_1.AbstractLight {
|
|
|
26
26
|
type: ILight_1.LIGHT_TYPE.DIRECTIONAL,
|
|
27
27
|
name: properties.name,
|
|
28
28
|
order: properties.order,
|
|
29
|
-
id: properties.id
|
|
29
|
+
id: properties.id,
|
|
30
|
+
version: properties.version
|
|
30
31
|
});
|
|
31
32
|
// #region Properties (4)
|
|
32
33
|
_DirectionalLight_castShadow.set(this, true);
|
|
@@ -51,6 +52,8 @@ class DirectionalLight extends AbstractLight_1.AbstractLight {
|
|
|
51
52
|
set castShadow(value) {
|
|
52
53
|
__classPrivateFieldSet(this, _DirectionalLight_castShadow, value, "f");
|
|
53
54
|
this.updateVersion();
|
|
55
|
+
if (this.parentNode)
|
|
56
|
+
this.parentNode.updateVersion();
|
|
54
57
|
}
|
|
55
58
|
get direction() {
|
|
56
59
|
return __classPrivateFieldGet(this, _DirectionalLight_direction, "f");
|
|
@@ -58,6 +61,8 @@ class DirectionalLight extends AbstractLight_1.AbstractLight {
|
|
|
58
61
|
set direction(value) {
|
|
59
62
|
__classPrivateFieldSet(this, _DirectionalLight_direction, value, "f");
|
|
60
63
|
this.updateVersion();
|
|
64
|
+
if (this.parentNode)
|
|
65
|
+
this.parentNode.updateVersion();
|
|
61
66
|
}
|
|
62
67
|
get shadowMapBias() {
|
|
63
68
|
return __classPrivateFieldGet(this, _DirectionalLight_shadowMapBias, "f");
|
|
@@ -65,6 +70,8 @@ class DirectionalLight extends AbstractLight_1.AbstractLight {
|
|
|
65
70
|
set shadowMapBias(value) {
|
|
66
71
|
__classPrivateFieldSet(this, _DirectionalLight_shadowMapBias, value, "f");
|
|
67
72
|
this.updateVersion();
|
|
73
|
+
if (this.parentNode)
|
|
74
|
+
this.parentNode.updateVersion();
|
|
68
75
|
}
|
|
69
76
|
get shadowMapResolution() {
|
|
70
77
|
return __classPrivateFieldGet(this, _DirectionalLight_shadowMapResolution, "f");
|
|
@@ -72,6 +79,8 @@ class DirectionalLight extends AbstractLight_1.AbstractLight {
|
|
|
72
79
|
set shadowMapResolution(value) {
|
|
73
80
|
__classPrivateFieldSet(this, _DirectionalLight_shadowMapResolution, value, "f");
|
|
74
81
|
this.updateVersion();
|
|
82
|
+
if (this.parentNode)
|
|
83
|
+
this.parentNode.updateVersion();
|
|
75
84
|
}
|
|
76
85
|
get threeJsObject() {
|
|
77
86
|
return __classPrivateFieldGet(this, _DirectionalLight_threeJsObject, "f");
|
|
@@ -87,7 +96,9 @@ class DirectionalLight extends AbstractLight_1.AbstractLight {
|
|
|
87
96
|
shadowMapResolution: this.shadowMapResolution,
|
|
88
97
|
shadowMapBias: this.shadowMapBias,
|
|
89
98
|
name: this.name,
|
|
90
|
-
order: this.order
|
|
99
|
+
order: this.order,
|
|
100
|
+
id: this.id,
|
|
101
|
+
version: this.version
|
|
91
102
|
});
|
|
92
103
|
}
|
|
93
104
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirectionalLight.js","sourceRoot":"","sources":["../../../src/implementation/types/DirectionalLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yCAAgC;AAGhC,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,gBAAiB,SAAQ,6BAAa;IAS/C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,
|
|
1
|
+
{"version":3,"file":"DirectionalLight.js","sourceRoot":"","sources":["../../../src/implementation/types/DirectionalLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yCAAgC;AAGhC,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,gBAAiB,SAAQ,6BAAa;IAS/C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,UAWX;QACG,KAAK,CAAC;YACF,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;YACpC,SAAS,EAAE,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxE,IAAI,EAAE,mBAAU,CAAC,WAAW;YAC5B,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,EAAE,EAAE,UAAU,CAAC,EAAE;YACjB,OAAO,EAAE,UAAU,CAAC,OAAO;SAC9B,CAAC,CAAC;QAhCP,yBAAyB;QAEzB,uCAAuB,IAAI,EAAC;QAC5B,sCAAmB,gBAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;QAC7C,0CAAyB,CAAC,KAAK,EAAC;QAChC,gDAA+B,IAAI,EAAC;QACpC,0CAA4D,EAAE,EAAC;QA4B3D,IAAG,UAAU,CAAC,SAAS;YAAE,uBAAA,IAAI,+BAAc,UAAU,CAAC,SAAS,MAAA,CAAC;QAChE,IAAG,UAAU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AAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"HemisphereLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/HemisphereLight.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAEhD,qBAAa,eAAgB,SAAQ,aAAc,YAAW,gBAAgB;;gBAU9D,UAAU,EAAE;QACpB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,WAAW,CAAC,EAAE,KAAK,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAA;KACnB;IAkBD,IAAW,WAAW,IAAI,KAAK,CAE9B;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,KAAK,EAIlC;IAED,IAAW,aAAa,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,eAAe,CAAA;KAAE,CAEnE;IAMM,KAAK,IAAI,gBAAgB;CAanC"}
|
|
@@ -25,7 +25,8 @@ class HemisphereLight extends AbstractLight_1.AbstractLight {
|
|
|
25
25
|
type: ILight_1.LIGHT_TYPE.HEMISPHERE,
|
|
26
26
|
name: properties.name,
|
|
27
27
|
order: properties.order,
|
|
28
|
-
id: properties.id
|
|
28
|
+
id: properties.id,
|
|
29
|
+
version: properties.version
|
|
29
30
|
});
|
|
30
31
|
// #region Properties (1)
|
|
31
32
|
_HemisphereLight_groundColor.set(this, '#000000');
|
|
@@ -41,6 +42,8 @@ class HemisphereLight extends AbstractLight_1.AbstractLight {
|
|
|
41
42
|
set groundColor(value) {
|
|
42
43
|
__classPrivateFieldSet(this, _HemisphereLight_groundColor, value, "f");
|
|
43
44
|
this.updateVersion();
|
|
45
|
+
if (this.parentNode)
|
|
46
|
+
this.parentNode.updateVersion();
|
|
44
47
|
}
|
|
45
48
|
get threeJsObject() {
|
|
46
49
|
return __classPrivateFieldGet(this, _HemisphereLight_threeJsObject, "f");
|
|
@@ -53,7 +56,9 @@ class HemisphereLight extends AbstractLight_1.AbstractLight {
|
|
|
53
56
|
groundColor: this.groundColor,
|
|
54
57
|
intensity: this.intensity,
|
|
55
58
|
name: this.name,
|
|
56
|
-
order: this.order
|
|
59
|
+
order: this.order,
|
|
60
|
+
id: this.id,
|
|
61
|
+
version: this.version
|
|
57
62
|
});
|
|
58
63
|
}
|
|
59
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HemisphereLight.js","sourceRoot":"","sources":["../../../src/implementation/types/HemisphereLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,eAAgB,SAAQ,6BAAa;IAM9C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,
|
|
1
|
+
{"version":3,"file":"HemisphereLight.js","sourceRoot":"","sources":["../../../src/implementation/types/HemisphereLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAIA,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,eAAgB,SAAQ,6BAAa;IAM9C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,UAQX;QACG,KAAK,CAAC;YACF,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;YACpC,SAAS,EAAE,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxE,IAAI,EAAE,mBAAU,CAAC,UAAU;YAC3B,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,EAAE,EAAE,UA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IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAIhC;IAED,IAAW,QAAQ,IAAI,IAAI,CAE1B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,IAAI,EAI9B;IAED,IAAW,aAAa,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,UAAU,CAAA;KAAE,CAE9D;IAMM,KAAK,IAAI,WAAW;CAe5B"}
|
|
@@ -26,7 +26,8 @@ class PointLight extends AbstractLight_1.AbstractLight {
|
|
|
26
26
|
type: ILight_1.LIGHT_TYPE.POINT,
|
|
27
27
|
name: properties.name,
|
|
28
28
|
order: properties.order,
|
|
29
|
-
id: properties.id
|
|
29
|
+
id: properties.id,
|
|
30
|
+
version: properties.version
|
|
30
31
|
});
|
|
31
32
|
// #region Properties (3)
|
|
32
33
|
_PointLight_decay.set(this, 0);
|
|
@@ -48,6 +49,8 @@ class PointLight extends AbstractLight_1.AbstractLight {
|
|
|
48
49
|
set decay(value) {
|
|
49
50
|
__classPrivateFieldSet(this, _PointLight_decay, value, "f");
|
|
50
51
|
this.updateVersion();
|
|
52
|
+
if (this.parentNode)
|
|
53
|
+
this.parentNode.updateVersion();
|
|
51
54
|
}
|
|
52
55
|
get distance() {
|
|
53
56
|
return __classPrivateFieldGet(this, _PointLight_distance, "f");
|
|
@@ -55,6 +58,8 @@ class PointLight extends AbstractLight_1.AbstractLight {
|
|
|
55
58
|
set distance(value) {
|
|
56
59
|
__classPrivateFieldSet(this, _PointLight_distance, value, "f");
|
|
57
60
|
this.updateVersion();
|
|
61
|
+
if (this.parentNode)
|
|
62
|
+
this.parentNode.updateVersion();
|
|
58
63
|
}
|
|
59
64
|
get position() {
|
|
60
65
|
return __classPrivateFieldGet(this, _PointLight_position, "f");
|
|
@@ -62,6 +67,8 @@ class PointLight extends AbstractLight_1.AbstractLight {
|
|
|
62
67
|
set position(value) {
|
|
63
68
|
__classPrivateFieldSet(this, _PointLight_position, value, "f");
|
|
64
69
|
this.updateVersion();
|
|
70
|
+
if (this.parentNode)
|
|
71
|
+
this.parentNode.updateVersion();
|
|
65
72
|
}
|
|
66
73
|
get threeJsObject() {
|
|
67
74
|
return __classPrivateFieldGet(this, _PointLight_threeJsObject, "f");
|
|
@@ -76,7 +83,9 @@ class PointLight extends AbstractLight_1.AbstractLight {
|
|
|
76
83
|
decay: this.decay,
|
|
77
84
|
intensity: this.intensity,
|
|
78
85
|
name: this.name,
|
|
79
|
-
order: this.order
|
|
86
|
+
order: this.order,
|
|
87
|
+
id: this.id,
|
|
88
|
+
version: this.version
|
|
80
89
|
});
|
|
81
90
|
}
|
|
82
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointLight.js","sourceRoot":"","sources":["../../../src/implementation/types/PointLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yCAAgC;AAGhC,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,UAAW,SAAQ,6BAAa;IAQ3C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,
|
|
1
|
+
{"version":3,"file":"PointLight.js","sourceRoot":"","sources":["../../../src/implementation/types/PointLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yCAAgC;AAGhC,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,UAAW,SAAQ,6BAAa;IAQ3C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,UAUX;QACC,KAAK,CAAC;YACJ,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;YACpC,SAAS,EAAE,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxE,IAAI,EAAE,mBAAU,CAAC,KAAK;YACtB,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,EAAE,EAAE,UAAU,CAAC,EAAE;YACjB,OAAO,EAAE,UAAU,CAAC,OAAO;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AE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAIhC;IAED,IAAW,QAAQ,IAAI,IAAI,CAE1B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,IAAI,EAI9B;IAED,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,IAAI,EAI5B;IAED,IAAW,aAAa,IAAI;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAA;KAAE,CAE7D;IAMM,KAAK,IAAI,UAAU;CAkB3B"}
|
|
@@ -26,7 +26,8 @@ class SpotLight extends AbstractLight_1.AbstractLight {
|
|
|
26
26
|
type: ILight_1.LIGHT_TYPE.SPOT,
|
|
27
27
|
name: properties.name,
|
|
28
28
|
order: properties.order,
|
|
29
|
-
id: properties.id
|
|
29
|
+
id: properties.id,
|
|
30
|
+
version: properties.version
|
|
30
31
|
});
|
|
31
32
|
// #region Properties (6)
|
|
32
33
|
_SpotLight_angle.set(this, Math.PI / 4.0);
|
|
@@ -57,6 +58,8 @@ class SpotLight extends AbstractLight_1.AbstractLight {
|
|
|
57
58
|
set angle(value) {
|
|
58
59
|
__classPrivateFieldSet(this, _SpotLight_angle, value, "f");
|
|
59
60
|
this.updateVersion();
|
|
61
|
+
if (this.parentNode)
|
|
62
|
+
this.parentNode.updateVersion();
|
|
60
63
|
}
|
|
61
64
|
get decay() {
|
|
62
65
|
return __classPrivateFieldGet(this, _SpotLight_decay, "f");
|
|
@@ -64,6 +67,8 @@ class SpotLight extends AbstractLight_1.AbstractLight {
|
|
|
64
67
|
set decay(value) {
|
|
65
68
|
__classPrivateFieldSet(this, _SpotLight_decay, value, "f");
|
|
66
69
|
this.updateVersion();
|
|
70
|
+
if (this.parentNode)
|
|
71
|
+
this.parentNode.updateVersion();
|
|
67
72
|
}
|
|
68
73
|
get distance() {
|
|
69
74
|
return __classPrivateFieldGet(this, _SpotLight_distance, "f");
|
|
@@ -71,6 +76,8 @@ class SpotLight extends AbstractLight_1.AbstractLight {
|
|
|
71
76
|
set distance(value) {
|
|
72
77
|
__classPrivateFieldSet(this, _SpotLight_distance, value, "f");
|
|
73
78
|
this.updateVersion();
|
|
79
|
+
if (this.parentNode)
|
|
80
|
+
this.parentNode.updateVersion();
|
|
74
81
|
}
|
|
75
82
|
get penumbra() {
|
|
76
83
|
return __classPrivateFieldGet(this, _SpotLight_penumbra, "f");
|
|
@@ -78,6 +85,8 @@ class SpotLight extends AbstractLight_1.AbstractLight {
|
|
|
78
85
|
set penumbra(value) {
|
|
79
86
|
__classPrivateFieldSet(this, _SpotLight_penumbra, value, "f");
|
|
80
87
|
this.updateVersion();
|
|
88
|
+
if (this.parentNode)
|
|
89
|
+
this.parentNode.updateVersion();
|
|
81
90
|
}
|
|
82
91
|
get position() {
|
|
83
92
|
return __classPrivateFieldGet(this, _SpotLight_position, "f");
|
|
@@ -85,6 +94,8 @@ class SpotLight extends AbstractLight_1.AbstractLight {
|
|
|
85
94
|
set position(value) {
|
|
86
95
|
__classPrivateFieldSet(this, _SpotLight_position, value, "f");
|
|
87
96
|
this.updateVersion();
|
|
97
|
+
if (this.parentNode)
|
|
98
|
+
this.parentNode.updateVersion();
|
|
88
99
|
}
|
|
89
100
|
get target() {
|
|
90
101
|
return __classPrivateFieldGet(this, _SpotLight_target, "f");
|
|
@@ -92,6 +103,8 @@ class SpotLight extends AbstractLight_1.AbstractLight {
|
|
|
92
103
|
set target(value) {
|
|
93
104
|
__classPrivateFieldSet(this, _SpotLight_target, value, "f");
|
|
94
105
|
this.updateVersion();
|
|
106
|
+
if (this.parentNode)
|
|
107
|
+
this.parentNode.updateVersion();
|
|
95
108
|
}
|
|
96
109
|
get threeJsObject() {
|
|
97
110
|
return __classPrivateFieldGet(this, _SpotLight_threeJsObject, "f");
|
|
@@ -109,7 +122,9 @@ class SpotLight extends AbstractLight_1.AbstractLight {
|
|
|
109
122
|
penumbra: this.penumbra,
|
|
110
123
|
intensity: this.intensity,
|
|
111
124
|
name: this.name,
|
|
112
|
-
order: this.order
|
|
125
|
+
order: this.order,
|
|
126
|
+
id: this.id,
|
|
127
|
+
version: this.version
|
|
113
128
|
});
|
|
114
129
|
}
|
|
115
130
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpotLight.js","sourceRoot":"","sources":["../../../src/implementation/types/SpotLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yCAAgC;AAGhC,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,SAAU,SAAQ,6BAAa;IAW1C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,
|
|
1
|
+
{"version":3,"file":"SpotLight.js","sourceRoot":"","sources":["../../../src/implementation/types/SpotLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yCAAgC;AAGhC,mDAAmD;AAEnD,oDAAgD;AAEhD,MAAa,SAAU,SAAQ,6BAAa;IAW1C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,UAaX;QACC,KAAK,CAAC;YACJ,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;YACpC,SAAS,EAAE,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YACxE,IAAI,EAAE,mBAAU,CAAC,IAAI;YACrB,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,KAAK;YACvB,EAAE,EAAE,UAAU,CAAC,EAAE;YACjB,OAAO,EAAE,UAAU,CAAC,OAAO;SAC5B,CAAC,CAAC;QApCL,yBAAyB;QAEzB,2BAAiB,IAAI,CAAC,EAAE,GAAG,GAAG,EAAC;QAC/B,2BAAiB,CAAC,EAAC;QACnB,8BAAoB,CAAC,EAAC;QACtB,8BAAoB,GAAG,EAAC;QACxB,8BAAkB,gBAAI,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAC;QA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C,KAAK;YACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;SACtB,CAAC,CAAC;IACL,CAAC;CAGF;AAxID,8BAwIC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.rendering-engine.light-engine",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
"testEnvironment": "node"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@shapediver/viewer.rendering-engine.rendering-engine": "2.8.
|
|
42
|
+
"@shapediver/viewer.rendering-engine.rendering-engine": "2.8.3",
|
|
43
43
|
"@shapediver/viewer.settings": "0.3.0",
|
|
44
|
-
"@shapediver/viewer.shared.node-tree": "2.8.
|
|
45
|
-
"@shapediver/viewer.shared.services": "2.8.
|
|
46
|
-
"@shapediver/viewer.shared.types": "2.8.
|
|
44
|
+
"@shapediver/viewer.shared.node-tree": "2.8.3",
|
|
45
|
+
"@shapediver/viewer.shared.services": "2.8.3",
|
|
46
|
+
"@shapediver/viewer.shared.types": "2.8.3",
|
|
47
47
|
"gl-matrix": "3.3.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "ed5e68bfe4b41ad6445329442c2d7d4f7e0bbcb1"
|
|
50
50
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { vec3 } from 'gl-matrix'
|
|
2
2
|
import { UuidGenerator } from '@shapediver/viewer.shared.services'
|
|
3
|
-
import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree'
|
|
3
|
+
import { AbstractTreeNodeData, ITreeNode } from '@shapediver/viewer.shared.node-tree'
|
|
4
4
|
|
|
5
5
|
import { ILight, LIGHT_TYPE } from '../interface/ILight'
|
|
6
6
|
import { Color } from '@shapediver/viewer.shared.types'
|
|
@@ -15,6 +15,7 @@ export abstract class AbstractLight extends AbstractTreeNodeData implements ILig
|
|
|
15
15
|
#name?: string;
|
|
16
16
|
#order?: number;
|
|
17
17
|
#useNodeData: boolean = false;
|
|
18
|
+
#parentNode?: ITreeNode;
|
|
18
19
|
|
|
19
20
|
protected readonly _uuidGenerator: UuidGenerator = UuidGenerator.instance;
|
|
20
21
|
|
|
@@ -28,9 +29,10 @@ export abstract class AbstractLight extends AbstractTreeNodeData implements ILig
|
|
|
28
29
|
type: LIGHT_TYPE,
|
|
29
30
|
name?: string,
|
|
30
31
|
order?: number,
|
|
31
|
-
id?: string
|
|
32
|
+
id?: string,
|
|
33
|
+
version?: string
|
|
32
34
|
}) {
|
|
33
|
-
super(properties.id);
|
|
35
|
+
super(properties.id, properties.version);
|
|
34
36
|
this.#color = properties.color;
|
|
35
37
|
this.#intensity = properties.intensity;
|
|
36
38
|
this.#type = properties.type;
|
|
@@ -49,6 +51,7 @@ export abstract class AbstractLight extends AbstractTreeNodeData implements ILig
|
|
|
49
51
|
public set color(value: Color) {
|
|
50
52
|
this.#color = value;
|
|
51
53
|
this.updateVersion();
|
|
54
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
52
55
|
}
|
|
53
56
|
|
|
54
57
|
public get intensity(): number {
|
|
@@ -58,6 +61,7 @@ export abstract class AbstractLight extends AbstractTreeNodeData implements ILig
|
|
|
58
61
|
public set intensity(value: number) {
|
|
59
62
|
this.#intensity = value;
|
|
60
63
|
this.updateVersion();
|
|
64
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
61
65
|
}
|
|
62
66
|
|
|
63
67
|
public get name(): string | undefined {
|
|
@@ -67,6 +71,7 @@ export abstract class AbstractLight extends AbstractTreeNodeData implements ILig
|
|
|
67
71
|
public set name(value: string | undefined) {
|
|
68
72
|
this.#name = value;
|
|
69
73
|
this.updateVersion();
|
|
74
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
70
75
|
}
|
|
71
76
|
|
|
72
77
|
public get order(): number | undefined {
|
|
@@ -76,6 +81,15 @@ export abstract class AbstractLight extends AbstractTreeNodeData implements ILig
|
|
|
76
81
|
public set order(value: number | undefined) {
|
|
77
82
|
this.#order = value;
|
|
78
83
|
this.updateVersion();
|
|
84
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public set parentNode(value: ITreeNode | undefined) {
|
|
88
|
+
this.#parentNode = value;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
public get parentNode(): ITreeNode | undefined {
|
|
92
|
+
return this.#parentNode;
|
|
79
93
|
}
|
|
80
94
|
|
|
81
95
|
public get type(): LIGHT_TYPE {
|
|
@@ -19,7 +19,8 @@ export class AmbientLight extends AbstractLight implements IAmbientLight {
|
|
|
19
19
|
intensity?: number,
|
|
20
20
|
name?: string,
|
|
21
21
|
order?: number,
|
|
22
|
-
id?: string
|
|
22
|
+
id?: string,
|
|
23
|
+
version?: string
|
|
23
24
|
}) {
|
|
24
25
|
super({
|
|
25
26
|
color: properties.color || '#ffffff',
|
|
@@ -27,7 +28,8 @@ export class AmbientLight extends AbstractLight implements IAmbientLight {
|
|
|
27
28
|
type: LIGHT_TYPE.AMBIENT,
|
|
28
29
|
name: properties.name,
|
|
29
30
|
order: properties.order,
|
|
30
|
-
id: properties.id
|
|
31
|
+
id: properties.id,
|
|
32
|
+
version: properties.version
|
|
31
33
|
});
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -48,7 +50,9 @@ export class AmbientLight extends AbstractLight implements IAmbientLight {
|
|
|
48
50
|
color: this.color || '#ffffff',
|
|
49
51
|
intensity: this.intensity || 0.5,
|
|
50
52
|
name: this.name,
|
|
51
|
-
order: this.order
|
|
53
|
+
order: this.order,
|
|
54
|
+
id: this.id,
|
|
55
|
+
version: this.version
|
|
52
56
|
});
|
|
53
57
|
}
|
|
54
58
|
|
|
@@ -28,7 +28,8 @@ export class DirectionalLight extends AbstractLight implements IDirectionalLight
|
|
|
28
28
|
shadowMapBias?: number,
|
|
29
29
|
name?: string,
|
|
30
30
|
order?: number,
|
|
31
|
-
id?: string
|
|
31
|
+
id?: string,
|
|
32
|
+
version?: string
|
|
32
33
|
}) {
|
|
33
34
|
super({
|
|
34
35
|
color: properties.color || '#ffffff',
|
|
@@ -36,7 +37,8 @@ export class DirectionalLight extends AbstractLight implements IDirectionalLight
|
|
|
36
37
|
type: LIGHT_TYPE.DIRECTIONAL,
|
|
37
38
|
name: properties.name,
|
|
38
39
|
order: properties.order,
|
|
39
|
-
id: properties.id
|
|
40
|
+
id: properties.id,
|
|
41
|
+
version: properties.version
|
|
40
42
|
});
|
|
41
43
|
|
|
42
44
|
if(properties.direction) this.#direction = properties.direction;
|
|
@@ -56,6 +58,7 @@ export class DirectionalLight extends AbstractLight implements IDirectionalLight
|
|
|
56
58
|
public set castShadow(value: boolean) {
|
|
57
59
|
this.#castShadow = value;
|
|
58
60
|
this.updateVersion();
|
|
61
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
59
62
|
}
|
|
60
63
|
|
|
61
64
|
public get direction(): vec3 {
|
|
@@ -65,6 +68,7 @@ export class DirectionalLight extends AbstractLight implements IDirectionalLight
|
|
|
65
68
|
public set direction(value: vec3) {
|
|
66
69
|
this.#direction = value;
|
|
67
70
|
this.updateVersion();
|
|
71
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
public get shadowMapBias(): number {
|
|
@@ -74,6 +78,7 @@ export class DirectionalLight extends AbstractLight implements IDirectionalLight
|
|
|
74
78
|
public set shadowMapBias(value: number) {
|
|
75
79
|
this.#shadowMapBias = value;
|
|
76
80
|
this.updateVersion();
|
|
81
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
77
82
|
}
|
|
78
83
|
|
|
79
84
|
public get shadowMapResolution(): number {
|
|
@@ -83,6 +88,7 @@ export class DirectionalLight extends AbstractLight implements IDirectionalLight
|
|
|
83
88
|
public set shadowMapResolution(value: number) {
|
|
84
89
|
this.#shadowMapResolution = value;
|
|
85
90
|
this.updateVersion();
|
|
91
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
86
92
|
}
|
|
87
93
|
|
|
88
94
|
public get threeJsObject(): { [key: string]: THREE.DirectionalLight } {
|
|
@@ -102,7 +108,9 @@ export class DirectionalLight extends AbstractLight implements IDirectionalLight
|
|
|
102
108
|
shadowMapResolution: this.shadowMapResolution,
|
|
103
109
|
shadowMapBias: this.shadowMapBias,
|
|
104
110
|
name: this.name,
|
|
105
|
-
order: this.order
|
|
111
|
+
order: this.order,
|
|
112
|
+
id: this.id,
|
|
113
|
+
version: this.version
|
|
106
114
|
});
|
|
107
115
|
}
|
|
108
116
|
|
|
@@ -22,7 +22,8 @@ export class HemisphereLight extends AbstractLight implements IHemisphereLight {
|
|
|
22
22
|
intensity?: number,
|
|
23
23
|
name?: string,
|
|
24
24
|
order?: number,
|
|
25
|
-
id?: string
|
|
25
|
+
id?: string,
|
|
26
|
+
version?: string
|
|
26
27
|
}) {
|
|
27
28
|
super({
|
|
28
29
|
color: properties.color || '#ffffff',
|
|
@@ -30,7 +31,8 @@ export class HemisphereLight extends AbstractLight implements IHemisphereLight {
|
|
|
30
31
|
type: LIGHT_TYPE.HEMISPHERE,
|
|
31
32
|
name: properties.name,
|
|
32
33
|
order: properties.order,
|
|
33
|
-
id: properties.id
|
|
34
|
+
id: properties.id,
|
|
35
|
+
version: properties.version
|
|
34
36
|
});
|
|
35
37
|
|
|
36
38
|
if (properties.groundColor) this.#groundColor = properties.groundColor;
|
|
@@ -47,6 +49,7 @@ export class HemisphereLight extends AbstractLight implements IHemisphereLight {
|
|
|
47
49
|
public set groundColor(value: Color) {
|
|
48
50
|
this.#groundColor = value;
|
|
49
51
|
this.updateVersion();
|
|
52
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
public get threeJsObject(): { [key: string]: THREE.HemisphereLight } {
|
|
@@ -63,7 +66,9 @@ export class HemisphereLight extends AbstractLight implements IHemisphereLight {
|
|
|
63
66
|
groundColor: this.groundColor,
|
|
64
67
|
intensity: this.intensity,
|
|
65
68
|
name: this.name,
|
|
66
|
-
order: this.order
|
|
69
|
+
order: this.order,
|
|
70
|
+
id: this.id,
|
|
71
|
+
version: this.version
|
|
67
72
|
});
|
|
68
73
|
}
|
|
69
74
|
|
|
@@ -26,7 +26,8 @@ export class PointLight extends AbstractLight implements IPointLight {
|
|
|
26
26
|
decay?: number,
|
|
27
27
|
name?: string,
|
|
28
28
|
order?: number,
|
|
29
|
-
id?: string
|
|
29
|
+
id?: string,
|
|
30
|
+
version?: string
|
|
30
31
|
}) {
|
|
31
32
|
super({
|
|
32
33
|
color: properties.color || '#ffffff',
|
|
@@ -34,7 +35,8 @@ export class PointLight extends AbstractLight implements IPointLight {
|
|
|
34
35
|
type: LIGHT_TYPE.POINT,
|
|
35
36
|
name: properties.name,
|
|
36
37
|
order: properties.order,
|
|
37
|
-
id: properties.id
|
|
38
|
+
id: properties.id,
|
|
39
|
+
version: properties.version
|
|
38
40
|
});
|
|
39
41
|
if (properties.position) this.#position = properties.position;
|
|
40
42
|
if (properties.distance) this.#distance = properties.distance;
|
|
@@ -52,6 +54,7 @@ export class PointLight extends AbstractLight implements IPointLight {
|
|
|
52
54
|
public set decay(value: number) {
|
|
53
55
|
this.#decay = value;
|
|
54
56
|
this.updateVersion();
|
|
57
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
public get distance(): number {
|
|
@@ -61,6 +64,7 @@ export class PointLight extends AbstractLight implements IPointLight {
|
|
|
61
64
|
public set distance(value: number) {
|
|
62
65
|
this.#distance = value;
|
|
63
66
|
this.updateVersion();
|
|
67
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
64
68
|
}
|
|
65
69
|
|
|
66
70
|
public get position(): vec3 {
|
|
@@ -70,6 +74,7 @@ export class PointLight extends AbstractLight implements IPointLight {
|
|
|
70
74
|
public set position(value: vec3) {
|
|
71
75
|
this.#position = value;
|
|
72
76
|
this.updateVersion();
|
|
77
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
73
78
|
}
|
|
74
79
|
|
|
75
80
|
public get threeJsObject(): { [key: string]: THREE.PointLight } {
|
|
@@ -88,7 +93,9 @@ export class PointLight extends AbstractLight implements IPointLight {
|
|
|
88
93
|
decay: this.decay,
|
|
89
94
|
intensity: this.intensity,
|
|
90
95
|
name: this.name,
|
|
91
|
-
order: this.order
|
|
96
|
+
order: this.order,
|
|
97
|
+
id: this.id,
|
|
98
|
+
version: this.version
|
|
92
99
|
});
|
|
93
100
|
}
|
|
94
101
|
|
|
@@ -32,7 +32,8 @@ export class SpotLight extends AbstractLight implements ISpotLight {
|
|
|
32
32
|
penumbra?: number,
|
|
33
33
|
name?: string,
|
|
34
34
|
order?: number,
|
|
35
|
-
id?: string
|
|
35
|
+
id?: string,
|
|
36
|
+
version?: string
|
|
36
37
|
}) {
|
|
37
38
|
super({
|
|
38
39
|
color: properties.color || '#ffffff',
|
|
@@ -40,7 +41,8 @@ export class SpotLight extends AbstractLight implements ISpotLight {
|
|
|
40
41
|
type: LIGHT_TYPE.SPOT,
|
|
41
42
|
name: properties.name,
|
|
42
43
|
order: properties.order,
|
|
43
|
-
id: properties.id
|
|
44
|
+
id: properties.id,
|
|
45
|
+
version: properties.version
|
|
44
46
|
});
|
|
45
47
|
if (properties.position) this.#position = properties.position;
|
|
46
48
|
if (properties.target) this.#target = properties.target;
|
|
@@ -61,6 +63,7 @@ export class SpotLight extends AbstractLight implements ISpotLight {
|
|
|
61
63
|
public set angle(value: number) {
|
|
62
64
|
this.#angle = value;
|
|
63
65
|
this.updateVersion();
|
|
66
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
public get decay(): number {
|
|
@@ -70,6 +73,7 @@ export class SpotLight extends AbstractLight implements ISpotLight {
|
|
|
70
73
|
public set decay(value: number) {
|
|
71
74
|
this.#decay = value;
|
|
72
75
|
this.updateVersion();
|
|
76
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
73
77
|
}
|
|
74
78
|
|
|
75
79
|
public get distance(): number {
|
|
@@ -79,6 +83,7 @@ export class SpotLight extends AbstractLight implements ISpotLight {
|
|
|
79
83
|
public set distance(value: number) {
|
|
80
84
|
this.#distance = value;
|
|
81
85
|
this.updateVersion();
|
|
86
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
82
87
|
}
|
|
83
88
|
|
|
84
89
|
public get penumbra(): number {
|
|
@@ -88,6 +93,7 @@ export class SpotLight extends AbstractLight implements ISpotLight {
|
|
|
88
93
|
public set penumbra(value: number) {
|
|
89
94
|
this.#penumbra = value;
|
|
90
95
|
this.updateVersion();
|
|
96
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
91
97
|
}
|
|
92
98
|
|
|
93
99
|
public get position(): vec3 {
|
|
@@ -97,6 +103,7 @@ export class SpotLight extends AbstractLight implements ISpotLight {
|
|
|
97
103
|
public set position(value: vec3) {
|
|
98
104
|
this.#position = value;
|
|
99
105
|
this.updateVersion();
|
|
106
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
100
107
|
}
|
|
101
108
|
|
|
102
109
|
public get target(): vec3 {
|
|
@@ -106,6 +113,7 @@ export class SpotLight extends AbstractLight implements ISpotLight {
|
|
|
106
113
|
public set target(value: vec3) {
|
|
107
114
|
this.#target = value;
|
|
108
115
|
this.updateVersion();
|
|
116
|
+
if(this.parentNode) this.parentNode.updateVersion();
|
|
109
117
|
}
|
|
110
118
|
|
|
111
119
|
public get threeJsObject(): { [key: string]: THREE.SpotLight } {
|
|
@@ -127,7 +135,9 @@ export class SpotLight extends AbstractLight implements ISpotLight {
|
|
|
127
135
|
penumbra: this.penumbra,
|
|
128
136
|
intensity: this.intensity,
|
|
129
137
|
name: this.name,
|
|
130
|
-
order: this.order
|
|
138
|
+
order: this.order,
|
|
139
|
+
id: this.id,
|
|
140
|
+
version: this.version
|
|
131
141
|
});
|
|
132
142
|
}
|
|
133
143
|
|