@shapediver/viewer.session-engine.session-engine 3.3.4 → 3.3.6
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/SessionEngine.d.ts.map +1 -1
- package/dist/implementation/SessionEngine.js +18 -3
- package/dist/implementation/SessionEngine.js.map +1 -1
- package/dist/implementation/dto/DrawingParameter.d.ts +13 -0
- package/dist/implementation/dto/DrawingParameter.d.ts.map +1 -0
- package/dist/implementation/dto/DrawingParameter.js +43 -0
- package/dist/implementation/dto/DrawingParameter.js.map +1 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/interfaces/dto/IDrawingParameter.d.ts +5 -0
- package/dist/interfaces/dto/IDrawingParameter.d.ts.map +1 -0
- package/dist/interfaces/dto/IDrawingParameter.js +3 -0
- package/dist/interfaces/dto/IDrawingParameter.js.map +1 -0
- package/dist/interfaces/dto/IDrawingToolsParameter.d.ts +5 -0
- package/dist/interfaces/dto/IDrawingToolsParameter.d.ts.map +1 -0
- package/dist/interfaces/dto/IDrawingToolsParameter.js +3 -0
- package/dist/interfaces/dto/IDrawingToolsParameter.js.map +1 -0
- package/package.json +10 -11
- package/src/implementation/OutputDelayException.ts +0 -22
- package/src/implementation/OutputLoader.ts +0 -378
- package/src/implementation/SessionData.ts +0 -44
- package/src/implementation/SessionEngine.ts +0 -2006
- package/src/implementation/SessionOutputData.ts +0 -44
- package/src/implementation/SessionTreeNode.ts +0 -44
- package/src/implementation/dto/Export.ts +0 -231
- package/src/implementation/dto/FileParameter.ts +0 -117
- package/src/implementation/dto/Output.ts +0 -223
- package/src/implementation/dto/Parameter.ts +0 -370
- package/src/implementation/dto/interaction/GumballParameter.ts +0 -78
- package/src/implementation/dto/interaction/SelectionParameter.ts +0 -66
- package/src/index.ts +0 -27
- package/src/interfaces/ISessionData.ts +0 -16
- package/src/interfaces/ISessionEngine.ts +0 -69
- package/src/interfaces/ISessionOutputData.ts +0 -16
- package/src/interfaces/ISessionTreeNode.ts +0 -9
- package/src/interfaces/dto/IExport.ts +0 -17
- package/src/interfaces/dto/IFileParameter.ts +0 -10
- package/src/interfaces/dto/IOutput.ts +0 -58
- package/src/interfaces/dto/IParameter.ts +0 -19
- package/src/interfaces/dto/interaction/IGumballParameter.ts +0 -5
- package/src/interfaces/dto/interaction/IInteractionParameter.ts +0 -10
- package/src/interfaces/dto/interaction/ISelectionParameter.ts +0 -5
- package/tsconfig.json +0 -17
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IParameter } from './IParameter';
|
|
2
|
-
|
|
3
|
-
export interface IFileParameter extends IParameter<File | Blob | string> {
|
|
4
|
-
// #region Public Methods (2)
|
|
5
|
-
|
|
6
|
-
getFilename(fileId?: string): Promise<string | undefined>;
|
|
7
|
-
upload(v?: File | Blob | string): Promise<string>;
|
|
8
|
-
|
|
9
|
-
// #endregion Public Methods (2)
|
|
10
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IAnchor,
|
|
3
|
-
IMaterialContentData,
|
|
4
|
-
IMaterialContentDataV1,
|
|
5
|
-
IMaterialContentDataV2,
|
|
6
|
-
IMaterialContentDataV3,
|
|
7
|
-
ITag2D,
|
|
8
|
-
ITag3D
|
|
9
|
-
} from '@shapediver/viewer.data-engine.shared-types';
|
|
10
|
-
import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
|
|
11
|
-
import { ShapeDiverResponseOutput, ShapeDiverResponseOutputChunk as ShapeDiverResponseOutputChunkBackend, ShapeDiverResponseOutputContent as ShapeDiverResponseOutputContentBackend } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
12
|
-
|
|
13
|
-
// #region Interfaces (3)
|
|
14
|
-
|
|
15
|
-
export interface IOutput extends ShapeDiverResponseOutput {
|
|
16
|
-
// #region Properties (4)
|
|
17
|
-
|
|
18
|
-
readonly node?: ITreeNode;
|
|
19
|
-
|
|
20
|
-
format: string[];
|
|
21
|
-
freeze: boolean;
|
|
22
|
-
updateCallback: ((newNode?: ITreeNode, oldNode?: ITreeNode) => void) | null;
|
|
23
|
-
|
|
24
|
-
// #endregion Properties (4)
|
|
25
|
-
|
|
26
|
-
// #region Public Methods (4)
|
|
27
|
-
|
|
28
|
-
triggerUpdateCallback(newNode?: ITreeNode, oldNode?: ITreeNode): void;
|
|
29
|
-
updateOutput(newNode?: ITreeNode, oldNode?: ITreeNode): void;
|
|
30
|
-
updateOutputContent(content: ShapeDiverResponseOutputContent[], preventUpdate?: boolean, waitForViewportUpdate?: boolean): Promise<ITreeNode | undefined>;
|
|
31
|
-
updateOutputDefinition(outputDef: ShapeDiverResponseOutput): void;
|
|
32
|
-
|
|
33
|
-
// #endregion Public Methods (4)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Extension of the ShapeDiverResponseOutputChunk with a node
|
|
38
|
-
*/
|
|
39
|
-
export interface ShapeDiverResponseOutputChunk extends ShapeDiverResponseOutputChunkBackend {
|
|
40
|
-
// #region Properties (1)
|
|
41
|
-
|
|
42
|
-
node?: ITreeNode;
|
|
43
|
-
|
|
44
|
-
// #endregion Properties (1)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Extension of the ShapeDiverResponseOutputContent as the viewer already creates types for them
|
|
49
|
-
*/
|
|
50
|
-
export interface ShapeDiverResponseOutputContent extends ShapeDiverResponseOutputContentBackend {
|
|
51
|
-
// #region Properties (1)
|
|
52
|
-
|
|
53
|
-
data?: ITag2D[] | ITag3D[] | IAnchor[] | IMaterialContentData | IMaterialContentDataV1 | IMaterialContentDataV2 | IMaterialContentDataV3 | unknown;
|
|
54
|
-
|
|
55
|
-
// #endregion Properties (1)
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// #endregion Interfaces (3)
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ShapeDiverResponseParameter } from '@shapediver/sdk.geometry-api-sdk-v2';
|
|
2
|
-
|
|
3
|
-
export interface IParameter<T> extends ShapeDiverResponseParameter {
|
|
4
|
-
// #region Properties (2)
|
|
5
|
-
|
|
6
|
-
sessionValue: T | string;
|
|
7
|
-
value: T | string;
|
|
8
|
-
|
|
9
|
-
// #endregion Properties (2)
|
|
10
|
-
|
|
11
|
-
// #region Public Methods (4)
|
|
12
|
-
|
|
13
|
-
isValid(value: unknown): boolean;
|
|
14
|
-
resetToDefaultValue(): void;
|
|
15
|
-
resetToSessionValue(): void;
|
|
16
|
-
stringify(value?: unknown): string;
|
|
17
|
-
|
|
18
|
-
// #endregion Public Methods (4)
|
|
19
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IInteractionParameter } from './IInteractionParameter';
|
|
2
|
-
import { IParameter } from '../IParameter';
|
|
3
|
-
import { IGumballParameterProps } from '@shapediver/viewer.shared.types';
|
|
4
|
-
|
|
5
|
-
export interface IGumballParameter extends IParameter<string>, IInteractionParameter, IGumballParameterProps { }
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InteractionParameterSettingsType } from '@shapediver/viewer.shared.types';
|
|
2
|
-
import { IParameter } from '../IParameter';
|
|
3
|
-
|
|
4
|
-
export interface IInteractionParameter extends IParameter<string> {
|
|
5
|
-
// #region Properties (1)
|
|
6
|
-
|
|
7
|
-
interactionType: InteractionParameterSettingsType;
|
|
8
|
-
|
|
9
|
-
// #endregion Properties (1)
|
|
10
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IInteractionParameter } from './IInteractionParameter';
|
|
2
|
-
import { IParameter } from '../IParameter';
|
|
3
|
-
import { ISelectionParameterProps } from '@shapediver/viewer.shared.types';
|
|
4
|
-
|
|
5
|
-
export interface ISelectionParameter extends IParameter<string>, IInteractionParameter, ISelectionParameterProps { }
|
package/tsconfig.json
DELETED