@shapediver/viewer.data-engine.shared-types 1.15.6 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anchor/interfaces.d.ts +3 -23
- package/dist/anchor/interfaces.d.ts.map +1 -1
- package/dist/anchor/interfaces.js +13 -13
- package/dist/anchor/interfaces.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/sdtf/ISDTF.d.ts +2 -2
- package/dist/sdtf/ISDTF.d.ts.map +1 -1
- package/package.json +12 -9
- package/src/anchor/interfaces.ts +57 -0
- package/src/gltfv1/IGLTF_v1.ts +293 -0
- package/src/gltfv1/ISDGTF_v1.ts +43 -0
- package/src/gltfv2/IGLTF_v2.ts +310 -0
- package/src/index.ts +71 -0
- package/src/material/interfaces.ts +92 -0
- package/src/sdtf/ISDTF.ts +92 -0
- package/tsconfig.json +17 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { IAnchorDataImage, IAnchorDataText } from "@shapediver/viewer.shared.types";
|
|
2
|
+
export declare enum TAG3D_JUSTIFICATION {
|
|
2
3
|
TOP_LEFT = "TL",
|
|
3
4
|
TOP_CENTER = "TC",
|
|
4
5
|
TOP_RIGHT = "TR",
|
|
@@ -11,7 +12,7 @@ export declare enum JUSTIFICATION {
|
|
|
11
12
|
}
|
|
12
13
|
export interface ITag3D {
|
|
13
14
|
color: string;
|
|
14
|
-
justification:
|
|
15
|
+
justification: TAG3D_JUSTIFICATION;
|
|
15
16
|
location: {
|
|
16
17
|
normal: {
|
|
17
18
|
X: number;
|
|
@@ -48,27 +49,6 @@ export interface ITag2D {
|
|
|
48
49
|
text: string;
|
|
49
50
|
version: string;
|
|
50
51
|
}
|
|
51
|
-
export interface IAnchorDataImage {
|
|
52
|
-
alt: string;
|
|
53
|
-
height: number | string;
|
|
54
|
-
hidden?: boolean;
|
|
55
|
-
position?: {
|
|
56
|
-
horizontal?: string;
|
|
57
|
-
vertical?: string;
|
|
58
|
-
};
|
|
59
|
-
src: string;
|
|
60
|
-
width: number | string;
|
|
61
|
-
}
|
|
62
|
-
export interface IAnchorDataText {
|
|
63
|
-
color?: any;
|
|
64
|
-
hidden?: boolean;
|
|
65
|
-
position?: {
|
|
66
|
-
horizontal?: string;
|
|
67
|
-
vertical?: string;
|
|
68
|
-
};
|
|
69
|
-
text: string;
|
|
70
|
-
textAlign?: string;
|
|
71
|
-
}
|
|
72
52
|
export interface IAnchor {
|
|
73
53
|
data?: IAnchorDataImage | IAnchorDataText;
|
|
74
54
|
format?: 'text' | 'image';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/anchor/interfaces.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/anchor/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAEpF,oBAAY,mBAAmB;IAC3B,QAAQ,OAAO;IACf,UAAU,OAAO;IACjB,SAAS,OAAO;IAChB,WAAW,OAAO;IAClB,aAAa,OAAO;IACpB,YAAY,OAAO;IACnB,WAAW,OAAO;IAClB,aAAa,OAAO;IACpB,YAAY,OAAO;CACtB;AAED,MAAM,WAAW,MAAM;IAGnB,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,mBAAmB,CAAC;IACnC,QAAQ,EAAE;QACN,MAAM,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC5C,KAAK,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3C,KAAK,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAC3C,MAAM,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAC9C,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAA;CAGlB;AAED,MAAM,WAAW,MAAM;IAGnB,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;IAE7C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CAGnB;AAED,MAAM,WAAW,OAAO;IAGpB,IAAI,CAAC,EAAE,gBAAgB,GAAG,eAAe,CAAC;IAC1C,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,kBAAkB,CAAC,EAAE;QAAE,GAAG,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,GAAG,EAAE;YAAE,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAC;YAAC,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,GAAG,MAAM,GAAG,MAAM,EAAE,CAAA;IAC/H,QAAQ,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,EAAE,CAAC;CAGlB"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})(
|
|
3
|
+
exports.TAG3D_JUSTIFICATION = void 0;
|
|
4
|
+
var TAG3D_JUSTIFICATION;
|
|
5
|
+
(function (TAG3D_JUSTIFICATION) {
|
|
6
|
+
TAG3D_JUSTIFICATION["TOP_LEFT"] = "TL";
|
|
7
|
+
TAG3D_JUSTIFICATION["TOP_CENTER"] = "TC";
|
|
8
|
+
TAG3D_JUSTIFICATION["TOP_RIGHT"] = "TR";
|
|
9
|
+
TAG3D_JUSTIFICATION["MIDDLE_LEFT"] = "ML";
|
|
10
|
+
TAG3D_JUSTIFICATION["MIDDLE_CENTER"] = "MC";
|
|
11
|
+
TAG3D_JUSTIFICATION["MIDDLE_RIGHT"] = "MR";
|
|
12
|
+
TAG3D_JUSTIFICATION["BOTTOM_LEFT"] = "BL";
|
|
13
|
+
TAG3D_JUSTIFICATION["BOTTOM_CENTER"] = "BC";
|
|
14
|
+
TAG3D_JUSTIFICATION["BOTTOM_RIGHT"] = "BR";
|
|
15
|
+
})(TAG3D_JUSTIFICATION = exports.TAG3D_JUSTIFICATION || (exports.TAG3D_JUSTIFICATION = {}));
|
|
16
16
|
//# sourceMappingURL=interfaces.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/anchor/interfaces.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/anchor/interfaces.ts"],"names":[],"mappings":";;;AAEA,IAAY,mBAUX;AAVD,WAAY,mBAAmB;IAC3B,sCAAe,CAAA;IACf,wCAAiB,CAAA;IACjB,uCAAgB,CAAA;IAChB,yCAAkB,CAAA;IAClB,2CAAoB,CAAA;IACpB,0CAAmB,CAAA;IACnB,yCAAkB,CAAA;IAClB,2CAAoB,CAAA;IACpB,0CAAmB,CAAA;AACvB,CAAC,EAVW,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAU9B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TAG3D_JUSTIFICATION, ITag3D, ITag2D, IAnchor } from './anchor/interfaces';
|
|
2
2
|
import { ACCESSORCOMPONENTSIZE as ACCESSORCOMPONENTSIZE_V1, ACCESSORCOMPONENTTYPE as ACCESSORCOMPONENTTYPE_V1, ACCESSORTYPE as ACCESSORTYPE_V1, IGLTF_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 } from './gltfv1/IGLTF_v1';
|
|
3
3
|
import { ISDGTF_v1 } from './gltfv1/ISDGTF_v1';
|
|
4
4
|
import { ACCESSORCOMPONENTSIZE as ACCESSORCOMPONENTSIZE_V2, ACCESSORCOMPONENTTYPE as ACCESSORCOMPONENTTYPE_V2, ACCESSORTYPE as ACCESSORTYPE_V2, IGLTF_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, IGLTF_v2_Material_KHR_materials_pbrSpecularGlossiness, IGLTF_v2_Mesh, IGLTF_v2_Node, IGLTF_v2_Primitive, IGLTF_v2_Sampler, IGLTF_v2_Scene, IGLTF_v2_Skin, IGLTF_v2_Texture, ISHAPEDIVER_materials_preset } from './gltfv2/IGLTF_v2';
|
|
@@ -8,5 +8,5 @@ export { IGLTF_v1, ISDGTF_v1, ACCESSORCOMPONENTTYPE_V1, ACCESSORCOMPONENTSIZE_V1
|
|
|
8
8
|
export { 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 };
|
|
9
9
|
export { ISDTF, ISDTF_Accessor, ISDTF_Attribute, ISDTF_BufferView, ISDTF_Buffer, ISDTF_Chunk, ISDTF_Item, ISDTF_Node, ISDTF_TypeHint };
|
|
10
10
|
export { ITexture, IPresetMaterialDefinition, IMaterialContentData, IMaterialContentDataV1, IMaterialContentDataV2, IMaterialContentDataV3 };
|
|
11
|
-
export {
|
|
11
|
+
export { TAG3D_JUSTIFICATION, ITag3D, ITag2D, IAnchor };
|
|
12
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClF,OAAO,EACL,qBAAqB,IAAI,wBAAwB,EACjD,qBAAqB,IAAI,wBAAwB,EACjD,YAAY,IAAI,eAAe,EAC/B,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EACjB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAC9C,OAAO,EACL,qBAAqB,IAAI,wBAAwB,EACjD,qBAAqB,IAAI,wBAAwB,EACjD,YAAY,IAAI,eAAe,EAC/B,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,mBAAmB,EACnB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,qDAAqD,EACrD,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,gBAAgB,EAChB,4BAA4B,EAC7B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,QAAQ,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAA;AACzK,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE1J,OAAO,EACH,QAAQ,EAAE,SAAS,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,eAAe,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,gBAAgB,EACpY,CAAA;AAED,OAAO,EACH,QAAQ,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,eAAe,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,cAAc,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,4BAA4B,EAAE,qDAAqD,EAAE,kBAAkB,EAAE,aAAa,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,EAAE,gBAAgB,EAC3a,CAAA;AAGD,OAAO,EACL,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,cAAc,EAC5H,CAAA;AAED,OAAO,EACL,QAAQ,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,sBAAsB,EAClI,CAAA;AAED,OAAO,EACL,mBAAmB,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAC7C,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.TAG3D_JUSTIFICATION = exports.ACCESSORTYPE_V2 = exports.ACCESSORCOMPONENTSIZE_V2 = exports.ACCESSORCOMPONENTTYPE_V2 = exports.ACCESSORTYPE_V1 = exports.ACCESSORCOMPONENTSIZE_V1 = exports.ACCESSORCOMPONENTTYPE_V1 = void 0;
|
|
4
4
|
const interfaces_1 = require("./anchor/interfaces");
|
|
5
|
-
Object.defineProperty(exports, "
|
|
5
|
+
Object.defineProperty(exports, "TAG3D_JUSTIFICATION", { enumerable: true, get: function () { return interfaces_1.TAG3D_JUSTIFICATION; } });
|
|
6
6
|
const IGLTF_v1_1 = require("./gltfv1/IGLTF_v1");
|
|
7
7
|
Object.defineProperty(exports, "ACCESSORCOMPONENTSIZE_V1", { enumerable: true, get: function () { return IGLTF_v1_1.ACCESSORCOMPONENTSIZE; } });
|
|
8
8
|
Object.defineProperty(exports, "ACCESSORCOMPONENTTYPE_V1", { enumerable: true, get: function () { return IGLTF_v1_1.ACCESSORCOMPONENTTYPE; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,oDAAkF;AAqEhF,oGArEO,gCAAmB,OAqEP;AApErB,gDAsB0B;AA6ByB,yGAlDxB,gCAAwB,OAkDwB;AAAlD,yGAjDE,gCAAwB,OAiDF;AAA4B,gGAhD3D,uBAAe,OAgD2D;AA3B5F,gDAsB0B;AASc,yGA9Bb,gCAAwB,OA8Ba;AAAlD,yGA7Ba,gCAAwB,OA6Bb;AAA4B,gGA5BhD,uBAAe,OA4BgD"}
|
package/dist/sdtf/ISDTF.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SDTF_TYPEHINT } from "@shapediver/viewer.shared.types";
|
|
2
2
|
export interface ISDTF_Accessor {
|
|
3
3
|
bufferView: number;
|
|
4
4
|
id: string;
|
|
@@ -38,7 +38,7 @@ export interface ISDTF_Node {
|
|
|
38
38
|
typeHint?: number;
|
|
39
39
|
}
|
|
40
40
|
export interface ISDTF_TypeHint {
|
|
41
|
-
name:
|
|
41
|
+
name: SDTF_TYPEHINT | string;
|
|
42
42
|
}
|
|
43
43
|
export interface ISDTF {
|
|
44
44
|
accessors: ISDTF_Accessor[];
|
package/dist/sdtf/ISDTF.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ISDTF.d.ts","sourceRoot":"","sources":["../../src/sdtf/ISDTF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"ISDTF.d.ts","sourceRoot":"","sources":["../../src/sdtf/ISDTF.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,MAAM,WAAW,cAAc;IAG3B,UAAU,EAAE,MAAM,CAAC;IACnB,EAAE,EAAE,MAAM,CAAC;CAGd;AAED,MAAM,WAAW,eAAe;IAG5B,CAAC,GAAG,EAAE,MAAM,GAAG;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,KAAK,CAAC,EAAE,GAAG,CAAC;KACf,CAAA;CAGJ;AACD,MAAM,WAAW,YAAY;IAGzB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;CAGhB;AAED,MAAM,WAAW,gBAAgB;IAG7B,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CAGjB;AAED,MAAM,WAAW,WAAY,SAAQ,UAAU;CAAI;AAEnD,MAAM,WAAW,UAAU;IAGvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,GAAG,CAAC;CAGf;AAED,MAAM,WAAW,UAAU;IAGvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAGrB;AAED,MAAM,WAAW,cAAc;IAG3B,IAAI,EAAE,aAAa,GAAG,MAAM,CAAC;CAGhC;AAED,MAAM,WAAW,KAAK;IAGlB,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,WAAW,EAAE,gBAAgB,EAAE,CAAC;IAChC,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,OAAO,EAAE,MAAM,CAAC;CAGnB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shapediver/viewer.data-engine.shared-types",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
@@ -10,7 +10,11 @@
|
|
|
10
10
|
"test": "__tests__"
|
|
11
11
|
},
|
|
12
12
|
"files": [
|
|
13
|
-
"dist"
|
|
13
|
+
"dist",
|
|
14
|
+
"src",
|
|
15
|
+
"package.json",
|
|
16
|
+
"README.md",
|
|
17
|
+
"tsconfig.json"
|
|
14
18
|
],
|
|
15
19
|
"publishConfig": {
|
|
16
20
|
"access": "public"
|
|
@@ -20,11 +24,10 @@
|
|
|
20
24
|
"url": "git+https://github.com/shapediver/Viewer.git"
|
|
21
25
|
},
|
|
22
26
|
"scripts": {
|
|
23
|
-
"test": "bash ../../scripts/test.sh",
|
|
24
27
|
"check": "tsc --noEmit",
|
|
25
|
-
"build": "bash ../../scripts/build.sh",
|
|
26
|
-
"build-watch": "bash ../../scripts/build-watch.sh",
|
|
27
|
-
"build-dep": "bash ../../scripts/build-dep.sh"
|
|
28
|
+
"build": "bash ../../scripts/building/build.sh",
|
|
29
|
+
"build-watch": "bash ../../scripts/building/build-watch.sh",
|
|
30
|
+
"build-dep": "bash ../../scripts/building/build-dep.sh"
|
|
28
31
|
},
|
|
29
32
|
"bugs": {
|
|
30
33
|
"url": "https://github.com/shapediver/Viewer/issues"
|
|
@@ -36,11 +39,11 @@
|
|
|
36
39
|
"testEnvironment": "node"
|
|
37
40
|
},
|
|
38
41
|
"dependencies": {
|
|
39
|
-
"@shapediver/viewer.shared.services": "
|
|
40
|
-
"@shapediver/viewer.shared.types": "
|
|
42
|
+
"@shapediver/viewer.shared.services": "2.0.1",
|
|
43
|
+
"@shapediver/viewer.shared.types": "2.0.1",
|
|
41
44
|
"axios": "^0.21.1",
|
|
42
45
|
"gl-matrix": "3.3.0",
|
|
43
46
|
"tsyringe": "^4.5.0"
|
|
44
47
|
},
|
|
45
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "439d43d5219976059b89ab173d54cdafdd1f5c20"
|
|
46
49
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { 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: string,
|
|
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: any,
|
|
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
|
+
}
|
|
@@ -0,0 +1,293 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,310 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
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
ADDED