@shapediver/viewer.rendering-engine.light-engine 3.9.0 → 3.9.1
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/README.md +1 -1
- package/dist/implementation/AbstractLight.d.ts +4 -4
- package/dist/implementation/AbstractLight.d.ts.map +1 -1
- package/dist/implementation/AbstractLight.js.map +1 -1
- package/dist/implementation/LightEngine.d.ts +5 -5
- package/dist/implementation/LightEngine.d.ts.map +1 -1
- package/dist/implementation/LightEngine.js +161 -62
- package/dist/implementation/LightEngine.js.map +1 -1
- package/dist/implementation/LightScene.d.ts +11 -11
- package/dist/implementation/LightScene.d.ts.map +1 -1
- package/dist/implementation/LightScene.js.map +1 -1
- package/dist/implementation/types/AmbientLight.d.ts +3 -3
- package/dist/implementation/types/AmbientLight.d.ts.map +1 -1
- package/dist/implementation/types/AmbientLight.js +5 -5
- package/dist/implementation/types/AmbientLight.js.map +1 -1
- package/dist/implementation/types/DirectionalLight.d.ts +4 -4
- package/dist/implementation/types/DirectionalLight.d.ts.map +1 -1
- package/dist/implementation/types/DirectionalLight.js +5 -5
- package/dist/implementation/types/DirectionalLight.js.map +1 -1
- package/dist/implementation/types/HemisphereLight.d.ts +3 -3
- package/dist/implementation/types/HemisphereLight.d.ts.map +1 -1
- package/dist/implementation/types/HemisphereLight.js +5 -5
- package/dist/implementation/types/HemisphereLight.js.map +1 -1
- package/dist/implementation/types/PointLight.d.ts +4 -4
- package/dist/implementation/types/PointLight.d.ts.map +1 -1
- package/dist/implementation/types/PointLight.js +5 -5
- package/dist/implementation/types/PointLight.js.map +1 -1
- package/dist/implementation/types/SpotLight.d.ts +4 -4
- package/dist/implementation/types/SpotLight.d.ts.map +1 -1
- package/dist/implementation/types/SpotLight.js +5 -5
- package/dist/implementation/types/SpotLight.js.map +1 -1
- package/dist/index.d.ts +18 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/interface/ILight.d.ts +2 -2
- package/dist/interface/ILight.d.ts.map +1 -1
- package/dist/interface/ILight.js.map +1 -1
- package/dist/interface/ILightEngine.d.ts +1 -1
- package/dist/interface/ILightEngine.d.ts.map +1 -1
- package/dist/interface/ILightScene.d.ts +4 -4
- package/dist/interface/ILightScene.d.ts.map +1 -1
- package/dist/interface/types/IAmbientLight.d.ts +1 -1
- package/dist/interface/types/IAmbientLight.d.ts.map +1 -1
- package/dist/interface/types/IDirectionalLight.d.ts +2 -2
- package/dist/interface/types/IDirectionalLight.d.ts.map +1 -1
- package/dist/interface/types/IHemisphereLight.d.ts +2 -2
- package/dist/interface/types/IHemisphereLight.d.ts.map +1 -1
- package/dist/interface/types/IPointLight.d.ts +2 -2
- package/dist/interface/types/IPointLight.d.ts.map +1 -1
- package/dist/interface/types/ISpotLight.d.ts +2 -2
- package/dist/interface/types/ISpotLight.d.ts.map +1 -1
- package/package.json +47 -47
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmbientLight.js","sourceRoot":"","sources":["../../../src/implementation/types/AmbientLight.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"AmbientLight.js","sourceRoot":"","sources":["../../../src/implementation/types/AmbientLight.ts"],"names":[],"mappings":";;;AACA,mDAAkD;AAElD,oDAA+C;AAE/C,MAAa,YAAa,SAAQ,6BAAa;IAC9C,2BAA2B;IAE3B,YAAY,UAOX;QACA,KAAK,CAAC;YACL,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;YACpC,SAAS,EACR,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC9D,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;SAC3B,CAAC,CAAC;IACJ,CAAC;IAED,8BAA8B;IAE9B,6BAA6B;IAEtB,KAAK;QACX,OAAO,IAAI,YAAY,CAAC;YACvB,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;SACrB,CAAC,CAAC;IACJ,CAAC;CAGD;AAvCD,oCAuCC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IDirectionalLight } from
|
|
4
|
-
import {
|
|
1
|
+
import { Color } from "@shapediver/viewer.shared.types";
|
|
2
|
+
import { vec3 } from "gl-matrix";
|
|
3
|
+
import { IDirectionalLight } from "../../interface/types/IDirectionalLight";
|
|
4
|
+
import { AbstractLight } from "../AbstractLight";
|
|
5
5
|
export declare class DirectionalLight extends AbstractLight implements IDirectionalLight {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/DirectionalLight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DirectionalLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/DirectionalLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,iBAAiB,EAAC,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE/C,qBAAa,gBACZ,SAAQ,aACR,YAAW,iBAAiB;;gBAahB,UAAU,EAAE;QACvB,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,CAAC;KACjB;IAyBD,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;IAMM,KAAK,IAAI,iBAAiB;CAgBjC"}
|
|
@@ -13,21 +13,21 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _DirectionalLight_castShadow, _DirectionalLight_direction, _DirectionalLight_shadowMapBias, _DirectionalLight_shadowMapResolution;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.DirectionalLight = void 0;
|
|
16
|
-
const AbstractLight_1 = require("../AbstractLight");
|
|
17
|
-
const ILight_1 = require("../../interface/ILight");
|
|
18
16
|
const gl_matrix_1 = require("gl-matrix");
|
|
17
|
+
const ILight_1 = require("../../interface/ILight");
|
|
18
|
+
const AbstractLight_1 = require("../AbstractLight");
|
|
19
19
|
class DirectionalLight extends AbstractLight_1.AbstractLight {
|
|
20
20
|
// #endregion Properties (4)
|
|
21
21
|
// #region Constructors (1)
|
|
22
22
|
constructor(properties) {
|
|
23
23
|
super({
|
|
24
|
-
color: properties.color ||
|
|
24
|
+
color: properties.color || "#ffffff",
|
|
25
25
|
intensity: properties.intensity !== undefined ? properties.intensity : 1,
|
|
26
26
|
type: ILight_1.LIGHT_TYPE.DIRECTIONAL,
|
|
27
27
|
name: properties.name,
|
|
28
28
|
order: properties.order,
|
|
29
29
|
id: properties.id,
|
|
30
|
-
version: properties.version
|
|
30
|
+
version: properties.version,
|
|
31
31
|
});
|
|
32
32
|
// #region Properties (4)
|
|
33
33
|
_DirectionalLight_castShadow.set(this, true);
|
|
@@ -94,7 +94,7 @@ class DirectionalLight extends AbstractLight_1.AbstractLight {
|
|
|
94
94
|
name: this.name,
|
|
95
95
|
order: this.order,
|
|
96
96
|
id: this.id,
|
|
97
|
-
version: this.version
|
|
97
|
+
version: this.version,
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirectionalLight.js","sourceRoot":"","sources":["../../../src/implementation/types/DirectionalLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DirectionalLight.js","sourceRoot":"","sources":["../../../src/implementation/types/DirectionalLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yCAA+B;AAC/B,mDAAkD;AAElD,oDAA+C;AAE/C,MAAa,gBACZ,SAAQ,6BAAa;IAUrB,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,UAWX;QACA,KAAK,CAAC;YACL,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;YACpC,SAAS,EACR,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC9D,IAAI,EAAE,mBAAU,CAAC,WAAW;YAC5B,IAAI,EAAE,UAAU,CAAC,IAAI;YACrB,KAAK,EAAE,UAAU,CAAC,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tD,CAAC;IAED,IAAW,aAAa;QACvB,OAAO,uBAAA,IAAI,uCAAe,CAAC;IAC5B,CAAC;IAED,IAAW,aAAa,CAAC,KAAa;QACrC,uBAAA,IAAI,mCAAkB,KAAK,MAAA,CAAC;QAC5B,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,IAAI,CAAC,UAAU;YAAE,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;IACtD,CAAC;IAED,IAAW,mBAAmB;QAC7B,OAAO,uBAAA,IAAI,6CAAqB,CAAC;IAClC,CAAC;IAED,IAAW,mBAAmB,CAAC,KAAa;QAC3C,uBAAA,IAAI,yCAAwB,KAAK,MAAA,CAAC;QAClC,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,IAAI,CAAC,UAAU;YAAE,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;IACtD,CAAC;IAED,4CAA4C;IAE5C,6BAA6B;IAEtB,KAAK;QACX,OAAO,IAAI,gBAAgB,CAAC;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,UAAU,EAAE,IAAI,CAAC,UAAU;YAC3B,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,aAAa,EAAE,IAAI,CAAC,aAAa;YACjC,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;SACrB,CAAC,CAAC;IACJ,CAAC;CAGD;AA/GD,4CA+GC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Color } from "@shapediver/viewer.shared.types";
|
|
2
|
+
import { IHemisphereLight } from "../../interface/types/IHemisphereLight";
|
|
3
|
+
import { AbstractLight } from "../AbstractLight";
|
|
4
4
|
export declare class HemisphereLight extends AbstractLight implements IHemisphereLight {
|
|
5
5
|
#private;
|
|
6
6
|
constructor(properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HemisphereLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/HemisphereLight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HemisphereLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/HemisphereLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AAEtD,OAAO,EAAC,gBAAgB,EAAC,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE/C,qBAAa,eAAgB,SAAQ,aAAc,YAAW,gBAAgB;;gBASjE,UAAU,EAAE;QACvB,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,CAAC;KACjB;IAmBD,IAAW,WAAW,IAAI,KAAK,CAE9B;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,KAAK,EAIlC;IAMM,KAAK,IAAI,gBAAgB;CAahC"}
|
|
@@ -13,23 +13,23 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _HemisphereLight_groundColor;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.HemisphereLight = void 0;
|
|
16
|
-
const AbstractLight_1 = require("../AbstractLight");
|
|
17
16
|
const ILight_1 = require("../../interface/ILight");
|
|
17
|
+
const AbstractLight_1 = require("../AbstractLight");
|
|
18
18
|
class HemisphereLight extends AbstractLight_1.AbstractLight {
|
|
19
19
|
// #endregion Properties (1)
|
|
20
20
|
// #region Constructors (1)
|
|
21
21
|
constructor(properties) {
|
|
22
22
|
super({
|
|
23
|
-
color: properties.color ||
|
|
23
|
+
color: properties.color || "#ffffff",
|
|
24
24
|
intensity: properties.intensity !== undefined ? properties.intensity : 1,
|
|
25
25
|
type: ILight_1.LIGHT_TYPE.HEMISPHERE,
|
|
26
26
|
name: properties.name,
|
|
27
27
|
order: properties.order,
|
|
28
28
|
id: properties.id,
|
|
29
|
-
version: properties.version
|
|
29
|
+
version: properties.version,
|
|
30
30
|
});
|
|
31
31
|
// #region Properties (1)
|
|
32
|
-
_HemisphereLight_groundColor.set(this,
|
|
32
|
+
_HemisphereLight_groundColor.set(this, "#000000");
|
|
33
33
|
if (properties.groundColor)
|
|
34
34
|
__classPrivateFieldSet(this, _HemisphereLight_groundColor, properties.groundColor, "f");
|
|
35
35
|
}
|
|
@@ -54,7 +54,7 @@ class HemisphereLight extends AbstractLight_1.AbstractLight {
|
|
|
54
54
|
name: this.name,
|
|
55
55
|
order: this.order,
|
|
56
56
|
id: this.id,
|
|
57
|
-
version: this.version
|
|
57
|
+
version: this.version,
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HemisphereLight.js","sourceRoot":"","sources":["../../../src/implementation/types/HemisphereLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"HemisphereLight.js","sourceRoot":"","sources":["../../../src/implementation/types/HemisphereLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,mDAAkD;AAElD,oDAA+C;AAE/C,MAAa,eAAgB,SAAQ,6BAAa;IAKjD,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,UAQX;QACA,KAAK,CAAC;YACL,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;YACpC,SAAS,EACR,UAAU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"@shapediver/viewer.shared.types";
|
|
2
|
+
import { vec3 } from "gl-matrix";
|
|
3
|
+
import { IPointLight } from "../../interface/types/IPointLight";
|
|
4
|
+
import { AbstractLight } from "../AbstractLight";
|
|
5
5
|
export declare class PointLight extends AbstractLight implements IPointLight {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/PointLight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PointLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/PointLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,WAAW,EAAC,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE/C,qBAAa,UAAW,SAAQ,aAAc,YAAW,WAAW;;gBAWvD,UAAU,EAAE;QACvB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB;IAoBD,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAI7B;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAIhC;IAED,IAAW,QAAQ,IAAI,IAAI,CAE1B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,IAAI,EAI9B;IAMM,KAAK,IAAI,WAAW;CAe3B"}
|
|
@@ -13,21 +13,21 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _PointLight_decay, _PointLight_distance, _PointLight_position;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.PointLight = void 0;
|
|
16
|
-
const AbstractLight_1 = require("../AbstractLight");
|
|
17
|
-
const ILight_1 = require("../../interface/ILight");
|
|
18
16
|
const gl_matrix_1 = require("gl-matrix");
|
|
17
|
+
const ILight_1 = require("../../interface/ILight");
|
|
18
|
+
const AbstractLight_1 = require("../AbstractLight");
|
|
19
19
|
class PointLight extends AbstractLight_1.AbstractLight {
|
|
20
20
|
// #endregion Properties (3)
|
|
21
21
|
// #region Constructors (1)
|
|
22
22
|
constructor(properties) {
|
|
23
23
|
super({
|
|
24
|
-
color: properties.color ||
|
|
24
|
+
color: properties.color || "#ffffff",
|
|
25
25
|
intensity: properties.intensity !== undefined ? properties.intensity : 1,
|
|
26
26
|
type: ILight_1.LIGHT_TYPE.POINT,
|
|
27
27
|
name: properties.name,
|
|
28
28
|
order: properties.order,
|
|
29
29
|
id: properties.id,
|
|
30
|
-
version: properties.version
|
|
30
|
+
version: properties.version,
|
|
31
31
|
});
|
|
32
32
|
// #region Properties (3)
|
|
33
33
|
_PointLight_decay.set(this, 0);
|
|
@@ -81,7 +81,7 @@ class PointLight extends AbstractLight_1.AbstractLight {
|
|
|
81
81
|
name: this.name,
|
|
82
82
|
order: this.order,
|
|
83
83
|
id: this.id,
|
|
84
|
-
version: this.version
|
|
84
|
+
version: this.version,
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointLight.js","sourceRoot":"","sources":["../../../src/implementation/types/PointLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1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
2
|
+
import { vec3 } from "gl-matrix";
|
|
3
|
+
import { ISpotLight } from "../../interface/types/ISpotLight";
|
|
4
|
+
import { AbstractLight } from "../AbstractLight";
|
|
5
5
|
export declare class SpotLight extends AbstractLight implements ISpotLight {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpotLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/SpotLight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SpotLight.d.ts","sourceRoot":"","sources":["../../../src/implementation/types/SpotLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,UAAU,EAAC,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE/C,qBAAa,SAAU,SAAQ,aAAc,YAAW,UAAU;;gBAcrD,UAAU,EAAE;QACvB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,MAAM,CAAC,EAAE,IAAI,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,OAAO,CAAC,EAAE,MAAM,CAAC;KACjB;IAuBD,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAI7B;IAED,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAI7B;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAIhC;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;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;IAMM,KAAK,IAAI,UAAU;CAkB1B"}
|
|
@@ -13,21 +13,21 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _SpotLight_angle, _SpotLight_decay, _SpotLight_distance, _SpotLight_penumbra, _SpotLight_position, _SpotLight_target;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.SpotLight = void 0;
|
|
16
|
-
const AbstractLight_1 = require("../AbstractLight");
|
|
17
|
-
const ILight_1 = require("../../interface/ILight");
|
|
18
16
|
const gl_matrix_1 = require("gl-matrix");
|
|
17
|
+
const ILight_1 = require("../../interface/ILight");
|
|
18
|
+
const AbstractLight_1 = require("../AbstractLight");
|
|
19
19
|
class SpotLight extends AbstractLight_1.AbstractLight {
|
|
20
20
|
// #endregion Properties (6)
|
|
21
21
|
// #region Constructors (1)
|
|
22
22
|
constructor(properties) {
|
|
23
23
|
super({
|
|
24
|
-
color: properties.color ||
|
|
24
|
+
color: properties.color || "#ffffff",
|
|
25
25
|
intensity: properties.intensity !== undefined ? properties.intensity : 1,
|
|
26
26
|
type: ILight_1.LIGHT_TYPE.SPOT,
|
|
27
27
|
name: properties.name,
|
|
28
28
|
order: properties.order,
|
|
29
29
|
id: properties.id,
|
|
30
|
-
version: properties.version
|
|
30
|
+
version: properties.version,
|
|
31
31
|
});
|
|
32
32
|
// #region Properties (6)
|
|
33
33
|
_SpotLight_angle.set(this, Math.PI / 4.0);
|
|
@@ -120,7 +120,7 @@ class SpotLight extends AbstractLight_1.AbstractLight {
|
|
|
120
120
|
name: this.name,
|
|
121
121
|
order: this.order,
|
|
122
122
|
id: this.id,
|
|
123
|
-
version: this.version
|
|
123
|
+
version: this.version,
|
|
124
124
|
});
|
|
125
125
|
}
|
|
126
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpotLight.js","sourceRoot":"","sources":["../../../src/implementation/types/SpotLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SpotLight.js","sourceRoot":"","sources":["../../../src/implementation/types/SpotLight.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,yCAA+B;AAC/B,mDAAkD;AAElD,oDAA+C;AAE/C,MAAa,SAAU,SAAQ,6BAAa;IAU3C,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,UAaX;QACA,KAAK,CAAC;YACL,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;YACpC,SAAS,EACR,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAC9D,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;SAC3B,CAAC,CAAC;QApCJ,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,CA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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;SACrB,CAAC,CAAC;IACJ,CAAC;CAGD;AApID,8BAoIC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { AbstractLight } from
|
|
2
|
-
import { LightEngine } from
|
|
3
|
-
import { LightScene } from
|
|
4
|
-
import { AmbientLight } from
|
|
5
|
-
import { DirectionalLight } from
|
|
6
|
-
import { HemisphereLight } from
|
|
7
|
-
import { PointLight } from
|
|
8
|
-
import { SpotLight } from
|
|
9
|
-
import { ILight, LIGHT_TYPE } from
|
|
10
|
-
import { ILightEngine } from
|
|
11
|
-
import { ILightScene } from
|
|
12
|
-
import { IAmbientLight } from
|
|
13
|
-
import { IDirectionalLight } from
|
|
14
|
-
import { IHemisphereLight } from
|
|
15
|
-
import { IPointLight } from
|
|
16
|
-
import { ISpotLight } from
|
|
1
|
+
import { AbstractLight } from "./implementation/AbstractLight";
|
|
2
|
+
import { LightEngine } from "./implementation/LightEngine";
|
|
3
|
+
import { LightScene } from "./implementation/LightScene";
|
|
4
|
+
import { AmbientLight } from "./implementation/types/AmbientLight";
|
|
5
|
+
import { DirectionalLight } from "./implementation/types/DirectionalLight";
|
|
6
|
+
import { HemisphereLight } from "./implementation/types/HemisphereLight";
|
|
7
|
+
import { PointLight } from "./implementation/types/PointLight";
|
|
8
|
+
import { SpotLight } from "./implementation/types/SpotLight";
|
|
9
|
+
import { ILight, LIGHT_TYPE } from "./interface/ILight";
|
|
10
|
+
import { ILightEngine } from "./interface/ILightEngine";
|
|
11
|
+
import { ILightScene } from "./interface/ILightScene";
|
|
12
|
+
import { IAmbientLight } from "./interface/types/IAmbientLight";
|
|
13
|
+
import { IDirectionalLight } from "./interface/types/IDirectionalLight";
|
|
14
|
+
import { IHemisphereLight } from "./interface/types/IHemisphereLight";
|
|
15
|
+
import { IPointLight } from "./interface/types/IPointLight";
|
|
16
|
+
import { ISpotLight } from "./interface/types/ISpotLight";
|
|
17
17
|
export { ILightEngine, LightEngine, LIGHT_TYPE, ILightScene, LightScene, ILight };
|
|
18
|
-
export { IAmbientLight, IDirectionalLight, IHemisphereLight, IPointLight, ISpotLight };
|
|
19
|
-
export { AbstractLight, AmbientLight, DirectionalLight, HemisphereLight, PointLight, SpotLight };
|
|
18
|
+
export { IAmbientLight, IDirectionalLight, IHemisphereLight, IPointLight, ISpotLight, };
|
|
19
|
+
export { AbstractLight, AmbientLight, DirectionalLight, HemisphereLight, PointLight, SpotLight, };
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAC,WAAW,EAAC,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAC,YAAY,EAAC,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAC,gBAAgB,EAAC,MAAM,yCAAyC,CAAC;AACzE,OAAO,EAAC,eAAe,EAAC,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAC7D,OAAO,EAAC,SAAS,EAAC,MAAM,kCAAkC,CAAC;AAC3D,OAAO,EAAC,MAAM,EAAE,UAAU,EAAC,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAC,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAC,aAAa,EAAC,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAC,iBAAiB,EAAC,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAC,gBAAgB,EAAC,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAC,WAAW,EAAC,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAC,UAAU,EAAC,MAAM,8BAA8B,CAAC;AAExD,OAAO,EAAC,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAC,CAAC;AAChF,OAAO,EACN,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,UAAU,GACV,CAAC;AACF,OAAO,EACN,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,eAAe,EACf,UAAU,EACV,SAAS,GACT,CAAC"}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,kEAA6D;AA0B5D,8FA1BO,6BAAa,OA0BP;AAzBd,8DAAyD;AAgBnC,4FAhBd,yBAAW,OAgBc;AAfjC,4DAAuD;AAeK,2FAfpD,uBAAU,OAeoD;AAdtE,sEAAiE;AAwBhE,6FAxBO,2BAAY,OAwBP;AAvBb,8EAAyE;AAwBxE,iGAxBO,mCAAgB,OAwBP;AAvBjB,4EAAuE;AAwBtE,gGAxBO,iCAAe,OAwBP;AAvBhB,kEAA6D;AAwB5D,2FAxBO,uBAAU,OAwBP;AAvBX,gEAA2D;AAwB1D,0FAxBO,qBAAS,OAwBP;AAvBV,+CAAsD;AASnB,2FATnB,mBAAU,OASmB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ITreeNodeData } from
|
|
2
|
-
import { Color } from
|
|
1
|
+
import { ITreeNodeData } from "@shapediver/viewer.shared.node-tree";
|
|
2
|
+
import { Color } from "@shapediver/viewer.shared.types";
|
|
3
3
|
export declare enum LIGHT_TYPE {
|
|
4
4
|
AMBIENT = "ambient",
|
|
5
5
|
DIRECTIONAL = "directional",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILight.d.ts","sourceRoot":"","sources":["../../src/interface/ILight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ILight.d.ts","sourceRoot":"","sources":["../../src/interface/ILight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AAEtD,oBAAY,UAAU;IACrB,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IACzB,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,IAAI,SAAS;CACb;AAED,MAAM,WAAW,MAAO,SAAQ,aAAa;IAG5C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,KAAK,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,UAAU,CAAC;CAGjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILight.js","sourceRoot":"","sources":["../../src/interface/ILight.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAOX;AAPD,WAAY,UAAU;
|
|
1
|
+
{"version":3,"file":"ILight.js","sourceRoot":"","sources":["../../src/interface/ILight.ts"],"names":[],"mappings":";;;AAGA,IAAY,UAOX;AAPD,WAAY,UAAU;IACrB,iCAAmB,CAAA;IACnB,yCAA2B,CAAA;IAC3B,uCAAyB,CAAA;IACzB,6BAAe,CAAA;IACf,qCAAuB,CAAA;IACvB,2BAAa,CAAA;AACd,CAAC,EAPW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAOrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILightEngine.d.ts","sourceRoot":"","sources":["../../src/interface/ILightEngine.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ILightEngine.d.ts","sourceRoot":"","sources":["../../src/interface/ILightEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,eAAe,CAAC;AAE1C,MAAM,WAAW,YAAY;IAG5B,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAMpB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IACtC,gBAAgB,CAAC,UAAU,EAAE;QAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,QAAQ,CAAC,EAAE,OAAO,CAAC;KACnB,GAAG,WAAW,CAAC;IAChB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;CAGtC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ITreeNode } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { ILight } from
|
|
1
|
+
import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
|
|
2
|
+
import { Color } from "@shapediver/viewer.shared.types";
|
|
3
|
+
import { vec3 } from "gl-matrix";
|
|
4
|
+
import { ILight } from "./ILight";
|
|
5
5
|
export interface ILightScene {
|
|
6
6
|
id: string;
|
|
7
7
|
lights: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ILightScene.d.ts","sourceRoot":"","sources":["../../src/interface/ILightScene.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ILightScene.d.ts","sourceRoot":"","sources":["../../src/interface/ILightScene.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAEhC,MAAM,WAAW,WAAW;IAG3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAC,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IAMpB,eAAe,CAAC,UAAU,EAAE;QAC3B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;KACd,GAAG,MAAM,CAAC;IACX,mBAAmB,CAAC,UAAU,EAAE;QAC/B,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,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;KACd,GAAG,MAAM,CAAC;IACX,kBAAkB,CAAC,UAAU,EAAE;QAC9B,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,WAAW,CAAC,EAAE,KAAK,CAAC;QACpB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;KACd,GAAG,MAAM,CAAC;IACX,aAAa,CAAC,UAAU,EAAE;QACzB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;KACd,GAAG,MAAM,CAAC;IACX,YAAY,CAAC,UAAU,EAAE;QACxB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,QAAQ,CAAC,EAAE,IAAI,CAAC;QAChB,MAAM,CAAC,EAAE,IAAI,CAAC;QACd,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,EAAE,CAAC,EAAE,MAAM,CAAC;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;KACd,GAAG,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;CAGjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IAmbientLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/IAmbientLight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IAmbientLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/IAmbientLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,aAAc,SAAQ,MAAM;IAC5C,KAAK,IAAI,aAAa,CAAC;CACvB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IDirectionalLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/IDirectionalLight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IDirectionalLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/IDirectionalLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,iBAAkB,SAAQ,MAAM;IAChD,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,IAAI,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAE5B,KAAK,IAAI,iBAAiB,CAAC;CAC3B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Color } from
|
|
2
|
-
import { ILight } from
|
|
1
|
+
import { Color } from "@shapediver/viewer.shared.types";
|
|
2
|
+
import { ILight } from "../ILight";
|
|
3
3
|
export interface IHemisphereLight extends ILight {
|
|
4
4
|
groundColor: Color;
|
|
5
5
|
clone(): IHemisphereLight;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IHemisphereLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/IHemisphereLight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IHemisphereLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/IHemisphereLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AAEtD,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,gBAAiB,SAAQ,MAAM;IAC/C,WAAW,EAAE,KAAK,CAAC;IAEnB,KAAK,IAAI,gBAAgB,CAAC;CAC1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IPointLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/IPointLight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IPointLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/IPointLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,WAAY,SAAQ,MAAM;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,IAAI,CAAC;IAEf,KAAK,IAAI,WAAW,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISpotLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/ISpotLight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ISpotLight.d.ts","sourceRoot":"","sources":["../../../src/interface/types/ISpotLight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAE/B,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAEjC,MAAM,WAAW,UAAW,SAAQ,MAAM;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,IAAI,CAAC;IACf,MAAM,EAAE,IAAI,CAAC;IAEb,KAAK,IAAI,UAAU,CAAC;CACpB"}
|