@shapediver/viewer.shared.services 3.0.6 → 3.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
+ export declare type MainEventTypes = typeof EVENTTYPE_CAMERA | typeof EVENTTYPE_OUTPUT | typeof EVENTTYPE_RENDERING | typeof EVENTTYPE_SCENE | typeof EVENTTYPE_SESSION | typeof EVENTTYPE_PARAMETER | typeof EVENTTYPE_VIEWPORT | typeof EVENTTYPE_INTERACTION | typeof EVENTTYPE_DRAWING_TOOLS | typeof EVENTTYPE_TASK;
1
2
  /**
2
3
  * Event types for all camera events
3
4
  * The camera events are used to notify about camera changes, like start, move and end of camera movement.
@@ -20,96 +21,117 @@ export declare enum EVENTTYPE_CAMERA {
20
21
  CAMERA_END = "camera.end"
21
22
  }
22
23
  /**
23
- * Event types for all rendering events
24
- * The rendering events are used to notify about specific rendering events, like the finishing of the beauty rendering.
25
- * The events that are sent with the rendering events are of type {@link IRenderingEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
24
+ * Event types for all drawing tools events
25
+ * The drawing tools events are used to notify about drawing tools changes, like cancel, finish, update, inserted, removed, drag start, move and end.
26
+ * The events that are sent with the drawing tools events are of type {@link IDrawingToolsEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
26
27
  */
27
- export declare enum EVENTTYPE_RENDERING {
28
+ export declare enum EVENTTYPE_DRAWING_TOOLS {
28
29
  /**
29
- * The BEAUTY_RENDERING_FINISHED-event is sent when the beauty rendering has finished.
30
+ * The CANCEL-event is sent when the drawing process has been canceled.
30
31
  */
31
- BEAUTY_RENDERING_FINISHED = "rendering.beautyRenderingFinished"
32
- }
33
- /**
34
- * Event types for all scene events
35
- * The scene events are used to notify about scene changes, like bounding box changes or empty bounding boxes.
36
- * The events that are sent with the scene events are of type {@link ISceneEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
37
- */
38
- export declare enum EVENTTYPE_SCENE {
32
+ CANCEL = "drawing_tools.cancel",
39
33
  /**
40
- * The SCENE_BOUNDING_BOX_CHANGE-event is sent when the bounding box of the scene has changed.
34
+ * The FINISH-event is sent when the drawing process has been finished.
41
35
  */
42
- SCENE_BOUNDING_BOX_CHANGE = "scene.boundingBoxChange",
36
+ FINISH = "drawing_tools.finish",
43
37
  /**
44
- * TheSCENE_BOUNDING_BOX_EMPTY-event is sent when the bounding box of the scene is empty.
38
+ * The UPDATE-event is sent when the drawing process has been updated.
45
39
  */
46
- SCENE_BOUNDING_BOX_EMPTY = "scene.boundingBoxEmpty"
47
- }
48
- /**
49
- * Event types for all viewport events
50
- * The viewport events are used to notify about viewport changes, like creation, update, closing, visibility changes or loading of settings.
51
- * The events that are sent with the viewport events are of type {@link IViewportEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
52
- */
53
- export declare enum EVENTTYPE_VIEWPORT {
40
+ UPDATE = "drawing_tools.update",
54
41
  /**
55
- * The BUSY_MODE_ON-event is sent when the busy mode of the viewport has started.
42
+ * The ADDED-event is sent when a point has been added.
56
43
  */
57
- BUSY_MODE_ON = "viewport.busy.on",
44
+ ADDED = "drawing_tools.added",
58
45
  /**
59
- * The BUSY_MODE_OFF-event is sent when the busy mode of the viewport has ended.
46
+ * The REMOVED-event is sent when a point has been removed.
60
47
  */
61
- BUSY_MODE_OFF = "viewport.busy.off",
48
+ REMOVED = "drawing_tools.removed",
62
49
  /**
63
- * The VIEWPORT_CREATED-event is sent when the viewport has been created.
50
+ * The MOVED-event is sent when a point has been moved.
64
51
  */
65
- VIEWPORT_CREATED = "viewport.created",
52
+ MOVED = "drawing_tools.moved",
66
53
  /**
67
- * The VIEWPORT_UPDATED-event is sent when the viewport has been updated.
54
+ * The SELECTED-event is sent when a point has been selected.
68
55
  */
69
- VIEWPORT_UPDATED = "viewport.updated",
56
+ SELECTED = "drawing_tools.selected",
70
57
  /**
71
- * The VIEWPORT_CLOSED-event is sent when the viewport has been closed.
58
+ * The DESELECTED-event is sent when a point has been deselected.
72
59
  */
73
- VIEWPORT_CLOSED = "viewport.closed",
60
+ DESELECTED = "drawing_tools.deselected",
74
61
  /**
75
- * The VIEWPORT_SETTINGS_LOADED-event is sent when the settings of the viewport have been loaded.
62
+ * The GEOMETRY_CHANGED-event is sent when the geometry has been changed.
76
63
  */
77
- VIEWPORT_SETTINGS_LOADED = "viewport.settingsLoaded",
64
+ GEOMETRY_CHANGED = "drawing_tools.geometry.changed",
78
65
  /**
79
- * The VIEWPORT_VISIBLE-event is sent when the viewport has become visible.
66
+ * The DRAG_START-event is sent when the dragging of a point has started.
80
67
  */
81
- VIEWPORT_VISIBLE = "viewport.visible",
68
+ DRAG_START = "drawing_tools.drag.start",
82
69
  /**
83
- * The VIEWPORT_HIDDEN-event is sent when the viewport has become hidden.
70
+ * The DRAG_MOVE-event is sent when a point is being dragged.
84
71
  */
85
- VIEWPORT_HIDDEN = "viewport.hidden"
72
+ DRAG_MOVE = "drawing_tools.drag.move",
73
+ /**
74
+ * The DRAG_END-event is sent when the dragging of a point has ended.
75
+ */
76
+ DRAG_END = "drawing_tools.drag.end",
77
+ /**
78
+ * The MINIMUM_POINTS-event is sent when the minimum number of points has not been met.
79
+ */
80
+ MINIMUM_POINTS = "drawing_tools.minimumPoints",
81
+ /**
82
+ * The MAXIMUM_POINTS-event is sent when the maximum number of points has been exceeded.
83
+ */
84
+ MAXIMUM_POINTS = "drawing_tools.maximumPoints",
85
+ /**
86
+ * The UNCLOSED_LOOP-event is sent when the loop is not closed, but should be.
87
+ */
88
+ UNCLOSED_LOOP = "drawing_tools.unclosedLoop"
86
89
  }
87
90
  /**
88
- * Event types for all session events
89
- * The session events are used to notify about session changes, like creation, customization, closing, loading of initial outputs or delayed loading of SDTF.
90
- * The events that are sent with the session events are of type {@link ISessionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
91
+ * Event types for all interaction events
92
+ * The interaction events are used to notify about interaction changes, like drag start, move and end, hover on and off, select on and off.
93
+ * The events that are sent with the interaction events are of type {@link IInteractionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
91
94
  */
92
- export declare enum EVENTTYPE_SESSION {
95
+ export declare enum EVENTTYPE_INTERACTION {
93
96
  /**
94
- * The SESSION_CREATED-event is sent when the session has been created.
97
+ * The DRAG_START-event is sent when the dragging of an object has started.
95
98
  */
96
- SESSION_CREATED = "session.created",
99
+ DRAG_START = "interaction.drag.start",
97
100
  /**
98
- * The SESSION_CUSTOMIZED-event is sent when the session has been customized.
101
+ * The DRAG_MOVE-event is sent when an object is being dragged.
99
102
  */
100
- SESSION_CUSTOMIZED = "session.customized",
103
+ DRAG_MOVE = "interaction.drag.move",
101
104
  /**
102
- * The SESSION_CLOSED-event is sent when the session has been closed.
105
+ * The DRAG_END-event is sent when the dragging of an object has ended.
103
106
  */
104
- SESSION_CLOSED = "session.closed",
107
+ DRAG_END = "interaction.drag.end",
105
108
  /**
106
- * The SESSION_INITIAL_OUTPUTS_LOADED-event is sent when the initial outputs of the session have been loaded.
109
+ * The HOVER_ON-event is sent when an object has been hovered.
107
110
  */
108
- SESSION_INITIAL_OUTPUTS_LOADED = "session.initialOutputsLoaded",
111
+ HOVER_ON = "interaction.hover.on",
109
112
  /**
110
- * The SESSION_SDTF_DELAYED_LOADED-event is sent when the SDTF of the session has been delayed loaded.
113
+ * The HOVER_OFF-event is sent when an object has been unhovered.
111
114
  */
112
- SESSION_SDTF_DELAYED_LOADED = "session.sdtfDelayedLoaded"
115
+ HOVER_OFF = "interaction.hover.off",
116
+ /**
117
+ * The SELECT_ON-event is sent when an object has been selected.
118
+ */
119
+ SELECT_ON = "interaction.select.on",
120
+ /**
121
+ * The SELECT_OFF-event is sent when an object has been deselected.
122
+ */
123
+ SELECT_OFF = "interaction.select.off"
124
+ }
125
+ /**
126
+ * Event types for all output events
127
+ * The output events are used to notify about output changes, like updated outputs.
128
+ * The events that are sent with the output events are of type {@link IOutputEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
129
+ */
130
+ export declare enum EVENTTYPE_OUTPUT {
131
+ /**
132
+ * The OUTPUT_UPDATED-event is sent when an output has been updated.
133
+ */
134
+ OUTPUT_UPDATED = "output.updated"
113
135
  }
114
136
  /**
115
137
  * Event types for all parameter events
@@ -127,112 +149,119 @@ export declare enum EVENTTYPE_PARAMETER {
127
149
  PARAMETER_SESSION_VALUE_CHANGED = "parameter.sessionValueChanged"
128
150
  }
129
151
  /**
130
- * Event types for all output events
131
- * The output events are used to notify about output changes, like updated outputs.
132
- * The events that are sent with the output events are of type {@link IOutputEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
152
+ * Event types for all rendering events
153
+ * The rendering events are used to notify about specific rendering events, like the finishing of the beauty rendering.
154
+ * The events that are sent with the rendering events are of type {@link IRenderingEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
133
155
  */
134
- export declare enum EVENTTYPE_OUTPUT {
156
+ export declare enum EVENTTYPE_RENDERING {
135
157
  /**
136
- * The OUTPUT_UPDATED-event is sent when an output has been updated.
158
+ * The BEAUTY_RENDERING_FINISHED-event is sent when the beauty rendering has finished.
137
159
  */
138
- OUTPUT_UPDATED = "output.updated"
160
+ BEAUTY_RENDERING_FINISHED = "rendering.beautyRenderingFinished"
139
161
  }
140
162
  /**
141
- * Event types for all task events
142
- * The task events are used to notify about task changes, like start, process, end or cancel of a task.
143
- * The events that are sent with the task events are of type {@link ITaskEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
163
+ * Event types for all scene events
164
+ * The scene events are used to notify about scene changes, like bounding box changes or empty bounding boxes.
165
+ * The events that are sent with the scene events are of type {@link ISceneEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
144
166
  */
145
- export declare enum EVENTTYPE_TASK {
167
+ export declare enum EVENTTYPE_SCENE {
146
168
  /**
147
- * The TASK_START-event is sent when a task has started.
169
+ * The SCENE_BOUNDING_BOX_CHANGE-event is sent when the bounding box of the scene has changed.
148
170
  */
149
- TASK_START = "task.start",
171
+ SCENE_BOUNDING_BOX_CHANGE = "scene.boundingBoxChange",
150
172
  /**
151
- * The TASK_PROCESS-event is sent when the process of a task has been updated.
173
+ * TheSCENE_BOUNDING_BOX_EMPTY-event is sent when the bounding box of the scene is empty.
152
174
  */
153
- TASK_PROCESS = "task.process",
175
+ SCENE_BOUNDING_BOX_EMPTY = "scene.boundingBoxEmpty"
176
+ }
177
+ /**
178
+ * Event types for all session events
179
+ * The session events are used to notify about session changes, like creation, customization, closing, loading of initial outputs or delayed loading of SDTF.
180
+ * The events that are sent with the session events are of type {@link ISessionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
181
+ */
182
+ export declare enum EVENTTYPE_SESSION {
154
183
  /**
155
- * The TASK_END-event is sent when a task has ended.
184
+ * The SESSION_CREATED-event is sent when the session has been created.
156
185
  */
157
- TASK_END = "task.end",
186
+ SESSION_CREATED = "session.created",
158
187
  /**
159
- * The TASK_CANCEL-event is sent when a task has been canceled.
188
+ * The SESSION_CUSTOMIZED-event is sent when the session has been customized.
160
189
  */
161
- TASK_CANCEL = "task.cancel"
162
- }
163
- /**
164
- * Event types for all interaction events
165
- * The interaction events are used to notify about interaction changes, like drag start, move and end, hover on and off, select on and off.
166
- * The events that are sent with the interaction events are of type {@link IInteractionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
167
- */
168
- export declare enum EVENTTYPE_INTERACTION {
190
+ SESSION_CUSTOMIZED = "session.customized",
169
191
  /**
170
- * The DRAG_START-event is sent when the dragging of an object has started.
192
+ * The SESSION_CLOSED-event is sent when the session has been closed.
171
193
  */
172
- DRAG_START = "interaction.drag.start",
194
+ SESSION_CLOSED = "session.closed",
173
195
  /**
174
- * The DRAG_MOVE-event is sent when an object is being dragged.
196
+ * The SESSION_INITIAL_OUTPUTS_LOADED-event is sent when the initial outputs of the session have been loaded.
175
197
  */
176
- DRAG_MOVE = "interaction.drag.move",
198
+ SESSION_INITIAL_OUTPUTS_LOADED = "session.initialOutputsLoaded",
177
199
  /**
178
- * The DRAG_END-event is sent when the dragging of an object has ended.
200
+ * The SESSION_SDTF_DELAYED_LOADED-event is sent when the SDTF of the session has been delayed loaded.
179
201
  */
180
- DRAG_END = "interaction.drag.end",
202
+ SESSION_SDTF_DELAYED_LOADED = "session.sdtfDelayedLoaded"
203
+ }
204
+ /**
205
+ * Event types for all task events
206
+ * The task events are used to notify about task changes, like start, process, end or cancel of a task.
207
+ * The events that are sent with the task events are of type {@link ITaskEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
208
+ */
209
+ export declare enum EVENTTYPE_TASK {
181
210
  /**
182
- * The HOVER_ON-event is sent when an object has been hovered.
211
+ * The TASK_START-event is sent when a task has started.
183
212
  */
184
- HOVER_ON = "interaction.hover.on",
213
+ TASK_START = "task.start",
185
214
  /**
186
- * The HOVER_OFF-event is sent when an object has been unhovered.
215
+ * The TASK_PROCESS-event is sent when the process of a task has been updated.
187
216
  */
188
- HOVER_OFF = "interaction.hover.off",
217
+ TASK_PROCESS = "task.process",
189
218
  /**
190
- * The SELECT_ON-event is sent when an object has been selected.
219
+ * The TASK_END-event is sent when a task has ended.
191
220
  */
192
- SELECT_ON = "interaction.select.on",
221
+ TASK_END = "task.end",
193
222
  /**
194
- * The SELECT_OFF-event is sent when an object has been deselected.
223
+ * The TASK_CANCEL-event is sent when a task has been canceled.
195
224
  */
196
- SELECT_OFF = "interaction.select.off"
225
+ TASK_CANCEL = "task.cancel"
197
226
  }
198
227
  /**
199
- * Event types for all drawing tools events
200
- * The drawing tools events are used to notify about drawing tools changes, like cancel, finish, update, inserted, removed, drag start, move and end.
201
- * The events that are sent with the drawing tools events are of type {@link IDrawingToolsEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
228
+ * Event types for all viewport events
229
+ * The viewport events are used to notify about viewport changes, like creation, update, closing, visibility changes or loading of settings.
230
+ * The events that are sent with the viewport events are of type {@link IViewportEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
202
231
  */
203
- export declare enum EVENTTYPE_DRAWING_TOOLS {
232
+ export declare enum EVENTTYPE_VIEWPORT {
204
233
  /**
205
- * The CANCEL-event is sent when the drawing process has been canceled.
234
+ * The BUSY_MODE_ON-event is sent when the busy mode of the viewport has started.
206
235
  */
207
- CANCEL = "drawing_tools.cancel",
236
+ BUSY_MODE_ON = "viewport.busy.on",
208
237
  /**
209
- * The FINISH-event is sent when the drawing process has been finished.
238
+ * The BUSY_MODE_OFF-event is sent when the busy mode of the viewport has ended.
210
239
  */
211
- FINISH = "drawing_tools.finish",
240
+ BUSY_MODE_OFF = "viewport.busy.off",
212
241
  /**
213
- * The UPDATE-event is sent when the drawing process has been updated.
242
+ * The VIEWPORT_CREATED-event is sent when the viewport has been created.
214
243
  */
215
- UPDATE = "drawing_tools.update",
244
+ VIEWPORT_CREATED = "viewport.created",
216
245
  /**
217
- * The INSERTED-event is sent when a point has been inserted.
246
+ * The VIEWPORT_UPDATED-event is sent when the viewport has been updated.
218
247
  */
219
- INSERTED = "drawing_tools.inserted",
248
+ VIEWPORT_UPDATED = "viewport.updated",
220
249
  /**
221
- * The REMOVED-event is sent when a point has been removed.
250
+ * The VIEWPORT_CLOSED-event is sent when the viewport has been closed.
222
251
  */
223
- REMOVED = "drawing_tools.removed",
252
+ VIEWPORT_CLOSED = "viewport.closed",
224
253
  /**
225
- * The DRAG_START-event is sent when the dragging of a point has started.
254
+ * The VIEWPORT_SETTINGS_LOADED-event is sent when the settings of the viewport have been loaded.
226
255
  */
227
- DRAG_START = "drawing_tools.drag.start",
256
+ VIEWPORT_SETTINGS_LOADED = "viewport.settingsLoaded",
228
257
  /**
229
- * The DRAG_MOVE-event is sent when a point is being dragged.
258
+ * The VIEWPORT_VISIBLE-event is sent when the viewport has become visible.
230
259
  */
231
- DRAG_MOVE = "drawing_tools.drag.move",
260
+ VIEWPORT_VISIBLE = "viewport.visible",
232
261
  /**
233
- * The DRAG_END-event is sent when the dragging of a point has ended.
262
+ * The VIEWPORT_HIDDEN-event is sent when the viewport has become hidden.
234
263
  */
235
- DRAG_END = "drawing_tools.drag.end"
264
+ VIEWPORT_HIDDEN = "viewport.hidden"
236
265
  }
237
266
  /**
238
267
  * Definition of the event types.
@@ -251,5 +280,4 @@ export declare const EVENTTYPE: {
251
280
  TASK: typeof EVENTTYPE_TASK;
252
281
  DRAWING_TOOLS: typeof EVENTTYPE_DRAWING_TOOLS;
253
282
  };
254
- export declare type MainEventTypes = typeof EVENTTYPE_CAMERA | typeof EVENTTYPE_OUTPUT | typeof EVENTTYPE_RENDERING | typeof EVENTTYPE_SCENE | typeof EVENTTYPE_SESSION | typeof EVENTTYPE_PARAMETER | typeof EVENTTYPE_VIEWPORT | typeof EVENTTYPE_INTERACTION | typeof EVENTTYPE_DRAWING_TOOLS | typeof EVENTTYPE_TASK;
255
283
  //# sourceMappingURL=EventTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventTypes.d.ts","sourceRoot":"","sources":["../../src/event-engine/EventTypes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,oBAAY,gBAAgB;IACxB;;OAEG;IACH,YAAY,iBAAiB;IAC7B;;OAEG;IACH,WAAW,gBAAgB;IAC3B;;OAEG;IACH,UAAU,eAAe;CAC5B;AAED;;;;GAIG;AACH,oBAAY,mBAAmB;IAC3B;;OAEG;IACH,yBAAyB,sCAAsC;CAClE;AAED;;;;GAIG;AACH,oBAAY,eAAe;IACvB;;OAEG;IACH,yBAAyB,4BAA4B;IACrD;;OAEG;IACH,wBAAwB,2BAA2B;CACtD;AAED;;;;GAIG;AACH,oBAAY,kBAAkB;IAC1B;;OAEG;IACH,YAAY,qBAAqB;IACjC;;OAEG;IACH,aAAa,sBAAsB;IACnC;;OAEG;IACH,gBAAgB,qBAAqB;IACrC;;OAEG;IACH,gBAAgB,qBAAqB;IACrC;;OAEG;IACH,eAAe,oBAAoB;IACnC;;OAEG;IACH,wBAAwB,4BAA4B;IACp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rC;;OAEG;IACH,eAAe,oBAAoB;IACnC;;OAEG;IACH,wBAAwB,4BAA4B;IACpD;;OAEG;IACH,gBAAgB,qBAAqB;IACrC;;OAEG;IACH,eAAe,oBAAoB;CACtC;AAMD;;;;GAIG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;CAWrB,CAAC"}
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
+ // #region Type aliases (1)
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EVENTTYPE = exports.EVENTTYPE_DRAWING_TOOLS = exports.EVENTTYPE_INTERACTION = exports.EVENTTYPE_TASK = exports.EVENTTYPE_OUTPUT = exports.EVENTTYPE_PARAMETER = exports.EVENTTYPE_SESSION = exports.EVENTTYPE_VIEWPORT = exports.EVENTTYPE_SCENE = exports.EVENTTYPE_RENDERING = exports.EVENTTYPE_CAMERA = void 0;
4
+ exports.EVENTTYPE = exports.EVENTTYPE_VIEWPORT = exports.EVENTTYPE_TASK = exports.EVENTTYPE_SESSION = exports.EVENTTYPE_SCENE = exports.EVENTTYPE_RENDERING = exports.EVENTTYPE_PARAMETER = exports.EVENTTYPE_OUTPUT = exports.EVENTTYPE_INTERACTION = exports.EVENTTYPE_DRAWING_TOOLS = exports.EVENTTYPE_CAMERA = void 0;
5
+ // #endregion Type aliases (1)
6
+ // #region Enums (10)
4
7
  /**
5
8
  * Event types for all camera events
6
9
  * The camera events are used to notify about camera changes, like start, move and end of camera movement.
@@ -24,101 +27,121 @@ var EVENTTYPE_CAMERA;
24
27
  EVENTTYPE_CAMERA["CAMERA_END"] = "camera.end";
25
28
  })(EVENTTYPE_CAMERA = exports.EVENTTYPE_CAMERA || (exports.EVENTTYPE_CAMERA = {}));
26
29
  /**
27
- * Event types for all rendering events
28
- * The rendering events are used to notify about specific rendering events, like the finishing of the beauty rendering.
29
- * The events that are sent with the rendering events are of type {@link IRenderingEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
30
+ * Event types for all drawing tools events
31
+ * The drawing tools events are used to notify about drawing tools changes, like cancel, finish, update, inserted, removed, drag start, move and end.
32
+ * The events that are sent with the drawing tools events are of type {@link IDrawingToolsEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
30
33
  */
31
- var EVENTTYPE_RENDERING;
32
- (function (EVENTTYPE_RENDERING) {
34
+ var EVENTTYPE_DRAWING_TOOLS;
35
+ (function (EVENTTYPE_DRAWING_TOOLS) {
33
36
  /**
34
- * The BEAUTY_RENDERING_FINISHED-event is sent when the beauty rendering has finished.
37
+ * The CANCEL-event is sent when the drawing process has been canceled.
35
38
  */
36
- EVENTTYPE_RENDERING["BEAUTY_RENDERING_FINISHED"] = "rendering.beautyRenderingFinished";
37
- })(EVENTTYPE_RENDERING = exports.EVENTTYPE_RENDERING || (exports.EVENTTYPE_RENDERING = {}));
38
- /**
39
- * Event types for all scene events
40
- * The scene events are used to notify about scene changes, like bounding box changes or empty bounding boxes.
41
- * The events that are sent with the scene events are of type {@link ISceneEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
42
- */
43
- var EVENTTYPE_SCENE;
44
- (function (EVENTTYPE_SCENE) {
39
+ EVENTTYPE_DRAWING_TOOLS["CANCEL"] = "drawing_tools.cancel";
45
40
  /**
46
- * The SCENE_BOUNDING_BOX_CHANGE-event is sent when the bounding box of the scene has changed.
41
+ * The FINISH-event is sent when the drawing process has been finished.
47
42
  */
48
- EVENTTYPE_SCENE["SCENE_BOUNDING_BOX_CHANGE"] = "scene.boundingBoxChange";
43
+ EVENTTYPE_DRAWING_TOOLS["FINISH"] = "drawing_tools.finish";
49
44
  /**
50
- * TheSCENE_BOUNDING_BOX_EMPTY-event is sent when the bounding box of the scene is empty.
45
+ * The UPDATE-event is sent when the drawing process has been updated.
51
46
  */
52
- EVENTTYPE_SCENE["SCENE_BOUNDING_BOX_EMPTY"] = "scene.boundingBoxEmpty";
53
- })(EVENTTYPE_SCENE = exports.EVENTTYPE_SCENE || (exports.EVENTTYPE_SCENE = {}));
54
- /**
55
- * Event types for all viewport events
56
- * The viewport events are used to notify about viewport changes, like creation, update, closing, visibility changes or loading of settings.
57
- * The events that are sent with the viewport events are of type {@link IViewportEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
58
- */
59
- var EVENTTYPE_VIEWPORT;
60
- (function (EVENTTYPE_VIEWPORT) {
47
+ EVENTTYPE_DRAWING_TOOLS["UPDATE"] = "drawing_tools.update";
61
48
  /**
62
- * The BUSY_MODE_ON-event is sent when the busy mode of the viewport has started.
49
+ * The ADDED-event is sent when a point has been added.
63
50
  */
64
- EVENTTYPE_VIEWPORT["BUSY_MODE_ON"] = "viewport.busy.on";
51
+ EVENTTYPE_DRAWING_TOOLS["ADDED"] = "drawing_tools.added";
65
52
  /**
66
- * The BUSY_MODE_OFF-event is sent when the busy mode of the viewport has ended.
53
+ * The REMOVED-event is sent when a point has been removed.
67
54
  */
68
- EVENTTYPE_VIEWPORT["BUSY_MODE_OFF"] = "viewport.busy.off";
55
+ EVENTTYPE_DRAWING_TOOLS["REMOVED"] = "drawing_tools.removed";
69
56
  /**
70
- * The VIEWPORT_CREATED-event is sent when the viewport has been created.
57
+ * The MOVED-event is sent when a point has been moved.
71
58
  */
72
- EVENTTYPE_VIEWPORT["VIEWPORT_CREATED"] = "viewport.created";
59
+ EVENTTYPE_DRAWING_TOOLS["MOVED"] = "drawing_tools.moved";
73
60
  /**
74
- * The VIEWPORT_UPDATED-event is sent when the viewport has been updated.
61
+ * The SELECTED-event is sent when a point has been selected.
75
62
  */
76
- EVENTTYPE_VIEWPORT["VIEWPORT_UPDATED"] = "viewport.updated";
63
+ EVENTTYPE_DRAWING_TOOLS["SELECTED"] = "drawing_tools.selected";
77
64
  /**
78
- * The VIEWPORT_CLOSED-event is sent when the viewport has been closed.
65
+ * The DESELECTED-event is sent when a point has been deselected.
79
66
  */
80
- EVENTTYPE_VIEWPORT["VIEWPORT_CLOSED"] = "viewport.closed";
67
+ EVENTTYPE_DRAWING_TOOLS["DESELECTED"] = "drawing_tools.deselected";
81
68
  /**
82
- * The VIEWPORT_SETTINGS_LOADED-event is sent when the settings of the viewport have been loaded.
69
+ * The GEOMETRY_CHANGED-event is sent when the geometry has been changed.
83
70
  */
84
- EVENTTYPE_VIEWPORT["VIEWPORT_SETTINGS_LOADED"] = "viewport.settingsLoaded";
71
+ EVENTTYPE_DRAWING_TOOLS["GEOMETRY_CHANGED"] = "drawing_tools.geometry.changed";
85
72
  /**
86
- * The VIEWPORT_VISIBLE-event is sent when the viewport has become visible.
73
+ * The DRAG_START-event is sent when the dragging of a point has started.
87
74
  */
88
- EVENTTYPE_VIEWPORT["VIEWPORT_VISIBLE"] = "viewport.visible";
75
+ EVENTTYPE_DRAWING_TOOLS["DRAG_START"] = "drawing_tools.drag.start";
89
76
  /**
90
- * The VIEWPORT_HIDDEN-event is sent when the viewport has become hidden.
77
+ * The DRAG_MOVE-event is sent when a point is being dragged.
91
78
  */
92
- EVENTTYPE_VIEWPORT["VIEWPORT_HIDDEN"] = "viewport.hidden";
93
- })(EVENTTYPE_VIEWPORT = exports.EVENTTYPE_VIEWPORT || (exports.EVENTTYPE_VIEWPORT = {}));
79
+ EVENTTYPE_DRAWING_TOOLS["DRAG_MOVE"] = "drawing_tools.drag.move";
80
+ /**
81
+ * The DRAG_END-event is sent when the dragging of a point has ended.
82
+ */
83
+ EVENTTYPE_DRAWING_TOOLS["DRAG_END"] = "drawing_tools.drag.end";
84
+ /**
85
+ * The MINIMUM_POINTS-event is sent when the minimum number of points has not been met.
86
+ */
87
+ EVENTTYPE_DRAWING_TOOLS["MINIMUM_POINTS"] = "drawing_tools.minimumPoints";
88
+ /**
89
+ * The MAXIMUM_POINTS-event is sent when the maximum number of points has been exceeded.
90
+ */
91
+ EVENTTYPE_DRAWING_TOOLS["MAXIMUM_POINTS"] = "drawing_tools.maximumPoints";
92
+ /**
93
+ * The UNCLOSED_LOOP-event is sent when the loop is not closed, but should be.
94
+ */
95
+ EVENTTYPE_DRAWING_TOOLS["UNCLOSED_LOOP"] = "drawing_tools.unclosedLoop";
96
+ })(EVENTTYPE_DRAWING_TOOLS = exports.EVENTTYPE_DRAWING_TOOLS || (exports.EVENTTYPE_DRAWING_TOOLS = {}));
94
97
  /**
95
- * Event types for all session events
96
- * The session events are used to notify about session changes, like creation, customization, closing, loading of initial outputs or delayed loading of SDTF.
97
- * The events that are sent with the session events are of type {@link ISessionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
98
+ * Event types for all interaction events
99
+ * The interaction events are used to notify about interaction changes, like drag start, move and end, hover on and off, select on and off.
100
+ * The events that are sent with the interaction events are of type {@link IInteractionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
98
101
  */
99
- var EVENTTYPE_SESSION;
100
- (function (EVENTTYPE_SESSION) {
102
+ var EVENTTYPE_INTERACTION;
103
+ (function (EVENTTYPE_INTERACTION) {
101
104
  /**
102
- * The SESSION_CREATED-event is sent when the session has been created.
105
+ * The DRAG_START-event is sent when the dragging of an object has started.
103
106
  */
104
- EVENTTYPE_SESSION["SESSION_CREATED"] = "session.created";
107
+ EVENTTYPE_INTERACTION["DRAG_START"] = "interaction.drag.start";
105
108
  /**
106
- * The SESSION_CUSTOMIZED-event is sent when the session has been customized.
109
+ * The DRAG_MOVE-event is sent when an object is being dragged.
107
110
  */
108
- EVENTTYPE_SESSION["SESSION_CUSTOMIZED"] = "session.customized";
111
+ EVENTTYPE_INTERACTION["DRAG_MOVE"] = "interaction.drag.move";
109
112
  /**
110
- * The SESSION_CLOSED-event is sent when the session has been closed.
113
+ * The DRAG_END-event is sent when the dragging of an object has ended.
111
114
  */
112
- EVENTTYPE_SESSION["SESSION_CLOSED"] = "session.closed";
115
+ EVENTTYPE_INTERACTION["DRAG_END"] = "interaction.drag.end";
113
116
  /**
114
- * The SESSION_INITIAL_OUTPUTS_LOADED-event is sent when the initial outputs of the session have been loaded.
117
+ * The HOVER_ON-event is sent when an object has been hovered.
115
118
  */
116
- EVENTTYPE_SESSION["SESSION_INITIAL_OUTPUTS_LOADED"] = "session.initialOutputsLoaded";
119
+ EVENTTYPE_INTERACTION["HOVER_ON"] = "interaction.hover.on";
117
120
  /**
118
- * The SESSION_SDTF_DELAYED_LOADED-event is sent when the SDTF of the session has been delayed loaded.
121
+ * The HOVER_OFF-event is sent when an object has been unhovered.
119
122
  */
120
- EVENTTYPE_SESSION["SESSION_SDTF_DELAYED_LOADED"] = "session.sdtfDelayedLoaded";
121
- })(EVENTTYPE_SESSION = exports.EVENTTYPE_SESSION || (exports.EVENTTYPE_SESSION = {}));
123
+ EVENTTYPE_INTERACTION["HOVER_OFF"] = "interaction.hover.off";
124
+ /**
125
+ * The SELECT_ON-event is sent when an object has been selected.
126
+ */
127
+ EVENTTYPE_INTERACTION["SELECT_ON"] = "interaction.select.on";
128
+ /**
129
+ * The SELECT_OFF-event is sent when an object has been deselected.
130
+ */
131
+ EVENTTYPE_INTERACTION["SELECT_OFF"] = "interaction.select.off";
132
+ })(EVENTTYPE_INTERACTION = exports.EVENTTYPE_INTERACTION || (exports.EVENTTYPE_INTERACTION = {}));
133
+ /**
134
+ * Event types for all output events
135
+ * The output events are used to notify about output changes, like updated outputs.
136
+ * The events that are sent with the output events are of type {@link IOutputEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
137
+ */
138
+ var EVENTTYPE_OUTPUT;
139
+ (function (EVENTTYPE_OUTPUT) {
140
+ /**
141
+ * The OUTPUT_UPDATED-event is sent when an output has been updated.
142
+ */
143
+ EVENTTYPE_OUTPUT["OUTPUT_UPDATED"] = "output.updated";
144
+ })(EVENTTYPE_OUTPUT = exports.EVENTTYPE_OUTPUT || (exports.EVENTTYPE_OUTPUT = {}));
122
145
  /**
123
146
  * Event types for all parameter events
124
147
  * The parameter events are used to notify about parameter changes, like value changes or session value changes.
@@ -136,117 +159,127 @@ var EVENTTYPE_PARAMETER;
136
159
  EVENTTYPE_PARAMETER["PARAMETER_SESSION_VALUE_CHANGED"] = "parameter.sessionValueChanged";
137
160
  })(EVENTTYPE_PARAMETER = exports.EVENTTYPE_PARAMETER || (exports.EVENTTYPE_PARAMETER = {}));
138
161
  /**
139
- * Event types for all output events
140
- * The output events are used to notify about output changes, like updated outputs.
141
- * The events that are sent with the output events are of type {@link IOutputEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
162
+ * Event types for all rendering events
163
+ * The rendering events are used to notify about specific rendering events, like the finishing of the beauty rendering.
164
+ * The events that are sent with the rendering events are of type {@link IRenderingEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
142
165
  */
143
- var EVENTTYPE_OUTPUT;
144
- (function (EVENTTYPE_OUTPUT) {
166
+ var EVENTTYPE_RENDERING;
167
+ (function (EVENTTYPE_RENDERING) {
145
168
  /**
146
- * The OUTPUT_UPDATED-event is sent when an output has been updated.
169
+ * The BEAUTY_RENDERING_FINISHED-event is sent when the beauty rendering has finished.
147
170
  */
148
- EVENTTYPE_OUTPUT["OUTPUT_UPDATED"] = "output.updated";
149
- })(EVENTTYPE_OUTPUT = exports.EVENTTYPE_OUTPUT || (exports.EVENTTYPE_OUTPUT = {}));
171
+ EVENTTYPE_RENDERING["BEAUTY_RENDERING_FINISHED"] = "rendering.beautyRenderingFinished";
172
+ })(EVENTTYPE_RENDERING = exports.EVENTTYPE_RENDERING || (exports.EVENTTYPE_RENDERING = {}));
150
173
  /**
151
- * Event types for all task events
152
- * The task events are used to notify about task changes, like start, process, end or cancel of a task.
153
- * The events that are sent with the task events are of type {@link ITaskEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
174
+ * Event types for all scene events
175
+ * The scene events are used to notify about scene changes, like bounding box changes or empty bounding boxes.
176
+ * The events that are sent with the scene events are of type {@link ISceneEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
154
177
  */
155
- var EVENTTYPE_TASK;
156
- (function (EVENTTYPE_TASK) {
178
+ var EVENTTYPE_SCENE;
179
+ (function (EVENTTYPE_SCENE) {
157
180
  /**
158
- * The TASK_START-event is sent when a task has started.
181
+ * The SCENE_BOUNDING_BOX_CHANGE-event is sent when the bounding box of the scene has changed.
159
182
  */
160
- EVENTTYPE_TASK["TASK_START"] = "task.start";
183
+ EVENTTYPE_SCENE["SCENE_BOUNDING_BOX_CHANGE"] = "scene.boundingBoxChange";
161
184
  /**
162
- * The TASK_PROCESS-event is sent when the process of a task has been updated.
185
+ * TheSCENE_BOUNDING_BOX_EMPTY-event is sent when the bounding box of the scene is empty.
163
186
  */
164
- EVENTTYPE_TASK["TASK_PROCESS"] = "task.process";
187
+ EVENTTYPE_SCENE["SCENE_BOUNDING_BOX_EMPTY"] = "scene.boundingBoxEmpty";
188
+ })(EVENTTYPE_SCENE = exports.EVENTTYPE_SCENE || (exports.EVENTTYPE_SCENE = {}));
189
+ /**
190
+ * Event types for all session events
191
+ * The session events are used to notify about session changes, like creation, customization, closing, loading of initial outputs or delayed loading of SDTF.
192
+ * The events that are sent with the session events are of type {@link ISessionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
193
+ */
194
+ var EVENTTYPE_SESSION;
195
+ (function (EVENTTYPE_SESSION) {
165
196
  /**
166
- * The TASK_END-event is sent when a task has ended.
197
+ * The SESSION_CREATED-event is sent when the session has been created.
167
198
  */
168
- EVENTTYPE_TASK["TASK_END"] = "task.end";
199
+ EVENTTYPE_SESSION["SESSION_CREATED"] = "session.created";
169
200
  /**
170
- * The TASK_CANCEL-event is sent when a task has been canceled.
201
+ * The SESSION_CUSTOMIZED-event is sent when the session has been customized.
171
202
  */
172
- EVENTTYPE_TASK["TASK_CANCEL"] = "task.cancel";
173
- })(EVENTTYPE_TASK = exports.EVENTTYPE_TASK || (exports.EVENTTYPE_TASK = {}));
174
- /**
175
- * Event types for all interaction events
176
- * The interaction events are used to notify about interaction changes, like drag start, move and end, hover on and off, select on and off.
177
- * The events that are sent with the interaction events are of type {@link IInteractionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
178
- */
179
- var EVENTTYPE_INTERACTION;
180
- (function (EVENTTYPE_INTERACTION) {
203
+ EVENTTYPE_SESSION["SESSION_CUSTOMIZED"] = "session.customized";
181
204
  /**
182
- * The DRAG_START-event is sent when the dragging of an object has started.
205
+ * The SESSION_CLOSED-event is sent when the session has been closed.
183
206
  */
184
- EVENTTYPE_INTERACTION["DRAG_START"] = "interaction.drag.start";
207
+ EVENTTYPE_SESSION["SESSION_CLOSED"] = "session.closed";
185
208
  /**
186
- * The DRAG_MOVE-event is sent when an object is being dragged.
209
+ * The SESSION_INITIAL_OUTPUTS_LOADED-event is sent when the initial outputs of the session have been loaded.
187
210
  */
188
- EVENTTYPE_INTERACTION["DRAG_MOVE"] = "interaction.drag.move";
211
+ EVENTTYPE_SESSION["SESSION_INITIAL_OUTPUTS_LOADED"] = "session.initialOutputsLoaded";
189
212
  /**
190
- * The DRAG_END-event is sent when the dragging of an object has ended.
213
+ * The SESSION_SDTF_DELAYED_LOADED-event is sent when the SDTF of the session has been delayed loaded.
191
214
  */
192
- EVENTTYPE_INTERACTION["DRAG_END"] = "interaction.drag.end";
215
+ EVENTTYPE_SESSION["SESSION_SDTF_DELAYED_LOADED"] = "session.sdtfDelayedLoaded";
216
+ })(EVENTTYPE_SESSION = exports.EVENTTYPE_SESSION || (exports.EVENTTYPE_SESSION = {}));
217
+ /**
218
+ * Event types for all task events
219
+ * The task events are used to notify about task changes, like start, process, end or cancel of a task.
220
+ * The events that are sent with the task events are of type {@link ITaskEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
221
+ */
222
+ var EVENTTYPE_TASK;
223
+ (function (EVENTTYPE_TASK) {
193
224
  /**
194
- * The HOVER_ON-event is sent when an object has been hovered.
225
+ * The TASK_START-event is sent when a task has started.
195
226
  */
196
- EVENTTYPE_INTERACTION["HOVER_ON"] = "interaction.hover.on";
227
+ EVENTTYPE_TASK["TASK_START"] = "task.start";
197
228
  /**
198
- * The HOVER_OFF-event is sent when an object has been unhovered.
229
+ * The TASK_PROCESS-event is sent when the process of a task has been updated.
199
230
  */
200
- EVENTTYPE_INTERACTION["HOVER_OFF"] = "interaction.hover.off";
231
+ EVENTTYPE_TASK["TASK_PROCESS"] = "task.process";
201
232
  /**
202
- * The SELECT_ON-event is sent when an object has been selected.
233
+ * The TASK_END-event is sent when a task has ended.
203
234
  */
204
- EVENTTYPE_INTERACTION["SELECT_ON"] = "interaction.select.on";
235
+ EVENTTYPE_TASK["TASK_END"] = "task.end";
205
236
  /**
206
- * The SELECT_OFF-event is sent when an object has been deselected.
237
+ * The TASK_CANCEL-event is sent when a task has been canceled.
207
238
  */
208
- EVENTTYPE_INTERACTION["SELECT_OFF"] = "interaction.select.off";
209
- })(EVENTTYPE_INTERACTION = exports.EVENTTYPE_INTERACTION || (exports.EVENTTYPE_INTERACTION = {}));
239
+ EVENTTYPE_TASK["TASK_CANCEL"] = "task.cancel";
240
+ })(EVENTTYPE_TASK = exports.EVENTTYPE_TASK || (exports.EVENTTYPE_TASK = {}));
210
241
  /**
211
- * Event types for all drawing tools events
212
- * The drawing tools events are used to notify about drawing tools changes, like cancel, finish, update, inserted, removed, drag start, move and end.
213
- * The events that are sent with the drawing tools events are of type {@link IDrawingToolsEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
242
+ * Event types for all viewport events
243
+ * The viewport events are used to notify about viewport changes, like creation, update, closing, visibility changes or loading of settings.
244
+ * The events that are sent with the viewport events are of type {@link IViewportEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
214
245
  */
215
- var EVENTTYPE_DRAWING_TOOLS;
216
- (function (EVENTTYPE_DRAWING_TOOLS) {
246
+ var EVENTTYPE_VIEWPORT;
247
+ (function (EVENTTYPE_VIEWPORT) {
217
248
  /**
218
- * The CANCEL-event is sent when the drawing process has been canceled.
249
+ * The BUSY_MODE_ON-event is sent when the busy mode of the viewport has started.
219
250
  */
220
- EVENTTYPE_DRAWING_TOOLS["CANCEL"] = "drawing_tools.cancel";
251
+ EVENTTYPE_VIEWPORT["BUSY_MODE_ON"] = "viewport.busy.on";
221
252
  /**
222
- * The FINISH-event is sent when the drawing process has been finished.
253
+ * The BUSY_MODE_OFF-event is sent when the busy mode of the viewport has ended.
223
254
  */
224
- EVENTTYPE_DRAWING_TOOLS["FINISH"] = "drawing_tools.finish";
255
+ EVENTTYPE_VIEWPORT["BUSY_MODE_OFF"] = "viewport.busy.off";
225
256
  /**
226
- * The UPDATE-event is sent when the drawing process has been updated.
257
+ * The VIEWPORT_CREATED-event is sent when the viewport has been created.
227
258
  */
228
- EVENTTYPE_DRAWING_TOOLS["UPDATE"] = "drawing_tools.update";
259
+ EVENTTYPE_VIEWPORT["VIEWPORT_CREATED"] = "viewport.created";
229
260
  /**
230
- * The INSERTED-event is sent when a point has been inserted.
261
+ * The VIEWPORT_UPDATED-event is sent when the viewport has been updated.
231
262
  */
232
- EVENTTYPE_DRAWING_TOOLS["INSERTED"] = "drawing_tools.inserted";
263
+ EVENTTYPE_VIEWPORT["VIEWPORT_UPDATED"] = "viewport.updated";
233
264
  /**
234
- * The REMOVED-event is sent when a point has been removed.
265
+ * The VIEWPORT_CLOSED-event is sent when the viewport has been closed.
235
266
  */
236
- EVENTTYPE_DRAWING_TOOLS["REMOVED"] = "drawing_tools.removed";
267
+ EVENTTYPE_VIEWPORT["VIEWPORT_CLOSED"] = "viewport.closed";
237
268
  /**
238
- * The DRAG_START-event is sent when the dragging of a point has started.
269
+ * The VIEWPORT_SETTINGS_LOADED-event is sent when the settings of the viewport have been loaded.
239
270
  */
240
- EVENTTYPE_DRAWING_TOOLS["DRAG_START"] = "drawing_tools.drag.start";
271
+ EVENTTYPE_VIEWPORT["VIEWPORT_SETTINGS_LOADED"] = "viewport.settingsLoaded";
241
272
  /**
242
- * The DRAG_MOVE-event is sent when a point is being dragged.
273
+ * The VIEWPORT_VISIBLE-event is sent when the viewport has become visible.
243
274
  */
244
- EVENTTYPE_DRAWING_TOOLS["DRAG_MOVE"] = "drawing_tools.drag.move";
275
+ EVENTTYPE_VIEWPORT["VIEWPORT_VISIBLE"] = "viewport.visible";
245
276
  /**
246
- * The DRAG_END-event is sent when the dragging of a point has ended.
277
+ * The VIEWPORT_HIDDEN-event is sent when the viewport has become hidden.
247
278
  */
248
- EVENTTYPE_DRAWING_TOOLS["DRAG_END"] = "drawing_tools.drag.end";
249
- })(EVENTTYPE_DRAWING_TOOLS = exports.EVENTTYPE_DRAWING_TOOLS || (exports.EVENTTYPE_DRAWING_TOOLS = {}));
279
+ EVENTTYPE_VIEWPORT["VIEWPORT_HIDDEN"] = "viewport.hidden";
280
+ })(EVENTTYPE_VIEWPORT = exports.EVENTTYPE_VIEWPORT || (exports.EVENTTYPE_VIEWPORT = {}));
281
+ // #endregion Enums (10)
282
+ // #region Variables (1)
250
283
  /**
251
284
  * Definition of the event types.
252
285
  * These types are used to identify the type of an event in an event object {@link IEvent}.
@@ -264,4 +297,5 @@ exports.EVENTTYPE = {
264
297
  TASK: EVENTTYPE_TASK,
265
298
  DRAWING_TOOLS: EVENTTYPE_DRAWING_TOOLS
266
299
  };
300
+ // #endregion Variables (1)
267
301
  //# sourceMappingURL=EventTypes.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventTypes.js","sourceRoot":"","sources":["../../src/event-engine/EventTypes.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,IAAY,gBAaX;AAbD,WAAY,gBAAgB;IACxB;;OAEG;IACH,iDAA6B,CAAA;IAC7B;;OAEG;IACH,+CAA2B,CAAA;IAC3B;;OAEG;IACH,6CAAyB,CAAA;AAC7B,CAAC,EAbW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAa3B;AAED;;;;GAIG;AACH,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC3B;;OAEG;IACH,sFAA+D,CAAA;AACnE,CAAC,EALW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAK9B;AAED;;;;GAIG;AACH,IAAY,eASX;AATD,WAAY,eAAe;IACvB;;OAEG;IAC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AjCD,WAAY,kBAAkB;IAC1B;;OAEG;IACH,uDAAiC,CAAA;IACjC;;OAEG;IACH,yDAAmC,CAAA;IACnC;;OAEG;IACH,2DAAqC,CAAA;IACrC;;OAEG;IACH,2DAAqC,CAAA;IACrC;;OAEG;IACH,yDAAmC,CAAA;IACnC;;OAEG;IACH,0EAAoD,CAAA;IACpD;;OAEG;IACH,2DAAqC,CAAA;IACrC;;OAEG;IACH,yDAAmC,CAAA;AACvC,CAAC,EAjCW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAiC7B;AAED,wBAAwB;AAExB,wBAAwB;AAExB;;;;GAIG;AACU,QAAA,SAAS,GAAG;IACrB,MAAM,EAAE,gBAAgB;IACxB,MAAM,EAAE,gBAAgB;IACxB,SAAS,EAAE,mBAAmB;IAC9B,KAAK,EAAE,eAAe;IACtB,OAAO,EAAE,iBAAiB;IAC1B,SAAS,EAAE,mBAAmB;IAC9B,QAAQ,EAAE,kBAAkB;IAC5B,WAAW,EAAE,qBAAqB;IAClC,IAAI,EAAE,cAAc;IACpB,aAAa,EAAE,uBAAuB;CACzC,CAAC;AAEF,2BAA2B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/viewer.shared.services",
3
- "version": "3.0.6",
3
+ "version": "3.1.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "Michael Oppitz <michael@shapediver.com>",
@@ -42,7 +42,7 @@
42
42
  "@ctrl/tinycolor": "^3.4.0",
43
43
  "@shapediver/sdk.geometry-api-sdk-v2": "1.8.2",
44
44
  "@shapediver/viewer.settings": "1.0.2",
45
- "@shapediver/viewer.shared.build-data": "3.0.6",
45
+ "@shapediver/viewer.shared.build-data": "3.1.1",
46
46
  "@types/dompurify": "^2.3.1",
47
47
  "@types/ua-parser-js": "^0.7.36",
48
48
  "@types/uuid": "^9.0.0",
@@ -52,5 +52,5 @@
52
52
  "ua-parser-js": "^0.7.28",
53
53
  "uuid": "^9.0.0"
54
54
  },
55
- "gitHead": "c9a43ef749feeeb9b4825b6a25b37a06a62e78e9"
55
+ "gitHead": "907a4374f92599a4ffb37eedd2f5cc388b9c4aab"
56
56
  }
@@ -1,3 +1,11 @@
1
+ // #region Type aliases (1)
2
+
3
+ export type MainEventTypes = typeof EVENTTYPE_CAMERA | typeof EVENTTYPE_OUTPUT | typeof EVENTTYPE_RENDERING | typeof EVENTTYPE_SCENE | typeof EVENTTYPE_SESSION | typeof EVENTTYPE_PARAMETER | typeof EVENTTYPE_VIEWPORT | typeof EVENTTYPE_INTERACTION | typeof EVENTTYPE_DRAWING_TOOLS | typeof EVENTTYPE_TASK;
4
+
5
+ // #endregion Type aliases (1)
6
+
7
+ // #region Enums (10)
8
+
1
9
  /**
2
10
  * Event types for all camera events
3
11
  * The camera events are used to notify about camera changes, like start, move and end of camera movement.
@@ -21,99 +29,119 @@ export enum EVENTTYPE_CAMERA {
21
29
  }
22
30
 
23
31
  /**
24
- * Event types for all rendering events
25
- * The rendering events are used to notify about specific rendering events, like the finishing of the beauty rendering.
26
- * The events that are sent with the rendering events are of type {@link IRenderingEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
32
+ * Event types for all drawing tools events
33
+ * The drawing tools events are used to notify about drawing tools changes, like cancel, finish, update, inserted, removed, drag start, move and end.
34
+ * The events that are sent with the drawing tools events are of type {@link IDrawingToolsEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
27
35
  */
28
- export enum EVENTTYPE_RENDERING {
36
+ export enum EVENTTYPE_DRAWING_TOOLS {
29
37
  /**
30
- * The BEAUTY_RENDERING_FINISHED-event is sent when the beauty rendering has finished.
38
+ * The CANCEL-event is sent when the drawing process has been canceled.
31
39
  */
32
- BEAUTY_RENDERING_FINISHED = 'rendering.beautyRenderingFinished'
33
- }
34
-
35
- /**
36
- * Event types for all scene events
37
- * The scene events are used to notify about scene changes, like bounding box changes or empty bounding boxes.
38
- * The events that are sent with the scene events are of type {@link ISceneEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
39
- */
40
- export enum EVENTTYPE_SCENE {
40
+ CANCEL = 'drawing_tools.cancel',
41
41
  /**
42
- * The SCENE_BOUNDING_BOX_CHANGE-event is sent when the bounding box of the scene has changed.
42
+ * The FINISH-event is sent when the drawing process has been finished.
43
43
  */
44
- SCENE_BOUNDING_BOX_CHANGE = 'scene.boundingBoxChange',
44
+ FINISH = 'drawing_tools.finish',
45
45
  /**
46
- * TheSCENE_BOUNDING_BOX_EMPTY-event is sent when the bounding box of the scene is empty.
46
+ * The UPDATE-event is sent when the drawing process has been updated.
47
47
  */
48
- SCENE_BOUNDING_BOX_EMPTY = 'scene.boundingBoxEmpty'
49
- }
50
-
51
- /**
52
- * Event types for all viewport events
53
- * The viewport events are used to notify about viewport changes, like creation, update, closing, visibility changes or loading of settings.
54
- * The events that are sent with the viewport events are of type {@link IViewportEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
55
- */
56
- export enum EVENTTYPE_VIEWPORT {
48
+ UPDATE = 'drawing_tools.update',
57
49
  /**
58
- * The BUSY_MODE_ON-event is sent when the busy mode of the viewport has started.
50
+ * The ADDED-event is sent when a point has been added.
59
51
  */
60
- BUSY_MODE_ON = 'viewport.busy.on',
52
+ ADDED = 'drawing_tools.added',
61
53
  /**
62
- * The BUSY_MODE_OFF-event is sent when the busy mode of the viewport has ended.
54
+ * The REMOVED-event is sent when a point has been removed.
63
55
  */
64
- BUSY_MODE_OFF = 'viewport.busy.off',
56
+ REMOVED = 'drawing_tools.removed',
65
57
  /**
66
- * The VIEWPORT_CREATED-event is sent when the viewport has been created.
58
+ * The MOVED-event is sent when a point has been moved.
67
59
  */
68
- VIEWPORT_CREATED = 'viewport.created',
60
+ MOVED = 'drawing_tools.moved',
69
61
  /**
70
- * The VIEWPORT_UPDATED-event is sent when the viewport has been updated.
62
+ * The SELECTED-event is sent when a point has been selected.
71
63
  */
72
- VIEWPORT_UPDATED = 'viewport.updated',
64
+ SELECTED = 'drawing_tools.selected',
73
65
  /**
74
- * The VIEWPORT_CLOSED-event is sent when the viewport has been closed.
66
+ * The DESELECTED-event is sent when a point has been deselected.
75
67
  */
76
- VIEWPORT_CLOSED = 'viewport.closed',
68
+ DESELECTED = 'drawing_tools.deselected',
77
69
  /**
78
- * The VIEWPORT_SETTINGS_LOADED-event is sent when the settings of the viewport have been loaded.
70
+ * The GEOMETRY_CHANGED-event is sent when the geometry has been changed.
79
71
  */
80
- VIEWPORT_SETTINGS_LOADED = 'viewport.settingsLoaded',
72
+ GEOMETRY_CHANGED = 'drawing_tools.geometry.changed',
81
73
  /**
82
- * The VIEWPORT_VISIBLE-event is sent when the viewport has become visible.
74
+ * The DRAG_START-event is sent when the dragging of a point has started.
83
75
  */
84
- VIEWPORT_VISIBLE = 'viewport.visible',
76
+ DRAG_START = 'drawing_tools.drag.start',
85
77
  /**
86
- * The VIEWPORT_HIDDEN-event is sent when the viewport has become hidden.
78
+ * The DRAG_MOVE-event is sent when a point is being dragged.
87
79
  */
88
- VIEWPORT_HIDDEN = 'viewport.hidden',
80
+ DRAG_MOVE = 'drawing_tools.drag.move',
81
+ /**
82
+ * The DRAG_END-event is sent when the dragging of a point has ended.
83
+ */
84
+ DRAG_END = 'drawing_tools.drag.end',
85
+ /**
86
+ * The MINIMUM_POINTS-event is sent when the minimum number of points has not been met.
87
+ */
88
+ MINIMUM_POINTS = 'drawing_tools.minimumPoints',
89
+ /**
90
+ * The MAXIMUM_POINTS-event is sent when the maximum number of points has been exceeded.
91
+ */
92
+ MAXIMUM_POINTS = 'drawing_tools.maximumPoints',
93
+ /**
94
+ * The UNCLOSED_LOOP-event is sent when the loop is not closed, but should be.
95
+ */
96
+ UNCLOSED_LOOP = 'drawing_tools.unclosedLoop',
89
97
  }
90
98
 
91
99
  /**
92
- * Event types for all session events
93
- * The session events are used to notify about session changes, like creation, customization, closing, loading of initial outputs or delayed loading of SDTF.
94
- * The events that are sent with the session events are of type {@link ISessionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
100
+ * Event types for all interaction events
101
+ * The interaction events are used to notify about interaction changes, like drag start, move and end, hover on and off, select on and off.
102
+ * The events that are sent with the interaction events are of type {@link IInteractionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
95
103
  */
96
- export enum EVENTTYPE_SESSION {
104
+ export enum EVENTTYPE_INTERACTION {
97
105
  /**
98
- * The SESSION_CREATED-event is sent when the session has been created.
106
+ * The DRAG_START-event is sent when the dragging of an object has started.
99
107
  */
100
- SESSION_CREATED = 'session.created',
108
+ DRAG_START = 'interaction.drag.start',
101
109
  /**
102
- * The SESSION_CUSTOMIZED-event is sent when the session has been customized.
110
+ * The DRAG_MOVE-event is sent when an object is being dragged.
103
111
  */
104
- SESSION_CUSTOMIZED = 'session.customized',
112
+ DRAG_MOVE = 'interaction.drag.move',
105
113
  /**
106
- * The SESSION_CLOSED-event is sent when the session has been closed.
114
+ * The DRAG_END-event is sent when the dragging of an object has ended.
107
115
  */
108
- SESSION_CLOSED = 'session.closed',
116
+ DRAG_END = 'interaction.drag.end',
109
117
  /**
110
- * The SESSION_INITIAL_OUTPUTS_LOADED-event is sent when the initial outputs of the session have been loaded.
118
+ * The HOVER_ON-event is sent when an object has been hovered.
111
119
  */
112
- SESSION_INITIAL_OUTPUTS_LOADED = 'session.initialOutputsLoaded',
120
+ HOVER_ON = 'interaction.hover.on',
113
121
  /**
114
- * The SESSION_SDTF_DELAYED_LOADED-event is sent when the SDTF of the session has been delayed loaded.
122
+ * The HOVER_OFF-event is sent when an object has been unhovered.
115
123
  */
116
- SESSION_SDTF_DELAYED_LOADED = 'session.sdtfDelayedLoaded',
124
+ HOVER_OFF = 'interaction.hover.off',
125
+ /**
126
+ * The SELECT_ON-event is sent when an object has been selected.
127
+ */
128
+ SELECT_ON = 'interaction.select.on',
129
+ /**
130
+ * The SELECT_OFF-event is sent when an object has been deselected.
131
+ */
132
+ SELECT_OFF = 'interaction.select.off',
133
+ }
134
+
135
+ /**
136
+ * Event types for all output events
137
+ * The output events are used to notify about output changes, like updated outputs.
138
+ * The events that are sent with the output events are of type {@link IOutputEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
139
+ */
140
+ export enum EVENTTYPE_OUTPUT {
141
+ /**
142
+ * The OUTPUT_UPDATED-event is sent when an output has been updated.
143
+ */
144
+ OUTPUT_UPDATED = 'output.updated'
117
145
  }
118
146
 
119
147
  /**
@@ -133,127 +161,139 @@ export enum EVENTTYPE_PARAMETER {
133
161
  }
134
162
 
135
163
  /**
136
- * Event types for all output events
137
- * The output events are used to notify about output changes, like updated outputs.
138
- * The events that are sent with the output events are of type {@link IOutputEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
164
+ * Event types for all rendering events
165
+ * The rendering events are used to notify about specific rendering events, like the finishing of the beauty rendering.
166
+ * The events that are sent with the rendering events are of type {@link IRenderingEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
139
167
  */
140
- export enum EVENTTYPE_OUTPUT {
168
+ export enum EVENTTYPE_RENDERING {
141
169
  /**
142
- * The OUTPUT_UPDATED-event is sent when an output has been updated.
170
+ * The BEAUTY_RENDERING_FINISHED-event is sent when the beauty rendering has finished.
143
171
  */
144
- OUTPUT_UPDATED = 'output.updated'
172
+ BEAUTY_RENDERING_FINISHED = 'rendering.beautyRenderingFinished'
145
173
  }
146
174
 
147
175
  /**
148
- * Event types for all task events
149
- * The task events are used to notify about task changes, like start, process, end or cancel of a task.
150
- * The events that are sent with the task events are of type {@link ITaskEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
176
+ * Event types for all scene events
177
+ * The scene events are used to notify about scene changes, like bounding box changes or empty bounding boxes.
178
+ * The events that are sent with the scene events are of type {@link ISceneEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
151
179
  */
152
- export enum EVENTTYPE_TASK {
153
- /**
154
- * The TASK_START-event is sent when a task has started.
155
- */
156
- TASK_START = 'task.start',
157
- /**
158
- * The TASK_PROCESS-event is sent when the process of a task has been updated.
159
- */
160
- TASK_PROCESS = 'task.process',
180
+ export enum EVENTTYPE_SCENE {
161
181
  /**
162
- * The TASK_END-event is sent when a task has ended.
182
+ * The SCENE_BOUNDING_BOX_CHANGE-event is sent when the bounding box of the scene has changed.
163
183
  */
164
- TASK_END = 'task.end',
184
+ SCENE_BOUNDING_BOX_CHANGE = 'scene.boundingBoxChange',
165
185
  /**
166
- * The TASK_CANCEL-event is sent when a task has been canceled.
186
+ * TheSCENE_BOUNDING_BOX_EMPTY-event is sent when the bounding box of the scene is empty.
167
187
  */
168
- TASK_CANCEL = 'task.cancel',
188
+ SCENE_BOUNDING_BOX_EMPTY = 'scene.boundingBoxEmpty'
169
189
  }
170
190
 
171
191
  /**
172
- * Event types for all interaction events
173
- * The interaction events are used to notify about interaction changes, like drag start, move and end, hover on and off, select on and off.
174
- * The events that are sent with the interaction events are of type {@link IInteractionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
192
+ * Event types for all session events
193
+ * The session events are used to notify about session changes, like creation, customization, closing, loading of initial outputs or delayed loading of SDTF.
194
+ * The events that are sent with the session events are of type {@link ISessionEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
175
195
  */
176
- export enum EVENTTYPE_INTERACTION {
196
+ export enum EVENTTYPE_SESSION {
177
197
  /**
178
- * The DRAG_START-event is sent when the dragging of an object has started.
198
+ * The SESSION_CREATED-event is sent when the session has been created.
179
199
  */
180
- DRAG_START = 'interaction.drag.start',
200
+ SESSION_CREATED = 'session.created',
181
201
  /**
182
- * The DRAG_MOVE-event is sent when an object is being dragged.
202
+ * The SESSION_CUSTOMIZED-event is sent when the session has been customized.
183
203
  */
184
- DRAG_MOVE = 'interaction.drag.move',
204
+ SESSION_CUSTOMIZED = 'session.customized',
185
205
  /**
186
- * The DRAG_END-event is sent when the dragging of an object has ended.
206
+ * The SESSION_CLOSED-event is sent when the session has been closed.
187
207
  */
188
- DRAG_END = 'interaction.drag.end',
208
+ SESSION_CLOSED = 'session.closed',
189
209
  /**
190
- * The HOVER_ON-event is sent when an object has been hovered.
210
+ * The SESSION_INITIAL_OUTPUTS_LOADED-event is sent when the initial outputs of the session have been loaded.
191
211
  */
192
- HOVER_ON = 'interaction.hover.on',
212
+ SESSION_INITIAL_OUTPUTS_LOADED = 'session.initialOutputsLoaded',
193
213
  /**
194
- * The HOVER_OFF-event is sent when an object has been unhovered.
214
+ * The SESSION_SDTF_DELAYED_LOADED-event is sent when the SDTF of the session has been delayed loaded.
195
215
  */
196
- HOVER_OFF = 'interaction.hover.off',
216
+ SESSION_SDTF_DELAYED_LOADED = 'session.sdtfDelayedLoaded',
217
+ }
218
+
219
+ /**
220
+ * Event types for all task events
221
+ * The task events are used to notify about task changes, like start, process, end or cancel of a task.
222
+ * The events that are sent with the task events are of type {@link ITaskEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
223
+ */
224
+ export enum EVENTTYPE_TASK {
197
225
  /**
198
- * The SELECT_ON-event is sent when an object has been selected.
226
+ * The TASK_START-event is sent when a task has started.
199
227
  */
200
- SELECT_ON = 'interaction.select.on',
228
+ TASK_START = 'task.start',
201
229
  /**
202
- * The SELECT_OFF-event is sent when an object has been deselected.
230
+ * The TASK_PROCESS-event is sent when the process of a task has been updated.
203
231
  */
204
- SELECT_OFF = 'interaction.select.off',
232
+ TASK_PROCESS = 'task.process',
233
+ /**
234
+ * The TASK_END-event is sent when a task has ended.
235
+ */
236
+ TASK_END = 'task.end',
237
+ /**
238
+ * The TASK_CANCEL-event is sent when a task has been canceled.
239
+ */
240
+ TASK_CANCEL = 'task.cancel',
205
241
  }
206
242
 
207
243
  /**
208
- * Event types for all drawing tools events
209
- * The drawing tools events are used to notify about drawing tools changes, like cancel, finish, update, inserted, removed, drag start, move and end.
210
- * The events that are sent with the drawing tools events are of type {@link IDrawingToolsEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
244
+ * Event types for all viewport events
245
+ * The viewport events are used to notify about viewport changes, like creation, update, closing, visibility changes or loading of settings.
246
+ * The events that are sent with the viewport events are of type {@link IViewportEvent}. The {@link EventResponseMapping} can used to map the event type to the corresponding event interface.
211
247
  */
212
- export enum EVENTTYPE_DRAWING_TOOLS {
248
+ export enum EVENTTYPE_VIEWPORT {
213
249
  /**
214
- * The CANCEL-event is sent when the drawing process has been canceled.
250
+ * The BUSY_MODE_ON-event is sent when the busy mode of the viewport has started.
215
251
  */
216
- CANCEL = 'drawing_tools.cancel',
252
+ BUSY_MODE_ON = 'viewport.busy.on',
217
253
  /**
218
- * The FINISH-event is sent when the drawing process has been finished.
254
+ * The BUSY_MODE_OFF-event is sent when the busy mode of the viewport has ended.
219
255
  */
220
- FINISH = 'drawing_tools.finish',
256
+ BUSY_MODE_OFF = 'viewport.busy.off',
221
257
  /**
222
- * The UPDATE-event is sent when the drawing process has been updated.
258
+ * The VIEWPORT_CREATED-event is sent when the viewport has been created.
223
259
  */
224
- UPDATE = 'drawing_tools.update',
260
+ VIEWPORT_CREATED = 'viewport.created',
225
261
  /**
226
- * The INSERTED-event is sent when a point has been inserted.
262
+ * The VIEWPORT_UPDATED-event is sent when the viewport has been updated.
227
263
  */
228
- INSERTED = 'drawing_tools.inserted',
264
+ VIEWPORT_UPDATED = 'viewport.updated',
229
265
  /**
230
- * The REMOVED-event is sent when a point has been removed.
266
+ * The VIEWPORT_CLOSED-event is sent when the viewport has been closed.
231
267
  */
232
- REMOVED = 'drawing_tools.removed',
268
+ VIEWPORT_CLOSED = 'viewport.closed',
233
269
  /**
234
- * The DRAG_START-event is sent when the dragging of a point has started.
270
+ * The VIEWPORT_SETTINGS_LOADED-event is sent when the settings of the viewport have been loaded.
235
271
  */
236
- DRAG_START = 'drawing_tools.drag.start',
272
+ VIEWPORT_SETTINGS_LOADED = 'viewport.settingsLoaded',
237
273
  /**
238
- * The DRAG_MOVE-event is sent when a point is being dragged.
274
+ * The VIEWPORT_VISIBLE-event is sent when the viewport has become visible.
239
275
  */
240
- DRAG_MOVE = 'drawing_tools.drag.move',
276
+ VIEWPORT_VISIBLE = 'viewport.visible',
241
277
  /**
242
- * The DRAG_END-event is sent when the dragging of a point has ended.
278
+ * The VIEWPORT_HIDDEN-event is sent when the viewport has become hidden.
243
279
  */
244
- DRAG_END = 'drawing_tools.drag.end',
280
+ VIEWPORT_HIDDEN = 'viewport.hidden',
245
281
  }
246
282
 
283
+ // #endregion Enums (10)
284
+
285
+ // #region Variables (1)
286
+
247
287
  /**
248
288
  * Definition of the event types.
249
289
  * These types are used to identify the type of an event in an event object {@link IEvent}.
250
290
  * The {@link EventResponseMapping} is used to map the event type to the corresponding event interface.
251
291
  */
252
- export const EVENTTYPE = {
253
- CAMERA: EVENTTYPE_CAMERA,
292
+ export const EVENTTYPE = {
293
+ CAMERA: EVENTTYPE_CAMERA,
254
294
  OUTPUT: EVENTTYPE_OUTPUT,
255
- RENDERING: EVENTTYPE_RENDERING,
256
- SCENE: EVENTTYPE_SCENE,
295
+ RENDERING: EVENTTYPE_RENDERING,
296
+ SCENE: EVENTTYPE_SCENE,
257
297
  SESSION: EVENTTYPE_SESSION,
258
298
  PARAMETER: EVENTTYPE_PARAMETER,
259
299
  VIEWPORT: EVENTTYPE_VIEWPORT,
@@ -262,4 +302,4 @@ export const EVENTTYPE = {
262
302
  DRAWING_TOOLS: EVENTTYPE_DRAWING_TOOLS
263
303
  };
264
304
 
265
- export type MainEventTypes = typeof EVENTTYPE_CAMERA | typeof EVENTTYPE_OUTPUT | typeof EVENTTYPE_RENDERING | typeof EVENTTYPE_SCENE | typeof EVENTTYPE_SESSION | typeof EVENTTYPE_PARAMETER | typeof EVENTTYPE_VIEWPORT | typeof EVENTTYPE_INTERACTION | typeof EVENTTYPE_DRAWING_TOOLS | typeof EVENTTYPE_TASK;
305
+ // #endregion Variables (1)