@shapediver/viewer.session-engine.session-engine 3.14.7 → 3.14.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/implementation/OutputLoader.d.ts.map +1 -1
- package/dist/implementation/OutputLoader.js +19 -0
- package/dist/implementation/OutputLoader.js.map +1 -1
- package/dist/implementation/SessionEngine.d.ts.map +1 -1
- package/dist/implementation/SessionEngine.js +5 -8
- package/dist/implementation/SessionEngine.js.map +1 -1
- package/dist/implementation/SessionEngineCore.d.ts +119 -0
- package/dist/implementation/SessionEngineCore.d.ts.map +1 -0
- package/dist/implementation/SessionEngineCore.js +367 -0
- package/dist/implementation/SessionEngineCore.js.map +1 -0
- package/dist/implementation/SessionEngineFacade.d.ts +106 -0
- package/dist/implementation/SessionEngineFacade.d.ts.map +1 -0
- package/dist/implementation/SessionEngineFacade.js +191 -0
- package/dist/implementation/SessionEngineFacade.js.map +1 -0
- package/dist/implementation/managers/CustomizationManager.d.ts +67 -0
- package/dist/implementation/managers/CustomizationManager.d.ts.map +1 -0
- package/dist/implementation/managers/CustomizationManager.js +324 -0
- package/dist/implementation/managers/CustomizationManager.js.map +1 -0
- package/dist/implementation/managers/ExportManager.d.ts +75 -0
- package/dist/implementation/managers/ExportManager.d.ts.map +1 -0
- package/dist/implementation/managers/ExportManager.js +213 -0
- package/dist/implementation/managers/ExportManager.js.map +1 -0
- package/dist/implementation/managers/FileUploadManager.d.ts +74 -0
- package/dist/implementation/managers/FileUploadManager.d.ts.map +1 -0
- package/dist/implementation/managers/FileUploadManager.js +221 -0
- package/dist/implementation/managers/FileUploadManager.js.map +1 -0
- package/dist/implementation/managers/ModelStateManager.d.ts +54 -0
- package/dist/implementation/managers/ModelStateManager.d.ts.map +1 -0
- package/dist/implementation/managers/ModelStateManager.js +177 -0
- package/dist/implementation/managers/ModelStateManager.js.map +1 -0
- package/dist/implementation/managers/OutputManager.d.ts +99 -0
- package/dist/implementation/managers/OutputManager.d.ts.map +1 -0
- package/dist/implementation/managers/OutputManager.js +418 -0
- package/dist/implementation/managers/OutputManager.js.map +1 -0
- package/dist/implementation/managers/ParameterManager.d.ts +75 -0
- package/dist/implementation/managers/ParameterManager.d.ts.map +1 -0
- package/dist/implementation/managers/ParameterManager.js +235 -0
- package/dist/implementation/managers/ParameterManager.js.map +1 -0
- package/dist/implementation/managers/SettingsManager.d.ts +80 -0
- package/dist/implementation/managers/SettingsManager.d.ts.map +1 -0
- package/dist/implementation/managers/SettingsManager.js +502 -0
- package/dist/implementation/managers/SettingsManager.js.map +1 -0
- package/dist/implementation/managers/UtilsManager.d.ts +127 -0
- package/dist/implementation/managers/UtilsManager.d.ts.map +1 -0
- package/dist/implementation/managers/UtilsManager.js +410 -0
- package/dist/implementation/managers/UtilsManager.js.map +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UtilsManager = void 0;
|
|
13
|
+
const sdk_geometry_api_sdk_v2_1 = require("@shapediver/sdk.geometry-api-sdk-v2");
|
|
14
|
+
const viewer_shared_global_access_objects_1 = require("@shapediver/viewer.shared.global-access-objects");
|
|
15
|
+
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
|
|
16
|
+
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
17
|
+
const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
|
|
18
|
+
const DraggingParameter_1 = require("../dto/interaction/DraggingParameter");
|
|
19
|
+
const GumballParameter_1 = require("../dto/interaction/GumballParameter");
|
|
20
|
+
const SelectionParameter_1 = require("../dto/interaction/SelectionParameter");
|
|
21
|
+
const Parameter_1 = require("../dto/Parameter");
|
|
22
|
+
const SessionTreeNode_1 = require("../SessionTreeNode");
|
|
23
|
+
/**
|
|
24
|
+
* Manager responsible for utility functions.
|
|
25
|
+
* This is the manager for miscellaneous utility functions that do not fit into other managers.
|
|
26
|
+
*
|
|
27
|
+
* The manager is created by the SessionEngineCore and can be accessed
|
|
28
|
+
* via the `utilsManager` property.
|
|
29
|
+
*/
|
|
30
|
+
class UtilsManager {
|
|
31
|
+
constructor(sessionEngineCore) {
|
|
32
|
+
this._converter = viewer_shared_services_1.Converter.instance;
|
|
33
|
+
this._eventEngine = viewer_shared_services_1.EventEngine.instance;
|
|
34
|
+
this._globalAccessObjects = viewer_shared_global_access_objects_1.GlobalAccessObjects.instance;
|
|
35
|
+
this._httpClient = viewer_shared_services_1.HttpClient.instance;
|
|
36
|
+
this._logger = viewer_shared_services_1.Logger.instance;
|
|
37
|
+
this._sceneTree = viewer_shared_node_tree_1.Tree.instance;
|
|
38
|
+
this._stateEngine = viewer_shared_services_1.StateEngine.instance;
|
|
39
|
+
this._retryCounter = 0;
|
|
40
|
+
this._sessionEngineCore = sessionEngineCore;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Add a busy mode to all viewport engines.
|
|
44
|
+
* To remove the busy mode, use `removeBusyMode`.
|
|
45
|
+
*
|
|
46
|
+
* @param busyId The ID of the busy mode to add
|
|
47
|
+
*/
|
|
48
|
+
addBusyMode(busyId) {
|
|
49
|
+
for (const r in this._stateEngine.viewportEngines) {
|
|
50
|
+
if (this._stateEngine.viewportEngines[r] &&
|
|
51
|
+
!this._sessionEngineCore.excludeViewports.includes(r)) {
|
|
52
|
+
this._stateEngine.viewportEngines[r].busy.push(busyId);
|
|
53
|
+
this._sessionEngineCore.customizationManager.customizationBusyModes.push(busyId);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Adds a node to the scene tree and updates the root version.
|
|
59
|
+
*
|
|
60
|
+
* @param node The tree node to add
|
|
61
|
+
*/
|
|
62
|
+
addToSceneTree(node) {
|
|
63
|
+
this._sceneTree.addNode(node);
|
|
64
|
+
this._sceneTree.root.updateVersion();
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Cancels the current process if a new customization request has been made or if the session was closed.
|
|
68
|
+
* If the process is cancelled, a TASK_CANCEL event is emitted and the busy mode is removed.
|
|
69
|
+
*
|
|
70
|
+
* @param eventInfo The task event information
|
|
71
|
+
* @param customizationId The ID of the customization process
|
|
72
|
+
* @param newNode The new tree node to return if the process is cancelled
|
|
73
|
+
* @returns The new tree node if the process was cancelled, otherwise undefined
|
|
74
|
+
*/
|
|
75
|
+
cancelProcess(eventInfo, customizationId, newNode = new SessionTreeNode_1.SessionTreeNode()) {
|
|
76
|
+
if (this._sessionEngineCore.customizationManager
|
|
77
|
+
.customizationProcess !== customizationId) {
|
|
78
|
+
this.removeBusyMode(customizationId);
|
|
79
|
+
this._eventEngine.emitEvent(viewer_shared_services_1.EVENTTYPE.TASK.TASK_CANCEL, Object.assign(Object.assign({}, eventInfo), { status: "The request was exceeded by another customization request" }));
|
|
80
|
+
this._logger.debug(`Session(${this._sessionEngineCore.id}).cancelProcess: The request was was exceeded by another request.`);
|
|
81
|
+
return newNode;
|
|
82
|
+
}
|
|
83
|
+
else if (this._sessionEngineCore.closed === true) {
|
|
84
|
+
this.removeBusyMode(customizationId);
|
|
85
|
+
this._logger.debug(`Session(${this._sessionEngineCore.id}).cancelProcess: The session was closed during the request.`);
|
|
86
|
+
this._eventEngine.emitEvent(viewer_shared_services_1.EVENTTYPE.TASK.TASK_CANCEL, Object.assign(Object.assign({}, eventInfo), { progress: 1, status: "The session was closed during the request." }));
|
|
87
|
+
return new SessionTreeNode_1.SessionTreeNode();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Checks the availability of the session and optionally a specific action.
|
|
92
|
+
*
|
|
93
|
+
* @param action The action to check for availability
|
|
94
|
+
* @param checkForModelId Whether to check for the model ID availability
|
|
95
|
+
* @throws ShapeDiverViewerSessionError if the session or action is not available
|
|
96
|
+
*/
|
|
97
|
+
checkAvailability(action, checkForModelId = false) {
|
|
98
|
+
var _a;
|
|
99
|
+
if (!this._sessionEngineCore.responseDto)
|
|
100
|
+
throw new viewer_shared_services_1.ShapeDiverViewerSessionError("Session.checkAvailability: responseDto not available.");
|
|
101
|
+
if (!this._sessionEngineCore.sessionId)
|
|
102
|
+
throw new viewer_shared_services_1.ShapeDiverViewerSessionError("Session.checkAvailability: sessionId not available.");
|
|
103
|
+
if (checkForModelId && !this._sessionEngineCore.modelId)
|
|
104
|
+
throw new viewer_shared_services_1.ShapeDiverViewerSessionError("Session.checkAvailability: modelId not available.");
|
|
105
|
+
if (action && !this._sessionEngineCore.responseDto.actions)
|
|
106
|
+
throw new viewer_shared_services_1.ShapeDiverViewerSessionError("Session.checkAvailability: actions not available.");
|
|
107
|
+
const responseDtoAction = (_a = this._sessionEngineCore.responseDto.actions) === null || _a === void 0 ? void 0 : _a.find((a) => a.name === action);
|
|
108
|
+
if (action && !responseDtoAction)
|
|
109
|
+
throw new viewer_shared_services_1.ShapeDiverViewerSessionError(`Session.checkAvailability: action ${action} not available.`);
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Create an interaction parameter based on the parameter definition.
|
|
113
|
+
*
|
|
114
|
+
* @param parameter
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
createInteractionParameter(parameter) {
|
|
118
|
+
const result = (0, viewer_shared_types_1.validateInteractionParameterSettings)(parameter.settings);
|
|
119
|
+
if (result.success) {
|
|
120
|
+
switch (parameter.settings.type) {
|
|
121
|
+
case "selection":
|
|
122
|
+
return new SelectionParameter_1.SelectionParameter(parameter, this._sessionEngineCore, this._sessionEngineCore.parameterManager);
|
|
123
|
+
case "gumball":
|
|
124
|
+
return new GumballParameter_1.GumballParameter(parameter, this._sessionEngineCore, this._sessionEngineCore.parameterManager);
|
|
125
|
+
case "dragging":
|
|
126
|
+
return new DraggingParameter_1.DraggingParameter(parameter, this._sessionEngineCore, this._sessionEngineCore.parameterManager);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
this._logger.warn(`SessionEngine.createInteractionParameter: The value ${parameter.settings} is not a valid InteractionParameter: ${result.error.message}`);
|
|
131
|
+
}
|
|
132
|
+
return new Parameter_1.Parameter(parameter, this._sessionEngineCore, this._sessionEngineCore.parameterManager);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Handles errors that occur during session operations.
|
|
136
|
+
*
|
|
137
|
+
* @param err The error to handle
|
|
138
|
+
* @param retry Whether to retry the operation
|
|
139
|
+
* @returns A promise that resolves when the error has been handled
|
|
140
|
+
*/
|
|
141
|
+
handleError(err, retry = false) {
|
|
142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
+
if (!(err instanceof Error))
|
|
144
|
+
throw this._httpClient.convertError(err);
|
|
145
|
+
// Process the error
|
|
146
|
+
const e = (0, sdk_geometry_api_sdk_v2_1.processError)(err);
|
|
147
|
+
if (e instanceof sdk_geometry_api_sdk_v2_1.ResponseError) {
|
|
148
|
+
if (e.type === sdk_geometry_api_sdk_v2_1.ResErrorType.SESSION_GONE_ERROR) {
|
|
149
|
+
// case 1: the session is no longer available
|
|
150
|
+
// we try to re-initialize the session 3 times, if that does not work, we close it
|
|
151
|
+
this._logger.warn("The session has been closed, trying to re-initialize.");
|
|
152
|
+
if (this._sessionEngineCore.sessionId)
|
|
153
|
+
this._httpClient.removeDataLoading(this._sessionEngineCore.sessionId);
|
|
154
|
+
if (this._retryCounter < 3) {
|
|
155
|
+
// we retry this 3 times, the `retry` option in the init function is set to true and passed on
|
|
156
|
+
this._retryCounter = retry ? this._retryCounter + 1 : 1;
|
|
157
|
+
this._sessionEngineCore.initialized = false;
|
|
158
|
+
yield this._sessionEngineCore.init(this._sessionEngineCore.parameterManager
|
|
159
|
+
.parameterValues, true);
|
|
160
|
+
}
|
|
161
|
+
else {
|
|
162
|
+
// the retries were exceeded, we close the session
|
|
163
|
+
this._logger.warn("Tried to retry the connect multiple times, bearer token still not valid. Closing Session.");
|
|
164
|
+
// eslint-disable-next-line no-empty
|
|
165
|
+
try {
|
|
166
|
+
yield this._sessionEngineCore.closeOnFailure();
|
|
167
|
+
}
|
|
168
|
+
catch (e) {
|
|
169
|
+
/* empty */
|
|
170
|
+
}
|
|
171
|
+
throw this._httpClient.convertError(e);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
else if (e.type === sdk_geometry_api_sdk_v2_1.ResErrorType.JWT_VALIDATION_ERROR) {
|
|
175
|
+
// if any of the above errors occur, we try to get a new bearer token
|
|
176
|
+
// if we get a new one, we retry 3 times (by requiring new bearer tokens every time)
|
|
177
|
+
if (this._retryCounter < 3) {
|
|
178
|
+
if (this._sessionEngineCore.refreshJwtToken) {
|
|
179
|
+
yield this._sessionEngineCore.setJwtToken(yield this._sessionEngineCore.refreshJwtToken());
|
|
180
|
+
this._retryCounter = retry ? this._retryCounter + 1 : 1;
|
|
181
|
+
this._logger.warn("Re-trying with new bearer token.");
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
// no bearer tokens are supplied, we close the session
|
|
185
|
+
this._logger.warn("No retry possible, no new bearer token was supplied. Closing Session.");
|
|
186
|
+
// eslint-disable-next-line no-empty
|
|
187
|
+
try {
|
|
188
|
+
yield this._sessionEngineCore.closeOnFailure();
|
|
189
|
+
}
|
|
190
|
+
catch (e) {
|
|
191
|
+
/* empty */
|
|
192
|
+
}
|
|
193
|
+
throw this._httpClient.convertError(e);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
else {
|
|
197
|
+
// the retries were exceeded, we close the session
|
|
198
|
+
this._logger.warn("Tried to retry the connect multiple times, bearer token still not valid. Closing Session.");
|
|
199
|
+
// eslint-disable-next-line no-empty
|
|
200
|
+
try {
|
|
201
|
+
yield this._sessionEngineCore.closeOnFailure();
|
|
202
|
+
}
|
|
203
|
+
catch (e) {
|
|
204
|
+
/* empty */
|
|
205
|
+
}
|
|
206
|
+
throw this._httpClient.convertError(e);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
throw this._httpClient.convertError(e);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
throw this._httpClient.convertError(e);
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Process the image input and return the image data and array buffer.
|
|
220
|
+
*
|
|
221
|
+
* In the case of the image being a Blob or File, the image data is constructed from the Blob or File.
|
|
222
|
+
* In the case of the image being a string, we check if it is a data URL or a URL.
|
|
223
|
+
* If it is a data URL, we convert it to a Blob and construct the image data from the Blob.
|
|
224
|
+
* If it is a URL, we download the image and return the image data and array buffer.
|
|
225
|
+
*
|
|
226
|
+
* @param image
|
|
227
|
+
* @returns
|
|
228
|
+
*/
|
|
229
|
+
processImageInput(image) {
|
|
230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
231
|
+
if (image instanceof File || image instanceof Blob)
|
|
232
|
+
return this._converter.constructImageData(image);
|
|
233
|
+
let imageString;
|
|
234
|
+
if (image instanceof Promise) {
|
|
235
|
+
imageString = yield image;
|
|
236
|
+
}
|
|
237
|
+
else if (typeof image === "function") {
|
|
238
|
+
const result = image();
|
|
239
|
+
if (result instanceof Promise) {
|
|
240
|
+
imageString = yield result;
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
imageString = result;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
imageString = image;
|
|
248
|
+
}
|
|
249
|
+
if (imageString.startsWith("data:")) {
|
|
250
|
+
// case where the image is a data URL
|
|
251
|
+
const { blob, arrayBuffer } = this._converter.dataURLtoBlob(imageString);
|
|
252
|
+
return {
|
|
253
|
+
imageData: {
|
|
254
|
+
format: blob.type,
|
|
255
|
+
size: blob.size,
|
|
256
|
+
},
|
|
257
|
+
arrayBuffer: arrayBuffer,
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
else {
|
|
261
|
+
// case where the image is a URL
|
|
262
|
+
const response = yield new sdk_geometry_api_sdk_v2_1.UtilsApi(this._sessionEngineCore.sdkConfig).downloadImage(this._sessionEngineCore.sessionId, imageString, {
|
|
263
|
+
responseType: "arraybuffer",
|
|
264
|
+
});
|
|
265
|
+
const arrayBuffer = response.data;
|
|
266
|
+
return {
|
|
267
|
+
imageData: {
|
|
268
|
+
format: response.headers["content-type"],
|
|
269
|
+
size: arrayBuffer.byteLength,
|
|
270
|
+
},
|
|
271
|
+
arrayBuffer,
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
removeBusyMode(busyId) {
|
|
277
|
+
for (const r in this._stateEngine.viewportEngines) {
|
|
278
|
+
if (this._stateEngine.viewportEngines[r] &&
|
|
279
|
+
this._stateEngine.viewportEngines[r].busy.includes(busyId))
|
|
280
|
+
this._stateEngine.viewportEngines[r].busy.splice(this._stateEngine.viewportEngines[r].busy.indexOf(busyId), 1);
|
|
281
|
+
if (this._sessionEngineCore.customizationManager.customizationBusyModes.includes(busyId))
|
|
282
|
+
this._sessionEngineCore.customizationManager.customizationBusyModes.splice(this._sessionEngineCore.customizationManager.customizationBusyModes.indexOf(busyId), 1);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Removes a node from the scene tree and updates the root version.
|
|
287
|
+
*
|
|
288
|
+
* @param node The tree node to remove
|
|
289
|
+
*/
|
|
290
|
+
removeFromSceneTree(node) {
|
|
291
|
+
this._sceneTree.removeNode(node);
|
|
292
|
+
this._sceneTree.root.updateVersion();
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Returns a promise that resolves after the amount of milliseconds provided.
|
|
296
|
+
*
|
|
297
|
+
* @param ms the milliseconds
|
|
298
|
+
* @returns promise that resolve after specified milliseconds
|
|
299
|
+
*/
|
|
300
|
+
timeout(ms) {
|
|
301
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
302
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
/**
|
|
306
|
+
* Waits for all update callbacks to finish.
|
|
307
|
+
*
|
|
308
|
+
* @param newOutputVersions The new output versions
|
|
309
|
+
* @param oldOutputVersions The old output versions
|
|
310
|
+
* @param newNode The new tree node
|
|
311
|
+
* @param oldNode The old tree node
|
|
312
|
+
*/
|
|
313
|
+
waitForUpdateCallbacks(newOutputVersions, oldOutputVersions, newNode, oldNode) {
|
|
314
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
315
|
+
// call the update callback function on the session
|
|
316
|
+
if (this._sessionEngineCore.updateCallback)
|
|
317
|
+
yield Promise.resolve(this._sessionEngineCore.updateCallback(newNode, oldNode));
|
|
318
|
+
const promises = [];
|
|
319
|
+
// call the update callback functions on the outputs
|
|
320
|
+
for (const outputId in this._sessionEngineCore.outputManager.outputs) {
|
|
321
|
+
if (oldOutputVersions[outputId] !== newOutputVersions[outputId]) {
|
|
322
|
+
promises.push(this._sessionEngineCore.outputManager.outputs[outputId].triggerUpdateCallback(newNode.children.find((c) => c.name === outputId), oldNode.children.find((c) => c.name === outputId)));
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
yield Promise.all(promises);
|
|
326
|
+
// now that all callbacks are done
|
|
327
|
+
// we apply the materialDatabase (if there is one)
|
|
328
|
+
if (this._globalAccessObjects.assignMaterialFromDatabase)
|
|
329
|
+
yield this._globalAccessObjects.assignMaterialFromDatabase(newNode);
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Creates warnings for outputs and exports with issues.
|
|
334
|
+
* If `throwError` is true, a ShapeDiverViewerCustomizationError is thrown instead.
|
|
335
|
+
*
|
|
336
|
+
* @param outputs The outputs to check for issues
|
|
337
|
+
* @param exports The exports to check for issues
|
|
338
|
+
* @param throwError Whether to throw an error instead of creating warnings
|
|
339
|
+
*/
|
|
340
|
+
warningCreator(outputs, exports, throwError = false) {
|
|
341
|
+
const outputsWithIssues = {};
|
|
342
|
+
const exportsWithIssues = {};
|
|
343
|
+
for (const outputId in outputs) {
|
|
344
|
+
const outputObj = outputs[outputId];
|
|
345
|
+
if ((throwError === false && outputObj.msg !== undefined) ||
|
|
346
|
+
(outputObj.status_collect &&
|
|
347
|
+
outputObj.status_collect !==
|
|
348
|
+
sdk_geometry_api_sdk_v2_1.ResComputationStatus.SUCCESS) ||
|
|
349
|
+
(outputObj.status_computation &&
|
|
350
|
+
outputObj.status_computation !==
|
|
351
|
+
sdk_geometry_api_sdk_v2_1.ResComputationStatus.SUCCESS)) {
|
|
352
|
+
outputsWithIssues[outputId] = outputObj;
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
for (const exportId in exports) {
|
|
356
|
+
const exportObj = exports[exportId];
|
|
357
|
+
if ((throwError === false && exportObj.msg !== undefined) ||
|
|
358
|
+
(exportObj.status_collect &&
|
|
359
|
+
exportObj.status_collect !==
|
|
360
|
+
sdk_geometry_api_sdk_v2_1.ResComputationStatus.SUCCESS) ||
|
|
361
|
+
(exportObj.status_computation &&
|
|
362
|
+
exportObj.status_computation !==
|
|
363
|
+
sdk_geometry_api_sdk_v2_1.ResComputationStatus.SUCCESS)) {
|
|
364
|
+
exportsWithIssues[exportId] = exportObj;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
if (Object.keys(outputsWithIssues).length > 0 ||
|
|
368
|
+
Object.keys(exportsWithIssues).length > 0) {
|
|
369
|
+
if (throwError) {
|
|
370
|
+
throw new viewer_shared_services_1.ShapeDiverViewerCustomizationError("There was at least one output or export with issues.", { outputs: outputsWithIssues, exports: exportsWithIssues });
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
// create warning messages for outputs
|
|
374
|
+
for (const outputId in outputsWithIssues) {
|
|
375
|
+
let warning = "";
|
|
376
|
+
if (outputsWithIssues[outputId].msg)
|
|
377
|
+
warning += `\n\t- ${outputsWithIssues[outputId].msg}`;
|
|
378
|
+
if (outputsWithIssues[outputId].status_collect &&
|
|
379
|
+
outputsWithIssues[outputId].status_collect !==
|
|
380
|
+
sdk_geometry_api_sdk_v2_1.ResComputationStatus.SUCCESS)
|
|
381
|
+
warning += `\n\t- status_collect is ${outputsWithIssues[outputId].status_collect}`;
|
|
382
|
+
if (outputsWithIssues[outputId].status_computation &&
|
|
383
|
+
outputsWithIssues[outputId].status_computation !==
|
|
384
|
+
sdk_geometry_api_sdk_v2_1.ResComputationStatus.SUCCESS)
|
|
385
|
+
warning += `\n\t- status_computation is ${outputsWithIssues[outputId].status_computation}`;
|
|
386
|
+
if (warning)
|
|
387
|
+
this._logger.warn(`\nOutput(${outputId}):${warning}`);
|
|
388
|
+
}
|
|
389
|
+
// create warning messages for exports
|
|
390
|
+
for (const exportId in exportsWithIssues) {
|
|
391
|
+
let warning = "";
|
|
392
|
+
if (exportsWithIssues[exportId].msg)
|
|
393
|
+
warning += `\n\t- ${exportsWithIssues[exportId].msg}`;
|
|
394
|
+
if (exportsWithIssues[exportId].status_collect &&
|
|
395
|
+
exportsWithIssues[exportId].status_collect !==
|
|
396
|
+
sdk_geometry_api_sdk_v2_1.ResComputationStatus.SUCCESS)
|
|
397
|
+
warning += `\n\t- status_collect is ${exportsWithIssues[exportId].status_collect}`;
|
|
398
|
+
if (exportsWithIssues[exportId].status_computation &&
|
|
399
|
+
exportsWithIssues[exportId].status_computation !==
|
|
400
|
+
sdk_geometry_api_sdk_v2_1.ResComputationStatus.SUCCESS)
|
|
401
|
+
warning += `\n\t- status_computation is ${exportsWithIssues[exportId].status_computation}`;
|
|
402
|
+
if (warning)
|
|
403
|
+
this._logger.warn(`\nExport(${exportId}):${warning}`);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
exports.UtilsManager = UtilsManager;
|
|
410
|
+
//# sourceMappingURL=UtilsManager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UtilsManager.js","sourceRoot":"","sources":["../../../src/implementation/managers/UtilsManager.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iFAW6C;AAC7C,yGAAoF;AACpF,iFAA2E;AAC3E,+EAU4C;AAC5C,yEAIyC;AAGzC,4EAAuE;AACvE,0EAAqE;AACrE,8EAAyE;AACzE,gDAA2C;AAE3C,wDAAmD;AAEnD;;;;;;GAMG;AACH,MAAa,YAAY;IAaxB,YAAY,iBAAoC;QAZ/B,eAAU,GAAG,kCAAS,CAAC,QAAQ,CAAC;QAChC,iBAAY,GAAG,oCAAW,CAAC,QAAQ,CAAC;QACpC,yBAAoB,GACpC,yDAAmB,CAAC,QAAQ,CAAC;QACb,gBAAW,GAAe,mCAAU,CAAC,QAAQ,CAAC;QAC9C,YAAO,GAAW,+BAAM,CAAC,QAAQ,CAAC;QAClC,eAAU,GAAU,8BAAI,CAAC,QAAQ,CAAC;QAElC,iBAAY,GAAgB,oCAAW,CAAC,QAAQ,CAAC;QAE1D,kBAAa,GAAG,CAAC,CAAC;QAGzB,IAAI,CAAC,kBAAkB,GAAG,iBAAiB,CAAC;IAC7C,CAAC;IAED;;;;;OAKG;IACI,WAAW,CAAC,MAAc;QAChC,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,YAAY,CAAC,eAAe,EAAE;YAClD,IACC,IAAI,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC;g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I,CAAC,YAAY,QAAQ,KAAK,OAAO,EAAE,CAAC,CAAC;iBACvD;gBAED,sCAAsC;gBACtC,KAAK,MAAM,QAAQ,IAAI,iBAAiB,EAAE;oBACzC,IAAI,OAAO,GAAW,EAAE,CAAC;oBACzB,IAAI,iBAAiB,CAAC,QAAQ,CAAC,CAAC,GAAG;wBAClC,OAAO,IAAI,SAAS,iBAAiB,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;oBACvD,IACC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,cAAc;wBAC1C,iBAAiB,CAAC,QAAQ,CAAC,CAAC,cAAc;4BACzC,8CAAoB,CAAC,OAAO;wBAE7B,OAAO,IAAI,2BAA2B,iBAAiB,CAAC,QAAQ,CAAC,CAAC,cAAc,EAAE,CAAC;oBACpF,IACC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,kBAAkB;wBAC9C,iBAAiB,CAAC,QAAQ,CAAC,CAAC,kBAAkB;4BAC7C,8CAAoB,CAAC,OAAO;wBAE7B,OAAO,IAAI,+BAA+B,iBAAiB,CAAC,QAAQ,CAAC,CAAC,kBAAkB,EAAE,CAAC;oBAC5F,IAAI,OAAO;wBACV,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,QAAQ,KAAK,OAAO,EAAE,CAAC,CAAC;iBACvD;aACD;SACD;IACF,CAAC;CACD;AAhhBD,oCAghBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.session-engine.session-engine",
|
|
3
|
-
"version": "3.14.
|
|
3
|
+
"version": "3.14.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@shapediver/sdk.geometry-api-sdk-v2": "2.10.0",
|
|
42
|
-
"@shapediver/viewer.data-engine.shared-types": "3.14.
|
|
42
|
+
"@shapediver/viewer.data-engine.shared-types": "3.14.9",
|
|
43
43
|
"@shapediver/viewer.settings": "1.2.1",
|
|
44
|
-
"@shapediver/viewer.shared.build-data": "3.14.
|
|
45
|
-
"@shapediver/viewer.shared.global-access-objects": "3.14.
|
|
46
|
-
"@shapediver/viewer.shared.node-tree": "3.14.
|
|
47
|
-
"@shapediver/viewer.shared.services": "3.14.
|
|
48
|
-
"@shapediver/viewer.shared.types": "3.14.
|
|
44
|
+
"@shapediver/viewer.shared.build-data": "3.14.9",
|
|
45
|
+
"@shapediver/viewer.shared.global-access-objects": "3.14.9",
|
|
46
|
+
"@shapediver/viewer.shared.node-tree": "3.14.9",
|
|
47
|
+
"@shapediver/viewer.shared.services": "3.14.9",
|
|
48
|
+
"@shapediver/viewer.shared.types": "3.14.9",
|
|
49
49
|
"@shapediver/viewer.utils.mime-type": "1.1.0",
|
|
50
50
|
"gl-matrix": "3.3.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "b1e7086f8ba4307988aaa0da5739b4206801d72e"
|
|
53
53
|
}
|