@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,136 +0,0 @@
1
- import { AbstractMaterialData } from './AbstractMaterialData';
2
- import { MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from '../../interfaces/data/material/IMaterialAbstractData';
3
- import { IMaterialPointData, IMaterialPointDataProperties } from '../../interfaces/data/material/IMaterialPointData';
4
-
5
- export class MaterialPointData extends AbstractMaterialData implements IMaterialPointData {
6
- // #region Properties (2)
7
-
8
- #size?: number = undefined;
9
- #sizeAttenuation?: boolean = undefined;
10
-
11
- // #endregion Properties (2)
12
-
13
- // #region Constructors (1)
14
-
15
- /**
16
- * Creates a material data object.
17
- *
18
- * @param _attributes the attributes of the material
19
- * @param id the id
20
- */
21
- constructor(
22
- properties?: IMaterialPointDataProperties,
23
- id?: string,
24
- version?: string
25
- ) {
26
- super(properties, id, version);
27
- if (!properties) return;
28
- if (properties.size !== undefined) this.size = properties.size;
29
- if (properties.sizeAttenuation !== undefined) this.sizeAttenuation = properties.sizeAttenuation;
30
- }
31
-
32
- // #endregion Constructors (1)
33
-
34
- // #region Public Accessors (4)
35
-
36
- public get size(): number | undefined {
37
- return this.#size;
38
- }
39
-
40
- public set size(value: number | undefined) {
41
- this.#size = value;
42
- }
43
-
44
- public get sizeAttenuation(): boolean | undefined {
45
- return this.#sizeAttenuation;
46
- }
47
-
48
- public set sizeAttenuation(value: boolean | undefined) {
49
- this.#sizeAttenuation = value;
50
- }
51
-
52
- // #endregion Public Accessors (4)
53
-
54
- // #region Public Methods (3)
55
-
56
- public clone(): IMaterialPointData {
57
- return new MaterialPointData({
58
- alphaMap: this.alphaMap,
59
- alphaCutoff: this.alphaCutoff,
60
- alphaMode: this.alphaMode,
61
- aoMap: this.aoMap,
62
- aoMapIntensity: this.aoMapIntensity,
63
- bumpMap: this.bumpMap,
64
- bumpScale: this.bumpScale,
65
- color: this.color,
66
- depthTest: this.depthTest,
67
- depthWrite: this.depthWrite,
68
- emissiveMap: this.emissiveMap,
69
- emissiveness: this.emissiveness,
70
- shading: this.shading,
71
- map: this.map,
72
- name: this.name,
73
- normalMap: this.normalMap,
74
- normalScale: this.normalScale,
75
- opacity: this.opacity,
76
- side: this.side,
77
- transparent: this.transparent,
78
- size: this.size,
79
- sizeAttenuation: this.sizeAttenuation
80
- }, this.id, this.version);
81
- }
82
-
83
- public copy(source: MaterialPointData): void {
84
- this.alphaCutoff = source.alphaCutoff;
85
- this.alphaMap = source.alphaMap;
86
- this.alphaMode = source.alphaMode;
87
- this.aoMap = source.aoMap;
88
- this.aoMapIntensity = source.aoMapIntensity;
89
- this.bumpMap = source.bumpMap;
90
- this.bumpScale = source.bumpScale;
91
- this.color = source.color;
92
- this.depthTest = source.depthTest;
93
- this.depthWrite = source.depthWrite;
94
- this.emissiveMap = source.emissiveMap;
95
- this.emissiveness = source.emissiveness;
96
- this.materialOutput = source.materialOutput;
97
- this.map = source.map;
98
- this.normalMap = source.normalMap;
99
- this.normalScale = source.normalScale;
100
- this.opacity = source.opacity;
101
- this.shading = source.shading;
102
- this.side = source.side;
103
- this.transparent = source.transparent;
104
-
105
- this.size = source.size;
106
- this.sizeAttenuation = source.sizeAttenuation;
107
- }
108
-
109
- public reset(): void {
110
- this.alphaCutoff = 0;
111
- this.alphaMap = undefined;
112
- this.alphaMode = MATERIAL_ALPHA.OPAQUE;
113
- this.aoMap = undefined;
114
- this.aoMapIntensity = 1.0;
115
- this.bumpMap = undefined;
116
- this.bumpScale = 1.0;
117
- this.color = '#ffffff';
118
- this.depthTest = undefined;
119
- this.depthWrite = undefined;
120
- this.emissiveMap = undefined;
121
- this.emissiveness = '#000000';
122
- this.materialOutput = false;
123
- this.map = undefined;
124
- this.normalMap = undefined;
125
- this.normalScale = 1.0;
126
- this.opacity = 1.0;
127
- this.shading = MATERIAL_SHADING.SMOOTH;
128
- this.side = MATERIAL_SIDE.DOUBLE;
129
- this.transparent = undefined;
130
-
131
- this.size = undefined;
132
- this.sizeAttenuation = undefined;
133
- }
134
-
135
- // #endregion Public Methods (3)
136
- }
@@ -1,45 +0,0 @@
1
- import { IMaterialShadowData, IMaterialShadowDataProperties } from "../../interfaces/data/material/IMaterialShadowData";
2
- import { AbstractMaterialData } from "./AbstractMaterialData";
3
-
4
-
5
- export class MaterialShadowData extends AbstractMaterialData implements IMaterialShadowData {
6
- // #region Constructors (1)
7
-
8
- /**
9
- * Creates a material data object.
10
- *
11
- * @param _attributes the attributes of the material
12
- * @param id the id
13
- */
14
- constructor(
15
- properties?: IMaterialShadowDataProperties,
16
- id?: string,
17
- version?: string
18
- ) {
19
- super(properties, id, version);
20
- if (!properties) return;
21
- }
22
-
23
- // #endregion Constructors (1)
24
-
25
- // #region Public Methods (1)
26
-
27
- public reset(): void {
28
- this.color = '#000000';
29
- this.opacity = 1.0;
30
- }
31
-
32
- public clone(): IMaterialShadowData {
33
- return new MaterialShadowData({
34
- color: this.color,
35
- opacity: this.opacity,
36
- }, this.id, this.version);
37
- }
38
-
39
- public copy(source: MaterialShadowData): void {
40
- this.color = source.color;
41
- this.opacity = source.opacity;
42
- }
43
-
44
- // #endregion Public Methods (1)
45
- }
@@ -1,191 +0,0 @@
1
- import { AbstractMaterialData } from './AbstractMaterialData';
2
- import { IMaterialSpecularGlossinessData, IMaterialSpecularGlossinessDataProperties } from '../../interfaces/data/material/IMaterialSpecularGlossinessDataProperties';
3
- import { MATERIAL_ALPHA, MATERIAL_SHADING, MATERIAL_SIDE } from '../../interfaces/data/material/IMaterialAbstractData';
4
- import { IMapData } from '../../interfaces/data/material/IMapData';
5
- import { Color } from '../../types';
6
-
7
- export class MaterialSpecularGlossinessData extends AbstractMaterialData implements IMaterialSpecularGlossinessData {
8
- // #region Properties (5)
9
-
10
- #glossiness: number = 1;
11
- #glossinessMap?: IMapData;
12
- #specular: Color = '#ffffff';
13
- #specularGlossinessMap?: IMapData;
14
- #specularMap?: IMapData;
15
- #envMap?: string | string[];
16
-
17
- // #endregion Properties (5)
18
-
19
- // #region Constructors (1)
20
-
21
- /**
22
- * Creates a material data object.
23
- *
24
- * @param _attributes the attributes of the material
25
- * @param id the id
26
- */
27
- constructor(
28
- properties?: IMaterialSpecularGlossinessDataProperties,
29
- id?: string,
30
- version?: string
31
- ) {
32
- super(properties, id, version);
33
- if (!properties) return;
34
- if (properties.glossiness !== undefined) this.glossiness = properties.glossiness;
35
- if (properties.specular !== undefined) this.specular = properties.specular;
36
- if (properties.specularGlossinessMap !== undefined) this.specularGlossinessMap = properties.specularGlossinessMap;
37
- if (properties.specularMap !== undefined) this.specularMap = properties.specularMap;
38
- if (properties.glossinessMap !== undefined) this.glossinessMap = properties.glossinessMap;
39
- if (properties.envMap !== undefined) this.envMap = properties.envMap;
40
- }
41
-
42
- // #endregion Constructors (1)
43
-
44
- // #region Public Accessors (10)
45
-
46
-
47
- public get envMap(): string | string[] | undefined {
48
- return this.#envMap;
49
- }
50
-
51
- public set envMap(value: string | string[] | undefined) {
52
- this.#envMap = value;
53
- }
54
-
55
- public get glossiness(): number {
56
- return this.#glossiness;
57
- }
58
-
59
- public set glossiness(value: number) {
60
- this.#glossiness = value;
61
- }
62
-
63
- public get glossinessMap(): IMapData | undefined {
64
- return this.#glossinessMap;
65
- }
66
-
67
- public set glossinessMap(value: IMapData | undefined) {
68
- this.#glossinessMap = value;
69
- }
70
-
71
- public get specular(): Color {
72
- return this.#specular;
73
- }
74
-
75
- public set specular(value: Color) {
76
- this.#specular = value;
77
- }
78
-
79
- public get specularGlossinessMap(): IMapData | undefined {
80
- return this.#specularGlossinessMap;
81
- }
82
-
83
- public set specularGlossinessMap(value: IMapData | undefined) {
84
- this.#specularGlossinessMap = value;
85
- }
86
-
87
- public get specularMap(): IMapData | undefined {
88
- return this.#specularMap;
89
- }
90
-
91
- public set specularMap(value: IMapData | undefined) {
92
- this.#specularMap = value;
93
- }
94
-
95
- // #endregion Public Accessors (10)
96
-
97
- // #region Public Methods (3)
98
-
99
- public clone(): IMaterialSpecularGlossinessData {
100
- return new MaterialSpecularGlossinessData({
101
- alphaMap: this.alphaMap,
102
- alphaCutoff: this.alphaCutoff,
103
- alphaMode: this.alphaMode,
104
- aoMap: this.aoMap,
105
- aoMapIntensity: this.aoMapIntensity,
106
- bumpMap: this.bumpMap,
107
- bumpScale: this.bumpScale,
108
- color: this.color,
109
- depthTest: this.depthTest,
110
- depthWrite: this.depthWrite,
111
- emissiveMap: this.emissiveMap,
112
- emissiveness: this.emissiveness,
113
- shading: this.shading,
114
- map: this.map,
115
- name: this.name,
116
- normalMap: this.normalMap,
117
- normalScale: this.normalScale,
118
- opacity: this.opacity,
119
- side: this.side,
120
- transparent: this.transparent,
121
- specular: this.specular,
122
- specularMap: this.specularMap,
123
- specularGlossinessMap: this.specularGlossinessMap,
124
- glossiness: this.glossiness,
125
- glossinessMap: this.glossinessMap,
126
- envMap: this.envMap,
127
- }, this.id, this.version);
128
- }
129
-
130
- public copy(source: MaterialSpecularGlossinessData): void {
131
- this.alphaCutoff = source.alphaCutoff;
132
- this.alphaMap = source.alphaMap;
133
- this.alphaMode = source.alphaMode;
134
- this.aoMap = source.aoMap;
135
- this.aoMapIntensity = source.aoMapIntensity;
136
- this.bumpMap = source.bumpMap;
137
- this.bumpScale = source.bumpScale;
138
- this.color = source.color;
139
- this.depthTest = source.depthTest;
140
- this.depthWrite = source.depthWrite;
141
- this.emissiveMap = source.emissiveMap;
142
- this.emissiveness = source.emissiveness;
143
- this.materialOutput = source.materialOutput;
144
- this.map = source.map;
145
- this.normalMap = source.normalMap;
146
- this.normalScale = source.normalScale;
147
- this.opacity = source.opacity;
148
- this.shading = source.shading;
149
- this.side = source.side;
150
- this.transparent = source.transparent;
151
-
152
- this.glossiness = source.glossiness;
153
- this.specular = source.specular;
154
- this.specularGlossinessMap = source.specularGlossinessMap;
155
- this.specularMap = source.specularMap;
156
- this.glossinessMap = source.glossinessMap;
157
- this.envMap = source.envMap;
158
- }
159
-
160
- public reset(): void {
161
- this.alphaCutoff = 0;
162
- this.alphaMap = undefined;
163
- this.alphaMode = MATERIAL_ALPHA.OPAQUE;
164
- this.aoMap = undefined;
165
- this.aoMapIntensity = 1.0;
166
- this.bumpMap = undefined;
167
- this.bumpScale = 1.0;
168
- this.color = '#ffffff';
169
- this.depthTest = undefined;
170
- this.depthWrite = undefined;
171
- this.emissiveMap = undefined;
172
- this.emissiveness = '#000000';
173
- this.materialOutput = false;
174
- this.map = undefined;
175
- this.normalMap = undefined;
176
- this.normalScale = 1.0;
177
- this.opacity = 1.0;
178
- this.shading = MATERIAL_SHADING.SMOOTH;
179
- this.side = MATERIAL_SIDE.DOUBLE;
180
- this.transparent = undefined;
181
-
182
- this.glossiness = 1;
183
- this.specular = '#ffffff';
184
- this.specularGlossinessMap = undefined;
185
- this.specularMap = undefined;
186
- this.glossinessMap = undefined;
187
- this.envMap = undefined;
188
- }
189
-
190
- // #endregion Public Methods (3)
191
- }