@shapediver/viewer.viewport 3.16.7 → 3.16.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/implementation/PostProcessingApi.d.ts +37 -37
  2. package/dist/implementation/PostProcessingApi.js +149 -149
  3. package/dist/implementation/PostProcessingApi.js.map +1 -1
  4. package/dist/implementation/ViewportApi.d.ts +217 -217
  5. package/dist/implementation/ViewportApi.js +1003 -993
  6. package/dist/implementation/ViewportApi.js.map +1 -1
  7. package/dist/implementation/camera/AbstractCameraApi.d.ts +140 -140
  8. package/dist/implementation/camera/AbstractCameraApi.js +478 -478
  9. package/dist/implementation/camera/AbstractCameraApi.js.map +1 -1
  10. package/dist/implementation/camera/OrthographicCameraApi.d.ts +10 -10
  11. package/dist/implementation/camera/OrthographicCameraApi.js +47 -47
  12. package/dist/implementation/camera/OrthographicCameraApi.js.map +1 -1
  13. package/dist/implementation/camera/PerspectiveCameraApi.d.ts +10 -10
  14. package/dist/implementation/camera/PerspectiveCameraApi.js +46 -46
  15. package/dist/implementation/camera/PerspectiveCameraApi.js.map +1 -1
  16. package/dist/implementation/lights/AbstractLightApi.d.ts +19 -19
  17. package/dist/implementation/lights/AbstractLightApi.js +80 -80
  18. package/dist/implementation/lights/AbstractLightApi.js.map +1 -1
  19. package/dist/implementation/lights/LightSceneApi.d.ts +68 -68
  20. package/dist/implementation/lights/LightSceneApi.js +171 -171
  21. package/dist/implementation/lights/LightSceneApi.js.map +1 -1
  22. package/dist/implementation/lights/types/AmbientLightApi.d.ts +8 -8
  23. package/dist/implementation/lights/types/AmbientLightApi.js +26 -26
  24. package/dist/implementation/lights/types/AmbientLightApi.js.map +1 -1
  25. package/dist/implementation/lights/types/DirectionalLightApi.d.ts +17 -17
  26. package/dist/implementation/lights/types/DirectionalLightApi.js +76 -76
  27. package/dist/implementation/lights/types/DirectionalLightApi.js.map +1 -1
  28. package/dist/implementation/lights/types/HemisphereLightApi.d.ts +11 -11
  29. package/dist/implementation/lights/types/HemisphereLightApi.js +46 -46
  30. package/dist/implementation/lights/types/HemisphereLightApi.js.map +1 -1
  31. package/dist/implementation/lights/types/PointLightApi.d.ts +15 -15
  32. package/dist/implementation/lights/types/PointLightApi.js +66 -66
  33. package/dist/implementation/lights/types/PointLightApi.js.map +1 -1
  34. package/dist/implementation/lights/types/SpotLightApi.d.ts +21 -21
  35. package/dist/implementation/lights/types/SpotLightApi.js +96 -96
  36. package/dist/implementation/lights/types/SpotLightApi.js.map +1 -1
  37. package/dist/index.d.ts +52 -52
  38. package/dist/index.js +189 -189
  39. package/dist/interfaces/IPostProcessingApi.d.ts +183 -183
  40. package/dist/interfaces/IPostProcessingApi.js +2 -2
  41. package/dist/interfaces/IViewportApi.d.ts +699 -699
  42. package/dist/interfaces/IViewportApi.js +2 -2
  43. package/dist/interfaces/camera/ICameraApi.d.ts +256 -256
  44. package/dist/interfaces/camera/ICameraApi.js +2 -2
  45. package/dist/interfaces/camera/IOrthographicCameraApi.d.ts +13 -13
  46. package/dist/interfaces/camera/IOrthographicCameraApi.js +2 -2
  47. package/dist/interfaces/camera/IPerspectiveCameraApi.d.ts +12 -12
  48. package/dist/interfaces/camera/IPerspectiveCameraApi.js +2 -2
  49. package/dist/interfaces/lights/ILightApi.d.ts +35 -35
  50. package/dist/interfaces/lights/ILightApi.js +2 -2
  51. package/dist/interfaces/lights/ILightSceneApi.d.ts +138 -138
  52. package/dist/interfaces/lights/ILightSceneApi.js +2 -2
  53. package/dist/interfaces/lights/types/IAmbientLightApi.d.ts +6 -6
  54. package/dist/interfaces/lights/types/IAmbientLightApi.d.ts.map +1 -1
  55. package/dist/interfaces/lights/types/IAmbientLightApi.js +2 -2
  56. package/dist/interfaces/lights/types/IDirectionalLightApi.d.ts +24 -24
  57. package/dist/interfaces/lights/types/IDirectionalLightApi.js +2 -2
  58. package/dist/interfaces/lights/types/IHemisphereLightApi.d.ts +12 -12
  59. package/dist/interfaces/lights/types/IHemisphereLightApi.js +2 -2
  60. package/dist/interfaces/lights/types/IPointLightApi.d.ts +20 -20
  61. package/dist/interfaces/lights/types/IPointLightApi.js +2 -2
  62. package/dist/interfaces/lights/types/ISpotLightApi.d.ts +32 -32
  63. package/dist/interfaces/lights/types/ISpotLightApi.js +2 -2
  64. package/dist/main.d.ts +30 -30
  65. package/dist/main.d.ts.map +1 -1
  66. package/dist/main.js +91 -91
  67. package/dist/main.js.map +1 -1
  68. package/package.json +20 -20
@@ -1 +1 @@
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
+ {"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;QAEhB,yCAAsB;QACtB,+CAA2B;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,18 +1,18 @@
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
- export declare class DirectionalLightApi extends AbstractLightApi implements IDirectionalLightApi {
7
- #private;
8
- constructor(viewportApi: IViewportApi, light: IDirectionalLight);
9
- get castShadow(): boolean;
10
- set castShadow(value: boolean);
11
- get direction(): vec3;
12
- set direction(value: vec3);
13
- get shadowMapBias(): number;
14
- set shadowMapBias(value: number);
15
- get shadowMapResolution(): number;
16
- set shadowMapResolution(value: number);
17
- }
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
+ export declare class DirectionalLightApi extends AbstractLightApi implements IDirectionalLightApi {
7
+ #private;
8
+ constructor(viewportApi: IViewportApi, light: IDirectionalLight);
9
+ get castShadow(): boolean;
10
+ set castShadow(value: boolean);
11
+ get direction(): vec3;
12
+ set direction(value: vec3);
13
+ get shadowMapBias(): number;
14
+ set shadowMapBias(value: number);
15
+ get shadowMapResolution(): number;
16
+ set shadowMapResolution(value: number);
17
+ }
18
18
  //# sourceMappingURL=DirectionalLightApi.d.ts.map
@@ -1,77 +1,77 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _DirectionalLightApi_inputValidator, _DirectionalLightApi_light, _DirectionalLightApi_logger, _DirectionalLightApi_viewportApi;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.DirectionalLightApi = void 0;
16
- const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
17
- const AbstractLightApi_1 = require("../AbstractLightApi");
18
- class DirectionalLightApi extends AbstractLightApi_1.AbstractLightApi {
19
- // #endregion Properties (4)
20
- // #region Constructors (1)
21
- constructor(viewportApi, light) {
22
- super(viewportApi, light);
23
- // #region Properties (4)
24
- _DirectionalLightApi_inputValidator.set(this, viewer_shared_services_1.InputValidator.instance);
25
- _DirectionalLightApi_light.set(this, void 0);
26
- _DirectionalLightApi_logger.set(this, viewer_shared_services_1.Logger.instance);
27
- _DirectionalLightApi_viewportApi.set(this, void 0);
28
- __classPrivateFieldSet(this, _DirectionalLightApi_viewportApi, viewportApi, "f");
29
- __classPrivateFieldSet(this, _DirectionalLightApi_light, light, "f");
30
- this.scope = "DirectionalLightApi";
31
- }
32
- // #endregion Constructors (1)
33
- // #region Public Getters And Setters (8)
34
- get castShadow() {
35
- return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").castShadow;
36
- }
37
- set castShadow(value) {
38
- const scope = "castShadow";
39
- __classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "boolean");
40
- __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").castShadow = value;
41
- __classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
42
- __classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
43
- }
44
- get direction() {
45
- return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").direction;
46
- }
47
- set direction(value) {
48
- const scope = "direction";
49
- __classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "vec3");
50
- __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").direction = value;
51
- __classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
52
- __classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
53
- }
54
- get shadowMapBias() {
55
- return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapBias;
56
- }
57
- set shadowMapBias(value) {
58
- const scope = "shadowMapBias";
59
- __classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
60
- __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapBias = value;
61
- __classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
62
- __classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
63
- }
64
- get shadowMapResolution() {
65
- return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapResolution;
66
- }
67
- set shadowMapResolution(value) {
68
- const scope = "shadowMapResolution";
69
- __classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
70
- __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapResolution = value;
71
- __classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
72
- __classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
73
- }
74
- }
75
- exports.DirectionalLightApi = DirectionalLightApi;
76
- _DirectionalLightApi_inputValidator = new WeakMap(), _DirectionalLightApi_light = new WeakMap(), _DirectionalLightApi_logger = new WeakMap(), _DirectionalLightApi_viewportApi = new WeakMap();
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _DirectionalLightApi_inputValidator, _DirectionalLightApi_light, _DirectionalLightApi_logger, _DirectionalLightApi_viewportApi;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DirectionalLightApi = void 0;
16
+ const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
17
+ const AbstractLightApi_1 = require("../AbstractLightApi");
18
+ class DirectionalLightApi extends AbstractLightApi_1.AbstractLightApi {
19
+ // #endregion Properties (4)
20
+ // #region Constructors (1)
21
+ constructor(viewportApi, light) {
22
+ super(viewportApi, light);
23
+ // #region Properties (4)
24
+ _DirectionalLightApi_inputValidator.set(this, viewer_shared_services_1.InputValidator.instance);
25
+ _DirectionalLightApi_light.set(this, void 0);
26
+ _DirectionalLightApi_logger.set(this, viewer_shared_services_1.Logger.instance);
27
+ _DirectionalLightApi_viewportApi.set(this, void 0);
28
+ __classPrivateFieldSet(this, _DirectionalLightApi_viewportApi, viewportApi, "f");
29
+ __classPrivateFieldSet(this, _DirectionalLightApi_light, light, "f");
30
+ this.scope = "DirectionalLightApi";
31
+ }
32
+ // #endregion Constructors (1)
33
+ // #region Public Getters And Setters (8)
34
+ get castShadow() {
35
+ return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").castShadow;
36
+ }
37
+ set castShadow(value) {
38
+ const scope = "castShadow";
39
+ __classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "boolean");
40
+ __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").castShadow = value;
41
+ __classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
42
+ __classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
43
+ }
44
+ get direction() {
45
+ return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").direction;
46
+ }
47
+ set direction(value) {
48
+ const scope = "direction";
49
+ __classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "vec3");
50
+ __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").direction = value;
51
+ __classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
52
+ __classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
53
+ }
54
+ get shadowMapBias() {
55
+ return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapBias;
56
+ }
57
+ set shadowMapBias(value) {
58
+ const scope = "shadowMapBias";
59
+ __classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
60
+ __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapBias = value;
61
+ __classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
62
+ __classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
63
+ }
64
+ get shadowMapResolution() {
65
+ return __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapResolution;
66
+ }
67
+ set shadowMapResolution(value) {
68
+ const scope = "shadowMapResolution";
69
+ __classPrivateFieldGet(this, _DirectionalLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
70
+ __classPrivateFieldGet(this, _DirectionalLightApi_light, "f").shadowMapResolution = value;
71
+ __classPrivateFieldGet(this, _DirectionalLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
72
+ __classPrivateFieldGet(this, _DirectionalLightApi_viewportApi, "f").update();
73
+ }
74
+ }
75
+ exports.DirectionalLightApi = DirectionalLightApi;
76
+ _DirectionalLightApi_inputValidator = new WeakMap(), _DirectionalLightApi_light = new WeakMap(), _DirectionalLightApi_logger = new WeakMap(), _DirectionalLightApi_viewportApi = new WeakMap();
77
77
  //# sourceMappingURL=DirectionalLightApi.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DirectionalLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/DirectionalLightApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+EAA0E;AAI1E,0DAAqD;AAErD,MAAa,mBACZ,SAAQ,mCAAgB;IAUxB,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAyB,EAAE,KAAwB;QAC9D,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAZ3B,yBAAyB;QAEzB,8CAA2C,uCAAc,CAAC,QAAQ,EAAC;QACnE,6CAAmC;QACnC,sCAA2B,+BAAM,CAAC,QAAQ,EAAC;QAC3C,mDAAoC;QAQnC,uBAAA,IAAI,oCAAgB,WAAW,MAAA,CAAC;QAChC,uBAAA,IAAI,8BAAU,KAAK,MAAA,CAAC;QACpB,IAAI,CAAC,KAAK,GAAG,qBAAqB,CAAC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AAA,IAAI,2CAAgB,CAAC,gBAAgB,CACpC,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,EAAE,EACxB,KAAK,EACL,QAAQ,CACR,CAAC;QACF,uBAAA,IAAI,kCAAO,CAAC,aAAa,GAAG,KAAK,CAAC;QAClC,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;IAED,IAAW,mBAAmB;QAC7B,OAAO,uBAAA,IAAI,kCAAO,CAAC,mBAAmB,CAAC;IACxC,CAAC;IAED,IAAW,mBAAmB,CAAC,KAAa;QAC3C,MAAM,KAAK,GAAG,qBAAqB,CAAC;QACpC,uBAAA,IAAI,2CAAgB,CAAC,gBAAgB,CACpC,GAAG,IAAI,CAAC,KAAK,IAAI,KAAK,EAAE,EACxB,KAAK,EACL,QAAQ,CACR,CAAC;QACF,uBAAA,IAAI,kCAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC;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
+ {"version":3,"file":"DirectionalLightApi.js","sourceRoot":"","sources":["../../../../src/implementation/lights/types/DirectionalLightApi.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,+EAA0E;AAI1E,0DAAqD;AAErD,MAAa,mBACZ,SAAQ,mCAAgB;IAUxB,4BAA4B;IAE5B,2BAA2B;IAE3B,YAAY,WAAyB,EAAE,KAAwB;QAC9D,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC;QAZ3B,yBAAyB;QAEhB,8CAA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ediver/viewer.shared.types";
3
- import { IViewportApi } from "../../../interfaces/IViewportApi";
4
- import { IHemisphereLightApi } from "../../../interfaces/lights/types/IHemisphereLightApi";
5
- import { AbstractLightApi } from "../AbstractLightApi";
6
- export declare class HemisphereLightApi extends AbstractLightApi implements IHemisphereLightApi {
7
- #private;
8
- constructor(viewportApi: IViewportApi, light: IHemisphereLight);
9
- get groundColor(): Color;
10
- set groundColor(value: Color);
11
- }
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
+ export declare class HemisphereLightApi extends AbstractLightApi implements IHemisphereLightApi {
7
+ #private;
8
+ constructor(viewportApi: IViewportApi, light: IHemisphereLight);
9
+ get groundColor(): Color;
10
+ set groundColor(value: Color);
11
+ }
12
12
  //# sourceMappingURL=HemisphereLightApi.d.ts.map
@@ -1,47 +1,47 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _HemisphereLightApi_inputValidator, _HemisphereLightApi_light, _HemisphereLightApi_logger, _HemisphereLightApi_viewportApi;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.HemisphereLightApi = void 0;
16
- const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
17
- const AbstractLightApi_1 = require("../AbstractLightApi");
18
- class HemisphereLightApi extends AbstractLightApi_1.AbstractLightApi {
19
- // #endregion Properties (4)
20
- // #region Constructors (1)
21
- constructor(viewportApi, light) {
22
- super(viewportApi, light);
23
- // #region Properties (4)
24
- _HemisphereLightApi_inputValidator.set(this, viewer_shared_services_1.InputValidator.instance);
25
- _HemisphereLightApi_light.set(this, void 0);
26
- _HemisphereLightApi_logger.set(this, viewer_shared_services_1.Logger.instance);
27
- _HemisphereLightApi_viewportApi.set(this, void 0);
28
- __classPrivateFieldSet(this, _HemisphereLightApi_viewportApi, viewportApi, "f");
29
- __classPrivateFieldSet(this, _HemisphereLightApi_light, light, "f");
30
- this.scope = "HemisphereLightApi";
31
- }
32
- // #endregion Constructors (1)
33
- // #region Public Getters And Setters (2)
34
- get groundColor() {
35
- return __classPrivateFieldGet(this, _HemisphereLightApi_light, "f").groundColor;
36
- }
37
- set groundColor(value) {
38
- const scope = "groundColor";
39
- __classPrivateFieldGet(this, _HemisphereLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "color");
40
- __classPrivateFieldGet(this, _HemisphereLightApi_light, "f").groundColor = value;
41
- __classPrivateFieldGet(this, _HemisphereLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
42
- __classPrivateFieldGet(this, _HemisphereLightApi_viewportApi, "f").update();
43
- }
44
- }
45
- exports.HemisphereLightApi = HemisphereLightApi;
46
- _HemisphereLightApi_inputValidator = new WeakMap(), _HemisphereLightApi_light = new WeakMap(), _HemisphereLightApi_logger = new WeakMap(), _HemisphereLightApi_viewportApi = new WeakMap();
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _HemisphereLightApi_inputValidator, _HemisphereLightApi_light, _HemisphereLightApi_logger, _HemisphereLightApi_viewportApi;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.HemisphereLightApi = void 0;
16
+ const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
17
+ const AbstractLightApi_1 = require("../AbstractLightApi");
18
+ class HemisphereLightApi extends AbstractLightApi_1.AbstractLightApi {
19
+ // #endregion Properties (4)
20
+ // #region Constructors (1)
21
+ constructor(viewportApi, light) {
22
+ super(viewportApi, light);
23
+ // #region Properties (4)
24
+ _HemisphereLightApi_inputValidator.set(this, viewer_shared_services_1.InputValidator.instance);
25
+ _HemisphereLightApi_light.set(this, void 0);
26
+ _HemisphereLightApi_logger.set(this, viewer_shared_services_1.Logger.instance);
27
+ _HemisphereLightApi_viewportApi.set(this, void 0);
28
+ __classPrivateFieldSet(this, _HemisphereLightApi_viewportApi, viewportApi, "f");
29
+ __classPrivateFieldSet(this, _HemisphereLightApi_light, light, "f");
30
+ this.scope = "HemisphereLightApi";
31
+ }
32
+ // #endregion Constructors (1)
33
+ // #region Public Getters And Setters (2)
34
+ get groundColor() {
35
+ return __classPrivateFieldGet(this, _HemisphereLightApi_light, "f").groundColor;
36
+ }
37
+ set groundColor(value) {
38
+ const scope = "groundColor";
39
+ __classPrivateFieldGet(this, _HemisphereLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "color");
40
+ __classPrivateFieldGet(this, _HemisphereLightApi_light, "f").groundColor = value;
41
+ __classPrivateFieldGet(this, _HemisphereLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
42
+ __classPrivateFieldGet(this, _HemisphereLightApi_viewportApi, "f").update();
43
+ }
44
+ }
45
+ exports.HemisphereLightApi = HemisphereLightApi;
46
+ _HemisphereLightApi_inputValidator = new WeakMap(), _HemisphereLightApi_light = new WeakMap(), _HemisphereLightApi_logger = new WeakMap(), _HemisphereLightApi_viewportApi = new WeakMap();
47
47
  //# sourceMappingURL=HemisphereLightApi.js.map
@@ -1 +1 @@
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
+ {"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;QAEhB,6CAAkC,uCAAc,CAAC,QAAQ,EAAC;QAC1D,4CAAyB;QACzB,qCAAkB,+BAAM,CAAC,QAAQ,EAAC;QAClC,kDAA2B;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,16 +1,16 @@
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
- export declare class PointLightApi extends AbstractLightApi implements IPointLightApi {
7
- #private;
8
- constructor(viewportApi: IViewportApi, light: IPointLight);
9
- get decay(): number;
10
- set decay(value: number);
11
- get distance(): number;
12
- set distance(value: number);
13
- get position(): vec3;
14
- set position(value: vec3);
15
- }
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
+ export declare class PointLightApi extends AbstractLightApi implements IPointLightApi {
7
+ #private;
8
+ constructor(viewportApi: IViewportApi, light: IPointLight);
9
+ get decay(): number;
10
+ set decay(value: number);
11
+ get distance(): number;
12
+ set distance(value: number);
13
+ get position(): vec3;
14
+ set position(value: vec3);
15
+ }
16
16
  //# sourceMappingURL=PointLightApi.d.ts.map
@@ -1,67 +1,67 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _PointLightApi_inputValidator, _PointLightApi_light, _PointLightApi_logger, _PointLightApi_viewportApi;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.PointLightApi = void 0;
16
- const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
17
- const AbstractLightApi_1 = require("../AbstractLightApi");
18
- class PointLightApi extends AbstractLightApi_1.AbstractLightApi {
19
- // #endregion Properties (4)
20
- // #region Constructors (1)
21
- constructor(viewportApi, light) {
22
- super(viewportApi, light);
23
- // #region Properties (4)
24
- _PointLightApi_inputValidator.set(this, viewer_shared_services_1.InputValidator.instance);
25
- _PointLightApi_light.set(this, void 0);
26
- _PointLightApi_logger.set(this, viewer_shared_services_1.Logger.instance);
27
- _PointLightApi_viewportApi.set(this, void 0);
28
- __classPrivateFieldSet(this, _PointLightApi_viewportApi, viewportApi, "f");
29
- __classPrivateFieldSet(this, _PointLightApi_light, light, "f");
30
- this.scope = "PointLightApi";
31
- }
32
- // #endregion Constructors (1)
33
- // #region Public Getters And Setters (6)
34
- get decay() {
35
- return __classPrivateFieldGet(this, _PointLightApi_light, "f").decay;
36
- }
37
- set decay(value) {
38
- const scope = "decay";
39
- __classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
40
- __classPrivateFieldGet(this, _PointLightApi_light, "f").decay = value;
41
- __classPrivateFieldGet(this, _PointLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
42
- __classPrivateFieldGet(this, _PointLightApi_viewportApi, "f").update();
43
- }
44
- get distance() {
45
- return __classPrivateFieldGet(this, _PointLightApi_light, "f").distance;
46
- }
47
- set distance(value) {
48
- const scope = "distance";
49
- __classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
50
- __classPrivateFieldGet(this, _PointLightApi_light, "f").distance = value;
51
- __classPrivateFieldGet(this, _PointLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
52
- __classPrivateFieldGet(this, _PointLightApi_viewportApi, "f").update();
53
- }
54
- get position() {
55
- return __classPrivateFieldGet(this, _PointLightApi_light, "f").position;
56
- }
57
- set position(value) {
58
- const scope = "position";
59
- __classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "vec3");
60
- __classPrivateFieldGet(this, _PointLightApi_light, "f").position = value;
61
- __classPrivateFieldGet(this, _PointLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
62
- __classPrivateFieldGet(this, _PointLightApi_viewportApi, "f").update();
63
- }
64
- }
65
- exports.PointLightApi = PointLightApi;
66
- _PointLightApi_inputValidator = new WeakMap(), _PointLightApi_light = new WeakMap(), _PointLightApi_logger = new WeakMap(), _PointLightApi_viewportApi = new WeakMap();
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
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
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _PointLightApi_inputValidator, _PointLightApi_light, _PointLightApi_logger, _PointLightApi_viewportApi;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.PointLightApi = void 0;
16
+ const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
17
+ const AbstractLightApi_1 = require("../AbstractLightApi");
18
+ class PointLightApi extends AbstractLightApi_1.AbstractLightApi {
19
+ // #endregion Properties (4)
20
+ // #region Constructors (1)
21
+ constructor(viewportApi, light) {
22
+ super(viewportApi, light);
23
+ // #region Properties (4)
24
+ _PointLightApi_inputValidator.set(this, viewer_shared_services_1.InputValidator.instance);
25
+ _PointLightApi_light.set(this, void 0);
26
+ _PointLightApi_logger.set(this, viewer_shared_services_1.Logger.instance);
27
+ _PointLightApi_viewportApi.set(this, void 0);
28
+ __classPrivateFieldSet(this, _PointLightApi_viewportApi, viewportApi, "f");
29
+ __classPrivateFieldSet(this, _PointLightApi_light, light, "f");
30
+ this.scope = "PointLightApi";
31
+ }
32
+ // #endregion Constructors (1)
33
+ // #region Public Getters And Setters (6)
34
+ get decay() {
35
+ return __classPrivateFieldGet(this, _PointLightApi_light, "f").decay;
36
+ }
37
+ set decay(value) {
38
+ const scope = "decay";
39
+ __classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
40
+ __classPrivateFieldGet(this, _PointLightApi_light, "f").decay = value;
41
+ __classPrivateFieldGet(this, _PointLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
42
+ __classPrivateFieldGet(this, _PointLightApi_viewportApi, "f").update();
43
+ }
44
+ get distance() {
45
+ return __classPrivateFieldGet(this, _PointLightApi_light, "f").distance;
46
+ }
47
+ set distance(value) {
48
+ const scope = "distance";
49
+ __classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "number");
50
+ __classPrivateFieldGet(this, _PointLightApi_light, "f").distance = value;
51
+ __classPrivateFieldGet(this, _PointLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
52
+ __classPrivateFieldGet(this, _PointLightApi_viewportApi, "f").update();
53
+ }
54
+ get position() {
55
+ return __classPrivateFieldGet(this, _PointLightApi_light, "f").position;
56
+ }
57
+ set position(value) {
58
+ const scope = "position";
59
+ __classPrivateFieldGet(this, _PointLightApi_inputValidator, "f").validateAndError(`${this.scope}.${scope}`, value, "vec3");
60
+ __classPrivateFieldGet(this, _PointLightApi_light, "f").position = value;
61
+ __classPrivateFieldGet(this, _PointLightApi_logger, "f").debug(`${this.scope}.${scope}: ${scope} was set to: ${value}`);
62
+ __classPrivateFieldGet(this, _PointLightApi_viewportApi, "f").update();
63
+ }
64
+ }
65
+ exports.PointLightApi = PointLightApi;
66
+ _PointLightApi_inputValidator = new WeakMap(), _PointLightApi_light = new WeakMap(), _PointLightApi_logger = new WeakMap(), _PointLightApi_viewportApi = new WeakMap();
67
67
  //# sourceMappingURL=PointLightApi.js.map
@@ -1 +1 @@
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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AK,EAAE,EACxB,KAAK,EACL,MAAM,CACN,CAAC;QACF,uBAAA,IAAI,4BAAO,CAAC,QAAQ,GAAG,KAAK,CAAC;QAC7B,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,22 +1,22 @@
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
- export declare class SpotLightApi extends AbstractLightApi implements ISpotLightApi {
7
- #private;
8
- constructor(viewportApi: IViewportApi, light: ISpotLight);
9
- get angle(): number;
10
- set angle(value: number);
11
- get decay(): number;
12
- set decay(value: number);
13
- get distance(): number;
14
- set distance(value: number);
15
- get penumbra(): number;
16
- set penumbra(value: number);
17
- get position(): vec3;
18
- set position(value: vec3);
19
- get target(): vec3;
20
- set target(value: vec3);
21
- }
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
+ export declare class SpotLightApi extends AbstractLightApi implements ISpotLightApi {
7
+ #private;
8
+ constructor(viewportApi: IViewportApi, light: ISpotLight);
9
+ get angle(): number;
10
+ set angle(value: number);
11
+ get decay(): number;
12
+ set decay(value: number);
13
+ get distance(): number;
14
+ set distance(value: number);
15
+ get penumbra(): number;
16
+ set penumbra(value: number);
17
+ get position(): vec3;
18
+ set position(value: vec3);
19
+ get target(): vec3;
20
+ set target(value: vec3);
21
+ }
22
22
  //# sourceMappingURL=SpotLightApi.d.ts.map