@shapediver/viewer.data-engine.shared-types 3.3.4 → 3.3.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shapediver/viewer.data-engine.shared-types",
3
- "version": "3.3.4",
3
+ "version": "3.3.7",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "author": "Michael Oppitz <michael@shapediver.com>",
@@ -10,11 +10,10 @@
10
10
  "test": "__tests__"
11
11
  },
12
12
  "files": [
13
- "dist",
14
- "src",
15
13
  "package.json",
14
+ "dist/",
16
15
  "README.md",
17
- "tsconfig.json"
16
+ "LICENSE"
18
17
  ],
19
18
  "publishConfig": {
20
19
  "access": "public"
@@ -39,10 +38,10 @@
39
38
  "testEnvironment": "node"
40
39
  },
41
40
  "dependencies": {
42
- "@shapediver/viewer.shared.services": "3.3.4",
43
- "@shapediver/viewer.shared.types": "3.3.4",
41
+ "@shapediver/viewer.shared.services": "3.3.7",
42
+ "@shapediver/viewer.shared.types": "3.3.7",
44
43
  "axios": "^1.2.6",
45
44
  "gl-matrix": "3.3.0"
46
45
  },
47
- "gitHead": "8193da527b4e3fc4d90181018bd60d6ac70be3e8"
46
+ "gitHead": "112787d5c5226cca5e89d08102d0b1a3dd4a1d71"
48
47
  }
@@ -1,57 +0,0 @@
1
- import { Color, IAnchorDataImage, IAnchorDataText } from "@shapediver/viewer.shared.types";
2
-
3
- export enum TAG3D_JUSTIFICATION {
4
- TOP_LEFT = 'TL',
5
- TOP_CENTER = 'TC',
6
- TOP_RIGHT = 'TR',
7
- MIDDLE_LEFT = 'ML',
8
- MIDDLE_CENTER = 'MC',
9
- MIDDLE_RIGHT = 'MR',
10
- BOTTOM_LEFT = 'BL',
11
- BOTTOM_CENTER = 'BC',
12
- BOTTOM_RIGHT = 'BR'
13
- }
14
-
15
- export interface ITag3D {
16
- // #region Properties (6)
17
-
18
- color: Color,
19
- justification: TAG3D_JUSTIFICATION,
20
- location: {
21
- normal: { X: number, Y: number, Z: number },
22
- yAxis: { X: number, Y: number, Z: number },
23
- xAxis: { X: number, Y: number, Z: number },
24
- origin: { X: number, Y: number, Z: number }
25
- },
26
- size?: number,
27
- text?: string,
28
- version: string
29
-
30
- // #endregion Properties (6)
31
- }
32
-
33
- export interface ITag2D {
34
- // #region Properties (4)
35
-
36
- color: Color,
37
- location: { X: number, Y: number, Z: number }
38
-
39
- text: string,
40
- version: string,
41
-
42
- // #endregion Properties (4)
43
- }
44
-
45
- export interface IAnchor {
46
- // #region Properties (7)
47
-
48
- data?: IAnchorDataImage | IAnchorDataText,
49
- format?: 'text' | 'image',
50
- hideable?: boolean,
51
- intersectionTarget?: { min: { x: number, y: number, z: number }, max: { x: number, y: number, z: number } } | string | string[]
52
- location: { x: number, y: number, z: number },
53
- version: string,
54
- viewports?: [],
55
-
56
- // #endregion Properties (7)
57
- }
@@ -1,293 +0,0 @@
1
-
2
- export const ACCESSORCOMPONENTTYPE = {
3
- 5120: Int8Array,
4
- 5121: Uint8Array,
5
- 5122: Int16Array,
6
- 5123: Uint16Array,
7
- 5124: Uint32Array,
8
- 5125: Uint32Array,
9
- 5126: Float32Array
10
- }
11
-
12
- export const ACCESSORCOMPONENTSIZE = {
13
- 5120: 1,
14
- 5121: 1,
15
- 5122: 2,
16
- 5123: 2,
17
- 5125: 4,
18
- 5126: 4
19
- }
20
-
21
- export const ACCESSORTYPE = {
22
- SCALAR: 1,
23
- VEC2: 2,
24
- VEC3: 3,
25
- VEC4: 4,
26
- VEC7: 7,
27
- VEC10: 10,
28
- VEC12: 12,
29
- MAT2: 4,
30
- MAT3: 9,
31
- MAT4: 16
32
- };
33
-
34
- export interface IGLTF_v1_Accessor {
35
- bufferView: string,
36
- byteOffset: number,
37
- byteStride?: number,
38
- componentType: number,
39
- count: number,
40
- max?: number[],
41
- min?: number[],
42
- type: string,
43
- name?: string,
44
- extensions?: { [id: string]: any },
45
- extras?: any
46
- }
47
-
48
- export interface IGLTF_v1_Animation {
49
- channels?: {
50
- sampler: string,
51
- target: {
52
- id: string,
53
- path: string,
54
- extensions?: { [id: string]: any },
55
- extras?: any
56
- },
57
- extensions?: { [id: string]: any },
58
- extras?: any
59
- }[],
60
- parameters?: {
61
- TIME?: string,
62
- scale?: string,
63
- rotation?: string,
64
- translation?: string
65
- },
66
- samplers?: {
67
- [key: string]: {
68
- input: string,
69
- interpolation?: string,
70
- output: string,
71
- extensions?: { [id: string]: any },
72
- extras?: any
73
- }
74
- },
75
- name?: string,
76
- extensions?: { [id: string]: any },
77
- extras?: any
78
- }
79
-
80
- export interface IGLTF_v1_Asset {
81
- copyright?: string,
82
- generator?: string,
83
- premultipliedAlpha?: boolean,
84
- profile?: {
85
- api: string,
86
- version: string,
87
- extensions?: { [id: string]: any },
88
- extras?: any
89
- },
90
- version: string,
91
- extensions?: { [id: string]: any },
92
- extras?: any
93
- }
94
-
95
- export interface IGLTF_v1_Buffer {
96
- byteLength?: number,
97
- type?: string,
98
- uri: string,
99
- name?: string,
100
- extensions?: { [id: string]: any },
101
- extras?: any
102
- }
103
-
104
- export interface IGLTF_v1_BufferView {
105
- buffer: string,
106
- byteLength?: number,
107
- byteOffset: number,
108
- target?: number,
109
- name?: string,
110
- extensions?: { [id: string]: any },
111
- extras?: any
112
- }
113
-
114
- export interface IGLTF_v1_Camera {
115
- perspective?: {
116
- aspectRatio?: number,
117
- yfov: number,
118
- zfar: number,
119
- znear: number,
120
- extensions?: { [id: string]: any },
121
- extras?: any
122
- },
123
- orthographic?: {
124
- xmag: number,
125
- ymag: number,
126
- zfar: number,
127
- znear: number,
128
- extensions?: { [id: string]: any },
129
- extras?: any
130
- },
131
- type: string,
132
- name?: string,
133
- extensions?: { [id: string]: any },
134
- extras?: any
135
- }
136
-
137
- export interface IGLTF_v1_Image {
138
- uri: string,
139
- name?: string,
140
- extensions?: { [id: string]: any },
141
- extras?: any
142
- }
143
-
144
- export interface IGLTF_v1_Material {
145
- technique?: string,
146
- values?: {
147
- [key: string]: number[] | string | number
148
- },
149
- name?: string,
150
- extensions?: { [id: string]: any },
151
- extras?: any
152
- }
153
-
154
- export interface IGLTF_v1_Mesh {
155
- primitives?: {
156
- attributes?: {
157
- [key: string]: string
158
- },
159
- indices?: string,
160
- material: string,
161
- mode?: number,
162
- extensions?: { [id: string]: any },
163
- extras?: any
164
- }[],
165
- name?: string,
166
- extensions?: { [id: string]: any },
167
- extras?: any
168
- }
169
-
170
- export interface IGLTF_v1_Node {
171
- children?: string[],
172
- meshes?: string[],
173
- skeletons?: string[],
174
- skin?: string,
175
- jointName?: string,
176
- camera?: string,
177
- matrix?: number[],
178
- translation?: number[],
179
- rotation?: number[],
180
- scale?: number[],
181
- name?: string,
182
- extensions?: { [id: string]: any },
183
- extras?: any
184
- }
185
-
186
- export interface IGLTF_v1_Program {
187
- attributes?: string[],
188
- fragmentShader: string,
189
- vertexShader: string,
190
- name?: string,
191
- extensions?: { [id: string]: any },
192
- extras?: any
193
- }
194
-
195
- export interface IGLTF_v1_Sampler {
196
- magFilter?: number,
197
- minFilter?: number,
198
- wrapS?: number,
199
- wrapT?: number,
200
- name?: string,
201
- extensions?: { [id: string]: any },
202
- extras?: any
203
- }
204
-
205
- export interface IGLTF_v1_Scene {
206
- nodes?: string[],
207
- name?: string,
208
- extensions?: { [id: string]: any },
209
- extras?: any
210
- }
211
-
212
- export interface IGLTF_v1_Shader {
213
- type: number,
214
- uri: string,
215
- name?: string,
216
- extensions?: { [id: string]: any },
217
- extras?: any
218
- }
219
-
220
- export interface IGLTF_v1_Skin {
221
- bindShapeMatrix?: number[],
222
- inverseBindMatrices: string,
223
- jointNames: string[],
224
- name?: string,
225
- extensions?: { [id: string]: any },
226
- extras?: any
227
- }
228
-
229
- export interface IGLTF_v1_Technique {
230
- parameters?: {
231
- count?: number,
232
- node?: string,
233
- type: number,
234
- semantic?: string,
235
- value?: any,
236
- extensions?: { [id: string]: any },
237
- extras?: any
238
- },
239
- attributes?: {
240
- [key: string]: string
241
- },
242
- program: string,
243
- uniforms?: {
244
- [key: string]: string
245
- },
246
- states?: {
247
- enable?: number[],
248
- functions?: {
249
- [key: string]: any
250
- },
251
- extensions?: { [id: string]: any },
252
- extras?: any
253
- },
254
- name?: string,
255
- extensions?: { [id: string]: any },
256
- extras?: any
257
- }
258
-
259
- export interface IGLTF_v1_Texture {
260
- format?: number,
261
- internalFormat?: number,
262
- sampler: string,
263
- source: string,
264
- target?: number,
265
- type?: number,
266
- name?: string,
267
- extensions?: { [id: string]: any },
268
- extras?: any
269
- }
270
-
271
- export interface IGLTF_v1 {
272
- accessors?: { [id: string]: IGLTF_v1_Accessor },
273
- animations?: { [id: string]: IGLTF_v1_Animation },
274
- asset?: IGLTF_v1_Asset,
275
- buffers?: { [id: string]: IGLTF_v1_Buffer },
276
- bufferViews?: { [id: string]: IGLTF_v1_BufferView },
277
- cameras?: { [id: string]: IGLTF_v1_Camera },
278
- images?: { [id: string]: IGLTF_v1_Image },
279
- materials?: { [id: string]: IGLTF_v1_Material },
280
- meshes?: { [id: string]: IGLTF_v1_Mesh },
281
- nodes?: { [id: string]: IGLTF_v1_Node },
282
- programs?: { [id: string]: IGLTF_v1_Program },
283
- samplers?: { [id: string]: IGLTF_v1_Sampler },
284
- scene?: string,
285
- scenes?: { [id: string]: IGLTF_v1_Scene },
286
- shaders?: { [id: string]: IGLTF_v1_Shader },
287
- skins?: { [id: string]: IGLTF_v1_Skin },
288
- techniques?: { [id: string]: IGLTF_v1_Technique },
289
- textures?: { [id: string]: IGLTF_v1_Texture },
290
- extensionsUsed?: string[],
291
- extensions?: { [id: string]: any },
292
- extras?: any
293
- }
@@ -1,43 +0,0 @@
1
- export interface ISDGTF_v1_Accessor {
2
- byteOffset: number,
3
- componentType: number,
4
- count: number,
5
- type: string
6
- }
7
-
8
- export interface ISDGTF_v1_Attributes {
9
- attributes: {
10
- [key: string]: string
11
- }
12
- }
13
-
14
- export interface ISDGTF_v1_Beziercurves extends ISDGTF_v1_Attributes {
15
- degree: number
16
- }
17
-
18
- export interface ISDGTF_v1_Surfacepatch extends ISDGTF_v1_Attributes {
19
- controlPointCountU: number,
20
- controlPointCountV: number,
21
- degreeU: number,
22
- degreeV: number,
23
- }
24
-
25
- export interface ISDGTF_v1 {
26
- accessors?: { [key: string]: ISDGTF_v1_Accessor },
27
- arcs?: ISDGTF_v1_Attributes,
28
- asset: {
29
- generator: string,
30
- profile: {
31
- api: string,
32
- version: string
33
- },
34
- version: number
35
- },
36
- beziercurves?: { [key: string]: ISDGTF_v1_Beziercurves },
37
- circles?: ISDGTF_v1_Attributes,
38
- cylinders?: ISDGTF_v1_Attributes,
39
- polylines?: { [key: string]: ISDGTF_v1_Attributes },
40
- spheres?: ISDGTF_v1_Attributes,
41
- surfacepatches?: { [key: string]: ISDGTF_v1_Surfacepatch },
42
- points?: { [key: string]: ISDGTF_v1_Attributes },
43
- }
@@ -1,310 +0,0 @@
1
-
2
- export const ACCESSORCOMPONENTTYPE = {
3
- 5120: Int8Array,
4
- 5121: Uint8Array,
5
- 5122: Int16Array,
6
- 5123: Uint16Array,
7
- 5124: Uint16Array,
8
- 5125: Uint32Array,
9
- 5126: Float32Array
10
- }
11
-
12
- export const ACCESSORCOMPONENTSIZE = {
13
- 5120: 1,
14
- 5121: 1,
15
- 5122: 2,
16
- 5123: 2,
17
- 5125: 4,
18
- 5126: 4
19
- }
20
-
21
- export const ACCESSORTYPE = {
22
- SCALAR: 1,
23
- VEC2: 2,
24
- VEC3: 3,
25
- VEC4: 4,
26
- MAT2: 4,
27
- MAT3: 9,
28
- MAT4: 16
29
- };
30
-
31
- export interface IGLTF_v2_Accessor {
32
- bufferView?: number,
33
- byteOffset?: number,
34
- componentType: number,
35
- normalized?: boolean,
36
- count: number,
37
- max?: number[],
38
- min?: number[],
39
- type: string,
40
- sparse?: {
41
- count: number,
42
- indices: {
43
- bufferView: number,
44
- byteOffset?: number,
45
- componentType: number,
46
- extensions?: { [id: string]: any },
47
- extras?: any
48
- },
49
- values: {
50
- bufferView: number,
51
- byteOffset?: number,
52
- extensions?: { [id: string]: any },
53
- extras?: any
54
- },
55
- extensions?: { [id: string]: any },
56
- extras?: any
57
- },
58
- name?: string,
59
- extensions?: { [id: string]: any },
60
- extras?: any
61
- }
62
-
63
- export interface IGLTF_v2_Animation {
64
- channels: {
65
- sampler: number,
66
- target: {
67
- node: number,
68
- path: string,
69
- extensions?: { [id: string]: any },
70
- extras?: any
71
- },
72
- extensions?: { [id: string]: any },
73
- extras?: any
74
- }[],
75
- samplers: {
76
- input: number,
77
- interpolation?: string,
78
- output: number,
79
- extensions?: { [id: string]: any },
80
- extras?: any
81
- }[],
82
- name?: string,
83
- extensions?: { [id: string]: any },
84
- extras?: any
85
- }
86
-
87
- export interface IGLTF_v2_Asset {
88
- copyright?: string,
89
- generator?: string,
90
- version: string,
91
- minVersion?: string,
92
- extensions?: { [id: string]: any },
93
- extras?: any
94
- }
95
-
96
- export interface IGLTF_v2_Buffer {
97
- byteLength: number,
98
- uri?: string,
99
- name?: string,
100
- type?: string,
101
- extensions?: { [id: string]: any },
102
- extras?: any
103
- }
104
-
105
- export interface IGLTF_v2_BufferView {
106
- buffer: number,
107
- byteLength: number,
108
- byteOffset?: number,
109
- byteStride?: number,
110
- target?: number,
111
- name?: string,
112
- extensions?: { [id: string]: any },
113
- extras?: any
114
- }
115
-
116
- export interface IGLTF_v2_Camera {
117
- perspective?: {
118
- aspectRatio?: number,
119
- yfov: number,
120
- zfar?: number,
121
- znear: number,
122
- extensions?: { [id: string]: any },
123
- extras?: any
124
- },
125
- orthographic?: {
126
- xmag: number,
127
- ymag: number,
128
- zfar: number,
129
- znear: number,
130
- extensions?: { [id: string]: any },
131
- extras?: any
132
- },
133
- type: string,
134
- name?: string,
135
- extensions?: { [id: string]: any },
136
- extras?: any
137
- }
138
-
139
- export interface IGLTF_v2_Image {
140
- uri?: string,
141
- mimeType?: string,
142
- bufferView?: number,
143
- name?: string,
144
- extensions?: { [id: string]: any },
145
- extras?: any
146
- }
147
-
148
- export interface IGLTF_v2_Material_KHR_materials_pbrSpecularGlossiness {
149
- diffuseFactor?: number[],
150
- diffuseTexture?: {
151
- index: number,
152
- texCoord?: number,
153
- extensions?: { [id: string]: any },
154
- extras?: any
155
- },
156
- specularFactor?: number[],
157
- glossinessFactor?: number,
158
- specularGlossinessTexture?: {
159
- index: number,
160
- texCoord?: number,
161
- extensions?: { [id: string]: any },
162
- extras?: any
163
- }
164
- }
165
-
166
- export interface ISHAPEDIVER_materials_preset {
167
- version: string,
168
- materialpreset: number,
169
- color: number[]
170
- }
171
-
172
- export interface IGLTF_v2_Material {
173
- name?: string,
174
- pbrMetallicRoughness?: {
175
- baseColorFactor?: number[],
176
- baseColorTexture?: {
177
- index: number,
178
- texCoord?: number,
179
- extensions?: { [id: string]: any },
180
- extras?: any
181
- },
182
- metallicFactor?: number,
183
- roughnessFactor?: number,
184
- metallicRoughnessTexture?: {
185
- index: number,
186
- texCoord?: number,
187
- extensions?: { [id: string]: any },
188
- extras?: any
189
- },
190
- extensions?: { [id: string]: any },
191
- extras?: any
192
- },
193
- normalTexture?: {
194
- index: number,
195
- texCoord?: number,
196
- scale?: number,
197
- extensions?: { [id: string]: any },
198
- extras?: any
199
- },
200
- occlusionTexture?: {
201
- index: number,
202
- texCoord?: number,
203
- strength?: number,
204
- extensions?: { [id: string]: any },
205
- extras?: any
206
- },
207
- emissiveTexture?: {
208
- index: number,
209
- texCoord?: number,
210
- extensions?: { [id: string]: any },
211
- extras?: any
212
- },
213
- emissiveFactor?: number[],
214
- alphaMode?: string,
215
- alphaCutoff?: number,
216
- doubleSided?: boolean,
217
- extensions?: { [id: string]: any },
218
- extras?: any
219
- }
220
-
221
- export interface IGLTF_v2_Primitive {
222
- attributes: {
223
- [key: string]: number
224
- },
225
- indices?: number,
226
- material?: number,
227
- mode?: number,
228
- targets?: {
229
- [id: string]: number
230
- }[],
231
- extensions?: { [id: string]: any },
232
- extras?: any
233
- }
234
-
235
- export interface IGLTF_v2_Mesh {
236
- primitives?: IGLTF_v2_Primitive[],
237
- weights?: number[],
238
- name?: string,
239
- extensions?: { [id: string]: any },
240
- extras?: any
241
- }
242
-
243
- export interface IGLTF_v2_Node {
244
- children?: number[],
245
- mesh?: number,
246
- skin?: number,
247
- camera?: number,
248
- matrix?: number[],
249
- translation?: number[],
250
- rotation?: number[],
251
- scale?: number[],
252
- weights?: number[],
253
- name?: string,
254
- extensions?: { [id: string]: any },
255
- extras?: any
256
- }
257
-
258
- export interface IGLTF_v2_Sampler {
259
- magFilter?: number,
260
- minFilter?: number,
261
- wrapS?: number,
262
- wrapT?: number,
263
- name?: string,
264
- extensions?: { [id: string]: any },
265
- extras?: any
266
- }
267
-
268
- export interface IGLTF_v2_Scene {
269
- nodes?: number[],
270
- name?: string,
271
- extensions?: { [id: string]: any },
272
- extras?: any
273
- }
274
-
275
- export interface IGLTF_v2_Skin {
276
- inverseBindMatrices?: number,
277
- skeleton?: number,
278
- joints: number[],
279
- name?: string,
280
- extensions?: { [id: string]: any },
281
- extras?: any
282
- }
283
- export interface IGLTF_v2_Texture {
284
- sampler?: number,
285
- source: number,
286
- name?: string,
287
- extensions?: { [id: string]: any },
288
- extras?: any
289
- }
290
- export interface IGLTF_v2 {
291
- extensionsUsed?: string[],
292
- extensionsRequired?: string[],
293
- accessors?: IGLTF_v2_Accessor[],
294
- animations?: IGLTF_v2_Animation[],
295
- asset: IGLTF_v2_Asset,
296
- buffers?: IGLTF_v2_Buffer[],
297
- bufferViews?: IGLTF_v2_BufferView[],
298
- cameras?: IGLTF_v2_Camera[],
299
- images?: IGLTF_v2_Image[],
300
- materials?: IGLTF_v2_Material[],
301
- meshes?: IGLTF_v2_Mesh[],
302
- nodes?: IGLTF_v2_Node[],
303
- samplers?: IGLTF_v2_Sampler[],
304
- scene?: number,
305
- scenes?: IGLTF_v2_Scene[],
306
- skins?: IGLTF_v2_Skin[],
307
- textures?: IGLTF_v2_Texture[],
308
- extensions?: { [id: string]: any },
309
- extras?: any
310
- }
package/src/index.ts DELETED
@@ -1,71 +0,0 @@
1
- import { TAG3D_JUSTIFICATION, ITag3D, ITag2D, IAnchor } from './anchor/interfaces'
2
- import {
3
- ACCESSORCOMPONENTSIZE as ACCESSORCOMPONENTSIZE_V1,
4
- ACCESSORCOMPONENTTYPE as ACCESSORCOMPONENTTYPE_V1,
5
- ACCESSORTYPE as ACCESSORTYPE_V1,
6
- IGLTF_v1,
7
- IGLTF_v1_Accessor,
8
- IGLTF_v1_Animation,
9
- IGLTF_v1_Asset,
10
- IGLTF_v1_Buffer,
11
- IGLTF_v1_BufferView,
12
- IGLTF_v1_Camera,
13
- IGLTF_v1_Image,
14
- IGLTF_v1_Material,
15
- IGLTF_v1_Mesh,
16
- IGLTF_v1_Node,
17
- IGLTF_v1_Program,
18
- IGLTF_v1_Sampler,
19
- IGLTF_v1_Scene,
20
- IGLTF_v1_Shader,
21
- IGLTF_v1_Skin,
22
- IGLTF_v1_Technique,
23
- IGLTF_v1_Texture,
24
- } from './gltfv1/IGLTF_v1'
25
- import { ISDGTF_v1 } from './gltfv1/ISDGTF_v1'
26
- import {
27
- ACCESSORCOMPONENTSIZE as ACCESSORCOMPONENTSIZE_V2,
28
- ACCESSORCOMPONENTTYPE as ACCESSORCOMPONENTTYPE_V2,
29
- ACCESSORTYPE as ACCESSORTYPE_V2,
30
- IGLTF_v2,
31
- IGLTF_v2_Accessor,
32
- IGLTF_v2_Animation,
33
- IGLTF_v2_Asset,
34
- IGLTF_v2_Buffer,
35
- IGLTF_v2_BufferView,
36
- IGLTF_v2_Camera,
37
- IGLTF_v2_Image,
38
- IGLTF_v2_Material,
39
- IGLTF_v2_Material_KHR_materials_pbrSpecularGlossiness,
40
- IGLTF_v2_Mesh,
41
- IGLTF_v2_Node,
42
- IGLTF_v2_Primitive,
43
- IGLTF_v2_Sampler,
44
- IGLTF_v2_Scene,
45
- IGLTF_v2_Skin,
46
- IGLTF_v2_Texture,
47
- ISHAPEDIVER_materials_preset,
48
- } from './gltfv2/IGLTF_v2'
49
- import { ITexture, IPresetMaterialDefinition, IMaterialContentData, IMaterialContentDataV1, IMaterialContentDataV2, IMaterialContentDataV3 } from './material/interfaces'
50
- import { ISDTF, ISDTF_Accessor, ISDTF_Attribute, ISDTF_BufferView, ISDTF_Buffer, ISDTF_Chunk, ISDTF_Item, ISDTF_Node, ISDTF_TypeHint } from './sdtf/ISDTF'
51
-
52
- export {
53
- IGLTF_v1, ISDGTF_v1, ACCESSORCOMPONENTTYPE_V1, ACCESSORCOMPONENTSIZE_V1, ACCESSORTYPE_V1, IGLTF_v1_Accessor, IGLTF_v1_Animation, IGLTF_v1_Asset, IGLTF_v1_Buffer, IGLTF_v1_BufferView, IGLTF_v1_Camera, IGLTF_v1_Image, IGLTF_v1_Material, IGLTF_v1_Mesh, IGLTF_v1_Node, IGLTF_v1_Program, IGLTF_v1_Sampler, IGLTF_v1_Scene, IGLTF_v1_Shader, IGLTF_v1_Skin, IGLTF_v1_Technique, IGLTF_v1_Texture
54
- }
55
-
56
- export {
57
- IGLTF_v2, ACCESSORCOMPONENTTYPE_V2, ACCESSORCOMPONENTSIZE_V2, ACCESSORTYPE_V2, IGLTF_v2_Accessor, IGLTF_v2_Animation, IGLTF_v2_Asset, IGLTF_v2_Buffer, IGLTF_v2_BufferView, IGLTF_v2_Camera, IGLTF_v2_Image, IGLTF_v2_Material, ISHAPEDIVER_materials_preset, IGLTF_v2_Material_KHR_materials_pbrSpecularGlossiness, IGLTF_v2_Primitive, IGLTF_v2_Mesh, IGLTF_v2_Node, IGLTF_v2_Sampler, IGLTF_v2_Scene, IGLTF_v2_Skin, IGLTF_v2_Texture
58
- }
59
-
60
-
61
- export {
62
- ISDTF, ISDTF_Accessor, ISDTF_Attribute, ISDTF_BufferView, ISDTF_Buffer, ISDTF_Chunk, ISDTF_Item, ISDTF_Node, ISDTF_TypeHint
63
- }
64
-
65
- export {
66
- ITexture, IPresetMaterialDefinition, IMaterialContentData, IMaterialContentDataV1, IMaterialContentDataV2, IMaterialContentDataV3
67
- }
68
-
69
- export {
70
- TAG3D_JUSTIFICATION, ITag3D, ITag2D, IAnchor
71
- }
@@ -1,92 +0,0 @@
1
-
2
- export interface IPresetMaterialDefinition {
3
- // #region Properties (13)
4
-
5
- alphaThreshold?: number;
6
- bitmaptexture?: string;
7
- bumpAmplitude?: number;
8
- bumptexture?: string;
9
- color?: number[];
10
- metalness?: number;
11
- metalnesstexture?: string;
12
- normaltexture?: string;
13
- roughness?: number;
14
- roughnesstexture?: string;
15
- side?: string;
16
- transparency?: number;
17
- transparencytexture?: string;
18
-
19
- // #endregion Properties (13)
20
- }
21
-
22
- export interface IMaterialContentData {
23
- materialpreset?: number,
24
- materialType?: string,
25
- version?: string,
26
- }
27
-
28
- export interface IMaterialContentDataV1 extends IMaterialContentData {
29
- ambient?: number[],
30
- diffuse?: number[],
31
- color?: number[],
32
- emission?: number[],
33
- specular?: number[],
34
- shine?: number,
35
- transparency?: number,
36
- bitmaptexture?: string,
37
- bumptexture?: string,
38
- transparencytexture?: string,
39
- }
40
-
41
- export interface IMaterialContentDataV2 extends IMaterialContentData {
42
- color?: number[],
43
- side?: string,
44
- metalness?: number,
45
- roughness?: number,
46
- transparency?: number,
47
- alphaThreshold?: number,
48
- bitmaptexture?: string,
49
- metalnesstexture?: string,
50
- roughnesstexture?: string,
51
- bumptexture?: string,
52
- normaltexture?: string,
53
- transparencytexture?: string,
54
- line?: any
55
- }
56
-
57
- export interface IMaterialContentDataV3 extends IMaterialContentData {
58
- color?: number[],
59
- side?: string,
60
- metalness?: number,
61
- roughness?: number,
62
- transparency?: number,
63
- alphaThreshold?: number,
64
- shadowOpacity?: number,
65
- lightReflectivity?: number,
66
- bumpAmplitude?: number,
67
- threeDNoise?: any
68
- bitmaptexture?: ITexture,
69
- metalnesstexture?: ITexture,
70
- roughnesstexture?: ITexture,
71
- bumptexture?: ITexture,
72
- normaltexture?: ITexture,
73
- transparencytexture?: ITexture,
74
- line?: any
75
- }
76
-
77
- export interface ITexture {
78
- // #region Properties (9)
79
-
80
- canvas?: any,
81
- center?: number[],
82
- color?: number[],
83
- href?: string,
84
- offset?: number[],
85
- repeat?: number[],
86
- rotation?: number,
87
- wrapS?: number,
88
- wrapT?: number
89
-
90
- // #endregion Properties (9)
91
- }
92
-
package/src/sdtf/ISDTF.ts DELETED
@@ -1,92 +0,0 @@
1
- import { SDTF_TYPEHINT } from "@shapediver/viewer.shared.types";
2
-
3
- export interface ISDTF_Accessor {
4
- // #region Properties (2)
5
-
6
- bufferView: number;
7
- id: string;
8
-
9
- // #endregion Properties (2)
10
- }
11
-
12
- export interface ISDTF_Attribute {
13
- // #region Public Indexers (1)
14
-
15
- [key: string]: {
16
- typeHint: number;
17
- accessor?: number;
18
- value?: any;
19
- }
20
-
21
- // #endregion Public Indexers (1)
22
- }
23
- export interface ISDTF_Buffer {
24
- // #region Properties (2)
25
-
26
- byteLength: number;
27
- uri?: string;
28
-
29
- // #endregion Properties (2)
30
- }
31
-
32
- export interface ISDTF_BufferView {
33
- // #region Properties (6)
34
-
35
- buffer: number;
36
- byteLength: number;
37
- byteOffset: number;
38
- contentEncoding?: string;
39
- contentType: string;
40
- name?: string;
41
-
42
- // #endregion Properties (6)
43
- }
44
-
45
- export interface ISDTF_Chunk extends ISDTF_Node { }
46
-
47
- export interface ISDTF_Item {
48
- // #region Properties (4)
49
-
50
- accessor?: number;
51
- attributes?: number;
52
- typeHint: number;
53
- value?: any;
54
-
55
- // #endregion Properties (4)
56
- }
57
-
58
- export interface ISDTF_Node {
59
- // #region Properties (5)
60
-
61
- attributes?: number;
62
- items: number[];
63
- name?: string;
64
- nodes?: number[];
65
- typeHint?: number;
66
-
67
- // #endregion Properties (5)
68
- }
69
-
70
- export interface ISDTF_TypeHint {
71
- // #region Properties (1)
72
-
73
- name: SDTF_TYPEHINT | string;
74
-
75
- // #endregion Properties (1)
76
- }
77
-
78
- export interface ISDTF {
79
- // #region Properties (9)
80
-
81
- accessors: ISDTF_Accessor[];
82
- attributes: ISDTF_Attribute[];
83
- bufferViews: ISDTF_BufferView[];
84
- buffers: ISDTF_Buffer[];
85
- chunks: ISDTF_Chunk[];
86
- items: ISDTF_Item[];
87
- nodes: ISDTF_Node[];
88
- typeHints: ISDTF_TypeHint[];
89
- version: number;
90
-
91
- // #endregion Properties (9)
92
- }
package/tsconfig.json DELETED
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "include": [
4
- "./**/*.ts"
5
- ],
6
- "compilerOptions": {
7
- "rootDir": "src",
8
- "outDir": "dist"
9
- },
10
- "exclude": [
11
- "__tests__",
12
- "node_modules",
13
- "dist",
14
- "dist-dev",
15
- "dist-prod"
16
- ]
17
- }