@shapediver/viewer.session-engine.session-engine 2.12.7 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/implementation/OutputDelayException.js +1 -1
- package/dist/implementation/OutputDelayException.js.map +1 -1
- package/dist/implementation/OutputLoader.d.ts +9 -7
- package/dist/implementation/OutputLoader.d.ts.map +1 -1
- package/dist/implementation/OutputLoader.js +56 -41
- package/dist/implementation/OutputLoader.js.map +1 -1
- package/dist/implementation/SessionData.d.ts +1 -1
- package/dist/implementation/SessionData.d.ts.map +1 -1
- package/dist/implementation/SessionData.js +2 -2
- package/dist/implementation/SessionData.js.map +1 -1
- package/dist/implementation/SessionEngine.d.ts +30 -3
- package/dist/implementation/SessionEngine.d.ts.map +1 -1
- package/dist/implementation/SessionEngine.js +115 -48
- package/dist/implementation/SessionEngine.js.map +1 -1
- package/dist/implementation/SessionOutputData.d.ts +1 -1
- package/dist/implementation/SessionOutputData.d.ts.map +1 -1
- package/dist/implementation/SessionOutputData.js +2 -2
- package/dist/implementation/SessionOutputData.js.map +1 -1
- package/dist/implementation/SessionTreeNode.d.ts +1 -1
- package/dist/implementation/SessionTreeNode.d.ts.map +1 -1
- package/dist/implementation/SessionTreeNode.js +1 -1
- package/dist/implementation/SessionTreeNode.js.map +1 -1
- package/dist/implementation/dto/Export.d.ts +4 -4
- package/dist/implementation/dto/Export.d.ts.map +1 -1
- package/dist/implementation/dto/Export.js +2 -2
- package/dist/implementation/dto/Export.js.map +1 -1
- package/dist/implementation/dto/FileParameter.d.ts +2 -2
- package/dist/implementation/dto/FileParameter.d.ts.map +1 -1
- package/dist/implementation/dto/FileParameter.js +69 -31
- package/dist/implementation/dto/FileParameter.js.map +1 -1
- package/dist/implementation/dto/Output.js +2 -2
- package/dist/implementation/dto/Output.js.map +1 -1
- package/dist/implementation/dto/Parameter.d.ts +6 -6
- package/dist/implementation/dto/Parameter.d.ts.map +1 -1
- package/dist/implementation/dto/Parameter.js +106 -87
- package/dist/implementation/dto/Parameter.js.map +1 -1
- package/dist/index.d.ts +9 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/dist/interfaces/ISessionData.d.ts +2 -2
- package/dist/interfaces/ISessionData.d.ts.map +1 -1
- package/dist/interfaces/ISessionEngine.d.ts +11 -46
- package/dist/interfaces/ISessionEngine.d.ts.map +1 -1
- package/dist/interfaces/ISessionEngine.js +0 -4
- package/dist/interfaces/ISessionEngine.js.map +1 -1
- package/dist/interfaces/ISessionOutputData.d.ts +2 -2
- package/dist/interfaces/ISessionOutputData.d.ts.map +1 -1
- package/dist/interfaces/ISessionTreeNode.d.ts +1 -1
- package/dist/interfaces/dto/IExport.d.ts +2 -2
- package/dist/interfaces/dto/IExport.d.ts.map +1 -1
- package/dist/interfaces/dto/IFileParameter.d.ts +1 -1
- package/dist/interfaces/dto/IFileParameter.d.ts.map +1 -1
- package/dist/interfaces/dto/IOutput.d.ts +13 -13
- package/dist/interfaces/dto/IOutput.d.ts.map +1 -1
- package/dist/interfaces/dto/IOutput.js +1 -0
- package/dist/interfaces/dto/IOutput.js.map +1 -1
- package/dist/interfaces/dto/IParameter.d.ts +3 -3
- package/dist/interfaces/dto/IParameter.d.ts.map +1 -1
- package/package.json +9 -10
- package/src/implementation/OutputDelayException.ts +3 -3
- package/src/implementation/OutputLoader.ts +139 -104
- package/src/implementation/SessionData.ts +9 -9
- package/src/implementation/SessionEngine.ts +133 -53
- package/src/implementation/SessionOutputData.ts +8 -8
- package/src/implementation/SessionTreeNode.ts +8 -5
- package/src/implementation/dto/Export.ts +24 -11
- package/src/implementation/dto/FileParameter.ts +72 -37
- package/src/implementation/dto/Output.ts +2 -2
- package/src/implementation/dto/Parameter.ts +115 -85
- package/src/index.ts +17 -21
- package/src/interfaces/ISessionData.ts +2 -2
- package/src/interfaces/ISessionEngine.ts +19 -60
- package/src/interfaces/ISessionOutputData.ts +2 -2
- package/src/interfaces/ISessionTreeNode.ts +1 -1
- package/src/interfaces/dto/IExport.ts +4 -4
- package/src/interfaces/dto/IFileParameter.ts +2 -2
- package/src/interfaces/dto/IOutput.ts +38 -26
- package/src/interfaces/dto/IParameter.ts +3 -3
|
@@ -1,52 +1,11 @@
|
|
|
1
|
-
import { ShapeDiverRequestCustomization, ShapeDiverRequestExport, ShapeDiverRequestGltfUploadQueryConversion, ShapeDiverResponseDto, ShapeDiverResponseExport, ShapeDiverResponseFileInfo, ShapeDiverResponseParameterType, ShapeDiverResponseParameterVisualization } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
2
|
-
import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
3
|
-
import { SettingsEngine } from '@shapediver/viewer.shared.services';
|
|
4
|
-
import { OutputLoaderTaskEventInfo } from '../implementation/OutputLoader';
|
|
5
1
|
import { IExport } from './dto/IExport';
|
|
6
2
|
import { IOutput } from './dto/IOutput';
|
|
7
3
|
import { IParameter } from './dto/IParameter';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
session?: {
|
|
14
|
-
parameter?: {
|
|
15
|
-
/** Option to update the displayname of the parameters (default: false) */
|
|
16
|
-
displayname?: boolean;
|
|
17
|
-
/** Option to update the order of the parameters (default: false) */
|
|
18
|
-
order?: boolean;
|
|
19
|
-
/** Option to update the hidden state of the parameters (default: false) */
|
|
20
|
-
hidden?: boolean;
|
|
21
|
-
/** Option to update the value of the parameters (default: false) */
|
|
22
|
-
value?: boolean;
|
|
23
|
-
};
|
|
24
|
-
export?: {
|
|
25
|
-
/** Option to update the displayname of the exports (default: false) */
|
|
26
|
-
displayname?: boolean;
|
|
27
|
-
/** Option to update the order of the exports (default: false) */
|
|
28
|
-
order?: boolean;
|
|
29
|
-
/** Option to update the hidden state of the exports (default: false) */
|
|
30
|
-
hidden?: boolean;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
viewport?: {
|
|
34
|
-
/** Option to update the ar settings (default: false) */
|
|
35
|
-
ar?: boolean;
|
|
36
|
-
/** Option to update the scene settings (default: false) */
|
|
37
|
-
scene?: boolean;
|
|
38
|
-
/** Option to update the camera settings (default: false) */
|
|
39
|
-
camera?: boolean;
|
|
40
|
-
/** Option to update the light settings (default: false) */
|
|
41
|
-
light?: boolean;
|
|
42
|
-
/** Option to update the environment settings (default: false) */
|
|
43
|
-
environment?: boolean;
|
|
44
|
-
/** Option to update the general settings (default: false) */
|
|
45
|
-
general?: boolean;
|
|
46
|
-
/** Option to update the postprocessing settings (default: false) */
|
|
47
|
-
postprocessing?: boolean;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
4
|
+
import { ISettingsSections } from '@shapediver/viewer.shared.types';
|
|
5
|
+
import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
6
|
+
import { OutputLoaderTaskEventInfo } from '../implementation/OutputLoader';
|
|
7
|
+
import { SettingsEngine } from '@shapediver/viewer.shared.services';
|
|
8
|
+
import { ShapeDiverRequestCustomization, ShapeDiverRequestExport, ShapeDiverRequestGltfUploadQueryConversion, ShapeDiverResponseDto, ShapeDiverResponseExport, ShapeDiverResponseFileInfo } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
50
9
|
export interface ISessionEngine {
|
|
51
10
|
readonly jwtToken?: string;
|
|
52
11
|
canUploadGLTF: boolean;
|
|
@@ -56,6 +15,7 @@ export interface ISessionEngine {
|
|
|
56
15
|
guid?: string;
|
|
57
16
|
id: string;
|
|
58
17
|
initialized: boolean;
|
|
18
|
+
loadSdtf: boolean;
|
|
59
19
|
modelViewUrl: string;
|
|
60
20
|
outputs: {
|
|
61
21
|
[key: string]: IOutput;
|
|
@@ -97,6 +57,11 @@ export interface ISessionEngine {
|
|
|
97
57
|
setJwtToken(token: string): Promise<void>;
|
|
98
58
|
updateOutputs(taskEventInfo?: OutputLoaderTaskEventInfo, waitForViewportUpdate?: boolean): Promise<ITreeNode>;
|
|
99
59
|
uploadFile(parameterId: string, data: File, type: string): Promise<string>;
|
|
60
|
+
uploadFileParameters(parameterValues?: {
|
|
61
|
+
[key: string]: string | File | Blob;
|
|
62
|
+
}): Promise<{
|
|
63
|
+
[key: string]: string;
|
|
64
|
+
}>;
|
|
100
65
|
uploadGLTF(blob: Blob, conversion?: ShapeDiverRequestGltfUploadQueryConversion): Promise<ShapeDiverResponseDto>;
|
|
101
66
|
}
|
|
102
67
|
//# sourceMappingURL=ISessionEngine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISessionEngine.d.ts","sourceRoot":"","sources":["../../src/interfaces/ISessionEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ISessionEngine.d.ts","sourceRoot":"","sources":["../../src/interfaces/ISessionEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EACL,8BAA8B,EAC9B,uBAAuB,EACvB,0CAA0C,EAC1C,qBAAqB,EACrB,wBAAwB,EACxB,0BAA0B,EAC3B,MAAM,qCAAqC,CAAC;AAE7C,MAAM,WAAW,cAAc;IAG7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAE3B,aAAa,EAAE,OAAO,CAAC;IACvB,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EA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AAqB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAC9G,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3E,oBAAoB,CAAC,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC,CAAA;IACnH,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,CAAC,EAAE,0CAA0C,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;CAGjH"}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PARAMETER_VISUALIZATION = exports.PARAMETER_TYPE = void 0;
|
|
4
|
-
const sdk_geometry_api_sdk_v2_1 = require("@shapediver/sdk.geometry-api-sdk-v2");
|
|
5
|
-
Object.defineProperty(exports, "PARAMETER_TYPE", { enumerable: true, get: function () { return sdk_geometry_api_sdk_v2_1.ShapeDiverResponseParameterType; } });
|
|
6
|
-
Object.defineProperty(exports, "PARAMETER_VISUALIZATION", { enumerable: true, get: function () { return sdk_geometry_api_sdk_v2_1.ShapeDiverResponseParameterVisualization; } });
|
|
7
3
|
//# sourceMappingURL=ISessionEngine.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISessionEngine.js","sourceRoot":"","sources":["../../src/interfaces/ISessionEngine.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ISessionEngine.js","sourceRoot":"","sources":["../../src/interfaces/ISessionEngine.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
|
|
2
|
+
import { ShapeDiverResponseOutput } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
3
3
|
export interface ISessionOutputData extends ITreeNodeData {
|
|
4
4
|
responseOutput: ShapeDiverResponseOutput;
|
|
5
5
|
clone(): ISessionOutputData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISessionOutputData.d.ts","sourceRoot":"","sources":["../../src/interfaces/ISessionOutputData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ISessionOutputData.d.ts","sourceRoot":"","sources":["../../src/interfaces/ISessionOutputData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAE/E,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IAGrD,cAAc,EAAE,wBAAwB,CAAA;IAMxC,KAAK,IAAI,kBAAkB,CAAC;CAG/B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ShapeDiverResponseExport } from
|
|
1
|
+
import { ShapeDiverResponseExport } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
2
2
|
export interface IExport extends ShapeDiverResponseExport {
|
|
3
3
|
maxWaitTime: number;
|
|
4
4
|
request(parameters?: {
|
|
5
|
-
[key: string]:
|
|
5
|
+
[key: string]: unknown;
|
|
6
6
|
}): Promise<ShapeDiverResponseExport>;
|
|
7
7
|
updateExport(): void;
|
|
8
8
|
updateExportDefinition(exportDef: ShapeDiverResponseExport): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IExport.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dto/IExport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAE/E,MAAM,WAAW,OAAQ,SAAQ,wBAAwB;IAGrD,WAAW,EAAE,MAAM,CAAC;IAMpB,OAAO,CAAC,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"IExport.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dto/IExport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAE/E,MAAM,WAAW,OAAQ,SAAQ,wBAAwB;IAGrD,WAAW,EAAE,MAAM,CAAC;IAMpB,OAAO,CAAC,UAAU,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAAG,OAAO,CAAC,wBAAwB,CAAC,CAAC;IACpF,YAAY,IAAI,IAAI,CAAC;IACrB,sBAAsB,CAAC,SAAS,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAGrE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IParameter } from './IParameter';
|
|
2
2
|
export interface IFileParameter extends IParameter<File | Blob | string> {
|
|
3
3
|
getFilename(fileId?: string): Promise<string | undefined>;
|
|
4
|
-
upload(): Promise<string>;
|
|
4
|
+
upload(v?: File | Blob | string): Promise<string>;
|
|
5
5
|
}
|
|
6
6
|
//# sourceMappingURL=IFileParameter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IFileParameter.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dto/IFileParameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"IFileParameter.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dto/IFileParameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,WAAW,cAAe,SAAQ,UAAU,CAAC,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAGpE,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC1D,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAGrD"}
|
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import { ShapeDiverResponseOutput, ShapeDiverResponseOutputContent as ShapeDiverResponseOutputContentBackend, ShapeDiverResponseOutputChunk as ShapeDiverResponseOutputChunkBackend } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
2
1
|
import { IAnchor, IMaterialContentData, IMaterialContentDataV1, IMaterialContentDataV2, IMaterialContentDataV3, ITag2D, ITag3D } from '@shapediver/viewer.data-engine.shared-types';
|
|
3
2
|
import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
4
|
-
|
|
5
|
-
* Extension of the ShapeDiverResponseOutputContent as the viewer already creates types for them
|
|
6
|
-
*/
|
|
7
|
-
export interface ShapeDiverResponseOutputContent extends ShapeDiverResponseOutputContentBackend {
|
|
8
|
-
data?: ITag2D[] | ITag3D[] | IAnchor[] | IMaterialContentData | IMaterialContentDataV1 | IMaterialContentDataV2 | IMaterialContentDataV3 | any;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Extension of the ShapeDiverResponseOutputChunk with a node
|
|
12
|
-
*/
|
|
13
|
-
export interface ShapeDiverResponseOutputChunk extends ShapeDiverResponseOutputChunkBackend {
|
|
14
|
-
node?: ITreeNode;
|
|
15
|
-
}
|
|
3
|
+
import { ShapeDiverResponseOutput, ShapeDiverResponseOutputChunk as ShapeDiverResponseOutputChunkBackend, ShapeDiverResponseOutputContent as ShapeDiverResponseOutputContentBackend } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
16
4
|
export interface IOutput extends ShapeDiverResponseOutput {
|
|
17
5
|
readonly node?: ITreeNode;
|
|
18
6
|
format: string[];
|
|
@@ -23,4 +11,16 @@ export interface IOutput extends ShapeDiverResponseOutput {
|
|
|
23
11
|
updateOutputContent(content: ShapeDiverResponseOutputContent[], preventUpdate?: boolean, waitForViewportUpdate?: boolean): Promise<ITreeNode | undefined>;
|
|
24
12
|
updateOutputDefinition(outputDef: ShapeDiverResponseOutput): void;
|
|
25
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* Extension of the ShapeDiverResponseOutputChunk with a node
|
|
16
|
+
*/
|
|
17
|
+
export interface ShapeDiverResponseOutputChunk extends ShapeDiverResponseOutputChunkBackend {
|
|
18
|
+
node?: ITreeNode;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Extension of the ShapeDiverResponseOutputContent as the viewer already creates types for them
|
|
22
|
+
*/
|
|
23
|
+
export interface ShapeDiverResponseOutputContent extends ShapeDiverResponseOutputContentBackend {
|
|
24
|
+
data?: ITag2D[] | ITag3D[] | IAnchor[] | IMaterialContentData | IMaterialContentDataV1 | IMaterialContentDataV2 | IMaterialContentDataV3 | unknown;
|
|
25
|
+
}
|
|
26
26
|
//# sourceMappingURL=IOutput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOutput.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dto/IOutput.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"IOutput.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dto/IOutput.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,OAAO,EACP,oBAAoB,EACpB,sBAAsB,EACtB,sBAAsB,EACtB,sBAAsB,EACtB,MAAM,EACN,MAAM,EACT,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,6BAA6B,IAAI,oCAAoC,EAAE,+BAA+B,IAAI,sCAAsC,EAAE,MAAM,qCAAqC,CAAC;AAIjO,MAAM,WAAW,OAAQ,SAAQ,wBAAwB;IAGrD,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAE1B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC;IAM5E,qBAAqB,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IACtE,YAAY,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC7D,mBAAmB,CAAC,OAAO,EAAE,+BAA+B,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,EAAE,qBAAqB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,CAAC;IAC1J,sBAAsB,CAAC,SAAS,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAGrE;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,oCAAoC;IAGvF,IAAI,CAAC,EAAE,SAAS,CAAC;CAGpB;AAED;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,sCAAsC;IAG3F,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,GAAG,OAAO,EAAE,GAAG,oBAAoB,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,sBAAsB,GAAG,OAAO,CAAC;CAGtJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IOutput.js","sourceRoot":"","sources":["../../../src/interfaces/dto/IOutput.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"IOutput.js","sourceRoot":"","sources":["../../../src/interfaces/dto/IOutput.ts"],"names":[],"mappings":";;AAyDA,4BAA4B"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ShapeDiverResponseParameter } from
|
|
1
|
+
import { ShapeDiverResponseParameter } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
2
2
|
export interface IParameter<T> extends ShapeDiverResponseParameter {
|
|
3
3
|
sessionValue: T | string;
|
|
4
4
|
value: T | string;
|
|
5
|
-
isValid(value:
|
|
5
|
+
isValid(value: unknown): boolean;
|
|
6
6
|
resetToDefaultValue(): void;
|
|
7
7
|
resetToSessionValue(): void;
|
|
8
|
-
stringify(): string;
|
|
8
|
+
stringify(value?: unknown): string;
|
|
9
9
|
}
|
|
10
10
|
//# sourceMappingURL=IParameter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IParameter.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dto/IParameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAElF,MAAM,WAAW,UAAU,CAAC,CAAC,CAAE,SAAQ,2BAA2B;IAG9D,YAAY,EAAE,CAAC,GAAG,MAAM,CAAC;IACzB,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC;IAMlB,OAAO,CAAC,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"IParameter.d.ts","sourceRoot":"","sources":["../../../src/interfaces/dto/IParameter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAElF,MAAM,WAAW,UAAU,CAAC,CAAC,CAAE,SAAQ,2BAA2B;IAG9D,YAAY,EAAE,CAAC,GAAG,MAAM,CAAC;IACzB,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC;IAMlB,OAAO,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IACjC,mBAAmB,IAAI,IAAI,CAAC;IAC5B,mBAAmB,IAAI,IAAI,CAAC;IAC5B,SAAS,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAGtC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.session-engine.session-engine",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -40,16 +40,15 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@shapediver/sdk.geometry-api-sdk-v2": "1.8.2",
|
|
43
|
-
"@shapediver/viewer.data-engine.
|
|
44
|
-
"@shapediver/viewer.
|
|
45
|
-
"@shapediver/viewer.
|
|
46
|
-
"@shapediver/viewer.shared.
|
|
47
|
-
"@shapediver/viewer.shared.
|
|
48
|
-
"@shapediver/viewer.shared.
|
|
49
|
-
"@shapediver/viewer.
|
|
50
|
-
"@shapediver/viewer.utils.mime-type": "1.0.1",
|
|
43
|
+
"@shapediver/viewer.data-engine.shared-types": "3.0.0",
|
|
44
|
+
"@shapediver/viewer.settings": "1.0.1",
|
|
45
|
+
"@shapediver/viewer.shared.build-data": "3.0.0",
|
|
46
|
+
"@shapediver/viewer.shared.node-tree": "3.0.0",
|
|
47
|
+
"@shapediver/viewer.shared.services": "3.0.0",
|
|
48
|
+
"@shapediver/viewer.shared.types": "3.0.0",
|
|
49
|
+
"@shapediver/viewer.utils.mime-type": "1.0.2",
|
|
51
50
|
"axios": "^1.2.6",
|
|
52
51
|
"gl-matrix": "3.3.0"
|
|
53
52
|
},
|
|
54
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "b6b0010bf5d5652aa338df8016405d97f33fcabb"
|
|
55
54
|
}
|
|
@@ -12,11 +12,11 @@ export class OutputDelayException extends Error {
|
|
|
12
12
|
|
|
13
13
|
// #endregion Constructors (1)
|
|
14
14
|
|
|
15
|
-
// #region Public
|
|
15
|
+
// #region Public Getters And Setters (1)
|
|
16
16
|
|
|
17
17
|
public get delay(): number {
|
|
18
|
-
|
|
18
|
+
return this._delay;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
// #endregion Public
|
|
21
|
+
// #endregion Public Getters And Setters (1)
|
|
22
22
|
}
|