@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
|
|
24
|
-
* The
|
|
25
|
-
* The events that are sent with the
|
|
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
|
|
28
|
+
export declare enum EVENTTYPE_DRAWING_TOOLS {
|
|
28
29
|
/**
|
|
29
|
-
* The
|
|
30
|
+
* The CANCEL-event is sent when the drawing process has been canceled.
|
|
30
31
|
*/
|
|
31
|
-
|
|
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
|
|
34
|
+
* The FINISH-event is sent when the drawing process has been finished.
|
|
41
35
|
*/
|
|
42
|
-
|
|
36
|
+
FINISH = "drawing_tools.finish",
|
|
43
37
|
/**
|
|
44
|
-
*
|
|
38
|
+
* The UPDATE-event is sent when the drawing process has been updated.
|
|
45
39
|
*/
|
|
46
|
-
|
|
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
|
|
42
|
+
* The ADDED-event is sent when a point has been added.
|
|
56
43
|
*/
|
|
57
|
-
|
|
44
|
+
ADDED = "drawing_tools.added",
|
|
58
45
|
/**
|
|
59
|
-
* The
|
|
46
|
+
* The REMOVED-event is sent when a point has been removed.
|
|
60
47
|
*/
|
|
61
|
-
|
|
48
|
+
REMOVED = "drawing_tools.removed",
|
|
62
49
|
/**
|
|
63
|
-
* The
|
|
50
|
+
* The MOVED-event is sent when a point has been moved.
|
|
64
51
|
*/
|
|
65
|
-
|
|
52
|
+
MOVED = "drawing_tools.moved",
|
|
66
53
|
/**
|
|
67
|
-
* The
|
|
54
|
+
* The SELECTED-event is sent when a point has been selected.
|
|
68
55
|
*/
|
|
69
|
-
|
|
56
|
+
SELECTED = "drawing_tools.selected",
|
|
70
57
|
/**
|
|
71
|
-
* The
|
|
58
|
+
* The DESELECTED-event is sent when a point has been deselected.
|
|
72
59
|
*/
|
|
73
|
-
|
|
60
|
+
DESELECTED = "drawing_tools.deselected",
|
|
74
61
|
/**
|
|
75
|
-
* The
|
|
62
|
+
* The GEOMETRY_CHANGED-event is sent when the geometry has been changed.
|
|
76
63
|
*/
|
|
77
|
-
|
|
64
|
+
GEOMETRY_CHANGED = "drawing_tools.geometry.changed",
|
|
78
65
|
/**
|
|
79
|
-
* The
|
|
66
|
+
* The DRAG_START-event is sent when the dragging of a point has started.
|
|
80
67
|
*/
|
|
81
|
-
|
|
68
|
+
DRAG_START = "drawing_tools.drag.start",
|
|
82
69
|
/**
|
|
83
|
-
* The
|
|
70
|
+
* The DRAG_MOVE-event is sent when a point is being dragged.
|
|
84
71
|
*/
|
|
85
|
-
|
|
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
|
|
89
|
-
* The
|
|
90
|
-
* The events that are sent with the
|
|
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
|
|
95
|
+
export declare enum EVENTTYPE_INTERACTION {
|
|
93
96
|
/**
|
|
94
|
-
* The
|
|
97
|
+
* The DRAG_START-event is sent when the dragging of an object has started.
|
|
95
98
|
*/
|
|
96
|
-
|
|
99
|
+
DRAG_START = "interaction.drag.start",
|
|
97
100
|
/**
|
|
98
|
-
* The
|
|
101
|
+
* The DRAG_MOVE-event is sent when an object is being dragged.
|
|
99
102
|
*/
|
|
100
|
-
|
|
103
|
+
DRAG_MOVE = "interaction.drag.move",
|
|
101
104
|
/**
|
|
102
|
-
* The
|
|
105
|
+
* The DRAG_END-event is sent when the dragging of an object has ended.
|
|
103
106
|
*/
|
|
104
|
-
|
|
107
|
+
DRAG_END = "interaction.drag.end",
|
|
105
108
|
/**
|
|
106
|
-
* The
|
|
109
|
+
* The HOVER_ON-event is sent when an object has been hovered.
|
|
107
110
|
*/
|
|
108
|
-
|
|
111
|
+
HOVER_ON = "interaction.hover.on",
|
|
109
112
|
/**
|
|
110
|
-
* The
|
|
113
|
+
* The HOVER_OFF-event is sent when an object has been unhovered.
|
|
111
114
|
*/
|
|
112
|
-
|
|
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
|
|
131
|
-
* The
|
|
132
|
-
* The events that are sent with the
|
|
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
|
|
156
|
+
export declare enum EVENTTYPE_RENDERING {
|
|
135
157
|
/**
|
|
136
|
-
* The
|
|
158
|
+
* The BEAUTY_RENDERING_FINISHED-event is sent when the beauty rendering has finished.
|
|
137
159
|
*/
|
|
138
|
-
|
|
160
|
+
BEAUTY_RENDERING_FINISHED = "rendering.beautyRenderingFinished"
|
|
139
161
|
}
|
|
140
162
|
/**
|
|
141
|
-
* Event types for all
|
|
142
|
-
* The
|
|
143
|
-
* The events that are sent with the
|
|
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
|
|
167
|
+
export declare enum EVENTTYPE_SCENE {
|
|
146
168
|
/**
|
|
147
|
-
* The
|
|
169
|
+
* The SCENE_BOUNDING_BOX_CHANGE-event is sent when the bounding box of the scene has changed.
|
|
148
170
|
*/
|
|
149
|
-
|
|
171
|
+
SCENE_BOUNDING_BOX_CHANGE = "scene.boundingBoxChange",
|
|
150
172
|
/**
|
|
151
|
-
*
|
|
173
|
+
* TheSCENE_BOUNDING_BOX_EMPTY-event is sent when the bounding box of the scene is empty.
|
|
152
174
|
*/
|
|
153
|
-
|
|
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
|
|
184
|
+
* The SESSION_CREATED-event is sent when the session has been created.
|
|
156
185
|
*/
|
|
157
|
-
|
|
186
|
+
SESSION_CREATED = "session.created",
|
|
158
187
|
/**
|
|
159
|
-
* The
|
|
188
|
+
* The SESSION_CUSTOMIZED-event is sent when the session has been customized.
|
|
160
189
|
*/
|
|
161
|
-
|
|
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
|
|
192
|
+
* The SESSION_CLOSED-event is sent when the session has been closed.
|
|
171
193
|
*/
|
|
172
|
-
|
|
194
|
+
SESSION_CLOSED = "session.closed",
|
|
173
195
|
/**
|
|
174
|
-
* The
|
|
196
|
+
* The SESSION_INITIAL_OUTPUTS_LOADED-event is sent when the initial outputs of the session have been loaded.
|
|
175
197
|
*/
|
|
176
|
-
|
|
198
|
+
SESSION_INITIAL_OUTPUTS_LOADED = "session.initialOutputsLoaded",
|
|
177
199
|
/**
|
|
178
|
-
* The
|
|
200
|
+
* The SESSION_SDTF_DELAYED_LOADED-event is sent when the SDTF of the session has been delayed loaded.
|
|
179
201
|
*/
|
|
180
|
-
|
|
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
|
|
211
|
+
* The TASK_START-event is sent when a task has started.
|
|
183
212
|
*/
|
|
184
|
-
|
|
213
|
+
TASK_START = "task.start",
|
|
185
214
|
/**
|
|
186
|
-
* The
|
|
215
|
+
* The TASK_PROCESS-event is sent when the process of a task has been updated.
|
|
187
216
|
*/
|
|
188
|
-
|
|
217
|
+
TASK_PROCESS = "task.process",
|
|
189
218
|
/**
|
|
190
|
-
* The
|
|
219
|
+
* The TASK_END-event is sent when a task has ended.
|
|
191
220
|
*/
|
|
192
|
-
|
|
221
|
+
TASK_END = "task.end",
|
|
193
222
|
/**
|
|
194
|
-
* The
|
|
223
|
+
* The TASK_CANCEL-event is sent when a task has been canceled.
|
|
195
224
|
*/
|
|
196
|
-
|
|
225
|
+
TASK_CANCEL = "task.cancel"
|
|
197
226
|
}
|
|
198
227
|
/**
|
|
199
|
-
* Event types for all
|
|
200
|
-
* The
|
|
201
|
-
* The events that are sent with the
|
|
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
|
|
232
|
+
export declare enum EVENTTYPE_VIEWPORT {
|
|
204
233
|
/**
|
|
205
|
-
* The
|
|
234
|
+
* The BUSY_MODE_ON-event is sent when the busy mode of the viewport has started.
|
|
206
235
|
*/
|
|
207
|
-
|
|
236
|
+
BUSY_MODE_ON = "viewport.busy.on",
|
|
208
237
|
/**
|
|
209
|
-
* The
|
|
238
|
+
* The BUSY_MODE_OFF-event is sent when the busy mode of the viewport has ended.
|
|
210
239
|
*/
|
|
211
|
-
|
|
240
|
+
BUSY_MODE_OFF = "viewport.busy.off",
|
|
212
241
|
/**
|
|
213
|
-
* The
|
|
242
|
+
* The VIEWPORT_CREATED-event is sent when the viewport has been created.
|
|
214
243
|
*/
|
|
215
|
-
|
|
244
|
+
VIEWPORT_CREATED = "viewport.created",
|
|
216
245
|
/**
|
|
217
|
-
* The
|
|
246
|
+
* The VIEWPORT_UPDATED-event is sent when the viewport has been updated.
|
|
218
247
|
*/
|
|
219
|
-
|
|
248
|
+
VIEWPORT_UPDATED = "viewport.updated",
|
|
220
249
|
/**
|
|
221
|
-
* The
|
|
250
|
+
* The VIEWPORT_CLOSED-event is sent when the viewport has been closed.
|
|
222
251
|
*/
|
|
223
|
-
|
|
252
|
+
VIEWPORT_CLOSED = "viewport.closed",
|
|
224
253
|
/**
|
|
225
|
-
* The
|
|
254
|
+
* The VIEWPORT_SETTINGS_LOADED-event is sent when the settings of the viewport have been loaded.
|
|
226
255
|
*/
|
|
227
|
-
|
|
256
|
+
VIEWPORT_SETTINGS_LOADED = "viewport.settingsLoaded",
|
|
228
257
|
/**
|
|
229
|
-
* The
|
|
258
|
+
* The VIEWPORT_VISIBLE-event is sent when the viewport has become visible.
|
|
230
259
|
*/
|
|
231
|
-
|
|
260
|
+
VIEWPORT_VISIBLE = "viewport.visible",
|
|
232
261
|
/**
|
|
233
|
-
* The
|
|
262
|
+
* The VIEWPORT_HIDDEN-event is sent when the viewport has become hidden.
|
|
234
263
|
*/
|
|
235
|
-
|
|
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":"
|
|
1
|
+
{"version":3,"file":"EventTypes.d.ts","sourceRoot":"","sources":["../../src/event-engine/EventTypes.ts"],"names":[],"mappings":"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"}
|
|
@@ -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.
|
|
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
|
|
28
|
-
* The
|
|
29
|
-
* The events that are sent with the
|
|
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
|
|
32
|
-
(function (
|
|
34
|
+
var EVENTTYPE_DRAWING_TOOLS;
|
|
35
|
+
(function (EVENTTYPE_DRAWING_TOOLS) {
|
|
33
36
|
/**
|
|
34
|
-
* The
|
|
37
|
+
* The CANCEL-event is sent when the drawing process has been canceled.
|
|
35
38
|
*/
|
|
36
|
-
|
|
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
|
|
41
|
+
* The FINISH-event is sent when the drawing process has been finished.
|
|
47
42
|
*/
|
|
48
|
-
|
|
43
|
+
EVENTTYPE_DRAWING_TOOLS["FINISH"] = "drawing_tools.finish";
|
|
49
44
|
/**
|
|
50
|
-
*
|
|
45
|
+
* The UPDATE-event is sent when the drawing process has been updated.
|
|
51
46
|
*/
|
|
52
|
-
|
|
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
|
|
49
|
+
* The ADDED-event is sent when a point has been added.
|
|
63
50
|
*/
|
|
64
|
-
|
|
51
|
+
EVENTTYPE_DRAWING_TOOLS["ADDED"] = "drawing_tools.added";
|
|
65
52
|
/**
|
|
66
|
-
* The
|
|
53
|
+
* The REMOVED-event is sent when a point has been removed.
|
|
67
54
|
*/
|
|
68
|
-
|
|
55
|
+
EVENTTYPE_DRAWING_TOOLS["REMOVED"] = "drawing_tools.removed";
|
|
69
56
|
/**
|
|
70
|
-
* The
|
|
57
|
+
* The MOVED-event is sent when a point has been moved.
|
|
71
58
|
*/
|
|
72
|
-
|
|
59
|
+
EVENTTYPE_DRAWING_TOOLS["MOVED"] = "drawing_tools.moved";
|
|
73
60
|
/**
|
|
74
|
-
* The
|
|
61
|
+
* The SELECTED-event is sent when a point has been selected.
|
|
75
62
|
*/
|
|
76
|
-
|
|
63
|
+
EVENTTYPE_DRAWING_TOOLS["SELECTED"] = "drawing_tools.selected";
|
|
77
64
|
/**
|
|
78
|
-
* The
|
|
65
|
+
* The DESELECTED-event is sent when a point has been deselected.
|
|
79
66
|
*/
|
|
80
|
-
|
|
67
|
+
EVENTTYPE_DRAWING_TOOLS["DESELECTED"] = "drawing_tools.deselected";
|
|
81
68
|
/**
|
|
82
|
-
* The
|
|
69
|
+
* The GEOMETRY_CHANGED-event is sent when the geometry has been changed.
|
|
83
70
|
*/
|
|
84
|
-
|
|
71
|
+
EVENTTYPE_DRAWING_TOOLS["GEOMETRY_CHANGED"] = "drawing_tools.geometry.changed";
|
|
85
72
|
/**
|
|
86
|
-
* The
|
|
73
|
+
* The DRAG_START-event is sent when the dragging of a point has started.
|
|
87
74
|
*/
|
|
88
|
-
|
|
75
|
+
EVENTTYPE_DRAWING_TOOLS["DRAG_START"] = "drawing_tools.drag.start";
|
|
89
76
|
/**
|
|
90
|
-
* The
|
|
77
|
+
* The DRAG_MOVE-event is sent when a point is being dragged.
|
|
91
78
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
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
|
|
96
|
-
* The
|
|
97
|
-
* The events that are sent with the
|
|
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
|
|
100
|
-
(function (
|
|
102
|
+
var EVENTTYPE_INTERACTION;
|
|
103
|
+
(function (EVENTTYPE_INTERACTION) {
|
|
101
104
|
/**
|
|
102
|
-
* The
|
|
105
|
+
* The DRAG_START-event is sent when the dragging of an object has started.
|
|
103
106
|
*/
|
|
104
|
-
|
|
107
|
+
EVENTTYPE_INTERACTION["DRAG_START"] = "interaction.drag.start";
|
|
105
108
|
/**
|
|
106
|
-
* The
|
|
109
|
+
* The DRAG_MOVE-event is sent when an object is being dragged.
|
|
107
110
|
*/
|
|
108
|
-
|
|
111
|
+
EVENTTYPE_INTERACTION["DRAG_MOVE"] = "interaction.drag.move";
|
|
109
112
|
/**
|
|
110
|
-
* The
|
|
113
|
+
* The DRAG_END-event is sent when the dragging of an object has ended.
|
|
111
114
|
*/
|
|
112
|
-
|
|
115
|
+
EVENTTYPE_INTERACTION["DRAG_END"] = "interaction.drag.end";
|
|
113
116
|
/**
|
|
114
|
-
* The
|
|
117
|
+
* The HOVER_ON-event is sent when an object has been hovered.
|
|
115
118
|
*/
|
|
116
|
-
|
|
119
|
+
EVENTTYPE_INTERACTION["HOVER_ON"] = "interaction.hover.on";
|
|
117
120
|
/**
|
|
118
|
-
* The
|
|
121
|
+
* The HOVER_OFF-event is sent when an object has been unhovered.
|
|
119
122
|
*/
|
|
120
|
-
|
|
121
|
-
|
|
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
|
|
140
|
-
* The
|
|
141
|
-
* The events that are sent with the
|
|
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
|
|
144
|
-
(function (
|
|
166
|
+
var EVENTTYPE_RENDERING;
|
|
167
|
+
(function (EVENTTYPE_RENDERING) {
|
|
145
168
|
/**
|
|
146
|
-
* The
|
|
169
|
+
* The BEAUTY_RENDERING_FINISHED-event is sent when the beauty rendering has finished.
|
|
147
170
|
*/
|
|
148
|
-
|
|
149
|
-
})(
|
|
171
|
+
EVENTTYPE_RENDERING["BEAUTY_RENDERING_FINISHED"] = "rendering.beautyRenderingFinished";
|
|
172
|
+
})(EVENTTYPE_RENDERING = exports.EVENTTYPE_RENDERING || (exports.EVENTTYPE_RENDERING = {}));
|
|
150
173
|
/**
|
|
151
|
-
* Event types for all
|
|
152
|
-
* The
|
|
153
|
-
* The events that are sent with the
|
|
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
|
|
156
|
-
(function (
|
|
178
|
+
var EVENTTYPE_SCENE;
|
|
179
|
+
(function (EVENTTYPE_SCENE) {
|
|
157
180
|
/**
|
|
158
|
-
* The
|
|
181
|
+
* The SCENE_BOUNDING_BOX_CHANGE-event is sent when the bounding box of the scene has changed.
|
|
159
182
|
*/
|
|
160
|
-
|
|
183
|
+
EVENTTYPE_SCENE["SCENE_BOUNDING_BOX_CHANGE"] = "scene.boundingBoxChange";
|
|
161
184
|
/**
|
|
162
|
-
*
|
|
185
|
+
* TheSCENE_BOUNDING_BOX_EMPTY-event is sent when the bounding box of the scene is empty.
|
|
163
186
|
*/
|
|
164
|
-
|
|
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
|
|
197
|
+
* The SESSION_CREATED-event is sent when the session has been created.
|
|
167
198
|
*/
|
|
168
|
-
|
|
199
|
+
EVENTTYPE_SESSION["SESSION_CREATED"] = "session.created";
|
|
169
200
|
/**
|
|
170
|
-
* The
|
|
201
|
+
* The SESSION_CUSTOMIZED-event is sent when the session has been customized.
|
|
171
202
|
*/
|
|
172
|
-
|
|
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
|
|
205
|
+
* The SESSION_CLOSED-event is sent when the session has been closed.
|
|
183
206
|
*/
|
|
184
|
-
|
|
207
|
+
EVENTTYPE_SESSION["SESSION_CLOSED"] = "session.closed";
|
|
185
208
|
/**
|
|
186
|
-
* The
|
|
209
|
+
* The SESSION_INITIAL_OUTPUTS_LOADED-event is sent when the initial outputs of the session have been loaded.
|
|
187
210
|
*/
|
|
188
|
-
|
|
211
|
+
EVENTTYPE_SESSION["SESSION_INITIAL_OUTPUTS_LOADED"] = "session.initialOutputsLoaded";
|
|
189
212
|
/**
|
|
190
|
-
* The
|
|
213
|
+
* The SESSION_SDTF_DELAYED_LOADED-event is sent when the SDTF of the session has been delayed loaded.
|
|
191
214
|
*/
|
|
192
|
-
|
|
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
|
|
225
|
+
* The TASK_START-event is sent when a task has started.
|
|
195
226
|
*/
|
|
196
|
-
|
|
227
|
+
EVENTTYPE_TASK["TASK_START"] = "task.start";
|
|
197
228
|
/**
|
|
198
|
-
* The
|
|
229
|
+
* The TASK_PROCESS-event is sent when the process of a task has been updated.
|
|
199
230
|
*/
|
|
200
|
-
|
|
231
|
+
EVENTTYPE_TASK["TASK_PROCESS"] = "task.process";
|
|
201
232
|
/**
|
|
202
|
-
* The
|
|
233
|
+
* The TASK_END-event is sent when a task has ended.
|
|
203
234
|
*/
|
|
204
|
-
|
|
235
|
+
EVENTTYPE_TASK["TASK_END"] = "task.end";
|
|
205
236
|
/**
|
|
206
|
-
* The
|
|
237
|
+
* The TASK_CANCEL-event is sent when a task has been canceled.
|
|
207
238
|
*/
|
|
208
|
-
|
|
209
|
-
})(
|
|
239
|
+
EVENTTYPE_TASK["TASK_CANCEL"] = "task.cancel";
|
|
240
|
+
})(EVENTTYPE_TASK = exports.EVENTTYPE_TASK || (exports.EVENTTYPE_TASK = {}));
|
|
210
241
|
/**
|
|
211
|
-
* Event types for all
|
|
212
|
-
* The
|
|
213
|
-
* The events that are sent with the
|
|
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
|
|
216
|
-
(function (
|
|
246
|
+
var EVENTTYPE_VIEWPORT;
|
|
247
|
+
(function (EVENTTYPE_VIEWPORT) {
|
|
217
248
|
/**
|
|
218
|
-
* The
|
|
249
|
+
* The BUSY_MODE_ON-event is sent when the busy mode of the viewport has started.
|
|
219
250
|
*/
|
|
220
|
-
|
|
251
|
+
EVENTTYPE_VIEWPORT["BUSY_MODE_ON"] = "viewport.busy.on";
|
|
221
252
|
/**
|
|
222
|
-
* The
|
|
253
|
+
* The BUSY_MODE_OFF-event is sent when the busy mode of the viewport has ended.
|
|
223
254
|
*/
|
|
224
|
-
|
|
255
|
+
EVENTTYPE_VIEWPORT["BUSY_MODE_OFF"] = "viewport.busy.off";
|
|
225
256
|
/**
|
|
226
|
-
* The
|
|
257
|
+
* The VIEWPORT_CREATED-event is sent when the viewport has been created.
|
|
227
258
|
*/
|
|
228
|
-
|
|
259
|
+
EVENTTYPE_VIEWPORT["VIEWPORT_CREATED"] = "viewport.created";
|
|
229
260
|
/**
|
|
230
|
-
* The
|
|
261
|
+
* The VIEWPORT_UPDATED-event is sent when the viewport has been updated.
|
|
231
262
|
*/
|
|
232
|
-
|
|
263
|
+
EVENTTYPE_VIEWPORT["VIEWPORT_UPDATED"] = "viewport.updated";
|
|
233
264
|
/**
|
|
234
|
-
* The
|
|
265
|
+
* The VIEWPORT_CLOSED-event is sent when the viewport has been closed.
|
|
235
266
|
*/
|
|
236
|
-
|
|
267
|
+
EVENTTYPE_VIEWPORT["VIEWPORT_CLOSED"] = "viewport.closed";
|
|
237
268
|
/**
|
|
238
|
-
* The
|
|
269
|
+
* The VIEWPORT_SETTINGS_LOADED-event is sent when the settings of the viewport have been loaded.
|
|
239
270
|
*/
|
|
240
|
-
|
|
271
|
+
EVENTTYPE_VIEWPORT["VIEWPORT_SETTINGS_LOADED"] = "viewport.settingsLoaded";
|
|
241
272
|
/**
|
|
242
|
-
* The
|
|
273
|
+
* The VIEWPORT_VISIBLE-event is sent when the viewport has become visible.
|
|
243
274
|
*/
|
|
244
|
-
|
|
275
|
+
EVENTTYPE_VIEWPORT["VIEWPORT_VISIBLE"] = "viewport.visible";
|
|
245
276
|
/**
|
|
246
|
-
* The
|
|
277
|
+
* The VIEWPORT_HIDDEN-event is sent when the viewport has become hidden.
|
|
247
278
|
*/
|
|
248
|
-
|
|
249
|
-
})(
|
|
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":";;;
|
|
1
|
+
{"version":3,"file":"EventTypes.js","sourceRoot":"","sources":["../../src/event-engine/EventTypes.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.shared.services",
|
|
3
|
-
"version": "3.
|
|
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.
|
|
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": "
|
|
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
|
|
25
|
-
* The
|
|
26
|
-
* The events that are sent with the
|
|
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
|
|
36
|
+
export enum EVENTTYPE_DRAWING_TOOLS {
|
|
29
37
|
/**
|
|
30
|
-
* The
|
|
38
|
+
* The CANCEL-event is sent when the drawing process has been canceled.
|
|
31
39
|
*/
|
|
32
|
-
|
|
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
|
|
42
|
+
* The FINISH-event is sent when the drawing process has been finished.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
FINISH = 'drawing_tools.finish',
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* The UPDATE-event is sent when the drawing process has been updated.
|
|
47
47
|
*/
|
|
48
|
-
|
|
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
|
|
50
|
+
* The ADDED-event is sent when a point has been added.
|
|
59
51
|
*/
|
|
60
|
-
|
|
52
|
+
ADDED = 'drawing_tools.added',
|
|
61
53
|
/**
|
|
62
|
-
* The
|
|
54
|
+
* The REMOVED-event is sent when a point has been removed.
|
|
63
55
|
*/
|
|
64
|
-
|
|
56
|
+
REMOVED = 'drawing_tools.removed',
|
|
65
57
|
/**
|
|
66
|
-
* The
|
|
58
|
+
* The MOVED-event is sent when a point has been moved.
|
|
67
59
|
*/
|
|
68
|
-
|
|
60
|
+
MOVED = 'drawing_tools.moved',
|
|
69
61
|
/**
|
|
70
|
-
* The
|
|
62
|
+
* The SELECTED-event is sent when a point has been selected.
|
|
71
63
|
*/
|
|
72
|
-
|
|
64
|
+
SELECTED = 'drawing_tools.selected',
|
|
73
65
|
/**
|
|
74
|
-
* The
|
|
66
|
+
* The DESELECTED-event is sent when a point has been deselected.
|
|
75
67
|
*/
|
|
76
|
-
|
|
68
|
+
DESELECTED = 'drawing_tools.deselected',
|
|
77
69
|
/**
|
|
78
|
-
* The
|
|
70
|
+
* The GEOMETRY_CHANGED-event is sent when the geometry has been changed.
|
|
79
71
|
*/
|
|
80
|
-
|
|
72
|
+
GEOMETRY_CHANGED = 'drawing_tools.geometry.changed',
|
|
81
73
|
/**
|
|
82
|
-
* The
|
|
74
|
+
* The DRAG_START-event is sent when the dragging of a point has started.
|
|
83
75
|
*/
|
|
84
|
-
|
|
76
|
+
DRAG_START = 'drawing_tools.drag.start',
|
|
85
77
|
/**
|
|
86
|
-
* The
|
|
78
|
+
* The DRAG_MOVE-event is sent when a point is being dragged.
|
|
87
79
|
*/
|
|
88
|
-
|
|
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
|
|
93
|
-
* The
|
|
94
|
-
* The events that are sent with the
|
|
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
|
|
104
|
+
export enum EVENTTYPE_INTERACTION {
|
|
97
105
|
/**
|
|
98
|
-
* The
|
|
106
|
+
* The DRAG_START-event is sent when the dragging of an object has started.
|
|
99
107
|
*/
|
|
100
|
-
|
|
108
|
+
DRAG_START = 'interaction.drag.start',
|
|
101
109
|
/**
|
|
102
|
-
* The
|
|
110
|
+
* The DRAG_MOVE-event is sent when an object is being dragged.
|
|
103
111
|
*/
|
|
104
|
-
|
|
112
|
+
DRAG_MOVE = 'interaction.drag.move',
|
|
105
113
|
/**
|
|
106
|
-
* The
|
|
114
|
+
* The DRAG_END-event is sent when the dragging of an object has ended.
|
|
107
115
|
*/
|
|
108
|
-
|
|
116
|
+
DRAG_END = 'interaction.drag.end',
|
|
109
117
|
/**
|
|
110
|
-
* The
|
|
118
|
+
* The HOVER_ON-event is sent when an object has been hovered.
|
|
111
119
|
*/
|
|
112
|
-
|
|
120
|
+
HOVER_ON = 'interaction.hover.on',
|
|
113
121
|
/**
|
|
114
|
-
* The
|
|
122
|
+
* The HOVER_OFF-event is sent when an object has been unhovered.
|
|
115
123
|
*/
|
|
116
|
-
|
|
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
|
|
137
|
-
* The
|
|
138
|
-
* The events that are sent with the
|
|
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
|
|
168
|
+
export enum EVENTTYPE_RENDERING {
|
|
141
169
|
/**
|
|
142
|
-
* The
|
|
170
|
+
* The BEAUTY_RENDERING_FINISHED-event is sent when the beauty rendering has finished.
|
|
143
171
|
*/
|
|
144
|
-
|
|
172
|
+
BEAUTY_RENDERING_FINISHED = 'rendering.beautyRenderingFinished'
|
|
145
173
|
}
|
|
146
174
|
|
|
147
175
|
/**
|
|
148
|
-
* Event types for all
|
|
149
|
-
* The
|
|
150
|
-
* The events that are sent with the
|
|
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
|
|
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
|
|
182
|
+
* The SCENE_BOUNDING_BOX_CHANGE-event is sent when the bounding box of the scene has changed.
|
|
163
183
|
*/
|
|
164
|
-
|
|
184
|
+
SCENE_BOUNDING_BOX_CHANGE = 'scene.boundingBoxChange',
|
|
165
185
|
/**
|
|
166
|
-
*
|
|
186
|
+
* TheSCENE_BOUNDING_BOX_EMPTY-event is sent when the bounding box of the scene is empty.
|
|
167
187
|
*/
|
|
168
|
-
|
|
188
|
+
SCENE_BOUNDING_BOX_EMPTY = 'scene.boundingBoxEmpty'
|
|
169
189
|
}
|
|
170
190
|
|
|
171
191
|
/**
|
|
172
|
-
* Event types for all
|
|
173
|
-
* The
|
|
174
|
-
* The events that are sent with the
|
|
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
|
|
196
|
+
export enum EVENTTYPE_SESSION {
|
|
177
197
|
/**
|
|
178
|
-
* The
|
|
198
|
+
* The SESSION_CREATED-event is sent when the session has been created.
|
|
179
199
|
*/
|
|
180
|
-
|
|
200
|
+
SESSION_CREATED = 'session.created',
|
|
181
201
|
/**
|
|
182
|
-
* The
|
|
202
|
+
* The SESSION_CUSTOMIZED-event is sent when the session has been customized.
|
|
183
203
|
*/
|
|
184
|
-
|
|
204
|
+
SESSION_CUSTOMIZED = 'session.customized',
|
|
185
205
|
/**
|
|
186
|
-
* The
|
|
206
|
+
* The SESSION_CLOSED-event is sent when the session has been closed.
|
|
187
207
|
*/
|
|
188
|
-
|
|
208
|
+
SESSION_CLOSED = 'session.closed',
|
|
189
209
|
/**
|
|
190
|
-
* The
|
|
210
|
+
* The SESSION_INITIAL_OUTPUTS_LOADED-event is sent when the initial outputs of the session have been loaded.
|
|
191
211
|
*/
|
|
192
|
-
|
|
212
|
+
SESSION_INITIAL_OUTPUTS_LOADED = 'session.initialOutputsLoaded',
|
|
193
213
|
/**
|
|
194
|
-
* The
|
|
214
|
+
* The SESSION_SDTF_DELAYED_LOADED-event is sent when the SDTF of the session has been delayed loaded.
|
|
195
215
|
*/
|
|
196
|
-
|
|
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
|
|
226
|
+
* The TASK_START-event is sent when a task has started.
|
|
199
227
|
*/
|
|
200
|
-
|
|
228
|
+
TASK_START = 'task.start',
|
|
201
229
|
/**
|
|
202
|
-
* The
|
|
230
|
+
* The TASK_PROCESS-event is sent when the process of a task has been updated.
|
|
203
231
|
*/
|
|
204
|
-
|
|
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
|
|
209
|
-
* The
|
|
210
|
-
* The events that are sent with the
|
|
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
|
|
248
|
+
export enum EVENTTYPE_VIEWPORT {
|
|
213
249
|
/**
|
|
214
|
-
* The
|
|
250
|
+
* The BUSY_MODE_ON-event is sent when the busy mode of the viewport has started.
|
|
215
251
|
*/
|
|
216
|
-
|
|
252
|
+
BUSY_MODE_ON = 'viewport.busy.on',
|
|
217
253
|
/**
|
|
218
|
-
* The
|
|
254
|
+
* The BUSY_MODE_OFF-event is sent when the busy mode of the viewport has ended.
|
|
219
255
|
*/
|
|
220
|
-
|
|
256
|
+
BUSY_MODE_OFF = 'viewport.busy.off',
|
|
221
257
|
/**
|
|
222
|
-
* The
|
|
258
|
+
* The VIEWPORT_CREATED-event is sent when the viewport has been created.
|
|
223
259
|
*/
|
|
224
|
-
|
|
260
|
+
VIEWPORT_CREATED = 'viewport.created',
|
|
225
261
|
/**
|
|
226
|
-
* The
|
|
262
|
+
* The VIEWPORT_UPDATED-event is sent when the viewport has been updated.
|
|
227
263
|
*/
|
|
228
|
-
|
|
264
|
+
VIEWPORT_UPDATED = 'viewport.updated',
|
|
229
265
|
/**
|
|
230
|
-
* The
|
|
266
|
+
* The VIEWPORT_CLOSED-event is sent when the viewport has been closed.
|
|
231
267
|
*/
|
|
232
|
-
|
|
268
|
+
VIEWPORT_CLOSED = 'viewport.closed',
|
|
233
269
|
/**
|
|
234
|
-
* The
|
|
270
|
+
* The VIEWPORT_SETTINGS_LOADED-event is sent when the settings of the viewport have been loaded.
|
|
235
271
|
*/
|
|
236
|
-
|
|
272
|
+
VIEWPORT_SETTINGS_LOADED = 'viewport.settingsLoaded',
|
|
237
273
|
/**
|
|
238
|
-
* The
|
|
274
|
+
* The VIEWPORT_VISIBLE-event is sent when the viewport has become visible.
|
|
239
275
|
*/
|
|
240
|
-
|
|
276
|
+
VIEWPORT_VISIBLE = 'viewport.visible',
|
|
241
277
|
/**
|
|
242
|
-
* The
|
|
278
|
+
* The VIEWPORT_HIDDEN-event is sent when the viewport has become hidden.
|
|
243
279
|
*/
|
|
244
|
-
|
|
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
|
-
|
|
305
|
+
// #endregion Variables (1)
|