@shapediver/viewer.shared.types 2.12.7 → 3.0.0

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 (118) hide show
  1. package/dist/implementation/data/GeometryData.d.ts +24 -30
  2. package/dist/implementation/data/GeometryData.d.ts.map +1 -1
  3. package/dist/implementation/data/GeometryData.js +100 -106
  4. package/dist/implementation/data/GeometryData.js.map +1 -1
  5. package/dist/implementation/data/HTMLElementAnchorData.d.ts.map +1 -1
  6. package/dist/implementation/data/HTMLElementAnchorData.js +3 -14
  7. package/dist/implementation/data/HTMLElementAnchorData.js.map +1 -1
  8. package/dist/implementation/material/AbstractMaterialData.d.ts +11 -8
  9. package/dist/implementation/material/AbstractMaterialData.d.ts.map +1 -1
  10. package/dist/implementation/material/AbstractMaterialData.js +32 -9
  11. package/dist/implementation/material/AbstractMaterialData.js.map +1 -1
  12. package/dist/implementation/material/MapData.d.ts +9 -3
  13. package/dist/implementation/material/MapData.d.ts.map +1 -1
  14. package/dist/implementation/material/MapData.js +24 -6
  15. package/dist/implementation/material/MapData.js.map +1 -1
  16. package/dist/implementation/material/MaterialBasicLineData.d.ts +15 -0
  17. package/dist/implementation/material/MaterialBasicLineData.d.ts.map +1 -0
  18. package/dist/implementation/material/MaterialBasicLineData.js +91 -0
  19. package/dist/implementation/material/MaterialBasicLineData.js.map +1 -0
  20. package/dist/implementation/material/MaterialGemData.d.ts.map +1 -1
  21. package/dist/implementation/material/MaterialGemData.js +23 -14
  22. package/dist/implementation/material/MaterialGemData.js.map +1 -1
  23. package/dist/implementation/material/MaterialMultiPointData.d.ts +102 -0
  24. package/dist/implementation/material/MaterialMultiPointData.d.ts.map +1 -0
  25. package/dist/implementation/material/MaterialMultiPointData.js +603 -0
  26. package/dist/implementation/material/MaterialMultiPointData.js.map +1 -0
  27. package/dist/implementation/material/MaterialPointData.d.ts +20 -0
  28. package/dist/implementation/material/MaterialPointData.d.ts.map +1 -0
  29. package/dist/implementation/material/MaterialPointData.js +132 -0
  30. package/dist/implementation/material/MaterialPointData.js.map +1 -0
  31. package/dist/implementation/material/MaterialSpecularGlossinessData.d.ts.map +1 -1
  32. package/dist/implementation/material/MaterialSpecularGlossinessData.js +9 -0
  33. package/dist/implementation/material/MaterialSpecularGlossinessData.js.map +1 -1
  34. package/dist/implementation/material/MaterialStandardData.d.ts.map +1 -1
  35. package/dist/implementation/material/MaterialStandardData.js +9 -0
  36. package/dist/implementation/material/MaterialStandardData.js.map +1 -1
  37. package/dist/implementation/material/MaterialUnlitData.d.ts.map +1 -1
  38. package/dist/implementation/material/MaterialUnlitData.js +9 -0
  39. package/dist/implementation/material/MaterialUnlitData.js.map +1 -1
  40. package/dist/index.d.ts +42 -34
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +40 -31
  43. package/dist/index.js.map +1 -1
  44. package/dist/interfaces/data/material/IMapData.d.ts +3 -1
  45. package/dist/interfaces/data/material/IMapData.d.ts.map +1 -1
  46. package/dist/interfaces/data/material/IMaterialAbstractData.d.ts +47 -44
  47. package/dist/interfaces/data/material/IMaterialAbstractData.d.ts.map +1 -1
  48. package/dist/interfaces/data/material/IMaterialAbstractData.js +10 -7
  49. package/dist/interfaces/data/material/IMaterialAbstractData.js.map +1 -1
  50. package/dist/interfaces/data/material/IMaterialBasicLineData.d.ts +7 -0
  51. package/dist/interfaces/data/material/IMaterialBasicLineData.d.ts.map +1 -0
  52. package/dist/interfaces/data/material/IMaterialBasicLineData.js +4 -0
  53. package/dist/interfaces/data/material/IMaterialBasicLineData.js.map +1 -0
  54. package/dist/interfaces/data/material/IMaterialMultiPointData.d.ts +94 -0
  55. package/dist/interfaces/data/material/IMaterialMultiPointData.d.ts.map +1 -0
  56. package/dist/interfaces/data/material/IMaterialMultiPointData.js +4 -0
  57. package/dist/interfaces/data/material/IMaterialMultiPointData.js.map +1 -0
  58. package/dist/interfaces/data/material/IMaterialPointData.d.ts +12 -0
  59. package/dist/interfaces/data/material/IMaterialPointData.d.ts.map +1 -0
  60. package/dist/interfaces/data/material/IMaterialPointData.js +3 -0
  61. package/dist/interfaces/data/material/IMaterialPointData.js.map +1 -0
  62. package/dist/interfaces/events/EventResponseMapping.d.ts +20 -8
  63. package/dist/interfaces/events/EventResponseMapping.d.ts.map +1 -1
  64. package/dist/interfaces/events/EventResponseMapping.js.map +1 -1
  65. package/dist/interfaces/events/ICameraEvent.d.ts +8 -1
  66. package/dist/interfaces/events/ICameraEvent.d.ts.map +1 -1
  67. package/dist/interfaces/events/IOutputEvent.d.ts +20 -4
  68. package/dist/interfaces/events/IOutputEvent.d.ts.map +1 -1
  69. package/dist/interfaces/events/IParameterEvent.d.ts +16 -0
  70. package/dist/interfaces/events/IParameterEvent.d.ts.map +1 -0
  71. package/dist/interfaces/events/IParameterEvent.js +3 -0
  72. package/dist/interfaces/events/IParameterEvent.js.map +1 -0
  73. package/dist/interfaces/events/IRenderingEvent.d.ts +7 -0
  74. package/dist/interfaces/events/IRenderingEvent.d.ts.map +1 -0
  75. package/dist/interfaces/events/IRenderingEvent.js +3 -0
  76. package/dist/interfaces/events/IRenderingEvent.js.map +1 -0
  77. package/dist/interfaces/events/ISceneEvent.d.ts +9 -2
  78. package/dist/interfaces/events/ISceneEvent.d.ts.map +1 -1
  79. package/dist/interfaces/events/ISessionEvent.d.ts +8 -1
  80. package/dist/interfaces/events/ISessionEvent.d.ts.map +1 -1
  81. package/dist/interfaces/events/ITaskEvent.d.ts +31 -8
  82. package/dist/interfaces/events/ITaskEvent.d.ts.map +1 -1
  83. package/dist/interfaces/events/ITaskEvent.js +7 -0
  84. package/dist/interfaces/events/ITaskEvent.js.map +1 -1
  85. package/dist/interfaces/events/IViewportEvent.d.ts +5 -1
  86. package/dist/interfaces/events/IViewportEvent.d.ts.map +1 -1
  87. package/dist/types.d.ts +46 -1
  88. package/dist/types.d.ts.map +1 -1
  89. package/dist/types.js +4 -0
  90. package/dist/types.js.map +1 -1
  91. package/package.json +6 -5
  92. package/src/implementation/data/GeometryData.ts +139 -140
  93. package/src/implementation/data/HTMLElementAnchorData.ts +3 -14
  94. package/src/implementation/material/AbstractMaterialData.ts +48 -20
  95. package/src/implementation/material/MapData.ts +32 -8
  96. package/src/implementation/material/MaterialBasicLineData.ts +99 -0
  97. package/src/implementation/material/MaterialGemData.ts +23 -14
  98. package/src/implementation/material/MaterialMultiPointData.ts +659 -0
  99. package/src/implementation/material/MaterialPointData.ts +136 -0
  100. package/src/implementation/material/MaterialSpecularGlossinessData.ts +9 -0
  101. package/src/implementation/material/MaterialStandardData.ts +9 -0
  102. package/src/implementation/material/MaterialUnlitData.ts +9 -0
  103. package/src/index.ts +92 -57
  104. package/src/interfaces/data/material/IMapData.ts +3 -1
  105. package/src/interfaces/data/material/IMaterialAbstractData.ts +64 -51
  106. package/src/interfaces/data/material/IMaterialBasicLineData.ts +20 -0
  107. package/src/interfaces/data/material/IMaterialMultiPointData.ts +112 -0
  108. package/src/interfaces/data/material/IMaterialPointData.ts +26 -0
  109. package/src/interfaces/events/EventResponseMapping.ts +29 -8
  110. package/src/interfaces/events/ICameraEvent.ts +12 -1
  111. package/src/interfaces/events/IOutputEvent.ts +24 -4
  112. package/src/interfaces/events/IParameterEvent.ts +21 -0
  113. package/src/interfaces/events/IRenderingEvent.ts +7 -0
  114. package/src/interfaces/events/ISceneEvent.ts +13 -2
  115. package/src/interfaces/events/ISessionEvent.ts +13 -2
  116. package/src/interfaces/events/ITaskEvent.ts +43 -8
  117. package/src/interfaces/events/IViewportEvent.ts +9 -1
  118. package/src/types.ts +67 -2
@@ -0,0 +1,112 @@
1
+ import { Color } from '../../../types';
2
+ import { IMapData } from './IMapData';
3
+ import { IMaterialAbstractData, IMaterialAbstractDataProperties } from './IMaterialAbstractData';
4
+
5
+ // #region Interfaces (2)
6
+
7
+ export interface IMaterialMultiPointData extends IMaterialAbstractData {
8
+ // #region Properties (20)
9
+
10
+ alphaMap_0?: IMapData;
11
+ alphaMap_1?: IMapData;
12
+ alphaMap_2?: IMapData;
13
+ alphaMap_3?: IMapData;
14
+ alphaMap_4?: IMapData;
15
+ alphaMap_5?: IMapData;
16
+ alphaMap_6?: IMapData;
17
+ alphaMap_7?: IMapData;
18
+ color_0?: Color;
19
+ color_1?: Color;
20
+ color_2?: Color;
21
+ color_3?: Color;
22
+ color_4?: Color;
23
+ color_5?: Color;
24
+ color_6?: Color;
25
+ color_7?: Color;
26
+ map_0?: IMapData;
27
+ map_1?: IMapData;
28
+ map_2?: IMapData;
29
+ map_3?: IMapData;
30
+ map_4?: IMapData;
31
+ map_5?: IMapData;
32
+ map_6?: IMapData;
33
+ map_7?: IMapData;
34
+ materialIndexDataMap?: IMapData;
35
+ materialIndexDataMapSize?: number;
36
+ sizeAttenuation_0?: boolean;
37
+ sizeAttenuation_1?: boolean;
38
+ sizeAttenuation_2?: boolean;
39
+ sizeAttenuation_3?: boolean;
40
+ sizeAttenuation_4?: boolean;
41
+ sizeAttenuation_5?: boolean;
42
+ sizeAttenuation_6?: boolean;
43
+ sizeAttenuation_7?: boolean;
44
+ size_0?: number;
45
+ size_1?: number;
46
+ size_2?: number;
47
+ size_3?: number;
48
+ size_4?: number;
49
+ size_5?: number;
50
+ size_6?: number;
51
+ size_7?: number;
52
+
53
+ // #endregion Properties (20)
54
+
55
+ // #region Public Methods (2)
56
+
57
+ clone(): IMaterialMultiPointData;
58
+ copy(source: IMaterialMultiPointData): void;
59
+
60
+ // #endregion Public Methods (2)
61
+ }
62
+
63
+ export interface IMaterialMultiPointDataProperties extends IMaterialAbstractDataProperties {
64
+ // #region Properties (20)
65
+
66
+ alphaMap_0?: IMapData;
67
+ alphaMap_1?: IMapData;
68
+ alphaMap_2?: IMapData;
69
+ alphaMap_3?: IMapData;
70
+ alphaMap_4?: IMapData;
71
+ alphaMap_5?: IMapData;
72
+ alphaMap_6?: IMapData;
73
+ alphaMap_7?: IMapData;
74
+ color_0?: Color;
75
+ color_1?: Color;
76
+ color_2?: Color;
77
+ color_3?: Color;
78
+ color_4?: Color;
79
+ color_5?: Color;
80
+ color_6?: Color;
81
+ color_7?: Color;
82
+ map_0?: IMapData;
83
+ map_1?: IMapData;
84
+ map_2?: IMapData;
85
+ map_3?: IMapData;
86
+ map_4?: IMapData;
87
+ map_5?: IMapData;
88
+ map_6?: IMapData;
89
+ map_7?: IMapData;
90
+ materialIndexDataMap?: IMapData;
91
+ materialIndexDataMapSize?: number;
92
+ sizeAttenuation_0?: boolean;
93
+ sizeAttenuation_1?: boolean;
94
+ sizeAttenuation_2?: boolean;
95
+ sizeAttenuation_3?: boolean;
96
+ sizeAttenuation_4?: boolean;
97
+ sizeAttenuation_5?: boolean;
98
+ sizeAttenuation_6?: boolean;
99
+ sizeAttenuation_7?: boolean;
100
+ size_0?: number;
101
+ size_1?: number;
102
+ size_2?: number;
103
+ size_3?: number;
104
+ size_4?: number;
105
+ size_5?: number;
106
+ size_6?: number;
107
+ size_7?: number;
108
+
109
+ // #endregion Properties (20)
110
+ }
111
+
112
+ // #endregion Interfaces (2)
@@ -0,0 +1,26 @@
1
+ import { IMaterialAbstractData, IMaterialAbstractDataProperties } from './IMaterialAbstractData';
2
+
3
+ export interface IMaterialPointDataProperties extends IMaterialAbstractDataProperties {
4
+ // #region Properties (2)
5
+
6
+ size?: number,
7
+ sizeAttenuation?: boolean
8
+
9
+ // #endregion Properties (2)
10
+ }
11
+
12
+ export interface IMaterialPointData extends IMaterialAbstractData {
13
+ // #region Properties (2)
14
+
15
+ size?: number,
16
+ sizeAttenuation?: boolean
17
+
18
+ // #endregion Properties (2)
19
+
20
+ // #region Public Methods (2)
21
+
22
+ clone(): IMaterialPointData;
23
+ copy(source: IMaterialPointData): void;
24
+
25
+ // #endregion Public Methods (2)
26
+ }
@@ -1,17 +1,34 @@
1
- import { EVENTTYPE_CAMERA, EVENTTYPE_INTERACTION, EVENTTYPE_OUTPUT, EVENTTYPE_RENDERING, EVENTTYPE_SCENE, EVENTTYPE_SESSION, EVENTTYPE_TASK, EVENTTYPE_VIEWPORT } from "@shapediver/viewer.shared.services";
2
- import { ICameraEvent } from "./ICameraEvent";
3
- import { ISceneEvent } from "./ISceneEvent";
4
- import { ISessionEvent } from "./ISessionEvent";
5
- import { ITaskEvent } from "./ITaskEvent";
6
- import { IViewportEvent } from "./IViewportEvent";
7
- import { IOutputEvent } from "./IOutputEvent";
1
+ import {
2
+ EVENTTYPE_CAMERA,
3
+ EVENTTYPE_OUTPUT,
4
+ EVENTTYPE_PARAMETER,
5
+ EVENTTYPE_RENDERING,
6
+ EVENTTYPE_SCENE,
7
+ EVENTTYPE_SESSION,
8
+ EVENTTYPE_TASK,
9
+ EVENTTYPE_VIEWPORT
10
+ } from '@shapediver/viewer.shared.services';
11
+ import { ICameraEvent } from './ICameraEvent';
12
+ import { IOutputEvent } from './IOutputEvent';
13
+ import { IRenderingEvent } from './IRenderingEvent';
14
+ import { ISceneEvent } from './ISceneEvent';
15
+ import { ISessionEvent } from './ISessionEvent';
16
+ import { ITaskEvent } from './ITaskEvent';
17
+ import { IViewportEvent } from './IViewportEvent';
18
+ import { IParameterEvent } from './IParameterEvent';
8
19
 
20
+ /**
21
+ * Definition of the event response mapping.
22
+ * This mapping is used to map the event type to the corresponding event interface.
23
+ */
9
24
  export type EventResponseMapping = {
10
25
  [EVENTTYPE_CAMERA.CAMERA_START]: ICameraEvent,
11
26
  [EVENTTYPE_CAMERA.CAMERA_MOVE]: ICameraEvent,
12
27
  [EVENTTYPE_CAMERA.CAMERA_END]: ICameraEvent,
13
28
  [EVENTTYPE_OUTPUT.OUTPUT_UPDATED]: IOutputEvent,
14
- [EVENTTYPE_RENDERING.BEAUTY_RENDERING_FINISHED]: IViewportEvent,
29
+ [EVENTTYPE_PARAMETER.PARAMETER_VALUE_CHANGED]: IParameterEvent,
30
+ [EVENTTYPE_PARAMETER.PARAMETER_SESSION_VALUE_CHANGED]: IParameterEvent,
31
+ [EVENTTYPE_RENDERING.BEAUTY_RENDERING_FINISHED]: IRenderingEvent,
15
32
  [EVENTTYPE_SCENE.SCENE_BOUNDING_BOX_CHANGE]: ISceneEvent,
16
33
  [EVENTTYPE_SCENE.SCENE_BOUNDING_BOX_EMPTY]: ISceneEvent,
17
34
  [EVENTTYPE_VIEWPORT.BUSY_MODE_ON]: IViewportEvent,
@@ -21,10 +38,14 @@ export type EventResponseMapping = {
21
38
  [EVENTTYPE_VIEWPORT.VIEWPORT_CLOSED]: IViewportEvent,
22
39
  [EVENTTYPE_VIEWPORT.VIEWPORT_VISIBLE]: IViewportEvent,
23
40
  [EVENTTYPE_VIEWPORT.VIEWPORT_HIDDEN]: IViewportEvent,
41
+ [EVENTTYPE_VIEWPORT.BUSY_MODE_ON]: IViewportEvent,
42
+ [EVENTTYPE_VIEWPORT.BUSY_MODE_OFF]: IViewportEvent,
43
+ [EVENTTYPE_VIEWPORT.VIEWPORT_SETTINGS_LOADED]: IViewportEvent,
24
44
  [EVENTTYPE_SESSION.SESSION_CREATED]: ISessionEvent,
25
45
  [EVENTTYPE_SESSION.SESSION_CUSTOMIZED]: ISessionEvent,
26
46
  [EVENTTYPE_SESSION.SESSION_CLOSED]: ISessionEvent,
27
47
  [EVENTTYPE_SESSION.SESSION_INITIAL_OUTPUTS_LOADED]: ISessionEvent,
48
+ [EVENTTYPE_SESSION.SESSION_SDTF_DELAYED_LOADED]: ISessionEvent,
28
49
  [EVENTTYPE_TASK.TASK_START]: ITaskEvent,
29
50
  [EVENTTYPE_TASK.TASK_PROCESS]: ITaskEvent,
30
51
  [EVENTTYPE_TASK.TASK_END]: ITaskEvent,
@@ -1,5 +1,16 @@
1
- import { IViewportEvent } from "./IViewportEvent";
1
+ import { IViewportEvent } from './IViewportEvent';
2
2
 
3
+ /**
4
+ * Definition of the camera event.
5
+ * These events are sent when the camera starts, moves or ends ({@link EVENTTYPE_CAMERA}).
6
+ */
3
7
  export interface ICameraEvent extends IViewportEvent {
8
+ // #region Properties (1)
9
+
10
+ /**
11
+ * The id of the camera.
12
+ */
4
13
  cameraId: string,
14
+
15
+ // #endregion Properties (1)
5
16
  }
@@ -1,9 +1,29 @@
1
- import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
2
- import { IEvent } from "@shapediver/viewer.shared.services";
1
+ import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
2
+ import { IEvent } from '@shapediver/viewer.shared.services';
3
3
 
4
+ /**
5
+ * Definition of the output event.
6
+ * These events are sent for output specific events ({@link EVENTTYPE_OUTPUT}).
7
+ */
4
8
  export interface IOutputEvent extends IEvent {
5
- outputId: string,
6
- outputVersion: string,
9
+ // #region Properties (4)
10
+
11
+ /**
12
+ * The new node of the output.
13
+ */
7
14
  newNode?: ITreeNode,
15
+ /**
16
+ * The old node of the output.
17
+ */
8
18
  oldNode?: ITreeNode
19
+ /**
20
+ * The id of the output.
21
+ */
22
+ outputId: string,
23
+ /**
24
+ * The version of the output.
25
+ */
26
+ outputVersion: string,
27
+
28
+ // #endregion Properties (4)
9
29
  }
@@ -0,0 +1,21 @@
1
+ import { ISessionEvent } from './ISessionEvent';
2
+
3
+ /**
4
+ * Definition of the parameter event.
5
+ * These events are sent when a parameter changes ({@link EVENTTYPE_PARAMETER}).
6
+ */
7
+ export interface IParameterEvent extends ISessionEvent {
8
+ // #region Properties (1)
9
+
10
+ /**
11
+ * The id of the parameter.
12
+ */
13
+ parameterId: string
14
+
15
+ /**
16
+ * The value of the parameter.
17
+ */
18
+ value: unknown;
19
+
20
+ // #endregion Properties (1)
21
+ }
@@ -0,0 +1,7 @@
1
+ import { IViewportEvent } from './IViewportEvent';
2
+
3
+ /**
4
+ * Definition of the rendering event.
5
+ * These events are sent for rendering specific events ({@link EVENTTYPE_RENDERING}).
6
+ */
7
+ export type IRenderingEvent = IViewportEvent
@@ -1,6 +1,17 @@
1
- import { vec3 } from "gl-matrix";
2
- import { IViewportEvent } from "./IViewportEvent";
1
+ import { IViewportEvent } from './IViewportEvent';
2
+ import { vec3 } from 'gl-matrix';
3
3
 
4
+ /**
5
+ * Definition of the scene event.
6
+ * These events are sent for scene specific events ({@link EVENTTYPE_SCENE}).
7
+ */
4
8
  export interface ISceneEvent extends IViewportEvent {
9
+ // #region Properties (1)
10
+
11
+ /**
12
+ * The bounding box of the scene.
13
+ */
5
14
  boundingBox: { min: vec3, max: vec3}
15
+
16
+ // #endregion Properties (1)
6
17
  }
@@ -1,5 +1,16 @@
1
- import { IEvent } from "@shapediver/viewer.shared.services";
1
+ import { IEvent } from '@shapediver/viewer.shared.services';
2
2
 
3
+ /**
4
+ * Definition of the session event.
5
+ * These events are sent for session specific events ({@link EVENTTYPE_SESSION}).
6
+ */
3
7
  export interface ISessionEvent extends IEvent {
4
- sessionId: string,
8
+ // #region Properties (1)
9
+
10
+ /**
11
+ * The id of the session.
12
+ */
13
+ sessionId: string
14
+
15
+ // #endregion Properties (1)
5
16
  }
@@ -1,5 +1,46 @@
1
- import { IEvent } from "@shapediver/viewer.shared.services";
1
+ import { IEvent } from '@shapediver/viewer.shared.services';
2
2
 
3
+ // #region Interfaces (1)
4
+
5
+ /**
6
+ * Definition of the task event.
7
+ * These events are sent for task specific events ({@link EVENTTYPE_TASK}).
8
+ */
9
+ export interface ITaskEvent extends IEvent {
10
+ // #region Properties (5)
11
+
12
+ /**
13
+ * The data of the task.
14
+ */
15
+ data?: unknown,
16
+ /**
17
+ * The id of the task.
18
+ */
19
+ id: string,
20
+ /**
21
+ * The progress of the task.
22
+ */
23
+ progress: number,
24
+ /**
25
+ * The status of the task.
26
+ */
27
+ status?: string
28
+ /**
29
+ * The type of the task.
30
+ */
31
+ type: TASK_TYPE,
32
+
33
+ // #endregion Properties (5)
34
+ }
35
+
36
+ // #endregion Interfaces (1)
37
+
38
+ // #region Enums (1)
39
+
40
+ /**
41
+ * Definition of the task types.
42
+ * These types are used to identify the type of a task in a task event {@link ITaskEvent}.
43
+ */
3
44
  export enum TASK_TYPE {
4
45
  AR_LOADING = 'ar_loading',
5
46
  ENVIRONMENT_MAP_LOADING = 'environment_map_loading',
@@ -17,10 +58,4 @@ export enum TASK_TYPE {
17
58
  EXPORT_REQUEST = 'export_request',
18
59
  }
19
60
 
20
- export interface ITaskEvent extends IEvent {
21
- type: TASK_TYPE,
22
- id: string,
23
- progress: number,
24
- data?: any,
25
- status?: string
26
- }
61
+ // #endregion Enums (1)
@@ -1,5 +1,13 @@
1
- import { IEvent } from "@shapediver/viewer.shared.services";
1
+ import { IEvent } from '@shapediver/viewer.shared.services';
2
2
 
3
+ /**
4
+ * Definition of the viewport event.
5
+ * These events are sent for viewport specific events ({@link EVENTTYPE_VIEWPORT}).
6
+ */
3
7
  export interface IViewportEvent extends IEvent {
8
+ // #region Properties (1)
9
+
4
10
  viewportId: string,
11
+
12
+ // #endregion Properties (1)
5
13
  }
package/src/types.ts CHANGED
@@ -1,3 +1,68 @@
1
- import { vec3, vec4 } from "gl-matrix";
1
+ import { ShapeDiverResponseParameterType, ShapeDiverResponseParameterVisualization } from '@shapediver/sdk.geometry-api-sdk-v2';
2
+ import { vec3, vec4 } from 'gl-matrix';
2
3
 
3
- export type Color = string | number | number[] | vec3 | vec4;
4
+ export type Color = string | number | number[] | vec3 | vec4;
5
+
6
+ /**
7
+ * The type of the parameter.
8
+ */
9
+ export {
10
+ ShapeDiverResponseParameterType as PARAMETER_TYPE,
11
+ ShapeDiverResponseParameterVisualization as PARAMETER_VISUALIZATION
12
+ };
13
+
14
+ export interface ISettingsSections {
15
+ // #region Properties (2)
16
+
17
+ session?: ISessionSettingsSections,
18
+ viewport?: IViewportSettingsSections
19
+
20
+ // #endregion Properties (2)
21
+ }
22
+
23
+ export interface ISessionSettingsSections {
24
+ // #region Properties (2)
25
+
26
+ export?: {
27
+ /** Option to update the displayname of the exports (default: false) */
28
+ displayname?: boolean,
29
+ /** Option to update the order of the exports (default: false) */
30
+ order?: boolean,
31
+ /** Option to update the hidden state of the exports (default: false) */
32
+ hidden?: boolean
33
+ }
34
+
35
+ parameter?: {
36
+ /** Option to update the displayname of the parameters (default: false) */
37
+ displayname?: boolean,
38
+ /** Option to update the order of the parameters (default: false) */
39
+ order?: boolean,
40
+ /** Option to update the hidden state of the parameters (default: false) */
41
+ hidden?: boolean,
42
+ /** Option to update the value of the parameters (default: false) */
43
+ value?: boolean
44
+ },
45
+
46
+ // #endregion Properties (2)
47
+ }
48
+
49
+ export interface IViewportSettingsSections {
50
+ // #region Properties (7)
51
+
52
+ /** Option to update the ar settings (default: false) */
53
+ ar?: boolean,
54
+ /** Option to update the camera settings (default: false) */
55
+ camera?: boolean,
56
+ /** Option to update the environment settings (default: false) */
57
+ environment?: boolean
58
+ /** Option to update the general settings (default: false) */
59
+ general?: boolean
60
+ /** Option to update the light settings (default: false) */
61
+ light?: boolean,
62
+ /** Option to update the postprocessing settings (default: false) */
63
+ postprocessing?: boolean
64
+ /** Option to update the scene settings (default: false) */
65
+ scene?: boolean,
66
+
67
+ // #endregion Properties (7)
68
+ }