@shapediver/viewer.session 3.3.3 → 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.
Files changed (38) hide show
  1. package/dist/implementation/SessionApi.d.ts.map +1 -1
  2. package/dist/implementation/SessionApi.js +8 -4
  3. package/dist/implementation/SessionApi.js.map +1 -1
  4. package/dist/implementation/parameter/DrawingParameterApi.d.ts +10 -0
  5. package/dist/implementation/parameter/DrawingParameterApi.d.ts.map +1 -0
  6. package/dist/implementation/parameter/DrawingParameterApi.js +37 -0
  7. package/dist/implementation/parameter/DrawingParameterApi.js.map +1 -0
  8. package/dist/index.d.ts +4 -3
  9. package/dist/index.d.ts.map +1 -1
  10. package/dist/index.js +4 -8
  11. package/dist/index.js.map +1 -1
  12. package/dist/interfaces/parameter/IDrawingParameterApi.d.ts +3 -0
  13. package/dist/interfaces/parameter/IDrawingParameterApi.d.ts.map +1 -0
  14. package/dist/interfaces/parameter/IDrawingParameterApi.js +3 -0
  15. package/dist/interfaces/parameter/IDrawingParameterApi.js.map +1 -0
  16. package/package.json +13 -14
  17. package/src/implementation/ExportApi.ts +0 -158
  18. package/src/implementation/OutputApi.ts +0 -178
  19. package/src/implementation/SessionApi.ts +0 -429
  20. package/src/implementation/data/OutputApiData.ts +0 -53
  21. package/src/implementation/data/SessionApiData.ts +0 -53
  22. package/src/implementation/parameter/FileParameterApi.ts +0 -34
  23. package/src/implementation/parameter/GumballParameterApi.ts +0 -61
  24. package/src/implementation/parameter/ParameterApi.ts +0 -180
  25. package/src/implementation/parameter/SelectionParameterApi.ts +0 -49
  26. package/src/index.ts +0 -258
  27. package/src/interfaces/IExportApi.ts +0 -29
  28. package/src/interfaces/IOutputApi.ts +0 -85
  29. package/src/interfaces/ISessionApi.ts +0 -487
  30. package/src/interfaces/data/IOutputApiData.ts +0 -16
  31. package/src/interfaces/data/ISessionApiData.ts +0 -16
  32. package/src/interfaces/parameter/IFileParameterApi.ts +0 -39
  33. package/src/interfaces/parameter/IGumballParameterApi.ts +0 -4
  34. package/src/interfaces/parameter/IInteractionParameterApi.ts +0 -10
  35. package/src/interfaces/parameter/IParameterApi.ts +0 -57
  36. package/src/interfaces/parameter/ISelectionParameterApi.ts +0 -4
  37. package/src/main.ts +0 -100
  38. package/tsconfig.json +0 -17
@@ -1,53 +0,0 @@
1
- import { AbstractTreeNodeData } from '@shapediver/viewer.shared.node-tree';
2
- import { ISessionApi } from '../../interfaces/ISessionApi';
3
- import { ISessionApiData } from '../../interfaces/data/ISessionApiData';
4
-
5
- export class SessionApiData extends AbstractTreeNodeData implements ISessionApiData {
6
- // #region Properties (1)
7
-
8
- #api: ISessionApi;
9
-
10
- // #endregion Properties (1)
11
-
12
- // #region Constructors (1)
13
-
14
- /**
15
- * Creates a SessionApi data node.
16
- *
17
- * @param _data the data as key- value pairs
18
- * @param id the id
19
- */
20
- constructor(
21
- api: ISessionApi,
22
- id?: string,
23
- version?: string
24
- ) {
25
- super(id, version);
26
- this.#api = api;
27
- }
28
-
29
- // #endregion Constructors (1)
30
-
31
- // #region Public Getters And Setters (2)
32
-
33
- public get api(): ISessionApi {
34
- return this.#api;
35
- }
36
-
37
- public set api(value: ISessionApi) {
38
- this.#api = value;
39
- }
40
-
41
- // #endregion Public Getters And Setters (2)
42
-
43
- // #region Public Methods (1)
44
-
45
- /**
46
- * Clones the scene graph data.
47
- */
48
- public clone(): ISessionApiData {
49
- return new SessionApiData(this.api, this.id, this.version);
50
- }
51
-
52
- // #endregion Public Methods (1)
53
- }
@@ -1,34 +0,0 @@
1
- import { IFileParameter } from '@shapediver/viewer.session-engine.session-engine';
2
- import { IFileParameterApi } from '../../interfaces/parameter/IFileParameterApi';
3
- import { Logger } from '@shapediver/viewer.shared.services';
4
- import { ParameterApi } from './ParameterApi';
5
-
6
- export class FileParameterApi extends ParameterApi<File | Blob | string> implements IFileParameterApi {
7
- // #region Properties (2)
8
-
9
- readonly #logger: Logger = Logger.instance;
10
- readonly #parameter: IFileParameter;
11
-
12
- // #endregion Properties (2)
13
-
14
- // #region Constructors (1)
15
-
16
- constructor(parameter: IFileParameter) {
17
- super(parameter);
18
- this.#parameter = parameter;
19
- }
20
-
21
- // #endregion Constructors (1)
22
-
23
- // #region Public Methods (2)
24
-
25
- public async getFilename(fileId?: string): Promise<string | undefined> {
26
- return this.#parameter.getFilename(fileId);
27
- }
28
-
29
- public upload(): Promise<string> {
30
- return this.#parameter.upload();
31
- }
32
-
33
- // #endregion Public Methods (2)
34
- }
@@ -1,61 +0,0 @@
1
- import { IGumballParameter } from '@shapediver/viewer.session-engine.session-engine';
2
- import { IGumballParameterApi } from '../../interfaces/parameter/IGumballParameterApi';
3
- import { InteractionParameterSettingsType } from '@shapediver/viewer.shared.types';
4
- import { ParameterApi } from './ParameterApi';
5
-
6
- export class GumballParameterApi extends ParameterApi<string> implements IGumballParameterApi {
7
- // #region Properties (1)
8
-
9
- readonly #parameter: IGumballParameter;
10
-
11
- // #endregion Properties (1)
12
-
13
- // #region Constructors (1)
14
-
15
- constructor(parameter: IGumballParameter) {
16
- super(parameter);
17
- this.#parameter = parameter;
18
- }
19
-
20
- // #endregion Constructors (1)
21
-
22
- // #region Public Getters And Setters (9)
23
-
24
- public get enableRotation(): boolean | undefined {
25
- return this.#parameter.enableRotation;
26
- }
27
-
28
- public get enableScaling(): boolean | undefined {
29
- return this.#parameter.enableScaling;
30
- }
31
-
32
- public get enableTranslation(): boolean | undefined {
33
- return this.#parameter.enableTranslation;
34
- }
35
-
36
- public get hover(): boolean | undefined {
37
- return this.#parameter.hover;
38
- }
39
-
40
- public get interactionType(): InteractionParameterSettingsType {
41
- return this.#parameter.interactionType;
42
- }
43
-
44
- public get nameFilter(): string[] | undefined {
45
- return this.#parameter.nameFilter;
46
- }
47
-
48
- public get scale(): number | undefined {
49
- return this.#parameter.scale;
50
- }
51
-
52
- public get selectionColor(): string | undefined {
53
- return this.#parameter.selectionColor;
54
- }
55
-
56
- public get space(): 'local' | 'world' | undefined {
57
- return this.#parameter.space;
58
- }
59
-
60
- // #endregion Public Getters And Setters (9)
61
- }
@@ -1,180 +0,0 @@
1
- import { InputValidator, Logger } from '@shapediver/viewer.shared.services';
2
- import { IParameter } from '@shapediver/viewer.session-engine.session-engine';
3
- import { IParameterApi } from '../../interfaces/parameter/IParameterApi';
4
- import { PARAMETER_TYPE, PARAMETER_VISUALIZATION } from '@shapediver/viewer.shared.types';
5
- import { ShapeDiverResponseParameterGroup, ShapeDiverResponseParameterStructure } from '@shapediver/sdk.geometry-api-sdk-v2';
6
-
7
- export class ParameterApi<T> implements IParameterApi<T> {
8
- // #region Properties (3)
9
-
10
- readonly #inputValidator: InputValidator = InputValidator.instance;
11
- readonly #logger: Logger = Logger.instance;
12
- readonly #parameter: IParameter<T>;
13
-
14
- // #endregion Properties (3)
15
-
16
- // #region Constructors (1)
17
-
18
- constructor(parameter: IParameter<T>) {
19
- this.#parameter = parameter;
20
- }
21
-
22
- // #endregion Constructors (1)
23
-
24
- // #region Public Getters And Setters (25)
25
-
26
- public get choices(): string[] | undefined {
27
- return this.#parameter.choices;
28
- }
29
-
30
- public get decimalplaces(): number | undefined {
31
- return this.#parameter.decimalplaces;
32
- }
33
-
34
- public get defval(): string {
35
- return this.#parameter.defval;
36
- }
37
-
38
- public get displayname(): string | undefined {
39
- return this.#parameter.displayname;
40
- }
41
-
42
- public set displayname(value: string | undefined) {
43
- const scope = 'displayname';
44
- this.#inputValidator.validateAndError(`ParameterApi.${scope}`, value, 'string', false);
45
- this.#parameter.displayname = value;
46
- this.#logger.debug(`ParameterApi.${scope}: ${scope} was set to ${this.#parameter.displayname}.`);
47
- }
48
-
49
- public get expression(): string | undefined {
50
- return this.#parameter.expression;
51
- }
52
-
53
- public get format(): string[] | undefined {
54
- return this.#parameter.format;
55
- }
56
-
57
- public get group(): ShapeDiverResponseParameterGroup | undefined {
58
- return this.#parameter.group;
59
- }
60
-
61
- public get hidden(): boolean {
62
- return this.#parameter.hidden;
63
- }
64
-
65
- public set hidden(value: boolean) {
66
- const scope = 'hidden';
67
- this.#inputValidator.validateAndError(`ParameterApi.${scope}`, value, 'boolean');
68
- this.#parameter.hidden = value;
69
- this.#logger.debug(`ParameterApi.${scope}: ${scope} was set to ${this.#parameter.hidden}.`);
70
- }
71
-
72
- public get id(): string {
73
- return this.#parameter.id;
74
- }
75
-
76
- public get max(): number | undefined {
77
- return this.#parameter.max;
78
- }
79
-
80
- public get min(): number | undefined {
81
- return this.#parameter.min;
82
- }
83
-
84
- public get name(): string {
85
- return this.#parameter.name;
86
- }
87
-
88
- public get order(): number | undefined {
89
- return this.#parameter.order;
90
- }
91
-
92
- public set order(value: number | undefined) {
93
- const scope = 'order';
94
- this.#inputValidator.validateAndError(`ParameterApi.${scope}`, value, 'number', false);
95
- this.#parameter.order = value;
96
- this.#logger.debug(`ParameterApi.${scope}: ${scope} was set to ${this.#parameter.order}.`);
97
- }
98
-
99
- public get sessionValue(): T | string {
100
- return this.#parameter.sessionValue;
101
- }
102
-
103
- public set sessionValue(value: T | string) {
104
- const scope = 'sessionValue';
105
- this.#parameter.sessionValue = value;
106
- this.#logger.debug(`ParameterApi.${scope}: ${scope} was set to ${this.#parameter.value}.`);
107
- }
108
-
109
- public get settings(): Record<string, any> | undefined {
110
- return this.#parameter.settings;
111
- }
112
-
113
- public get structure(): ShapeDiverResponseParameterStructure | undefined {
114
- return this.#parameter.structure;
115
- }
116
-
117
- public get tooltip(): string | undefined {
118
- return this.#parameter.tooltip;
119
- }
120
-
121
- public set tooltip(value: string | undefined) {
122
- const scope = 'tooltip';
123
- this.#inputValidator.validateAndError(`ParameterApi.${scope}`, value, 'string', false);
124
- this.#parameter.tooltip = value;
125
- this.#logger.debug(`ParameterApi.${scope}: ${scope} was set to ${this.#parameter.tooltip}.`);
126
- }
127
-
128
- public get type(): PARAMETER_TYPE {
129
- return <PARAMETER_TYPE>this.#parameter.type;
130
- }
131
-
132
- public get value(): T | string {
133
- return this.#parameter.value;
134
- }
135
-
136
- public set value(value: T | string) {
137
- const scope = 'value';
138
- this.isValid(value, true);
139
- this.#parameter.value = value;
140
- this.#logger.debug(`ParameterApi.${scope}: ${scope} was set to ${this.#parameter.value}.`);
141
- }
142
-
143
- public get visualization(): PARAMETER_VISUALIZATION | undefined {
144
- return <PARAMETER_VISUALIZATION>this.#parameter.visualization;
145
- }
146
-
147
- // #endregion Public Getters And Setters (25)
148
-
149
- // #region Public Methods (4)
150
-
151
- public isValid(value: unknown, throwError?: boolean): boolean {
152
- const scope = 'isValid';
153
- this.#inputValidator.validateAndError(`ParameterApi.${scope}`, throwError, 'boolean', false);
154
-
155
- if (throwError === false) {
156
- try {
157
- this.#parameter.isValid(value);
158
- } catch (e) {
159
- return false;
160
- }
161
- return true;
162
- } else {
163
- return this.#parameter.isValid(value);
164
- }
165
- }
166
-
167
- public resetToDefaultValue(): void {
168
- return this.#parameter.resetToDefaultValue();
169
- }
170
-
171
- public resetToSessionValue(): void {
172
- return this.#parameter.resetToSessionValue();
173
- }
174
-
175
- public stringify(value?: unknown): string {
176
- return this.#parameter.stringify(value);
177
- }
178
-
179
- // #endregion Public Methods (4)
180
- }
@@ -1,49 +0,0 @@
1
- import { ISelectionParameter } from '@shapediver/viewer.session-engine.session-engine';
2
- import { ISelectionParameterApi } from '../../interfaces/parameter/ISelectionParameterApi';
3
- import { ParameterApi } from './ParameterApi';
4
- import { InteractionParameterSettingsType } from '@shapediver/viewer.shared.types';
5
-
6
- export class SelectionParameterApi extends ParameterApi<string> implements ISelectionParameterApi {
7
- // #region Properties (1)
8
-
9
- readonly #parameter: ISelectionParameter;
10
-
11
- // #endregion Properties (1)
12
-
13
- // #region Constructors (1)
14
-
15
- constructor(parameter: ISelectionParameter) {
16
- super(parameter);
17
- this.#parameter = parameter;
18
- }
19
-
20
- // #endregion Constructors (1)
21
-
22
- // #region Public Getters And Setters (5)
23
-
24
- public get hover(): boolean | undefined {
25
- return this.#parameter.hover;
26
- }
27
-
28
- public get interactionType(): InteractionParameterSettingsType {
29
- return this.#parameter.interactionType;
30
- }
31
-
32
- public get maximumSelection(): number | undefined {
33
- return this.#parameter.maximumSelection;
34
- }
35
-
36
- public get minimumSelection(): number | undefined {
37
- return this.#parameter.minimumSelection;
38
- }
39
-
40
- public get nameFilter(): string[] | undefined {
41
- return this.#parameter.nameFilter;
42
- }
43
-
44
- public get selectionColor(): string | undefined {
45
- return this.#parameter.selectionColor;
46
- }
47
-
48
- // #endregion Public Getters And Setters (5)
49
- }
package/src/index.ts DELETED
@@ -1,258 +0,0 @@
1
- import {
2
- addListener,
3
- generalOptions,
4
- IGeneralOptions,
5
- removeListener,
6
- sceneTree,
7
- version
8
- } from '@shapediver/viewer.api.general';
9
- import {
10
- AnimationData,
11
- AttributeData,
12
- CustomData,
13
- EventResponseMapping,
14
- GeometryData,
15
- GumballParameterValue,
16
- HTMLElementAnchorCustomData,
17
- HTMLElementAnchorData,
18
- HTMLElementAnchorImageData,
19
- HTMLElementAnchorTextData,
20
- IAnchorDataImage,
21
- IAnchorDataText,
22
- IAnimationData,
23
- IAnimationTrack,
24
- IAttributeData,
25
- ICameraEvent,
26
- ICustomData,
27
- IInteractionParameterProps,
28
- IGeometryData,
29
- IGumballParameterJsonSchema,
30
- IGumballParameterProps,
31
- IHTMLElementAnchorData,
32
- IInteractionParameterJsonSchema,
33
- IInteractionParameterSettings,
34
- IMapData,
35
- IMapDataProperties,
36
- IMapDataPropertiesDefinition,
37
- IMaterialAbstractData,
38
- IMaterialAbstractDataProperties,
39
- IMaterialAbstractDataPropertiesDefinition,
40
- IMaterialBasicLineData,
41
- IMaterialBasicLineDataProperties,
42
- IMaterialBasicLineDataPropertiesDefinition,
43
- IMaterialGemData,
44
- IMaterialGemDataProperties,
45
- IMaterialGemDataPropertiesDefinition,
46
- IMaterialMultiPointData,
47
- IMaterialMultiPointDataProperties,
48
- IMaterialMultiPointDataPropertiesDefinition,
49
- IMaterialPointData,
50
- IMaterialPointDataProperties,
51
- IMaterialPointDataPropertiesDefinition,
52
- IMaterialShadowData,
53
- IMaterialShadowDataProperties,
54
- IMaterialShadowDataPropertiesDefinition,
55
- IMaterialSpecularGlossinessData,
56
- IMaterialSpecularGlossinessDataProperties,
57
- IMaterialSpecularGlossinessDataPropertiesDefinition,
58
- IMaterialStandardData,
59
- IMaterialStandardDataProperties,
60
- IMaterialStandardDataPropertiesDefinition,
61
- IMaterialUnlitData,
62
- IMaterialUnlitDataProperties,
63
- IMaterialUnlitDataPropertiesDefinition,
64
- IMaterialVariantsData,
65
- InteractionParameterSettingsType,
66
- IOutputEvent,
67
- IParameterEvent,
68
- IPrimitiveData,
69
- IRenderingEvent,
70
- ISceneEvent,
71
- ISDTFAttributeData,
72
- ISDTFAttributesData,
73
- ISDTFAttributeVisualizationData,
74
- ISDTFItemData,
75
- ISDTFOverview,
76
- ISDTFOverviewData,
77
- ISelectionParameterJsonSchema,
78
- ISelectionParameterProps,
79
- ISessionEvent,
80
- ISessionSettingsSections,
81
- ISettingsSections,
82
- isInteractionGumballParameterSettings,
83
- isInteractionSelectionParameterSettings,
84
- ITaskEvent,
85
- IViewportEvent,
86
- IViewportSettingsSections,
87
- MapData,
88
- MATERIAL_ALPHA,
89
- MATERIAL_SHADING,
90
- MATERIAL_SIDE,
91
- MATERIAL_TYPE,
92
- MaterialBasicLineData,
93
- MaterialGemData,
94
- MaterialMultiPointData,
95
- MaterialPointData,
96
- MaterialShadowData,
97
- MaterialSpecularGlossinessData,
98
- MaterialStandardData,
99
- MaterialUnlitData,
100
- MaterialVariantsData,
101
- PARAMETER_TYPE,
102
- PARAMETER_VISUALIZATION,
103
- PRIMITIVE_MODE,
104
- PrimitiveData,
105
- SDTF_TYPEHINT,
106
- SDTFAttributeData,
107
- SDTFAttributesData,
108
- SDTFItemData,
109
- SDTFOverviewData,
110
- SdtfPrimitiveTypeGuard,
111
- SelectionParameterValue,
112
- TASK_TYPE,
113
- TEXTURE_FILTERING,
114
- TEXTURE_WRAPPING,
115
- validateGumballParameterSettings,
116
- validateInteractionParameterSettings,
117
- validateSelectionParameterSettings
118
- } from '@shapediver/viewer.shared.types';
119
- import {
120
- Box,
121
- IBox,
122
- IGeometry,
123
- ISphere,
124
- Sphere
125
- } from '@shapediver/viewer.shared.math';
126
- import { createSession, sessions } from './main';
127
- import {
128
- EVENTTYPE,
129
- EVENTTYPE_CAMERA,
130
- EVENTTYPE_DRAWING_TOOLS,
131
- EVENTTYPE_GUMBALL,
132
- EVENTTYPE_INTERACTION,
133
- EVENTTYPE_OUTPUT,
134
- EVENTTYPE_PARAMETER,
135
- EVENTTYPE_RENDERING,
136
- EVENTTYPE_SCENE,
137
- EVENTTYPE_SESSION,
138
- EVENTTYPE_TASK,
139
- EVENTTYPE_VIEWPORT,
140
- IDomEventListener,
141
- IEvent,
142
- isARError,
143
- isViewerCameraError,
144
- isViewerDataProcessingError,
145
- isViewerDrawingToolsError,
146
- isViewerEnvironmentMapError,
147
- isViewerError,
148
- isViewerGeometryBackendError,
149
- isViewerGeometryBackendGenericError,
150
- isViewerGeometryBackendRequestError,
151
- isViewerGeometryBackendResponseError,
152
- isViewerInteractionError,
153
- isViewerLightError,
154
- isViewerSessionError,
155
- isViewerSettingsError,
156
- isViewerUnknownError,
157
- isViewerValidationError,
158
- isViewerViewportError,
159
- isViewerWebGLError,
160
- LOGGING_LEVEL,
161
- MainEventTypes,
162
- SESSION_SETTINGS_MODE,
163
- ShapeDiverGeometryBackendError,
164
- ShapeDiverGeometryBackendRequestError,
165
- ShapeDiverGeometryBackendResponseError,
166
- ShapeDiverGeometryBackendResponseErrorType,
167
- ShapeDiverViewerArError,
168
- ShapeDiverViewerCameraError,
169
- ShapeDiverViewerDataProcessingError,
170
- ShapeDiverViewerDrawingToolsError,
171
- ShapeDiverViewerEnvironmentMapError,
172
- ShapeDiverViewerError,
173
- ShapeDiverViewerErrorType,
174
- ShapeDiverViewerInteractionError,
175
- ShapeDiverViewerLightError,
176
- ShapeDiverViewerSessionError,
177
- ShapeDiverViewerSettingsError,
178
- ShapeDiverViewerUnknownError,
179
- ShapeDiverViewerValidationError,
180
- ShapeDiverViewerViewportError,
181
- ShapeDiverViewerWebGLError
182
- } from '@shapediver/viewer.shared.services';
183
- import { IExportApi } from './interfaces/IExportApi';
184
- import { IFileParameterApi } from './interfaces/parameter/IFileParameterApi';
185
- import { IGumballParameterApi } from './interfaces/parameter/IGumballParameterApi';
186
- import {
187
- IMaterialContentDataV1,
188
- IMaterialContentDataV2,
189
- IMaterialContentDataV3,
190
- ITag2D,
191
- ITag3D,
192
- ITexture,
193
- TAG3D_JUSTIFICATION
194
- } from '@shapediver/viewer.data-engine.shared-types';
195
- import { IOutputApi } from './interfaces/IOutputApi';
196
- import { IOutputApiData } from './interfaces/data/IOutputApiData';
197
- import { IParameterApi } from './interfaces/parameter/IParameterApi';
198
- import { ISelectionParameterApi } from './interfaces/parameter/ISelectionParameterApi';
199
- import { ISessionApi } from './interfaces/ISessionApi';
200
- import { ISessionApiData } from './interfaces/data/ISessionApiData';
201
- import {
202
- ISessionData,
203
- ISessionOutputData,
204
- SessionData,
205
- SessionOutputData,
206
- ShapeDiverResponseOutputChunk,
207
- ShapeDiverResponseOutputContent
208
- } from '@shapediver/viewer.session-engine.session-engine';
209
- import {
210
- ITransformation,
211
- ITree,
212
- ITreeNode,
213
- ITreeNodeData,
214
- Tree,
215
- TreeNode
216
- } from '@shapediver/viewer.shared.node-tree';
217
- import { OutputApiData } from './implementation/data/OutputApiData';
218
- import { SessionApiData } from './implementation/data/SessionApiData';
219
- import { SessionCreationDefinition } from '@shapediver/viewer.creation-control-center.session';
220
- import {
221
- ShapeDiverResponseExport,
222
- ShapeDiverResponseExportContent,
223
- ShapeDiverResponseExportDefinitionGroup,
224
- ShapeDiverResponseExportResult,
225
- ShapeDiverResponseModelComputationStatus,
226
- ShapeDiverResponseParameter
227
- } from '@shapediver/sdk.geometry-api-sdk-v2';
228
- import {
229
- ShapeDiverResponseExportDefinitionType as EXPORT_TYPE,
230
- ShapeDiverResponseOutput,
231
- ShapeDiverResponseOutputChunk as ShapeDiverResponseOutputChunkBackend,
232
- ShapeDiverResponseOutputContent as ShapeDiverResponseOutputContentBackend
233
- } from '@shapediver/sdk.geometry-api-sdk-v2';
234
-
235
- export { IExportApi, IFileParameterApi, IOutputApi, IParameterApi, ISessionApi, ISelectionParameterApi, IGumballParameterApi };
236
- export { InteractionParameterSettingsType, IInteractionParameterProps, IInteractionParameterSettings, IInteractionParameterJsonSchema, validateInteractionParameterSettings, ISelectionParameterProps, SelectionParameterValue, isInteractionSelectionParameterSettings, ISelectionParameterJsonSchema, validateSelectionParameterSettings, IGumballParameterProps, GumballParameterValue, isInteractionGumballParameterSettings, IGumballParameterJsonSchema, validateGumballParameterSettings };
237
- export { ISessionApiData, SessionApiData, IOutputApiData, OutputApiData };
238
-
239
- export { createSession, sessions };
240
-
241
- export { addListener, removeListener, sceneTree, generalOptions, version, IGeneralOptions };
242
-
243
- export { SessionCreationDefinition };
244
- export { ITree, Tree, ITreeNode, TreeNode, ITreeNodeData };
245
- export { PARAMETER_TYPE, EXPORT_TYPE, PARAMETER_VISUALIZATION, TAG3D_JUSTIFICATION, LOGGING_LEVEL, PRIMITIVE_MODE, MATERIAL_SIDE, MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_TYPE, TEXTURE_WRAPPING, TEXTURE_FILTERING, SDTF_TYPEHINT, SESSION_SETTINGS_MODE };
246
- export { TASK_TYPE, MainEventTypes, EVENTTYPE, EVENTTYPE_CAMERA, EVENTTYPE_OUTPUT, EVENTTYPE_PARAMETER, EVENTTYPE_RENDERING, EVENTTYPE_SCENE, EVENTTYPE_SESSION, EVENTTYPE_VIEWPORT, EVENTTYPE_INTERACTION, EVENTTYPE_GUMBALL, EVENTTYPE_DRAWING_TOOLS, EVENTTYPE_TASK };
247
- export { IBox, Box, ISphere, Sphere, IGeometry, ITransformation, ShapeDiverResponseOutput, ShapeDiverResponseOutputContentBackend, ShapeDiverResponseOutputChunkBackend, ShapeDiverResponseOutputContent, ShapeDiverResponseOutputChunk, IDomEventListener, IEvent };
248
- export { ShapeDiverResponseExport, ShapeDiverResponseExportContent, ShapeDiverResponseExportResult, ShapeDiverResponseModelComputationStatus, ShapeDiverResponseExportDefinitionGroup, ShapeDiverResponseParameter };
249
-
250
- export { EventResponseMapping, IViewportEvent, ISessionEvent, IOutputEvent, ICameraEvent, ISceneEvent, ITaskEvent, IRenderingEvent, IParameterEvent, ISettingsSections, IViewportSettingsSections, ISessionSettingsSections };
251
- export { IMaterialStandardData, MaterialStandardData, IMaterialStandardDataProperties, IMaterialStandardDataPropertiesDefinition, IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition, IMaterialUnlitData, MaterialUnlitData, IMaterialUnlitDataProperties, IMaterialUnlitDataPropertiesDefinition, IMaterialShadowData, MaterialShadowData, IMaterialShadowDataProperties, IMaterialShadowDataPropertiesDefinition, IMaterialSpecularGlossinessData, MaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties, IMaterialSpecularGlossinessDataPropertiesDefinition, IMaterialGemData, MaterialGemData, IMaterialGemDataProperties, IMaterialGemDataPropertiesDefinition, IMaterialPointData, MaterialPointData, IMaterialPointDataProperties, IMaterialPointDataPropertiesDefinition, IMaterialMultiPointData, MaterialMultiPointData, IMaterialMultiPointDataProperties, IMaterialMultiPointDataPropertiesDefinition, IMaterialBasicLineData, MaterialBasicLineData, IMaterialBasicLineDataProperties, IMaterialBasicLineDataPropertiesDefinition, IMapData, IMapDataProperties, IMapDataPropertiesDefinition, MapData };
252
- export { IAnimationData, AnimationData, IAnimationTrack, IGeometryData, IAttributeData, IPrimitiveData, IMaterialVariantsData, GeometryData, AttributeData, PrimitiveData, MaterialVariantsData };
253
- export { IAnchorDataImage, IAnchorDataText, ITag2D, ITag3D, IHTMLElementAnchorData, HTMLElementAnchorCustomData, HTMLElementAnchorTextData, HTMLElementAnchorImageData, HTMLElementAnchorData, IMaterialContentDataV1, IMaterialContentDataV2, IMaterialContentDataV3, ITexture };
254
- export { ICustomData, CustomData };
255
- export { ISDTFOverviewData, SDTFOverviewData, ISDTFOverview, SDTFAttributesData, ISDTFAttributesData, ISDTFAttributeData, SDTFAttributeData, SDTFItemData, ISDTFItemData, ISDTFAttributeVisualizationData, SdtfPrimitiveTypeGuard };
256
- export { ISessionData, SessionData, ISessionOutputData, SessionOutputData };
257
- export { ShapeDiverViewerErrorType, ShapeDiverViewerError, ShapeDiverViewerDataProcessingError, ShapeDiverViewerEnvironmentMapError, ShapeDiverViewerWebGLError, ShapeDiverViewerSettingsError, ShapeDiverViewerSessionError, ShapeDiverViewerViewportError, ShapeDiverViewerUnknownError, ShapeDiverViewerArError, ShapeDiverViewerLightError, ShapeDiverViewerCameraError, ShapeDiverViewerValidationError, ShapeDiverViewerInteractionError, ShapeDiverViewerDrawingToolsError, ShapeDiverGeometryBackendError, ShapeDiverGeometryBackendRequestError, ShapeDiverGeometryBackendResponseError, ShapeDiverGeometryBackendResponseErrorType };
258
- export { isViewerError, isViewerUnknownError, isViewerDataProcessingError, isViewerEnvironmentMapError, isViewerWebGLError, isViewerSettingsError, isViewerSessionError, isViewerViewportError, isViewerLightError, isViewerCameraError, isARError, isViewerValidationError, isViewerInteractionError, isViewerDrawingToolsError, isViewerGeometryBackendError, isViewerGeometryBackendGenericError, isViewerGeometryBackendRequestError, isViewerGeometryBackendResponseError };
@@ -1,29 +0,0 @@
1
- import { ShapeDiverResponseExport } from '@shapediver/sdk.geometry-api-sdk-v2';
2
-
3
- /**
4
- * The api for an export of a corresponding [session]{@link ISessionApi}.
5
- *
6
- * Exports are used for outputting data which should not be visualized in the scene,
7
- * or which should not be accessible via the viewport.
8
- *
9
- * Exports are NOT computed as part of customizations (see {@link customize}).
10
- * The export can be requested by calling its {@link request} method.
11
- *
12
- * Only the properties of {@link ShapeDiverResponseExportDefinition} will stay constant over the lifetime of a session.
13
- * All additional properties that are added via the extension to {@link ShapeDiverResponseExport} can change according to
14
- * the last export request.
15
- */
16
- export interface IExportApi extends ShapeDiverResponseExport {
17
- // #region Public Methods (1)
18
-
19
- /**
20
- * Request the export.
21
- *
22
- * @param parameters Parameter values to be used for this export request. Map from parameter id to parameter value. The current value will be used for any parameter not specified.
23
- *
24
- * @throws {@type ShapeDiverViewerError}
25
- */
26
- request(parameters?: { [key: string]: unknown }): Promise<ShapeDiverResponseExport>;
27
-
28
- // #endregion Public Methods (1)
29
- }