@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,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IViewportApi.js.map
@@ -1,257 +1,257 @@
1
- import { CAMERA_TYPE, ICameraOptions } from "@shapediver/viewer.rendering-engine.camera-engine";
2
- import { IBox } from "@shapediver/viewer.shared.math";
3
- import { vec2, vec3 } from "gl-matrix";
4
- /**
5
- * The api for a camera, please see the definitions for the [perspective camera api]{@link IPerspectiveCameraApi} and the [orthographic camera api]{@link IOrthographicCameraApi} as this is just a shared interface for both.
6
- * A camera can be created by calling the corresponding method in the {@link IViewportApi}.
7
- * A camera has a multitude of properties and methods that can be used to adjust the behavior.
8
- */
9
- export interface ICameraApi {
10
- /**
11
- * The id of the camera.
12
- */
13
- readonly id: string;
14
- /**
15
- * The type of camera that is being used.
16
- */
17
- readonly type: CAMERA_TYPE;
18
- /**
19
- * If the camera is the default camera of the viewport.
20
- */
21
- readonly isDefault: boolean;
22
- /**
23
- * Option to automatically adjust the camera to the size of the scene whenever a call to
24
- * {@link ISessionApi.customize} replaced {@link ISessionApi.node}.
25
- * This does not happen in case {@link ISessionApi.automaticSceneUpdate} is set to false.
26
- */
27
- autoAdjust: boolean;
28
- /**
29
- * The speed of the camera for auto rotating.
30
- */
31
- autoRotationSpeed: number;
32
- /**
33
- * The standard duration for camera movements.
34
- */
35
- cameraMovementDuration: number;
36
- /**
37
- * The restrictions for the position of the camera with a cube.
38
- */
39
- cubePositionRestriction: {
40
- min: vec3;
41
- max: vec3;
42
- };
43
- /**
44
- * The restrictions for the target of the camera with a cube.
45
- */
46
- cubeTargetRestriction: {
47
- min: vec3;
48
- max: vec3;
49
- };
50
- /**
51
- * The damping factor for the camera.
52
- * The dampening affects how much the camera moves even after you let it got.
53
- * This smooths the usage of the camera.
54
- */
55
- damping: number;
56
- /**
57
- * The default position of the camera.
58
- */
59
- defaultPosition: vec3;
60
- /**
61
- * The default target of the camera.
62
- */
63
- defaultTarget: vec3;
64
- /**
65
- * Option to enable auto rotating.
66
- */
67
- enableAutoRotation: boolean;
68
- /**
69
- * Option to enable the rotation of the camera on the azimuth axis (left/right). (default: true)
70
- */
71
- enableAzimuthRotation: boolean;
72
- /**
73
- * Option to enable panning with key presses.
74
- */
75
- enableKeyPan: boolean;
76
- /**
77
- * Option to enable the object controls. (default: false)
78
- */
79
- enableObjectControls: boolean;
80
- /**
81
- * Option to enable panning. Panning can be done by pressing the right mouse button or three-finger touch events.
82
- */
83
- enablePan: boolean;
84
- /**
85
- * Option to enable the rotation of the camera on the polar axis (up/down). (default: true)
86
- */
87
- enablePolarRotation: boolean;
88
- /**
89
- * Option to enable rotating.
90
- */
91
- enableRotation: boolean;
92
- /**
93
- * Option to enable the turntable controls. (default: false)
94
- */
95
- enableTurntableControls: boolean;
96
- /**
97
- * Option to enable zooming. Zooming can be done with the mouse wheel or two-finger touch events.
98
- */
99
- enableZoom: boolean;
100
- /**
101
- * Option to enable / disable the movement of the camera.
102
- */
103
- enabled: boolean;
104
- /**
105
- * If the camera should automatically adjust to the size of the scene whenever the scene is loaded for the first time.
106
- */
107
- initialAutoAdjust: boolean;
108
- /**
109
- * The speed of the camera for key panning. The higher this value, the faster you can pan.
110
- */
111
- keyPanSpeed: number;
112
- /**
113
- * The factor for applying smoothing to the camera movement.
114
- * The various events that come in are blended together to ensure that extremes are not as pronounced.
115
- */
116
- movementSmoothness: number;
117
- /**
118
- * The name of the camera.
119
- * Used by the platform.
120
- */
121
- name?: string;
122
- /**
123
- * The center of the object when {@link enableObjectControls} is activated. (default: [0,0,0])
124
- */
125
- objectControlsCenter: vec3;
126
- /**
127
- * Optional order property for the camera.
128
- * Used by the platform.
129
- */
130
- order?: number;
131
- /**
132
- * The speed of the camera for panning. The higher this value, the faster you can pan.
133
- */
134
- panSpeed: number;
135
- /**
136
- * The current position of the camera.
137
- */
138
- position: vec3;
139
- /**
140
- * Option to animate the camera position and target to their defaults whenever the mouse/touch up event is fired.
141
- */
142
- revertAtMouseUp: boolean;
143
- /**
144
- * The standard duration for revertAtMouseUp animations.
145
- */
146
- revertAtMouseUpDuration: number;
147
- /**
148
- * The restrictions for the rotation of the camera.
149
- */
150
- rotationRestriction: {
151
- minPolarAngle: number;
152
- maxPolarAngle: number;
153
- minAzimuthAngle: number;
154
- maxAzimuthAngle: number;
155
- };
156
- /**
157
- * The speed of the camera for rotating.
158
- */
159
- rotationSpeed: number;
160
- /**
161
- * The restrictions for the position of the camera with a sphere.
162
- */
163
- spherePositionRestriction: {
164
- center: vec3;
165
- radius: number;
166
- };
167
- /**
168
- * The restrictions for the target of the camera with a sphere.
169
- */
170
- sphereTargetRestriction: {
171
- center: vec3;
172
- radius: number;
173
- };
174
- /**
175
- * The current target of the camera.
176
- */
177
- target: vec3;
178
- /**
179
- * The center of the turntable when {@link enableTurntableControls} is activated. (default: [0,0,0])
180
- */
181
- turntableCenter: vec3;
182
- /**
183
- * The restrictions for the zooming of the camera.
184
- */
185
- zoomRestriction: {
186
- minDistance: number;
187
- maxDistance: number;
188
- };
189
- /**
190
- * The speed of the camera for zooming. The higher this value, the faster you can zoom.
191
- */
192
- zoomSpeed: number;
193
- /**
194
- * The factor that is used when the {@link zoomTo} function is called.
195
- *
196
- * See also {@link calculateZoomTo}
197
- */
198
- zoomToFactor: number;
199
- /**
200
- * Let the camera follow a path along pairs of position and target.
201
- *
202
- * @param path The defined path.
203
- * @param options Various options to be adjusted.
204
- */
205
- animate(path: {
206
- position: vec3;
207
- target: vec3;
208
- }[], options?: ICameraOptions): Promise<boolean>;
209
- /**
210
- * Calculate the position and target which a call to {@link zoomTo} would result in.
211
- *
212
- * If no target to zoom to is provided, the current bounding box is used.
213
- * If no startingPosition and startingTarget are provided, the current camera position and target are used.
214
- *
215
- * @see {@link zoomToFactor}
216
- *
217
- * @param zoomTarget The target to zoom to.
218
- * @param startingPosition The starting position of the camera.
219
- * @param startingTarget The starting target of the camera.
220
- */
221
- calculateZoomTo(zoomTarget?: IBox, startingPosition?: vec3, startingTarget?: vec3): {
222
- position: vec3;
223
- target: vec3;
224
- };
225
- /**
226
- * Projects the vector from world space into the camera's normalized device coordinate (NDC) space.
227
- *
228
- * @param p The point in the scene to project.
229
- */
230
- project(p: vec3): vec2;
231
- /**
232
- * Reset / animate the camera to its default position and target.
233
- *
234
- * @param options Various options to be adjusted.
235
- */
236
- reset(options?: ICameraOptions): Promise<boolean>;
237
- /**
238
- * Set / animate the camera to a specific position and target.
239
- *
240
- * @param options Various options to be adjusted.
241
- */
242
- set(position: vec3, target: vec3, options?: ICameraOptions): Promise<boolean>;
243
- /**
244
- * Projects the vector from the camera's normalized device coordinate (NDC) space into world space.
245
- *
246
- * @param p The point on the screen to project.
247
- */
248
- unproject(p: vec3): vec3;
249
- /**
250
- * Zoom to a specific part of the scene, or the whole scene (default).
251
- *
252
- * @param zoomTarget The target to zoom to.
253
- * @param options Various options to be adjusted.
254
- */
255
- zoomTo(zoomTarget?: IBox, options?: ICameraOptions): Promise<boolean>;
256
- }
1
+ import { CAMERA_TYPE, ICameraOptions } from "@shapediver/viewer.rendering-engine.camera-engine";
2
+ import { IBox } from "@shapediver/viewer.shared.math";
3
+ import { vec2, vec3 } from "gl-matrix";
4
+ /**
5
+ * The api for a camera, please see the definitions for the [perspective camera api]{@link IPerspectiveCameraApi} and the [orthographic camera api]{@link IOrthographicCameraApi} as this is just a shared interface for both.
6
+ * A camera can be created by calling the corresponding method in the {@link IViewportApi}.
7
+ * A camera has a multitude of properties and methods that can be used to adjust the behavior.
8
+ */
9
+ export interface ICameraApi {
10
+ /**
11
+ * The id of the camera.
12
+ */
13
+ readonly id: string;
14
+ /**
15
+ * The type of camera that is being used.
16
+ */
17
+ readonly type: CAMERA_TYPE;
18
+ /**
19
+ * If the camera is the default camera of the viewport.
20
+ */
21
+ readonly isDefault: boolean;
22
+ /**
23
+ * Option to automatically adjust the camera to the size of the scene whenever a call to
24
+ * {@link ISessionApi.customize} replaced {@link ISessionApi.node}.
25
+ * This does not happen in case {@link ISessionApi.automaticSceneUpdate} is set to false.
26
+ */
27
+ autoAdjust: boolean;
28
+ /**
29
+ * The speed of the camera for auto rotating.
30
+ */
31
+ autoRotationSpeed: number;
32
+ /**
33
+ * The standard duration for camera movements.
34
+ */
35
+ cameraMovementDuration: number;
36
+ /**
37
+ * The restrictions for the position of the camera with a cube.
38
+ */
39
+ cubePositionRestriction: {
40
+ min: vec3;
41
+ max: vec3;
42
+ };
43
+ /**
44
+ * The restrictions for the target of the camera with a cube.
45
+ */
46
+ cubeTargetRestriction: {
47
+ min: vec3;
48
+ max: vec3;
49
+ };
50
+ /**
51
+ * The damping factor for the camera.
52
+ * The dampening affects how much the camera moves even after you let it got.
53
+ * This smooths the usage of the camera.
54
+ */
55
+ damping: number;
56
+ /**
57
+ * The default position of the camera.
58
+ */
59
+ defaultPosition: vec3;
60
+ /**
61
+ * The default target of the camera.
62
+ */
63
+ defaultTarget: vec3;
64
+ /**
65
+ * Option to enable auto rotating.
66
+ */
67
+ enableAutoRotation: boolean;
68
+ /**
69
+ * Option to enable the rotation of the camera on the azimuth axis (left/right). (default: true)
70
+ */
71
+ enableAzimuthRotation: boolean;
72
+ /**
73
+ * Option to enable panning with key presses.
74
+ */
75
+ enableKeyPan: boolean;
76
+ /**
77
+ * Option to enable the object controls. (default: false)
78
+ */
79
+ enableObjectControls: boolean;
80
+ /**
81
+ * Option to enable panning. Panning can be done by pressing the right mouse button or three-finger touch events.
82
+ */
83
+ enablePan: boolean;
84
+ /**
85
+ * Option to enable the rotation of the camera on the polar axis (up/down). (default: true)
86
+ */
87
+ enablePolarRotation: boolean;
88
+ /**
89
+ * Option to enable rotating.
90
+ */
91
+ enableRotation: boolean;
92
+ /**
93
+ * Option to enable the turntable controls. (default: false)
94
+ */
95
+ enableTurntableControls: boolean;
96
+ /**
97
+ * Option to enable zooming. Zooming can be done with the mouse wheel or two-finger touch events.
98
+ */
99
+ enableZoom: boolean;
100
+ /**
101
+ * Option to enable / disable the movement of the camera.
102
+ */
103
+ enabled: boolean;
104
+ /**
105
+ * If the camera should automatically adjust to the size of the scene whenever the scene is loaded for the first time.
106
+ */
107
+ initialAutoAdjust: boolean;
108
+ /**
109
+ * The speed of the camera for key panning. The higher this value, the faster you can pan.
110
+ */
111
+ keyPanSpeed: number;
112
+ /**
113
+ * The factor for applying smoothing to the camera movement.
114
+ * The various events that come in are blended together to ensure that extremes are not as pronounced.
115
+ */
116
+ movementSmoothness: number;
117
+ /**
118
+ * The name of the camera.
119
+ * Used by the platform.
120
+ */
121
+ name?: string;
122
+ /**
123
+ * The center of the object when {@link enableObjectControls} is activated. (default: [0,0,0])
124
+ */
125
+ objectControlsCenter: vec3;
126
+ /**
127
+ * Optional order property for the camera.
128
+ * Used by the platform.
129
+ */
130
+ order?: number;
131
+ /**
132
+ * The speed of the camera for panning. The higher this value, the faster you can pan.
133
+ */
134
+ panSpeed: number;
135
+ /**
136
+ * The current position of the camera.
137
+ */
138
+ position: vec3;
139
+ /**
140
+ * Option to animate the camera position and target to their defaults whenever the mouse/touch up event is fired.
141
+ */
142
+ revertAtMouseUp: boolean;
143
+ /**
144
+ * The standard duration for revertAtMouseUp animations.
145
+ */
146
+ revertAtMouseUpDuration: number;
147
+ /**
148
+ * The restrictions for the rotation of the camera.
149
+ */
150
+ rotationRestriction: {
151
+ minPolarAngle: number;
152
+ maxPolarAngle: number;
153
+ minAzimuthAngle: number;
154
+ maxAzimuthAngle: number;
155
+ };
156
+ /**
157
+ * The speed of the camera for rotating.
158
+ */
159
+ rotationSpeed: number;
160
+ /**
161
+ * The restrictions for the position of the camera with a sphere.
162
+ */
163
+ spherePositionRestriction: {
164
+ center: vec3;
165
+ radius: number;
166
+ };
167
+ /**
168
+ * The restrictions for the target of the camera with a sphere.
169
+ */
170
+ sphereTargetRestriction: {
171
+ center: vec3;
172
+ radius: number;
173
+ };
174
+ /**
175
+ * The current target of the camera.
176
+ */
177
+ target: vec3;
178
+ /**
179
+ * The center of the turntable when {@link enableTurntableControls} is activated. (default: [0,0,0])
180
+ */
181
+ turntableCenter: vec3;
182
+ /**
183
+ * The restrictions for the zooming of the camera.
184
+ */
185
+ zoomRestriction: {
186
+ minDistance: number;
187
+ maxDistance: number;
188
+ };
189
+ /**
190
+ * The speed of the camera for zooming. The higher this value, the faster you can zoom.
191
+ */
192
+ zoomSpeed: number;
193
+ /**
194
+ * The factor that is used when the {@link zoomTo} function is called.
195
+ *
196
+ * See also {@link calculateZoomTo}
197
+ */
198
+ zoomToFactor: number;
199
+ /**
200
+ * Let the camera follow a path along pairs of position and target.
201
+ *
202
+ * @param path The defined path.
203
+ * @param options Various options to be adjusted.
204
+ */
205
+ animate(path: {
206
+ position: vec3;
207
+ target: vec3;
208
+ }[], options?: ICameraOptions): Promise<boolean>;
209
+ /**
210
+ * Calculate the position and target which a call to {@link zoomTo} would result in.
211
+ *
212
+ * If no target to zoom to is provided, the current bounding box is used.
213
+ * If no startingPosition and startingTarget are provided, the current camera position and target are used.
214
+ *
215
+ * @see {@link zoomToFactor}
216
+ *
217
+ * @param zoomTarget The target to zoom to.
218
+ * @param startingPosition The starting position of the camera.
219
+ * @param startingTarget The starting target of the camera.
220
+ */
221
+ calculateZoomTo(zoomTarget?: IBox, startingPosition?: vec3, startingTarget?: vec3): {
222
+ position: vec3;
223
+ target: vec3;
224
+ };
225
+ /**
226
+ * Projects the vector from world space into the camera's normalized device coordinate (NDC) space.
227
+ *
228
+ * @param p The point in the scene to project.
229
+ */
230
+ project(p: vec3): vec2;
231
+ /**
232
+ * Reset / animate the camera to its default position and target.
233
+ *
234
+ * @param options Various options to be adjusted.
235
+ */
236
+ reset(options?: ICameraOptions): Promise<boolean>;
237
+ /**
238
+ * Set / animate the camera to a specific position and target.
239
+ *
240
+ * @param options Various options to be adjusted.
241
+ */
242
+ set(position: vec3, target: vec3, options?: ICameraOptions): Promise<boolean>;
243
+ /**
244
+ * Projects the vector from the camera's normalized device coordinate (NDC) space into world space.
245
+ *
246
+ * @param p The point on the screen to project.
247
+ */
248
+ unproject(p: vec3): vec3;
249
+ /**
250
+ * Zoom to a specific part of the scene, or the whole scene (default).
251
+ *
252
+ * @param zoomTarget The target to zoom to.
253
+ * @param options Various options to be adjusted.
254
+ */
255
+ zoomTo(zoomTarget?: IBox, options?: ICameraOptions): Promise<boolean>;
256
+ }
257
257
  //# sourceMappingURL=ICameraApi.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=ICameraApi.js.map
@@ -1,14 +1,14 @@
1
- import { ORTHOGRAPHIC_CAMERA_DIRECTION } from "@shapediver/viewer.rendering-engine.camera-engine";
2
- import { ICameraApi } from "./ICameraApi";
3
- /**
4
- * The api for an orthographic camera.
5
- * An orthographic camera can be created by calling the {@link createOrthographicCamera} method.
6
- * A camera has a multitude of properties and methods that can be used to adjust the behavior.
7
- */
8
- export interface IOrthographicCameraApi extends ICameraApi {
9
- /**
10
- * The direction of the camera. (default: ORTHOGRAPHIC_CAMERA_DIRECTION.CUSTOM)
11
- */
12
- direction: ORTHOGRAPHIC_CAMERA_DIRECTION;
13
- }
1
+ import { ORTHOGRAPHIC_CAMERA_DIRECTION } from "@shapediver/viewer.rendering-engine.camera-engine";
2
+ import { ICameraApi } from "./ICameraApi";
3
+ /**
4
+ * The api for an orthographic camera.
5
+ * An orthographic camera can be created by calling the {@link createOrthographicCamera} method.
6
+ * A camera has a multitude of properties and methods that can be used to adjust the behavior.
7
+ */
8
+ export interface IOrthographicCameraApi extends ICameraApi {
9
+ /**
10
+ * The direction of the camera. (default: ORTHOGRAPHIC_CAMERA_DIRECTION.CUSTOM)
11
+ */
12
+ direction: ORTHOGRAPHIC_CAMERA_DIRECTION;
13
+ }
14
14
  //# sourceMappingURL=IOrthographicCameraApi.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IOrthographicCameraApi.js.map
@@ -1,13 +1,13 @@
1
- import { ICameraApi } from "./ICameraApi";
2
- /**
3
- * The api for a perspective camera.
4
- * A perspective camera can be created by calling the {@link createPerspectiveCamera} method.
5
- * A camera has a multitude of properties and methods that can be used to adjust the behavior.
6
- */
7
- export interface IPerspectiveCameraApi extends ICameraApi {
8
- /**
9
- * The field of view for the camera.
10
- */
11
- fov: number;
12
- }
1
+ import { ICameraApi } from "./ICameraApi";
2
+ /**
3
+ * The api for a perspective camera.
4
+ * A perspective camera can be created by calling the {@link createPerspectiveCamera} method.
5
+ * A camera has a multitude of properties and methods that can be used to adjust the behavior.
6
+ */
7
+ export interface IPerspectiveCameraApi extends ICameraApi {
8
+ /**
9
+ * The field of view for the camera.
10
+ */
11
+ fov: number;
12
+ }
13
13
  //# sourceMappingURL=IPerspectiveCameraApi.d.ts.map
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=IPerspectiveCameraApi.js.map
@@ -1,36 +1,36 @@
1
- import { LIGHT_TYPE } from "@shapediver/viewer.rendering-engine.light-engine";
2
- import { Color } from "@shapediver/viewer.shared.types";
3
- /**
4
- * The api for a light, please see the definitions for [ambient]{@link IAmbientLightApi}, [directional]{@link IDirectionalLightApi}, [hemisphere]{@link IHemisphereLightApi}, [point]{@link IPointLightApi} and [spot]{@link ISpotLightApi} as this is just a shared interface for all of them.
5
- * A light can be created by calling the corresponding method in the [light scene]{@link ILightSceneApi}.
6
- * A light has a multitude of properties and methods that can be used to adjust the behavior.
7
- */
8
- export interface ILightApi {
9
- /**
10
- * The id of the light.
11
- */
12
- readonly id: string;
13
- /**
14
- * The type of the light.
15
- */
16
- readonly type: LIGHT_TYPE;
17
- /**
18
- * The color of the light.
19
- */
20
- color: Color;
21
- /**
22
- * The intensity of the light.
23
- */
24
- intensity: number;
25
- /**
26
- * The name of the light.
27
- * Used by the platform.
28
- */
29
- name?: string;
30
- /**
31
- * The order of the light.
32
- * Used by the platform.
33
- */
34
- order?: number;
35
- }
1
+ import { LIGHT_TYPE } from "@shapediver/viewer.rendering-engine.light-engine";
2
+ import { Color } from "@shapediver/viewer.shared.types";
3
+ /**
4
+ * The api for a light, please see the definitions for [ambient]{@link IAmbientLightApi}, [directional]{@link IDirectionalLightApi}, [hemisphere]{@link IHemisphereLightApi}, [point]{@link IPointLightApi} and [spot]{@link ISpotLightApi} as this is just a shared interface for all of them.
5
+ * A light can be created by calling the corresponding method in the [light scene]{@link ILightSceneApi}.
6
+ * A light has a multitude of properties and methods that can be used to adjust the behavior.
7
+ */
8
+ export interface ILightApi {
9
+ /**
10
+ * The id of the light.
11
+ */
12
+ readonly id: string;
13
+ /**
14
+ * The type of the light.
15
+ */
16
+ readonly type: LIGHT_TYPE;
17
+ /**
18
+ * The color of the light.
19
+ */
20
+ color: Color;
21
+ /**
22
+ * The intensity of the light.
23
+ */
24
+ intensity: number;
25
+ /**
26
+ * The name of the light.
27
+ * Used by the platform.
28
+ */
29
+ name?: string;
30
+ /**
31
+ * The order of the light.
32
+ * Used by the platform.
33
+ */
34
+ order?: number;
35
+ }
36
36
  //# sourceMappingURL=ILightApi.d.ts.map