@shapediver/viewer.viewport 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 +8 -6
- package/dist/implementation/PostProcessingApi.d.ts +4 -4
- package/dist/implementation/PostProcessingApi.d.ts.map +1 -1
- package/dist/implementation/PostProcessingApi.js +37 -29
- package/dist/implementation/PostProcessingApi.js.map +1 -1
- package/dist/implementation/ViewportApi.d.ts +13 -13
- package/dist/implementation/ViewportApi.d.ts.map +1 -1
- package/dist/implementation/ViewportApi.js +268 -253
- package/dist/implementation/ViewportApi.js.map +1 -1
- package/dist/implementation/camera/AbstractCameraApi.d.ts +5 -5
- package/dist/implementation/camera/AbstractCameraApi.d.ts.map +1 -1
- package/dist/implementation/camera/AbstractCameraApi.js +110 -110
- package/dist/implementation/camera/AbstractCameraApi.js.map +1 -1
- package/dist/implementation/camera/OrthographicCameraApi.d.ts +4 -4
- package/dist/implementation/camera/OrthographicCameraApi.d.ts.map +1 -1
- package/dist/implementation/camera/OrthographicCameraApi.js +5 -5
- package/dist/implementation/camera/OrthographicCameraApi.js.map +1 -1
- package/dist/implementation/camera/PerspectiveCameraApi.d.ts +4 -4
- package/dist/implementation/camera/PerspectiveCameraApi.d.ts.map +1 -1
- package/dist/implementation/camera/PerspectiveCameraApi.js +4 -4
- package/dist/implementation/camera/PerspectiveCameraApi.js.map +1 -1
- package/dist/implementation/lights/AbstractLightApi.d.ts +4 -4
- package/dist/implementation/lights/AbstractLightApi.d.ts.map +1 -1
- package/dist/implementation/lights/AbstractLightApi.js +9 -9
- package/dist/implementation/lights/AbstractLightApi.js.map +1 -1
- package/dist/implementation/lights/LightSceneApi.d.ts +12 -12
- package/dist/implementation/lights/LightSceneApi.d.ts.map +1 -1
- package/dist/implementation/lights/LightSceneApi.js +48 -48
- package/dist/implementation/lights/LightSceneApi.js.map +1 -1
- package/dist/implementation/lights/types/AmbientLightApi.d.ts +4 -4
- package/dist/implementation/lights/types/AmbientLightApi.d.ts.map +1 -1
- package/dist/implementation/lights/types/AmbientLightApi.js +1 -1
- package/dist/implementation/lights/types/AmbientLightApi.js.map +1 -1
- package/dist/implementation/lights/types/DirectionalLightApi.d.ts +5 -5
- package/dist/implementation/lights/types/DirectionalLightApi.d.ts.map +1 -1
- package/dist/implementation/lights/types/DirectionalLightApi.js +10 -10
- package/dist/implementation/lights/types/DirectionalLightApi.js.map +1 -1
- package/dist/implementation/lights/types/HemisphereLightApi.d.ts +5 -5
- package/dist/implementation/lights/types/HemisphereLightApi.d.ts.map +1 -1
- package/dist/implementation/lights/types/HemisphereLightApi.js +4 -4
- package/dist/implementation/lights/types/HemisphereLightApi.js.map +1 -1
- package/dist/implementation/lights/types/PointLightApi.d.ts +5 -5
- package/dist/implementation/lights/types/PointLightApi.d.ts.map +1 -1
- package/dist/implementation/lights/types/PointLightApi.js +8 -8
- package/dist/implementation/lights/types/PointLightApi.js.map +1 -1
- package/dist/implementation/lights/types/SpotLightApi.d.ts +5 -5
- package/dist/implementation/lights/types/SpotLightApi.d.ts.map +1 -1
- package/dist/implementation/lights/types/SpotLightApi.js +14 -14
- package/dist/implementation/lights/types/SpotLightApi.js.map +1 -1
- package/dist/index.d.ts +39 -39
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -68
- package/dist/index.js.map +1 -1
- package/dist/interfaces/IPostProcessingApi.d.ts +2 -2
- package/dist/interfaces/IPostProcessingApi.d.ts.map +1 -1
- package/dist/interfaces/IViewportApi.d.ts +13 -13
- package/dist/interfaces/IViewportApi.d.ts.map +1 -1
- package/dist/interfaces/camera/ICameraApi.d.ts +3 -3
- package/dist/interfaces/camera/ICameraApi.d.ts.map +1 -1
- package/dist/interfaces/camera/IOrthographicCameraApi.d.ts +2 -2
- package/dist/interfaces/camera/IOrthographicCameraApi.d.ts.map +1 -1
- package/dist/interfaces/camera/IPerspectiveCameraApi.d.ts +1 -1
- package/dist/interfaces/camera/IPerspectiveCameraApi.d.ts.map +1 -1
- package/dist/interfaces/lights/ILightApi.d.ts +2 -2
- package/dist/interfaces/lights/ILightApi.d.ts.map +1 -1
- package/dist/interfaces/lights/ILightSceneApi.d.ts +9 -9
- package/dist/interfaces/lights/ILightSceneApi.d.ts.map +1 -1
- package/dist/interfaces/lights/types/IAmbientLightApi.d.ts +1 -1
- package/dist/interfaces/lights/types/IAmbientLightApi.d.ts.map +1 -1
- package/dist/interfaces/lights/types/IDirectionalLightApi.d.ts +2 -2
- package/dist/interfaces/lights/types/IDirectionalLightApi.d.ts.map +1 -1
- package/dist/interfaces/lights/types/IHemisphereLightApi.d.ts +2 -2
- package/dist/interfaces/lights/types/IHemisphereLightApi.d.ts.map +1 -1
- package/dist/interfaces/lights/types/IPointLightApi.d.ts +2 -2
- package/dist/interfaces/lights/types/IPointLightApi.d.ts.map +1 -1
- package/dist/interfaces/lights/types/ISpotLightApi.d.ts +2 -2
- package/dist/interfaces/lights/types/ISpotLightApi.d.ts.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +23 -19
- package/dist/main.js.map +1 -1
- package/package.json +75 -75
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LightSceneApi.js","sourceRoot":"","sources":["../../../src/implementation/lights/LightSceneApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"LightSceneApi.js","sourceRoot":"","sources":["../../../src/implementation/lights/LightSceneApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2GAQ0D;AAE1D,+EAA0E;AAW1E,6DAAwD;AACxD,qEAAgE;AAChE,mEAA8D;AAC9D,yDAAoD;AACpD,uDAAkD;AAElD,MAAa,aAAa;IASzB,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAyB,EAAE,UAAuB;QAZ9D,yBAAyB;QAEzB,wCAA2C,uCAAc,CAAC,QAAQ,EAAC;QACnE,4CAAkC;QAClC,gCAA+C,EAAE,E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I,CAAC,QAAQ,EACb,QAAQ,EACR,KAAK,CACL,CAAC;QACF,uBAAA,IAAI,qCAAgB,CAAC,gBAAgB,CACpC,iBAAiB,KAAK,EAAE,EACxB,IAAI,CAAC,EAAE,EACP,QAAQ,EACR,KAAK,CACL,CAAC;QACF,uBAAA,IAAI,qCAAgB,CAAC,gBAAgB,CACpC,iBAAiB,KAAK,EAAE,EACxB,IAAI,CAAC,IAAI,EACT,QAAQ,EACR,KAAK,CACL,CAAC;QACF,MAAM,KAAK,GAAG,uBAAA,IAAI,iCAAY,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QACxD,uBAAA,IAAI,kCAAa,CAAC,MAAM,EAAE,CAAC;QAC3B,OAAsB,uBAAA,IAAI,6BAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC9C,CAAC;IAEM,WAAW,CAAC,EAAU;QAC5B,MAAM,KAAK,GAAG,uBAAA,IAAI,iCAAY,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC;QAC/C,uBAAA,IAAI,kCAAa,CAAC,MAAM,EAAE,CAAC;QAC3B,OAAO,KAAK,CAAC;IACd,CAAC;CAGD;AA1aD,sCA0aC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { IAmbientLightApi } from
|
|
4
|
-
import {
|
|
1
|
+
import { IAmbientLight } from "@shapediver/viewer.rendering-engine.light-engine";
|
|
2
|
+
import { IViewportApi } from "../../../interfaces/IViewportApi";
|
|
3
|
+
import { IAmbientLightApi } from "../../../interfaces/lights/types/IAmbientLightApi";
|
|
4
|
+
import { AbstractLightApi } from "../AbstractLightApi";
|
|
5
5
|
export declare class AmbientLightApi extends AbstractLightApi implements IAmbientLightApi {
|
|
6
6
|
#private;
|
|
7
7
|
constructor(viewportApi: IViewportApi, light: IAmbientLight);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmbientLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/AmbientLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"AmbientLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/AmbientLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,kDAAkD,CAAC;AAC/E,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,gBAAgB,EAAC,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,qBAAa,eACZ,SAAQ,gBACR,YAAW,gBAAgB;;gBAWf,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa;CAQ3D"}
|
|
@@ -19,7 +19,7 @@ class AmbientLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
19
19
|
_AmbientLightApi_viewportApi.set(this, void 0);
|
|
20
20
|
__classPrivateFieldSet(this, _AmbientLightApi_viewportApi, viewportApi, "f");
|
|
21
21
|
__classPrivateFieldSet(this, _AmbientLightApi_light, light, "f");
|
|
22
|
-
this.scope =
|
|
22
|
+
this.scope = "AmbientLightApi";
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
exports.AmbientLightApi = AmbientLightApi;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AmbientLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/AmbientLightApi.ts"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"AmbientLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/AmbientLightApi.ts"],"names":[],"mappings":";;;;;;;;;;AAGA,0DAAqD;AAErD,MAAa,eACZ,SAAQ,mCAAgB;IAQxB,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAyB,EAAE,KAAoB;QAC1D,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAV3B,yBAAyB;QAEzB,yCAA+B;QAC/B,+CAAoC;QAQnC,uBAAA,IAAI,gCAAgB,WAAW,MAAA,CAAC;QAChC,uBAAA,IAAI,0BAAU,KAAK,MAAA,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,iBAAiB,CAAC;IAChC,CAAC;CAGD;AArBD,0CAqBC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { IDirectionalLight } from "@shapediver/viewer.rendering-engine.light-engine";
|
|
2
|
+
import { vec3 } from "gl-matrix";
|
|
3
|
+
import { IViewportApi } from "../../../interfaces/IViewportApi";
|
|
4
|
+
import { IDirectionalLightApi } from "../../../interfaces/lights/types/IDirectionalLightApi";
|
|
5
|
+
import { AbstractLightApi } from "../AbstractLightApi";
|
|
6
6
|
export declare class DirectionalLightApi extends AbstractLightApi implements IDirectionalLightApi {
|
|
7
7
|
#private;
|
|
8
8
|
constructor(viewportApi: IViewportApi, light: IDirectionalLight);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirectionalLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/DirectionalLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DirectionalLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/DirectionalLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,kDAAkD,CAAC;AAEnF,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,oBAAoB,EAAC,MAAM,uDAAuD,CAAC;AAC3F,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,qBAAa,mBACZ,SAAQ,gBACR,YAAW,oBAAoB;;gBAanB,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,iBAAiB;IAW/D,IAAW,UAAU,IAAI,OAAO,CAE/B;IAED,IAAW,UAAU,CAAC,KAAK,EAAE,OAAO,EAYnC;IAED,IAAW,SAAS,IAAI,IAAI,CAE3B;IAED,IAAW,SAAS,CAAC,KAAK,EAAE,IAAI,EAY/B;IAED,IAAW,aAAa,IAAI,MAAM,CAEjC;IAED,IAAW,aAAa,CAAC,KAAK,EAAE,MAAM,EAYrC;IAED,IAAW,mBAAmB,IAAI,MAAM,CAEvC;IAED,IAAW,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAY3C;CAGD"}
|
|
@@ -13,8 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _DirectionalLightApi_inputValidator, _DirectionalLightApi_light, _DirectionalLightApi_logger, _DirectionalLightApi_viewportApi;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.DirectionalLightApi = void 0;
|
|
16
|
-
const AbstractLightApi_1 = require("../AbstractLightApi");
|
|
17
16
|
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
17
|
+
const AbstractLightApi_1 = require("../AbstractLightApi");
|
|
18
18
|
class DirectionalLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
19
19
|
// #endregion Properties (4)
|
|
20
20
|
// #region Constructors (1)
|
|
@@ -27,7 +27,7 @@ class DirectionalLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
27
27
|
_DirectionalLightApi_viewportApi.set(this, void 0);
|
|
28
28
|
__classPrivateFieldSet(this, _DirectionalLightApi_viewportApi, viewportApi, "f");
|
|
29
29
|
__classPrivateFieldSet(this, _DirectionalLightApi_light, light, "f");
|
|
30
|
-
this.scope =
|
|
30
|
+
this.scope = "DirectionalLightApi";
|
|
31
31
|
}
|
|
32
32
|
// #endregion Constructors (1)
|
|
33
33
|
// #region Public Getters And Setters (8)
|
|
@@ -35,8 +35,8 @@ class DirectionalLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
35
35
|
return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").castShadow;
|
|
36
36
|
}
|
|
37
37
|
set castShadow(value) {
|
|
38
|
-
const scope =
|
|
39
|
-
__classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
38
|
+
const scope = "castShadow";
|
|
39
|
+
__classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "boolean");
|
|
40
40
|
__classPrivateFieldGet(this, _DirectionalLightApi_light, "f").castShadow = value;
|
|
41
41
|
__classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
42
42
|
__classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
|
|
@@ -45,8 +45,8 @@ class DirectionalLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
45
45
|
return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").direction;
|
|
46
46
|
}
|
|
47
47
|
set direction(value) {
|
|
48
|
-
const scope =
|
|
49
|
-
__classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
48
|
+
const scope = "direction";
|
|
49
|
+
__classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "vec3");
|
|
50
50
|
__classPrivateFieldGet(this, _DirectionalLightApi_light, "f").direction = value;
|
|
51
51
|
__classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
52
52
|
__classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
|
|
@@ -55,8 +55,8 @@ class DirectionalLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
55
55
|
return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapBias;
|
|
56
56
|
}
|
|
57
57
|
set shadowMapBias(value) {
|
|
58
|
-
const scope =
|
|
59
|
-
__classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
58
|
+
const scope = "shadowMapBias";
|
|
59
|
+
__classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
|
|
60
60
|
__classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapBias = value;
|
|
61
61
|
__classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
62
62
|
__classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
|
|
@@ -65,8 +65,8 @@ class DirectionalLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
65
65
|
return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapResolution;
|
|
66
66
|
}
|
|
67
67
|
set shadowMapResolution(value) {
|
|
68
|
-
const scope =
|
|
69
|
-
__classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
68
|
+
const scope = "shadowMapResolution";
|
|
69
|
+
__classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
|
|
70
70
|
__classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapResolution = value;
|
|
71
71
|
__classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
72
72
|
__classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DirectionalLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/DirectionalLightApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Direction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;QACxC,uBAAA,IAAI,mCAAQ,CAAC,KAAK,CACjB,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,KAAK,gBAAgB,KAAK,EAAE,CACvD,CAAC;QACF,uBAAA,IAAI,wCAAa,CAAC,MAAM,EAAE,CAAC;IAC5B,CAAC;CAGD;AAnGD,kDAmGC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Color } from
|
|
3
|
-
import {
|
|
4
|
-
import { IHemisphereLightApi } from
|
|
5
|
-
import {
|
|
1
|
+
import { IHemisphereLight } from "@shapediver/viewer.rendering-engine.light-engine";
|
|
2
|
+
import { Color } from "@shapediver/viewer.shared.types";
|
|
3
|
+
import { IViewportApi } from "../../../interfaces/IViewportApi";
|
|
4
|
+
import { IHemisphereLightApi } from "../../../interfaces/lights/types/IHemisphereLightApi";
|
|
5
|
+
import { AbstractLightApi } from "../AbstractLightApi";
|
|
6
6
|
export declare class HemisphereLightApi extends AbstractLightApi implements IHemisphereLightApi {
|
|
7
7
|
#private;
|
|
8
8
|
constructor(viewportApi: IViewportApi, light: IHemisphereLight);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HemisphereLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/HemisphereLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"HemisphereLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/HemisphereLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,kDAAkD,CAAC;AAElF,OAAO,EAAC,KAAK,EAAC,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,mBAAmB,EAAC,MAAM,sDAAsD,CAAC;AACzF,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,qBAAa,kBACZ,SAAQ,gBACR,YAAW,mBAAmB;;gBAalB,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB;IAW9D,IAAW,WAAW,IAAI,KAAK,CAE9B;IAED,IAAW,WAAW,CAAC,KAAK,EAAE,KAAK,EAYlC;CAGD"}
|
|
@@ -13,8 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _HemisphereLightApi_inputValidator, _HemisphereLightApi_light, _HemisphereLightApi_logger, _HemisphereLightApi_viewportApi;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.HemisphereLightApi = void 0;
|
|
16
|
-
const AbstractLightApi_1 = require("../AbstractLightApi");
|
|
17
16
|
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
17
|
+
const AbstractLightApi_1 = require("../AbstractLightApi");
|
|
18
18
|
class HemisphereLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
19
19
|
// #endregion Properties (4)
|
|
20
20
|
// #region Constructors (1)
|
|
@@ -27,7 +27,7 @@ class HemisphereLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
27
27
|
_HemisphereLightApi_viewportApi.set(this, void 0);
|
|
28
28
|
__classPrivateFieldSet(this, _HemisphereLightApi_viewportApi, viewportApi, "f");
|
|
29
29
|
__classPrivateFieldSet(this, _HemisphereLightApi_light, light, "f");
|
|
30
|
-
this.scope =
|
|
30
|
+
this.scope = "HemisphereLightApi";
|
|
31
31
|
}
|
|
32
32
|
// #endregion Constructors (1)
|
|
33
33
|
// #region Public Getters And Setters (2)
|
|
@@ -35,8 +35,8 @@ class HemisphereLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
35
35
|
return __classPrivateFieldGet(this, _HemisphereLightApi_light, "f").groundColor;
|
|
36
36
|
}
|
|
37
37
|
set groundColor(value) {
|
|
38
|
-
const scope =
|
|
39
|
-
__classPrivateFieldGet(this, _HemisphereLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
38
|
+
const scope = "groundColor";
|
|
39
|
+
__classPrivateFieldGet(this, _HemisphereLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "color");
|
|
40
40
|
__classPrivateFieldGet(this, _HemisphereLightApi_light, "f").groundColor = value;
|
|
41
41
|
__classPrivateFieldGet(this, _HemisphereLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
42
42
|
__classPrivateFieldGet(this, _HemisphereLightApi_viewportApi, "f").update();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HemisphereLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/HemisphereLightApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"HemisphereLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/HemisphereLightApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+EAA0E;AAI1E,0DAAqD;AAErD,MAAa,kBACZ,SAAQ,mCAAgB;IAUxB,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAyB,EAAE,KAAuB;QAC7D,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAZ3B,yBAAyB;QAEzB,6CAA2C,uCAAc,CAAC,QAAQ,EAAC;QACnE,4CAAkC;QAClC,qCAA2B,+BAAM,CAAC,QAAQ,EAAC;QAC3C,kDAAoC;QAQnC,uBAAA,IAAI,mCAAgB,WAAW,MAAA,CAAC;QAChC,uBAAA,IAAI,6BAAU,KAAK,MAAA,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,oBAAoB,CAAC;IACnC,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,WAAW;QACrB,OAAO,uBAAA,IAAI,iCAAO,CAAC,WAAW,CAAC;IAChC,CAAC;IAED,IAAW,WAAW,CAAC,KAAY;QAClC,MAAM,KAAK,GAAG,aAAa,CAAC;QAC5B,uBAAA,IAAI,0CAAgB,CAAC,gBAAgB,CACpC,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,EAAE,EACxB,KAAK,EACL,OAAO,CACP,CAAC;QACF,uBAAA,IAAI,iCAAO,CAAC,WAAW,GAAG,KAAK,CAAC;QAChC,uBAAA,IAAI,kCAAQ,CAAC,KAAK,CACjB,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,KAAK,gBAAgB,KAAK,EAAE,CACvD,CAAC;QACF,uBAAA,IAAI,uCAAa,CAAC,MAAM,EAAE,CAAC;IAC5B,CAAC;CAGD;AA7CD,gDA6CC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { IPointLight } from "@shapediver/viewer.rendering-engine.light-engine";
|
|
2
|
+
import { vec3 } from "gl-matrix";
|
|
3
|
+
import { IViewportApi } from "../../../interfaces/IViewportApi";
|
|
4
|
+
import { IPointLightApi } from "../../../interfaces/lights/types/IPointLightApi";
|
|
5
|
+
import { AbstractLightApi } from "../AbstractLightApi";
|
|
6
6
|
export declare class PointLightApi extends AbstractLightApi implements IPointLightApi {
|
|
7
7
|
#private;
|
|
8
8
|
constructor(viewportApi: IViewportApi, light: IPointLight);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/PointLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"PointLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/PointLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,kDAAkD,CAAC;AAE7E,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,cAAc,EAAC,MAAM,iDAAiD,CAAC;AAC/E,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,qBAAa,aAAc,SAAQ,gBAAiB,YAAW,cAAc;;gBAYhE,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW;IAWzD,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAY7B;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAYhC;IAED,IAAW,QAAQ,IAAI,IAAI,CAE1B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,IAAI,EAY9B;CAGD"}
|
|
@@ -13,8 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _PointLightApi_inputValidator, _PointLightApi_light, _PointLightApi_logger, _PointLightApi_viewportApi;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.PointLightApi = void 0;
|
|
16
|
-
const AbstractLightApi_1 = require("../AbstractLightApi");
|
|
17
16
|
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
17
|
+
const AbstractLightApi_1 = require("../AbstractLightApi");
|
|
18
18
|
class PointLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
19
19
|
// #endregion Properties (4)
|
|
20
20
|
// #region Constructors (1)
|
|
@@ -27,7 +27,7 @@ class PointLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
27
27
|
_PointLightApi_viewportApi.set(this, void 0);
|
|
28
28
|
__classPrivateFieldSet(this, _PointLightApi_viewportApi, viewportApi, "f");
|
|
29
29
|
__classPrivateFieldSet(this, _PointLightApi_light, light, "f");
|
|
30
|
-
this.scope =
|
|
30
|
+
this.scope = "PointLightApi";
|
|
31
31
|
}
|
|
32
32
|
// #endregion Constructors (1)
|
|
33
33
|
// #region Public Getters And Setters (6)
|
|
@@ -35,8 +35,8 @@ class PointLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
35
35
|
return __classPrivateFieldGet(this, _PointLightApi_light, "f").decay;
|
|
36
36
|
}
|
|
37
37
|
set decay(value) {
|
|
38
|
-
const scope =
|
|
39
|
-
__classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
38
|
+
const scope = "decay";
|
|
39
|
+
__classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
|
|
40
40
|
__classPrivateFieldGet(this, _PointLightApi_light, "f").decay = value;
|
|
41
41
|
__classPrivateFieldGet(this, _PointLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
42
42
|
__classPrivateFieldGet(this, _PointLightApi_viewportApi, "f").update();
|
|
@@ -45,8 +45,8 @@ class PointLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
45
45
|
return __classPrivateFieldGet(this, _PointLightApi_light, "f").distance;
|
|
46
46
|
}
|
|
47
47
|
set distance(value) {
|
|
48
|
-
const scope =
|
|
49
|
-
__classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
48
|
+
const scope = "distance";
|
|
49
|
+
__classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
|
|
50
50
|
__classPrivateFieldGet(this, _PointLightApi_light, "f").distance = value;
|
|
51
51
|
__classPrivateFieldGet(this, _PointLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
52
52
|
__classPrivateFieldGet(this, _PointLightApi_viewportApi, "f").update();
|
|
@@ -55,8 +55,8 @@ class PointLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
55
55
|
return __classPrivateFieldGet(this, _PointLightApi_light, "f").position;
|
|
56
56
|
}
|
|
57
57
|
set position(value) {
|
|
58
|
-
const scope =
|
|
59
|
-
__classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
58
|
+
const scope = "position";
|
|
59
|
+
__classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "vec3");
|
|
60
60
|
__classPrivateFieldGet(this, _PointLightApi_light, "f").position = value;
|
|
61
61
|
__classPrivateFieldGet(this, _PointLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
62
62
|
__classPrivateFieldGet(this, _PointLightApi_viewportApi, "f").update();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PointLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/PointLightApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"PointLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/PointLightApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+EAA0E;AAI1E,0DAAqD;AAErD,MAAa,aAAc,SAAQ,mCAAgB;IAQlD,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAyB,EAAE,KAAkB;QACxD,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAZ3B,yBAAyB;QAEzB,wCAA2C,uCAAc,CAAC,QAAQ,EAAC;QACnE,uCAA6B;QAC7B,gCAA2B,+BAAM,CAAC,QAAQ,EAAC;QAC3C,6CAAoC;QAQnC,uBAAA,IAAI,8BAAgB,WAAW,MAAA,CAAC;QAChC,uBAAA,IAAI,wBAAU,KAAK,MAAA,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC;IAC9B,CAAC;IAED,8BAA8B;IAE9B,yCAAyC;IAEzC,IAAW,KAAK;QACf,OAAO,uBAAA,IAAI,4BAAO,CAAC,KAAK,CAAC;IAC1B,CAAC;IAED,IAAW,KAAK,CAAC,KAAa;QAC7B,MAAM,KAAK,GAAG,OAA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AC7B,uBAAA,IAAI,6BAAQ,CAAC,KAAK,CACjB,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,KAAK,gBAAgB,KAAK,EAAE,CACvD,CAAC;QACF,uBAAA,IAAI,kCAAa,CAAC,MAAM,EAAE,CAAC;IAC5B,CAAC;CAGD;AA9ED,sCA8EC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { ISpotLight } from "@shapediver/viewer.rendering-engine.light-engine";
|
|
2
|
+
import { vec3 } from "gl-matrix";
|
|
3
|
+
import { IViewportApi } from "../../../interfaces/IViewportApi";
|
|
4
|
+
import { ISpotLightApi } from "../../../interfaces/lights/types/ISpotLightApi";
|
|
5
|
+
import { AbstractLightApi } from "../AbstractLightApi";
|
|
6
6
|
export declare class SpotLightApi extends AbstractLightApi implements ISpotLightApi {
|
|
7
7
|
#private;
|
|
8
8
|
constructor(viewportApi: IViewportApi, light: ISpotLight);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpotLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/SpotLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SpotLightApi.d.ts","sourceRoot":"","sources":["../../../../src/implementation/lights/types/SpotLightApi.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,kDAAkD,CAAC;AAE5E,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAC,aAAa,EAAC,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AAErD,qBAAa,YAAa,SAAQ,gBAAiB,YAAW,aAAa;;gBAY9D,WAAW,EAAE,YAAY,EAAE,KAAK,EAAE,UAAU;IAWxD,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAY7B;IAED,IAAW,KAAK,IAAI,MAAM,CAEzB;IAED,IAAW,KAAK,CAAC,KAAK,EAAE,MAAM,EAY7B;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAYhC;IAED,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,MAAM,EAYhC;IAED,IAAW,QAAQ,IAAI,IAAI,CAE1B;IAED,IAAW,QAAQ,CAAC,KAAK,EAAE,IAAI,EAY9B;IAED,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,IAAI,EAY5B;CAGD"}
|
|
@@ -13,8 +13,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var _SpotLightApi_inputValidator, _SpotLightApi_light, _SpotLightApi_logger, _SpotLightApi_viewportApi;
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.SpotLightApi = void 0;
|
|
16
|
-
const AbstractLightApi_1 = require("../AbstractLightApi");
|
|
17
16
|
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
17
|
+
const AbstractLightApi_1 = require("../AbstractLightApi");
|
|
18
18
|
class SpotLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
19
19
|
// #endregion Properties (4)
|
|
20
20
|
// #region Constructors (1)
|
|
@@ -27,7 +27,7 @@ class SpotLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
27
27
|
_SpotLightApi_viewportApi.set(this, void 0);
|
|
28
28
|
__classPrivateFieldSet(this, _SpotLightApi_viewportApi, viewportApi, "f");
|
|
29
29
|
__classPrivateFieldSet(this, _SpotLightApi_light, light, "f");
|
|
30
|
-
this.scope =
|
|
30
|
+
this.scope = "SpotLightApi";
|
|
31
31
|
}
|
|
32
32
|
// #endregion Constructors (1)
|
|
33
33
|
// #region Public Getters And Setters (12)
|
|
@@ -35,8 +35,8 @@ class SpotLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
35
35
|
return __classPrivateFieldGet(this, _SpotLightApi_light, "f").angle;
|
|
36
36
|
}
|
|
37
37
|
set angle(value) {
|
|
38
|
-
const scope =
|
|
39
|
-
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
38
|
+
const scope = "angle";
|
|
39
|
+
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
|
|
40
40
|
__classPrivateFieldGet(this, _SpotLightApi_light, "f").angle = value;
|
|
41
41
|
__classPrivateFieldGet(this, _SpotLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
42
42
|
__classPrivateFieldGet(this, _SpotLightApi_viewportApi, "f").update();
|
|
@@ -45,8 +45,8 @@ class SpotLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
45
45
|
return __classPrivateFieldGet(this, _SpotLightApi_light, "f").decay;
|
|
46
46
|
}
|
|
47
47
|
set decay(value) {
|
|
48
|
-
const scope =
|
|
49
|
-
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
48
|
+
const scope = "decay";
|
|
49
|
+
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
|
|
50
50
|
__classPrivateFieldGet(this, _SpotLightApi_light, "f").decay = value;
|
|
51
51
|
__classPrivateFieldGet(this, _SpotLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
52
52
|
__classPrivateFieldGet(this, _SpotLightApi_viewportApi, "f").update();
|
|
@@ -55,8 +55,8 @@ class SpotLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
55
55
|
return __classPrivateFieldGet(this, _SpotLightApi_light, "f").distance;
|
|
56
56
|
}
|
|
57
57
|
set distance(value) {
|
|
58
|
-
const scope =
|
|
59
|
-
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
58
|
+
const scope = "distance";
|
|
59
|
+
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
|
|
60
60
|
__classPrivateFieldGet(this, _SpotLightApi_light, "f").distance = value;
|
|
61
61
|
__classPrivateFieldGet(this, _SpotLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
62
62
|
__classPrivateFieldGet(this, _SpotLightApi_viewportApi, "f").update();
|
|
@@ -65,8 +65,8 @@ class SpotLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
65
65
|
return __classPrivateFieldGet(this, _SpotLightApi_light, "f").penumbra;
|
|
66
66
|
}
|
|
67
67
|
set penumbra(value) {
|
|
68
|
-
const scope =
|
|
69
|
-
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
68
|
+
const scope = "penumbra";
|
|
69
|
+
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
|
|
70
70
|
__classPrivateFieldGet(this, _SpotLightApi_light, "f").penumbra = value;
|
|
71
71
|
__classPrivateFieldGet(this, _SpotLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
72
72
|
__classPrivateFieldGet(this, _SpotLightApi_viewportApi, "f").update();
|
|
@@ -75,8 +75,8 @@ class SpotLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
75
75
|
return __classPrivateFieldGet(this, _SpotLightApi_light, "f").position;
|
|
76
76
|
}
|
|
77
77
|
set position(value) {
|
|
78
|
-
const scope =
|
|
79
|
-
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
78
|
+
const scope = "position";
|
|
79
|
+
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "vec3");
|
|
80
80
|
__classPrivateFieldGet(this, _SpotLightApi_light, "f").position = value;
|
|
81
81
|
__classPrivateFieldGet(this, _SpotLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
82
82
|
__classPrivateFieldGet(this, _SpotLightApi_viewportApi, "f").update();
|
|
@@ -85,8 +85,8 @@ class SpotLightApi extends AbstractLightApi_1.AbstractLightApi {
|
|
|
85
85
|
return __classPrivateFieldGet(this, _SpotLightApi_light, "f").target;
|
|
86
86
|
}
|
|
87
87
|
set target(value) {
|
|
88
|
-
const scope =
|
|
89
|
-
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value,
|
|
88
|
+
const scope = "target";
|
|
89
|
+
__classPrivateFieldGet(this, _SpotLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "vec3");
|
|
90
90
|
__classPrivateFieldGet(this, _SpotLightApi_light, "f").target = value;
|
|
91
91
|
__classPrivateFieldGet(this, _SpotLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
|
|
92
92
|
__classPrivateFieldGet(this, _SpotLightApi_viewportApi, "f").update();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SpotLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/SpotLightApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SpotLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/SpotLightApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+EAA0E;AAI1E,0DAAqD;AAErD,MAAa,YAAa,SAAQ,mCAAgB;IAQjD,4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