@shapediver/viewer.session-engine.session-engine 2.11.0 → 2.12.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.
- package/dist/implementation/OutputLoader.d.ts +4 -1
- package/dist/implementation/OutputLoader.d.ts.map +1 -1
- package/dist/implementation/OutputLoader.js +11 -4
- package/dist/implementation/OutputLoader.js.map +1 -1
- package/dist/implementation/SessionEngine.d.ts +11 -1
- package/dist/implementation/SessionEngine.d.ts.map +1 -1
- package/dist/implementation/SessionEngine.js +245 -126
- package/dist/implementation/SessionEngine.js.map +1 -1
- package/dist/implementation/dto/Output.d.ts +1 -1
- package/dist/implementation/dto/Output.d.ts.map +1 -1
- package/dist/implementation/dto/Output.js +4 -2
- package/dist/implementation/dto/Output.js.map +1 -1
- package/dist/interfaces/ISessionEngine.d.ts +7 -2
- package/dist/interfaces/ISessionEngine.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/implementation/OutputLoader.ts +16 -5
- package/src/implementation/SessionEngine.ts +271 -141
- package/src/implementation/dto/Output.ts +2 -2
- package/src/interfaces/ISessionEngine.ts +3 -2
|
@@ -173,8 +173,8 @@ export class Output implements IOutput {
|
|
|
173
173
|
|
|
174
174
|
// #region Public Methods (4)
|
|
175
175
|
|
|
176
|
-
public triggerUpdateCallback(newNode?: TreeNode, oldNode?: TreeNode) {
|
|
177
|
-
if (this.#updateCallback) this.#updateCallback(newNode, oldNode);
|
|
176
|
+
public async triggerUpdateCallback(newNode?: TreeNode, oldNode?: TreeNode) {
|
|
177
|
+
if (this.#updateCallback) await Promise.resolve(this.#updateCallback(newNode, oldNode));
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -130,11 +130,12 @@ export interface ISessionEngine {
|
|
|
130
130
|
canGoBack(): boolean;
|
|
131
131
|
canGoForward(): boolean;
|
|
132
132
|
close(): Promise<void>;
|
|
133
|
-
customize(force: boolean, waitForViewportUpdate?: boolean):
|
|
134
|
-
customizeParallel(parameterValues: { [key: string]: string }): Promise<ITreeNode>;
|
|
133
|
+
customize(force: boolean, waitForViewportUpdate?: boolean):Promise<ITreeNode | ShapeDiverResponseDto>;
|
|
134
|
+
customizeParallel(parameterValues: { [key: string]: string }, loadOutputs: boolean): Promise<ITreeNode | ShapeDiverResponseDto>;
|
|
135
135
|
goBack(): Promise<ITreeNode>;
|
|
136
136
|
goForward(): Promise<ITreeNode>;
|
|
137
137
|
init(parameterValues?: { [key: string]: string; }): Promise<void>;
|
|
138
|
+
loadCachedOutputsParallel(outputMapping: { [key: string]: string }, taskEventInfo?: OutputLoaderTaskEventInfo, retry?: boolean): Promise<{ [key: string]: ITreeNode | undefined }>;
|
|
138
139
|
loadOutputs(cancelRequest: () => boolean, taskEventInfo: OutputLoaderTaskEventInfo): Promise<ITreeNode>;
|
|
139
140
|
loadOutputsParallel(responseDto: ShapeDiverResponseDto, cancelRequest: () => boolean, taskEventInfo: OutputLoaderTaskEventInfo): Promise<ITreeNode>;
|
|
140
141
|
requestExport(exportId: string, parameters: ShapeDiverRequestCustomization, maxWaitTime: number): Promise<ShapeDiverResponseExport>;
|