@shapediver/viewer.shared.types 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 (78) hide show
  1. package/dist/implementation/data/GeometryData.d.ts.map +1 -1
  2. package/dist/implementation/data/GeometryData.js +1 -0
  3. package/dist/implementation/data/GeometryData.js.map +1 -1
  4. package/dist/index.d.ts +5 -4
  5. package/dist/index.d.ts.map +1 -1
  6. package/dist/index.js +4 -5
  7. package/dist/index.js.map +1 -1
  8. package/dist/interfaces/parameter/IDrawingParametersSettings.d.ts +121 -0
  9. package/dist/interfaces/parameter/IDrawingParametersSettings.d.ts.map +1 -0
  10. package/dist/interfaces/parameter/IDrawingParametersSettings.js +22 -0
  11. package/dist/interfaces/parameter/IDrawingParametersSettings.js.map +1 -0
  12. package/dist/interfaces/parameter/IDrawingToolsParametersSettings.d.ts +159 -0
  13. package/dist/interfaces/parameter/IDrawingToolsParametersSettings.d.ts.map +1 -0
  14. package/dist/interfaces/parameter/IDrawingToolsParametersSettings.js +29 -0
  15. package/dist/interfaces/parameter/IDrawingToolsParametersSettings.js.map +1 -0
  16. package/dist/interfaces/parameter/IGumballParameterSettings.d.ts +1 -5
  17. package/dist/interfaces/parameter/IGumballParameterSettings.d.ts.map +1 -1
  18. package/dist/interfaces/parameter/IGumballParameterSettings.js +0 -7
  19. package/dist/interfaces/parameter/IGumballParameterSettings.js.map +1 -1
  20. package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts +1 -5
  21. package/dist/interfaces/parameter/ISelectionParameterSettings.d.ts.map +1 -1
  22. package/dist/interfaces/parameter/ISelectionParameterSettings.js +0 -7
  23. package/dist/interfaces/parameter/ISelectionParameterSettings.js.map +1 -1
  24. package/package.json +7 -8
  25. package/src/implementation/data/AnimationData.ts +0 -310
  26. package/src/implementation/data/BoneData.ts +0 -32
  27. package/src/implementation/data/CustomData.ts +0 -52
  28. package/src/implementation/data/GeometryData.ts +0 -426
  29. package/src/implementation/data/HTMLElementAnchorData.ts +0 -365
  30. package/src/implementation/material/AbstractMaterialData.ts +0 -268
  31. package/src/implementation/material/MapData.ts +0 -218
  32. package/src/implementation/material/MaterialBasicLineData.ts +0 -99
  33. package/src/implementation/material/MaterialGemData.ts +0 -310
  34. package/src/implementation/material/MaterialMultiPointData.ts +0 -659
  35. package/src/implementation/material/MaterialPointData.ts +0 -136
  36. package/src/implementation/material/MaterialShadowData.ts +0 -45
  37. package/src/implementation/material/MaterialSpecularGlossinessData.ts +0 -191
  38. package/src/implementation/material/MaterialStandardData.ts +0 -502
  39. package/src/implementation/material/MaterialUnlitData.ts +0 -122
  40. package/src/implementation/material/MaterialVariantsData.ts +0 -60
  41. package/src/implementation/sdtf/SDTFAttributesData.ts +0 -128
  42. package/src/implementation/sdtf/SDTFItemData.ts +0 -72
  43. package/src/implementation/sdtf/SDTFOverviewData.ts +0 -80
  44. package/src/index.ts +0 -141
  45. package/src/interfaces/data/IAnimationData.ts +0 -42
  46. package/src/interfaces/data/IBoneData.ts +0 -9
  47. package/src/interfaces/data/ICustomData.ts +0 -15
  48. package/src/interfaces/data/IGeometryData.ts +0 -87
  49. package/src/interfaces/data/IHTMLElementAnchorData.ts +0 -68
  50. package/src/interfaces/data/material/IMapData.ts +0 -64
  51. package/src/interfaces/data/material/IMaterialAbstractData.ts +0 -86
  52. package/src/interfaces/data/material/IMaterialBasicLineData.ts +0 -21
  53. package/src/interfaces/data/material/IMaterialGemDataProperties.ts +0 -46
  54. package/src/interfaces/data/material/IMaterialMultiPointData.ts +0 -72
  55. package/src/interfaces/data/material/IMaterialPointData.ts +0 -31
  56. package/src/interfaces/data/material/IMaterialShadowData.ts +0 -21
  57. package/src/interfaces/data/material/IMaterialSpecularGlossinessDataProperties.ts +0 -36
  58. package/src/interfaces/data/material/IMaterialStandardData.ts +0 -60
  59. package/src/interfaces/data/material/IMaterialUnlitData.ts +0 -30
  60. package/src/interfaces/data/material/IMaterialVariantsData.ts +0 -19
  61. package/src/interfaces/events/EventResponseMapping.ts +0 -53
  62. package/src/interfaces/events/ICameraEvent.ts +0 -16
  63. package/src/interfaces/events/IOutputEvent.ts +0 -29
  64. package/src/interfaces/events/IParameterEvent.ts +0 -21
  65. package/src/interfaces/events/IRenderingEvent.ts +0 -7
  66. package/src/interfaces/events/ISceneEvent.ts +0 -17
  67. package/src/interfaces/events/ISessionEvent.ts +0 -16
  68. package/src/interfaces/events/ITaskEvent.ts +0 -61
  69. package/src/interfaces/events/IViewportEvent.ts +0 -13
  70. package/src/interfaces/parameter/IGumballParameterSettings.ts +0 -44
  71. package/src/interfaces/parameter/IInteractionParameterSettings.ts +0 -85
  72. package/src/interfaces/parameter/ISelectionParameterSettings.ts +0 -37
  73. package/src/interfaces/sdtf/ISDTFAttributeVisualizationData.ts +0 -7
  74. package/src/interfaces/sdtf/ISDTFAttributesData.ts +0 -27
  75. package/src/interfaces/sdtf/ISDTFItemData.ts +0 -23
  76. package/src/interfaces/sdtf/ISDTFOverviewData.ts +0 -31
  77. package/src/types.ts +0 -68
  78. package/tsconfig.json +0 -17
@@ -1,64 +0,0 @@
1
- import { Color } from '../../../types';
2
- import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
3
- import { vec2 } from 'gl-matrix';
4
-
5
- // #region Type aliases (2)
6
-
7
- export type IMapDataProperties = IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer>;
8
- export type IMapDataPropertiesDefinition = Partial<IMapDataPropertiesGeneric<HTMLImageElement | ArrayBuffer | string>> | string;
9
-
10
- // #endregion Type aliases (2)
11
-
12
- // #region Interfaces (2)
13
-
14
- export interface IMapData extends ITreeNodeData, IMapDataProperties {
15
- // #region Public Methods (1)
16
-
17
- clone(): IMapData;
18
-
19
- // #endregion Public Methods (1)
20
- }
21
-
22
- interface IMapDataPropertiesGeneric<T> {
23
- // #region Properties (15)
24
-
25
- asData?: boolean;
26
- blob?: Blob;
27
- center: vec2;
28
- color?: Color;
29
- data?: number[];
30
- flipY: boolean;
31
- image: T;
32
- magFilter: TEXTURE_FILTERING;
33
- minFilter: TEXTURE_FILTERING;
34
- offset: vec2;
35
- repeat: vec2;
36
- rotation: number;
37
- texCoord?: number;
38
- wrapS: TEXTURE_WRAPPING;
39
- wrapT: TEXTURE_WRAPPING;
40
-
41
- // #endregion Properties (15)
42
- }
43
-
44
- // #endregion Interfaces (2)
45
-
46
- // #region Enums (2)
47
-
48
- export enum TEXTURE_FILTERING {
49
- NONE = 0,
50
- NEAREST = 9728,
51
- LINEAR = 9729,
52
- NEAREST_MIPMAP_NEAREST = 9984,
53
- LINEAR_MIPMAP_NEAREST = 9985,
54
- NEAREST_MIPMAP_LINEAR = 9986,
55
- LINEAR_MIPMAP_LINEAR = 9987,
56
- }
57
-
58
- export enum TEXTURE_WRAPPING {
59
- REPEAT = 10497,
60
- CLAMP_TO_EDGE = 33071,
61
- MIRRORED_REPEAT = 33648
62
- }
63
-
64
- // #endregion Enums (2)
@@ -1,86 +0,0 @@
1
- import { Color } from '../../../types';
2
- import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
3
- import { ITreeNodeData } from '@shapediver/viewer.shared.node-tree';
4
-
5
- // #region Type aliases (2)
6
-
7
- export type IMaterialAbstractDataProperties = Partial<IMaterialAbstractDataPropertiesGeneric<IMapData>>;
8
- export type IMaterialAbstractDataPropertiesDefinition = Partial<IMaterialAbstractDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
9
-
10
- // #endregion Type aliases (2)
11
-
12
- // #region Interfaces (2)
13
-
14
- export interface IMaterialAbstractData extends ITreeNodeData, IMaterialAbstractDataPropertiesGeneric<IMapData> {
15
- // #region Properties (1)
16
-
17
- materialOutput: boolean;
18
-
19
- // #endregion Properties (1)
20
-
21
- // #region Public Methods (3)
22
-
23
- clone(): IMaterialAbstractData;
24
- copy(source: IMaterialAbstractData): void
25
- reset(): void
26
-
27
- // #endregion Public Methods (3)
28
- }
29
-
30
- export interface IMaterialAbstractDataPropertiesGeneric<T> {
31
- // #region Properties (21)
32
-
33
- alphaCutoff: number,
34
- alphaMap?: T,
35
- alphaMode: MATERIAL_ALPHA,
36
- aoMap?: T,
37
- aoMapIntensity: number,
38
- bumpMap?: T,
39
- bumpScale: number,
40
- color: Color,
41
- depthTest?: boolean,
42
- depthWrite?: boolean,
43
- emissiveMap?: T,
44
- emissiveness: Color,
45
- map?: T,
46
- name?: string,
47
- normalMap?: T,
48
- normalScale: number,
49
- opacity: number,
50
- shading: MATERIAL_SHADING,
51
- side: MATERIAL_SIDE,
52
- transparent?: boolean,
53
- type?: MATERIAL_TYPE
54
-
55
- // #endregion Properties (21)
56
- }
57
-
58
- // #endregion Interfaces (2)
59
-
60
- // #region Enums (4)
61
-
62
- export enum MATERIAL_ALPHA {
63
- OPAQUE = 'opaque',
64
- MASK = 'mask',
65
- BLEND = 'blend'
66
- }
67
-
68
- export enum MATERIAL_SHADING {
69
- FLAT = 'flat',
70
- SMOOTH = 'smooth'
71
- }
72
-
73
- export enum MATERIAL_SIDE {
74
- DOUBLE = 'double',
75
- FRONT = 'front',
76
- BACK = 'back'
77
- }
78
-
79
- export enum MATERIAL_TYPE {
80
- STANDARD = 'standard',
81
- SPECULAR_GLOSSINESS = 'specular_glossiness',
82
- UNLIT = 'unlit',
83
- GEM = 'gem'
84
- }
85
-
86
- // #endregion Enums (4)
@@ -1,21 +0,0 @@
1
- import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition } from './IMaterialAbstractData';
2
-
3
- // #region Type aliases (2)
4
-
5
- export type IMaterialBasicLineDataProperties = IMaterialAbstractDataProperties;
6
- export type IMaterialBasicLineDataPropertiesDefinition = IMaterialAbstractDataPropertiesDefinition;
7
-
8
- // #endregion Type aliases (2)
9
-
10
- // #region Interfaces (1)
11
-
12
- export interface IMaterialBasicLineData extends IMaterialAbstractData {
13
- // #region Public Methods (2)
14
-
15
- clone(): IMaterialBasicLineData;
16
- copy(source: IMaterialBasicLineData): void;
17
-
18
- // #endregion Public Methods (2)
19
- }
20
-
21
- // #endregion Interfaces (1)
@@ -1,46 +0,0 @@
1
- import { Color } from '../../../types';
2
- import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
3
- import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
4
- import { vec3 } from 'gl-matrix';
5
-
6
- // #region Type aliases (2)
7
-
8
- export type IMaterialGemDataProperties = Partial<IMaterialGemDataPropertiesGeneric<IMapData>>;
9
- export type IMaterialGemDataPropertiesDefinition = Partial<IMaterialGemDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
10
-
11
- // #endregion Type aliases (2)
12
-
13
- // #region Interfaces (2)
14
-
15
- export interface IMaterialGemData extends IMaterialAbstractData, IMaterialGemDataPropertiesGeneric<IMapData> {
16
- // #region Public Methods (2)
17
-
18
- clone(): IMaterialGemData;
19
- copy(source: IMaterialGemData): void;
20
-
21
- // #endregion Public Methods (2)
22
- }
23
-
24
- interface IMaterialGemDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
25
- // #region Properties (15)
26
-
27
- brightness?: number;
28
- center?: vec3;
29
- colorTransferBegin?: Color;
30
- colorTransferEnd?: Color;
31
- contrast?: number;
32
- dispersion?: number;
33
- envMap?: string | string[];
34
- gamma?: number;
35
- impurityMap?: T;
36
- impurityScale?: number;
37
- radius?: number;
38
- refractionIndex?: number;
39
- sphericalNormalMap?: T;
40
- tracingDepth?: number;
41
- tracingOpacity?: number;
42
-
43
- // #endregion Properties (15)
44
- }
45
-
46
- // #endregion Interfaces (2)
@@ -1,72 +0,0 @@
1
- import { Color } from '../../../types';
2
- import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
3
- import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
4
-
5
- // #region Type aliases (2)
6
-
7
- export type IMaterialMultiPointDataProperties = Partial<IMaterialMultiPointDataPropertiesGeneric<IMapData>>;
8
- export type IMaterialMultiPointDataPropertiesDefinition = Partial<IMaterialMultiPointDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
9
-
10
- // #endregion Type aliases (2)
11
-
12
- // #region Interfaces (2)
13
-
14
- export interface IMaterialMultiPointData extends IMaterialAbstractData, IMaterialMultiPointDataPropertiesGeneric<IMapData> {
15
- // #region Public Methods (2)
16
-
17
- clone(): IMaterialMultiPointData;
18
- copy(source: IMaterialMultiPointData): void;
19
-
20
- // #endregion Public Methods (2)
21
- }
22
-
23
- interface IMaterialMultiPointDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
24
- // #region Properties (42)
25
-
26
- alphaMap_0?: T;
27
- alphaMap_1?: T;
28
- alphaMap_2?: T;
29
- alphaMap_3?: T;
30
- alphaMap_4?: T;
31
- alphaMap_5?: T;
32
- alphaMap_6?: T;
33
- alphaMap_7?: T;
34
- color_0?: Color;
35
- color_1?: Color;
36
- color_2?: Color;
37
- color_3?: Color;
38
- color_4?: Color;
39
- color_5?: Color;
40
- color_6?: Color;
41
- color_7?: Color;
42
- map_0?: T;
43
- map_1?: T;
44
- map_2?: T;
45
- map_3?: T;
46
- map_4?: T;
47
- map_5?: T;
48
- map_6?: T;
49
- map_7?: T;
50
- materialIndexDataMap?: T;
51
- materialIndexDataMapSize?: number;
52
- sizeAttenuation_0?: boolean;
53
- sizeAttenuation_1?: boolean;
54
- sizeAttenuation_2?: boolean;
55
- sizeAttenuation_3?: boolean;
56
- sizeAttenuation_4?: boolean;
57
- sizeAttenuation_5?: boolean;
58
- sizeAttenuation_6?: boolean;
59
- sizeAttenuation_7?: boolean;
60
- size_0?: number;
61
- size_1?: number;
62
- size_2?: number;
63
- size_3?: number;
64
- size_4?: number;
65
- size_5?: number;
66
- size_6?: number;
67
- size_7?: number;
68
-
69
- // #endregion Properties (42)
70
- }
71
-
72
- // #endregion Interfaces (2)
@@ -1,31 +0,0 @@
1
- import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
2
- import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
3
-
4
- // #region Type aliases (2)
5
-
6
- export type IMaterialPointDataProperties = Partial<IMaterialPointDataPropertiesGeneric<IMapData>>;
7
- export type IMaterialPointDataPropertiesDefinition = Partial<IMaterialPointDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
8
-
9
- // #endregion Type aliases (2)
10
-
11
- // #region Interfaces (2)
12
-
13
- export interface IMaterialPointData extends IMaterialPointDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
14
- // #region Public Methods (2)
15
-
16
- clone(): IMaterialPointData;
17
- copy(source: IMaterialPointData): void;
18
-
19
- // #endregion Public Methods (2)
20
- }
21
-
22
- interface IMaterialPointDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
23
- // #region Properties (2)
24
-
25
- size?: number,
26
- sizeAttenuation?: boolean
27
-
28
- // #endregion Properties (2)
29
- }
30
-
31
- // #endregion Interfaces (2)
@@ -1,21 +0,0 @@
1
- import { IMaterialAbstractData, IMaterialAbstractDataProperties, IMaterialAbstractDataPropertiesDefinition } from './IMaterialAbstractData';
2
-
3
- // #region Type aliases (2)
4
-
5
- export type IMaterialShadowDataProperties = IMaterialAbstractDataProperties;
6
- export type IMaterialShadowDataPropertiesDefinition = IMaterialAbstractDataPropertiesDefinition;
7
-
8
- // #endregion Type aliases (2)
9
-
10
- // #region Interfaces (1)
11
-
12
- export interface IMaterialShadowData extends IMaterialAbstractData {
13
- // #region Public Methods (2)
14
-
15
- clone(): IMaterialShadowData;
16
- copy(source: IMaterialShadowData): void;
17
-
18
- // #endregion Public Methods (2)
19
- }
20
-
21
- // #endregion Interfaces (1)
@@ -1,36 +0,0 @@
1
- import { Color } from '../../../types';
2
- import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
3
- import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
4
-
5
- // #region Type aliases (2)
6
-
7
- export type IMaterialSpecularGlossinessDataProperties = Partial<IMaterialSpecularGlossinessDataPropertiesGeneric<IMapData>>;
8
- export type IMaterialSpecularGlossinessDataPropertiesDefinition = Partial<IMaterialSpecularGlossinessDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
9
-
10
- // #endregion Type aliases (2)
11
-
12
- // #region Interfaces (2)
13
-
14
- export interface IMaterialSpecularGlossinessData extends IMaterialSpecularGlossinessDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
15
- // #region Public Methods (2)
16
-
17
- clone(): IMaterialSpecularGlossinessData;
18
- copy(source: IMaterialSpecularGlossinessData): void;
19
-
20
- // #endregion Public Methods (2)
21
- }
22
-
23
- interface IMaterialSpecularGlossinessDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
24
- // #region Properties (6)
25
-
26
- envMap?: string | string[];
27
- glossiness?: number,
28
- glossinessMap?: T,
29
- specular?: Color,
30
- specularGlossinessMap?: T,
31
- specularMap?: T
32
-
33
- // #endregion Properties (6)
34
- }
35
-
36
- // #endregion Interfaces (2)
@@ -1,60 +0,0 @@
1
- import { Color } from '../../../types';
2
- import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
3
- import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
4
-
5
- // #region Type aliases (2)
6
-
7
- export type IMaterialStandardDataProperties = Partial<IMaterialStandardDataPropertiesGeneric<IMapData>>;
8
- export type IMaterialStandardDataPropertiesDefinition = Partial<IMaterialStandardDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
9
-
10
- // #endregion Type aliases (2)
11
-
12
- // #region Interfaces (2)
13
-
14
- export interface IMaterialStandardData extends IMaterialStandardDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
15
- // #region Public Methods (2)
16
-
17
- clone(): IMaterialStandardData;
18
- copy(source: IMaterialStandardData): void;
19
-
20
- // #endregion Public Methods (2)
21
- }
22
-
23
- interface IMaterialStandardDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
24
- // #region Properties (30)
25
-
26
- attenuationColor: Color,
27
- attenuationDistance: number;
28
- clearcoat: number;
29
- clearcoatMap?: T;
30
- clearcoatNormalMap?: T;
31
- clearcoatRoughness: number;
32
- clearcoatRoughnessMap?: T;
33
- displacementBias: number;
34
- displacementMap?: T;
35
- displacementScale: number;
36
- envMap?: string | string[];
37
- ior: number;
38
- metalness: number,
39
- metalnessMap?: T,
40
- metalnessRoughnessMap?: T,
41
- roughness: number,
42
- roughnessMap?: T,
43
- sheen: number,
44
- sheenColor: Color,
45
- sheenColorMap?: T,
46
- sheenRoughness: number,
47
- sheenRoughnessMap?: T,
48
- specularColor: Color,
49
- specularColorMap?: T,
50
- specularIntensity: number,
51
- specularIntensityMap?: T,
52
- thickness: number;
53
- thicknessMap?: T;
54
- transmission: number;
55
- transmissionMap?: T;
56
-
57
- // #endregion Properties (30)
58
- }
59
-
60
- // #endregion Interfaces (2)
@@ -1,30 +0,0 @@
1
- import { IMapData, IMapDataPropertiesDefinition } from './IMapData';
2
- import { IMaterialAbstractData, IMaterialAbstractDataPropertiesGeneric } from './IMaterialAbstractData';
3
-
4
- // #region Type aliases (2)
5
-
6
- export type IMaterialUnlitDataProperties = Partial<IMaterialUnlitDataPropertiesGeneric<IMapData>>;
7
- export type IMaterialUnlitDataPropertiesDefinition = Partial<IMaterialUnlitDataPropertiesGeneric<IMapDataPropertiesDefinition>>;
8
-
9
- // #endregion Type aliases (2)
10
-
11
- // #region Interfaces (2)
12
-
13
- export interface IMaterialUnlitData extends IMaterialUnlitDataPropertiesGeneric<IMapData>, IMaterialAbstractData {
14
- // #region Public Methods (2)
15
-
16
- clone(): IMaterialUnlitData;
17
- copy(source: IMaterialUnlitData): void;
18
-
19
- // #endregion Public Methods (2)
20
- }
21
-
22
- interface IMaterialUnlitDataPropertiesGeneric<T> extends IMaterialAbstractDataPropertiesGeneric<T> {
23
- // #region Properties (1)
24
-
25
- envMap?: string | string[];
26
-
27
- // #endregion Properties (1)
28
- }
29
-
30
- // #endregion Interfaces (2)
@@ -1,19 +0,0 @@
1
- import { ITreeNodeData } from "@shapediver/viewer.shared.node-tree";
2
- import { IGeometryData } from "../IGeometryData";
3
-
4
- export interface IMaterialVariantsData extends ITreeNodeData {
5
- // #region Properties (3)
6
-
7
- readonly geometryData: IGeometryData[];
8
- readonly variants: string[];
9
-
10
- variantIndex?: number;
11
-
12
- // #endregion Properties (3)
13
-
14
- // #region Public Methods (1)
15
-
16
- clone(): IMaterialVariantsData;
17
-
18
- // #endregion Public Methods (1)
19
- }
@@ -1,53 +0,0 @@
1
- import {
2
- EVENTTYPE_CAMERA,
3
- EVENTTYPE_OUTPUT,
4
- EVENTTYPE_PARAMETER,
5
- EVENTTYPE_RENDERING,
6
- EVENTTYPE_SCENE,
7
- EVENTTYPE_SESSION,
8
- EVENTTYPE_TASK,
9
- EVENTTYPE_VIEWPORT
10
- } from '@shapediver/viewer.shared.services';
11
- import { ICameraEvent } from './ICameraEvent';
12
- import { IOutputEvent } from './IOutputEvent';
13
- import { IRenderingEvent } from './IRenderingEvent';
14
- import { ISceneEvent } from './ISceneEvent';
15
- import { ISessionEvent } from './ISessionEvent';
16
- import { ITaskEvent } from './ITaskEvent';
17
- import { IViewportEvent } from './IViewportEvent';
18
- import { IParameterEvent } from './IParameterEvent';
19
-
20
- /**
21
- * Definition of the event response mapping.
22
- * This mapping is used to map the event type to the corresponding event interface.
23
- */
24
- export type EventResponseMapping = {
25
- [EVENTTYPE_CAMERA.CAMERA_START]: ICameraEvent,
26
- [EVENTTYPE_CAMERA.CAMERA_MOVE]: ICameraEvent,
27
- [EVENTTYPE_CAMERA.CAMERA_END]: ICameraEvent,
28
- [EVENTTYPE_OUTPUT.OUTPUT_UPDATED]: IOutputEvent,
29
- [EVENTTYPE_PARAMETER.PARAMETER_VALUE_CHANGED]: IParameterEvent,
30
- [EVENTTYPE_PARAMETER.PARAMETER_SESSION_VALUE_CHANGED]: IParameterEvent,
31
- [EVENTTYPE_RENDERING.BEAUTY_RENDERING_FINISHED]: IRenderingEvent,
32
- [EVENTTYPE_SCENE.SCENE_BOUNDING_BOX_CHANGE]: ISceneEvent,
33
- [EVENTTYPE_SCENE.SCENE_BOUNDING_BOX_EMPTY]: ISceneEvent,
34
- [EVENTTYPE_VIEWPORT.BUSY_MODE_ON]: IViewportEvent,
35
- [EVENTTYPE_VIEWPORT.BUSY_MODE_OFF]: IViewportEvent,
36
- [EVENTTYPE_VIEWPORT.VIEWPORT_CREATED]: IViewportEvent,
37
- [EVENTTYPE_VIEWPORT.VIEWPORT_UPDATED]: IViewportEvent,
38
- [EVENTTYPE_VIEWPORT.VIEWPORT_CLOSED]: IViewportEvent,
39
- [EVENTTYPE_VIEWPORT.VIEWPORT_VISIBLE]: IViewportEvent,
40
- [EVENTTYPE_VIEWPORT.VIEWPORT_HIDDEN]: IViewportEvent,
41
- [EVENTTYPE_VIEWPORT.BUSY_MODE_ON]: IViewportEvent,
42
- [EVENTTYPE_VIEWPORT.BUSY_MODE_OFF]: IViewportEvent,
43
- [EVENTTYPE_VIEWPORT.VIEWPORT_SETTINGS_LOADED]: IViewportEvent,
44
- [EVENTTYPE_SESSION.SESSION_CREATED]: ISessionEvent,
45
- [EVENTTYPE_SESSION.SESSION_CUSTOMIZED]: ISessionEvent,
46
- [EVENTTYPE_SESSION.SESSION_CLOSED]: ISessionEvent,
47
- [EVENTTYPE_SESSION.SESSION_INITIAL_OUTPUTS_LOADED]: ISessionEvent,
48
- [EVENTTYPE_SESSION.SESSION_SDTF_DELAYED_LOADED]: ISessionEvent,
49
- [EVENTTYPE_TASK.TASK_START]: ITaskEvent,
50
- [EVENTTYPE_TASK.TASK_PROCESS]: ITaskEvent,
51
- [EVENTTYPE_TASK.TASK_END]: ITaskEvent,
52
- [EVENTTYPE_TASK.TASK_CANCEL]: ITaskEvent
53
- }
@@ -1,16 +0,0 @@
1
- import { IViewportEvent } from './IViewportEvent';
2
-
3
- /**
4
- * Definition of the camera event.
5
- * These events are sent when the camera starts, moves or ends ({@link EVENTTYPE_CAMERA}).
6
- */
7
- export interface ICameraEvent extends IViewportEvent {
8
- // #region Properties (1)
9
-
10
- /**
11
- * The id of the camera.
12
- */
13
- cameraId: string,
14
-
15
- // #endregion Properties (1)
16
- }
@@ -1,29 +0,0 @@
1
- import { ITreeNode } from '@shapediver/viewer.shared.node-tree';
2
- import { IEvent } from '@shapediver/viewer.shared.services';
3
-
4
- /**
5
- * Definition of the output event.
6
- * These events are sent for output specific events ({@link EVENTTYPE_OUTPUT}).
7
- */
8
- export interface IOutputEvent extends IEvent {
9
- // #region Properties (4)
10
-
11
- /**
12
- * The new node of the output.
13
- */
14
- newNode?: ITreeNode,
15
- /**
16
- * The old node of the output.
17
- */
18
- oldNode?: ITreeNode
19
- /**
20
- * The id of the output.
21
- */
22
- outputId: string,
23
- /**
24
- * The version of the output.
25
- */
26
- outputVersion: string,
27
-
28
- // #endregion Properties (4)
29
- }
@@ -1,21 +0,0 @@
1
- import { ISessionEvent } from './ISessionEvent';
2
-
3
- /**
4
- * Definition of the parameter event.
5
- * These events are sent when a parameter changes ({@link EVENTTYPE_PARAMETER}).
6
- */
7
- export interface IParameterEvent extends ISessionEvent {
8
- // #region Properties (1)
9
-
10
- /**
11
- * The id of the parameter.
12
- */
13
- parameterId: string
14
-
15
- /**
16
- * The value of the parameter.
17
- */
18
- value: unknown;
19
-
20
- // #endregion Properties (1)
21
- }
@@ -1,7 +0,0 @@
1
- import { IViewportEvent } from './IViewportEvent';
2
-
3
- /**
4
- * Definition of the rendering event.
5
- * These events are sent for rendering specific events ({@link EVENTTYPE_RENDERING}).
6
- */
7
- export type IRenderingEvent = IViewportEvent
@@ -1,17 +0,0 @@
1
- import { IViewportEvent } from './IViewportEvent';
2
- import { vec3 } from 'gl-matrix';
3
-
4
- /**
5
- * Definition of the scene event.
6
- * These events are sent for scene specific events ({@link EVENTTYPE_SCENE}).
7
- */
8
- export interface ISceneEvent extends IViewportEvent {
9
- // #region Properties (1)
10
-
11
- /**
12
- * The bounding box of the scene.
13
- */
14
- boundingBox: { min: vec3, max: vec3}
15
-
16
- // #endregion Properties (1)
17
- }
@@ -1,16 +0,0 @@
1
- import { IEvent } from '@shapediver/viewer.shared.services';
2
-
3
- /**
4
- * Definition of the session event.
5
- * These events are sent for session specific events ({@link EVENTTYPE_SESSION}).
6
- */
7
- export interface ISessionEvent extends IEvent {
8
- // #region Properties (1)
9
-
10
- /**
11
- * The id of the session.
12
- */
13
- sessionId: string
14
-
15
- // #endregion Properties (1)
16
- }