@loaders.gl/gltf 4.0.0-alpha.24 → 4.0.0-alpha.26

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 (77) hide show
  1. package/dist/dist.min.js +237 -146
  2. package/dist/es5/index.js +12 -0
  3. package/dist/es5/index.js.map +1 -1
  4. package/dist/es5/lib/api/gltf-extensions.js +1 -1
  5. package/dist/es5/lib/api/gltf-extensions.js.map +1 -1
  6. package/dist/es5/lib/extensions/EXT_mesh_features.js +12 -24
  7. package/dist/es5/lib/extensions/EXT_mesh_features.js.map +1 -1
  8. package/dist/es5/lib/extensions/EXT_structural_metadata.js +72 -28
  9. package/dist/es5/lib/extensions/EXT_structural_metadata.js.map +1 -1
  10. package/dist/es5/lib/extensions/deprecated/EXT_feature_metadata.js +38 -3
  11. package/dist/es5/lib/extensions/deprecated/EXT_feature_metadata.js.map +1 -1
  12. package/dist/es5/lib/extensions/utils/3d-tiles-utils.js +26 -18
  13. package/dist/es5/lib/extensions/utils/3d-tiles-utils.js.map +1 -1
  14. package/dist/es5/lib/gltf-utils/gltf-utils.js +29 -0
  15. package/dist/es5/lib/gltf-utils/gltf-utils.js.map +1 -1
  16. package/dist/es5/lib/types/gltf-ext-feature-metadata-schema.js +2 -0
  17. package/dist/es5/lib/types/gltf-ext-feature-metadata-schema.js.map +1 -0
  18. package/dist/es5/lib/types/gltf-ext-mesh-features-schema.js.map +1 -1
  19. package/dist/es5/lib/types/gltf-ext-structural-metadata-schema.js.map +1 -1
  20. package/dist/es5/lib/types/gltf-json-schema.js.map +1 -1
  21. package/dist/es5/lib/types/gltf-types.js.map +1 -1
  22. package/dist/es5/lib/utils/version.js +1 -1
  23. package/dist/esm/index.js +2 -0
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/lib/api/gltf-extensions.js +1 -1
  26. package/dist/esm/lib/api/gltf-extensions.js.map +1 -1
  27. package/dist/esm/lib/extensions/EXT_mesh_features.js +13 -25
  28. package/dist/esm/lib/extensions/EXT_mesh_features.js.map +1 -1
  29. package/dist/esm/lib/extensions/EXT_structural_metadata.js +48 -14
  30. package/dist/esm/lib/extensions/EXT_structural_metadata.js.map +1 -1
  31. package/dist/esm/lib/extensions/deprecated/EXT_feature_metadata.js +38 -4
  32. package/dist/esm/lib/extensions/deprecated/EXT_feature_metadata.js.map +1 -1
  33. package/dist/esm/lib/extensions/utils/3d-tiles-utils.js +27 -19
  34. package/dist/esm/lib/extensions/utils/3d-tiles-utils.js.map +1 -1
  35. package/dist/esm/lib/gltf-utils/gltf-utils.js +30 -0
  36. package/dist/esm/lib/gltf-utils/gltf-utils.js.map +1 -1
  37. package/dist/esm/lib/types/gltf-ext-feature-metadata-schema.js +2 -0
  38. package/dist/esm/lib/types/gltf-ext-feature-metadata-schema.js.map +1 -0
  39. package/dist/esm/lib/types/gltf-ext-mesh-features-schema.js.map +1 -1
  40. package/dist/esm/lib/types/gltf-ext-structural-metadata-schema.js.map +1 -1
  41. package/dist/esm/lib/types/gltf-json-schema.js.map +1 -1
  42. package/dist/esm/lib/types/gltf-types.js.map +1 -1
  43. package/dist/esm/lib/utils/version.js +1 -1
  44. package/dist/index.d.ts +6 -3
  45. package/dist/index.d.ts.map +1 -1
  46. package/dist/lib/extensions/EXT_mesh_features.d.ts.map +1 -1
  47. package/dist/lib/extensions/EXT_structural_metadata.d.ts +9 -1
  48. package/dist/lib/extensions/EXT_structural_metadata.d.ts.map +1 -1
  49. package/dist/lib/extensions/deprecated/EXT_feature_metadata.d.ts +9 -0
  50. package/dist/lib/extensions/deprecated/EXT_feature_metadata.d.ts.map +1 -1
  51. package/dist/lib/extensions/utils/3d-tiles-utils.d.ts +12 -12
  52. package/dist/lib/extensions/utils/3d-tiles-utils.d.ts.map +1 -1
  53. package/dist/lib/gltf-utils/gltf-utils.d.ts +2 -0
  54. package/dist/lib/gltf-utils/gltf-utils.d.ts.map +1 -1
  55. package/dist/lib/types/gltf-ext-feature-metadata-schema.d.ts +421 -0
  56. package/dist/lib/types/gltf-ext-feature-metadata-schema.d.ts.map +1 -0
  57. package/dist/lib/types/gltf-ext-mesh-features-schema.d.ts +4 -6
  58. package/dist/lib/types/gltf-ext-mesh-features-schema.d.ts.map +1 -1
  59. package/dist/lib/types/gltf-ext-structural-metadata-schema.d.ts +44 -25
  60. package/dist/lib/types/gltf-ext-structural-metadata-schema.d.ts.map +1 -1
  61. package/dist/lib/types/gltf-json-schema.d.ts +1 -420
  62. package/dist/lib/types/gltf-json-schema.d.ts.map +1 -1
  63. package/dist/lib/types/gltf-types.d.ts +3 -0
  64. package/dist/lib/types/gltf-types.d.ts.map +1 -1
  65. package/package.json +6 -6
  66. package/src/index.ts +10 -5
  67. package/src/lib/api/gltf-extensions.ts +1 -1
  68. package/src/lib/extensions/EXT_mesh_features.ts +18 -44
  69. package/src/lib/extensions/EXT_structural_metadata.ts +176 -96
  70. package/src/lib/extensions/deprecated/EXT_feature_metadata.ts +70 -11
  71. package/src/lib/extensions/utils/3d-tiles-utils.ts +50 -39
  72. package/src/lib/gltf-utils/gltf-utils.ts +38 -0
  73. package/src/lib/types/gltf-ext-feature-metadata-schema.ts +470 -0
  74. package/src/lib/types/gltf-ext-mesh-features-schema.ts +4 -6
  75. package/src/lib/types/gltf-ext-structural-metadata-schema.ts +46 -27
  76. package/src/lib/types/gltf-json-schema.ts +1 -468
  77. package/src/lib/types/gltf-types.ts +4 -0
@@ -1,8 +1,9 @@
1
1
  import { GLTFTextureInfoMetadata } from './gltf-json-schema';
2
2
  /**
3
+ * glTF extension that provides structural metadata about vertices, texels, and features in a glTF asset.
3
4
  * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/glTF.EXT_structural_metadata.schema.json
4
5
  */
5
- export type GLTF_EXT_structural_metadata = {
6
+ export type GLTF_EXT_structural_metadata_GLTF = {
6
7
  /** An object defining classes and enums. */
7
8
  schema?: GLTF_EXT_structural_metadata_Schema;
8
9
  /** A uri to an external schema file. */
@@ -13,10 +14,11 @@ export type GLTF_EXT_structural_metadata = {
13
14
  propertyTextures?: GLTF_EXT_structural_metadata_PropertyTexture[];
14
15
  /** "An array of property attribute definitions, which may be referenced by index. */
15
16
  propertyAttributes?: GLTF_EXT_structural_metadata_PropertyAttribute[];
16
- /** For internal usage */
17
+ /** This is not part of the spec. GLTFLoader loads names of attributes crated into this property */
17
18
  dataAttributeNames?: string[];
18
19
  };
19
20
  /**
21
+ * An object defining classes and enums.
20
22
  * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/schema.schema.json
21
23
  */
22
24
  export type GLTF_EXT_structural_metadata_Schema = {
@@ -36,8 +38,8 @@ export type GLTF_EXT_structural_metadata_Schema = {
36
38
  enums?: {
37
39
  [key: string]: GLTF_EXT_structural_metadata_Enum;
38
40
  };
39
- extensions?: Record<string, any>;
40
- extras?: any;
41
+ extensions?: Record<string, unknown>;
42
+ extras?: unknown;
41
43
  };
42
44
  /**
43
45
  * An object defining the values of an enum.
@@ -48,14 +50,18 @@ export type GLTF_EXT_structural_metadata_Enum = {
48
50
  name?: string;
49
51
  /** The description of the enum. */
50
52
  description?: string;
51
- /** The type of the integer enum value. */
53
+ /**
54
+ * The type of the integer enum value.
55
+ * Default value is 'UINT16'
56
+ */
52
57
  valueType?: 'INT8' | 'UINT8' | 'INT16' | 'UINT16' | 'INT32' | 'UINT32' | 'INT64' | 'UINT64';
53
58
  /** An array of enum values. Duplicate names or duplicate integer values are not allowed. */
54
59
  values: GLTF_EXT_structural_metadata_EnumValue[];
55
- extensions?: Record<string, any>;
56
- extras?: any;
60
+ extensions?: Record<string, unknown>;
61
+ extras?: unknown;
57
62
  };
58
63
  /**
64
+ * An enum value.
59
65
  * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/enum.value.schema.json
60
66
  */
61
67
  export type GLTF_EXT_structural_metadata_EnumValue = {
@@ -65,10 +71,11 @@ export type GLTF_EXT_structural_metadata_EnumValue = {
65
71
  description?: string;
66
72
  /** The integer enum value. */
67
73
  value: number;
68
- extensions?: Record<string, any>;
69
- extras?: any;
74
+ extensions?: Record<string, unknown>;
75
+ extras?: unknown;
70
76
  };
71
77
  /**
78
+ * A class containing a set of properties.
72
79
  * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/class.schema.json
73
80
  */
74
81
  export type GLTF_EXT_structural_metadata_Class = {
@@ -83,10 +90,11 @@ export type GLTF_EXT_structural_metadata_Class = {
83
90
  properties: {
84
91
  [key: string]: GLTF_EXT_structural_metadata_ClassProperty;
85
92
  };
86
- extensions?: Record<string, any>;
87
- extras?: any;
93
+ extensions?: Record<string, unknown>;
94
+ extras?: unknown;
88
95
  };
89
96
  /**
97
+ * A class property.
90
98
  * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/class.property.schema.json
91
99
  */
92
100
  export type GLTF_EXT_structural_metadata_ClassProperty = {
@@ -143,6 +151,7 @@ export type GLTF_EXT_structural_metadata_ClassProperty = {
143
151
  * If not required, individual entities may include `noData` values, or the entire property may be omitted.
144
152
  * As a result, `noData` has no effect on a required property.
145
153
  * Client implementations may use required properties to make performance optimizations.
154
+ * Default value is false.
146
155
  */
147
156
  required?: boolean;
148
157
  /**
@@ -157,9 +166,13 @@ export type GLTF_EXT_structural_metadata_ClassProperty = {
157
166
  * The semantic cannot be used by other properties in the class.
158
167
  */
159
168
  semantic?: string;
160
- extensions?: Record<string, any>;
161
- extras?: any;
169
+ extensions?: Record<string, unknown>;
170
+ extras?: unknown;
162
171
  };
172
+ /**
173
+ * Properties conforming to a class, organized as property values stored in binary columnar arrays.
174
+ * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/propertyTable.schema.json
175
+ */
163
176
  export type GLTF_EXT_structural_metadata_PropertyTable = {
164
177
  /** The name of the property table, e.g. for display purposes. */
165
178
  name?: string;
@@ -175,10 +188,11 @@ export type GLTF_EXT_structural_metadata_PropertyTable = {
175
188
  properties?: {
176
189
  [key: string]: GLTF_EXT_structural_metadata_PropertyTable_Property;
177
190
  };
178
- extensions?: Record<string, any>;
179
- extras?: any;
191
+ extensions?: Record<string, unknown>;
192
+ extras?: unknown;
180
193
  };
181
194
  /**
195
+ * An array of binary property values.
182
196
  * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/propertyTable.property.schema.json
183
197
  */
184
198
  export type GLTF_EXT_structural_metadata_PropertyTable_Property = {
@@ -216,10 +230,12 @@ export type GLTF_EXT_structural_metadata_PropertyTable_Property = {
216
230
  stringOffsets?: number;
217
231
  /**
218
232
  * The type of values in `arrayOffsets`.
233
+ * Default value is 'UINT32'
219
234
  */
220
235
  arrayOffsetType?: 'UINT8' | 'UINT16' | 'UINT32' | 'UINT64' | string;
221
236
  /**
222
237
  * The type of values in `stringOffsets`.
238
+ * Default value is 'UINT32'
223
239
  */
224
240
  stringOffsetType?: 'UINT8' | 'UINT16' | 'UINT32' | 'UINT64' | string;
225
241
  /**
@@ -246,12 +262,13 @@ export type GLTF_EXT_structural_metadata_PropertyTable_Property = {
246
262
  * This is the minimum of all property values, after the transforms based on the `normalized`, `offset`, and `scale` properties have been applied.
247
263
  */
248
264
  min?: number | number[];
249
- extensions?: Record<string, any>;
250
- extras?: any;
251
- /** For internal usage */
265
+ extensions?: Record<string, unknown>;
266
+ extras?: unknown;
267
+ /** This is not part of the spec. GLTFLoader loads feature tables data into this property */
252
268
  data?: unknown;
253
269
  };
254
270
  /**
271
+ * Properties conforming to a class, organized as property values stored in textures.
255
272
  * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/propertyTexture.schema.json
256
273
  */
257
274
  export type GLTF_EXT_structural_metadata_PropertyTexture = {
@@ -274,10 +291,11 @@ export type GLTF_EXT_structural_metadata_PropertyTexture = {
274
291
  properties?: {
275
292
  [key: string]: GLTFTextureInfoMetadata;
276
293
  };
277
- extensions?: Record<string, any>;
278
- extras?: any;
294
+ extensions?: Record<string, unknown>;
295
+ extras?: unknown;
279
296
  };
280
297
  /**
298
+ * Properties conforming to a class, organized as property values stored in attributes.
281
299
  * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/propertyAttribute.schema.json
282
300
  */
283
301
  export type GLTF_EXT_structural_metadata_PropertyAttribute = {
@@ -291,12 +309,13 @@ export type GLTF_EXT_structural_metadata_PropertyAttribute = {
291
309
  * Required properties must be included in this dictionary.
292
310
  */
293
311
  properties?: {
294
- [key: string]: any;
312
+ [key: string]: unknown;
295
313
  };
296
- extensions?: Record<string, any>;
297
- extras?: any;
314
+ extensions?: Record<string, unknown>;
315
+ extras?: unknown;
298
316
  };
299
317
  /**
318
+ * Structural metadata about a glTF primitive.
300
319
  * @see https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_structural_metadata/schema/mesh.primitive.EXT_structural_metadata.schema.json
301
320
  */
302
321
  export type GLTF_EXT_structural_metadata_Primitive = {
@@ -304,7 +323,7 @@ export type GLTF_EXT_structural_metadata_Primitive = {
304
323
  propertyTextures?: number[];
305
324
  /** An array of indexes of property attributes in the root `EXT_structural_metadata` object. */
306
325
  propertyAttributes?: number[];
307
- extensions?: Record<string, any>;
308
- extras?: any;
326
+ extensions?: Record<string, unknown>;
327
+ extras?: unknown;
309
328
  };
310
329
  //# sourceMappingURL=gltf-ext-structural-metadata-schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"gltf-ext-structural-metadata-schema.d.ts","sourceRoot":"","sources":["../../../src/lib/types/gltf-ext-structural-metadata-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAI3D;;GAEG;A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IACjC,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,8CAA8C,GAAG;IAC3D,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oHAAoH;IACpH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,UAAU,CAAC,EAAE;QACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sCAAsC,GAAG;IACnD,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,+FAA+F;IAC/F,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,GAAG,CAAC;CACd,CAAC"}
1
+ {"version":3,"file":"gltf-ext-structural-metadata-schema.d.ts","sourceRoot":"","sources":["../../../src/lib/types/gltf-ext-structural-metadata-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAI3D;;;GAGG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C,4CAA4C;IAC5C,MAAM,CAAC,EAAE,mCAAmC,CAAC;IAC7C,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,cAAc,CAAC,EAAE,0CAA0C,EAAE,CAAC;IAC9D,kFAAkF;IAClF,gBAAgB,CAAC,EAAE,4CAA4C,EAAE,CAAC;IAClE,qFAAqF;IACrF,kBAAkB,CAAC,EAAE,8CAA8C,EAAE,CAAC;IACtE,mGAAmG;IACnG,kBAAkB,CAAC,EAAE,MAAM,EAAE,CA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,CAAC;IACrC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,sCAAsC,GAAG;IACnD,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC5B,+FAA+F;IAC/F,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC"}
@@ -335,7 +335,7 @@ export type GLTFTextureInfo = {
335
335
  * https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_mesh_features
336
336
  */
337
337
  export type GLTFTextureInfoMetadata = GLTFTextureInfo & {
338
- channels: number[];
338
+ channels: number[] | string;
339
339
  /** For internal usage */
340
340
  data?: unknown;
341
341
  };
@@ -724,423 +724,4 @@ export type GLTF_MSFT_texture_dds = {
724
724
  source: GLTFId;
725
725
  extras?: any;
726
726
  };
727
- /**
728
- * EXT_feature_metadata extension types
729
- * This extension has glTF-level metadata and primitive-level feature indexing and segmentation metadata
730
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata
731
- *
732
- * glTF-level metadata
733
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#gltf-extension-1
734
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata/schema/glTF.EXT_feature_metadata.schema.json
735
- */
736
- export type GLTF_EXT_feature_metadata_GLTF = {
737
- /** An object defining classes and enums. */
738
- schema?: GLTF_EXT_feature_metadata_Schema;
739
- /** A uri to an external schema file. */
740
- schemaUri?: string;
741
- /** An object containing statistics about features. */
742
- statistics?: GLTF_EXT_feature_metadata_Statistics;
743
- /** A dictionary, where each key is a feature table ID and each value is an object defining the feature table. */
744
- featureTables?: {
745
- [key: string]: GLTF_EXT_feature_metadata_FeatureTable;
746
- };
747
- /** A dictionary, where each key is a feature texture ID and each value is an object defining the feature texture. */
748
- featureTextures?: {
749
- [key: string]: GLTF_EXT_feature_metadata_FeatureTexture;
750
- };
751
- extensions?: Record<string, any>;
752
- extras?: any;
753
- };
754
- /**
755
- * An object defining classes and enums.
756
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#schema
757
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/schema.schema.json
758
- */
759
- export type GLTF_EXT_feature_metadata_Schema = {
760
- /** The name of the schema. */
761
- name?: string;
762
- /** The description of the schema. */
763
- description?: string;
764
- /** Application-specific version of the schema. */
765
- version?: string;
766
- /** A dictionary, where each key is a class ID and each value is an object defining the class. */
767
- classes?: {
768
- [key: string]: GLTF_EXT_feature_metadata_Class;
769
- };
770
- /** A dictionary, where each key is an enum ID and each value is an object defining the values for the enum. */
771
- enums?: {
772
- [key: string]: GLTF_EXT_feature_metadata_Enum;
773
- };
774
- extensions?: Record<string, any>;
775
- extras?: any;
776
- };
777
- /**
778
- * A class containing a set of properties.
779
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#class
780
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/class.schema.json
781
- */
782
- export type GLTF_EXT_feature_metadata_Class = {
783
- /** The name of the class, e.g. for display purposes. */
784
- name?: string;
785
- /** The description of the class. */
786
- description?: string;
787
- /** A dictionary, where each key is a property ID and each value is an object defining the property. */
788
- properties: {
789
- [key: string]: GLTF_EXT_feature_metadata_ClassProperty;
790
- };
791
- extensions?: Record<string, any>;
792
- extras?: any;
793
- };
794
- /**
795
- * A class property.
796
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#class-property
797
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/class.property.schema.json
798
- */
799
- export type GLTF_EXT_feature_metadata_ClassProperty = {
800
- /** The name of the property, e.g. for display purposes. */
801
- name?: string;
802
- /** The description of the property. */
803
- description?: string;
804
- /**
805
- * The property type. If ENUM is used, then enumType must also be specified.
806
- * If ARRAY is used, then componentType must also be specified.
807
- * ARRAY is a fixed-length array when componentCount is defined, and variable-length otherwise.
808
- */
809
- type: 'INT8' | 'UINT8' | 'INT16' | 'UINT16' | 'INT32' | 'UINT32' | 'INT64' | 'UINT64' | 'FLOAT32' | 'FLOAT64' | 'BOOLEAN' | 'STRING' | 'ENUM' | 'ARRAY' | string;
810
- /**
811
- * An enum ID as declared in the enums dictionary.
812
- * This value must be specified when type or componentType is ENUM.
813
- */
814
- enumType?: string;
815
- /**
816
- * When type is ARRAY this indicates the type of each component of the array.
817
- * If ENUM is used, then enumType must also be specified.
818
- */
819
- componentType?: 'INT8' | 'UINT8' | 'INT16' | 'UINT16' | 'INT32' | 'UINT32' | 'INT64' | 'UINT64' | 'FLOAT32' | 'FLOAT64' | 'BOOLEAN' | 'STRING' | 'ENUM' | string;
820
- /** The number of components per element for ARRAY elements. */
821
- componentCount?: number;
822
- /**
823
- * Specifies whether integer values are normalized.
824
- * This applies both when type is an integer type, or when type is ARRAY with a componentType that is an integer type.
825
- * For unsigned integer types, values are normalized between [0.0, 1.0].
826
- * For signed integer types, values are normalized between [-1.0, 1.0].
827
- * For all other types, this property is ignored.
828
- */
829
- normalized: boolean;
830
- /**
831
- * Maximum allowed values for property values.
832
- * Only applicable for numeric types and fixed-length arrays of numeric types.
833
- * For numeric types this is a single number.
834
- * For fixed-length arrays this is an array with componentCount number of elements.
835
- * The normalized property has no effect on these values: they always correspond to the integer values.
836
- */
837
- max?: number | number[];
838
- /**
839
- * Minimum allowed values for property values.
840
- * Only applicable for numeric types and fixed-length arrays of numeric types.
841
- * For numeric types this is a single number.
842
- * For fixed-length arrays this is an array with componentCount number of elements.
843
- * The normalized property has no effect on these values: they always correspond to the integer values.
844
- */
845
- min?: number | number[];
846
- /**
847
- * A default value to use when the property value is not defined.
848
- * If used, optional must be set to true.
849
- * The type of the default value must match the property definition: For BOOLEAN use true or false.
850
- * For STRING use a JSON string. For a numeric type use a JSON number.
851
- * For ENUM use the enum name, not the integer value.
852
- * For ARRAY use a JSON array containing values matching the componentType.
853
- */
854
- default?: boolean | number | string | number[];
855
- /** If true, this property is optional. */
856
- optional?: boolean;
857
- /**
858
- * An identifier that describes how this property should be interpreted.
859
- * The semantic cannot be used by other properties in the class.
860
- */
861
- semantic?: string;
862
- extensions?: Record<string, any>;
863
- extras?: any;
864
- };
865
- /**
866
- * An object defining the values of an enum.
867
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#enum
868
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata/schema/enum.schema.json
869
- */
870
- export type GLTF_EXT_feature_metadata_Enum = {
871
- /** The name of the enum, e.g. for display purposes. */
872
- name?: string;
873
- /** The description of the enum. */
874
- description?: string;
875
- /** The type of the integer enum value. */
876
- valueType?: 'INT8' | 'UINT8' | 'INT16' | 'UINT16' | 'INT32' | 'UINT32' | 'INT64' | 'UINT64';
877
- /** An array of enum values. Duplicate names or duplicate integer values are not allowed. */
878
- values: GLTF_EXT_feature_metadata_EnumValue[];
879
- extensions?: Record<string, any>;
880
- extras?: any;
881
- [key: string]: any;
882
- };
883
- /**
884
- * An enum value.
885
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#enum-value
886
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata/schema/enum.value.schema.json
887
- */
888
- export type GLTF_EXT_feature_metadata_EnumValue = {
889
- /** The name of the enum value. */
890
- name: string;
891
- /** The description of the enum value. */
892
- description?: string;
893
- /** The integer enum value. */
894
- value: number;
895
- extensions?: Record<string, any>;
896
- extras?: any;
897
- [key: string]: any;
898
- };
899
- /**
900
- * A feature table defined by a class and property values stored in arrays.
901
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#feature-table
902
- * JSON Schenma - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/featureTable.schema.json
903
- */
904
- export type GLTF_EXT_feature_metadata_FeatureTable = {
905
- /** The class that property values conform to. The value must be a class ID declared in the classes dictionary. */
906
- class?: string;
907
- /** The number of features, as well as the number of elements in each property array. */
908
- count: number;
909
- /**
910
- * A dictionary, where each key corresponds to a property ID in the class properties dictionary
911
- * and each value is an object describing where property values are stored.
912
- * Optional properties may be excluded from this dictionary.
913
- */
914
- properties?: {
915
- [key: string]: GLTF_EXT_feature_metadata_FeatureTableProperty;
916
- };
917
- extensions?: Record<string, any>;
918
- extras?: any;
919
- };
920
- /**
921
- * An array of binary property values.
922
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#feature-table-property
923
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/featureTable.property.schema.json
924
- */
925
- export type GLTF_EXT_feature_metadata_FeatureTableProperty = {
926
- /**
927
- * The index of the buffer view containing property values.
928
- * The data type of property values is determined by the property definition:
929
- * When type is BOOLEAN values are packed into a bitfield.
930
- * When type is STRING values are stored as byte sequences and decoded as UTF-8 strings.
931
- * When type is a numeric type values are stored as the provided type.
932
- * When type is ENUM values are stored as the enum's valueType.
933
- * Each enum value in the buffer must match one of the allowed values in the enum definition.
934
- * When type is ARRAY elements are packed tightly together and the data type is based on the componentType following the same rules as above.
935
- * arrayOffsetBufferView is required for variable-size arrays
936
- * and stringOffsetBufferView is required for strings (for variable-length arrays of strings, both are required)
937
- * The buffer view byteOffset must be aligned to a multiple of 8 bytes.
938
- * If the buffer view's buffer is the GLB-stored BIN chunk the byte offset is measured relative to the beginning of the GLB.
939
- * Otherwise it is measured relative to the beginning of the buffer.
940
- */
941
- bufferView: number;
942
- /** The type of values in arrayOffsetBufferView and stringOffsetBufferView. */
943
- offsetType?: 'UINT8' | 'UINT16' | 'UINT32' | 'UINT64' | string;
944
- /**
945
- * The index of the buffer view containing offsets for variable-length arrays.
946
- * The number of offsets is equal to the feature table count plus one.
947
- * The offsets represent the start positions of each array, with the last offset representing the position after the last array.
948
- * The array length is computed using the difference between the current offset and the subsequent offset.
949
- * If componentType is STRING the offsets index into the string offsets array (stored in stringOffsetBufferView),
950
- * otherwise they index into the property array (stored in bufferView).
951
- * The data type of these offsets is determined by offsetType.
952
- * The buffer view byteOffset must be aligned to a multiple of 8 bytes in the same manner as the main bufferView
953
- */
954
- arrayOffsetBufferView?: number;
955
- /**
956
- * The index of the buffer view containing offsets for strings.
957
- * The number of offsets is equal to the number of string components plus one.
958
- * The offsets represent the byte offsets of each string in the main bufferView,
959
- * with the last offset representing the byte offset after the last string.
960
- * The string byte length is computed using the difference between the current offset and the subsequent offset.
961
- * The data type of these offsets is determined by offsetType.
962
- * The buffer view byteOffset must be aligned to a multiple of 8 bytes in the same manner as the main bufferView.
963
- */
964
- stringOffsetBufferView?: number;
965
- /** This is not part of the spec. GLTFLoader loads feature tables data into this property */
966
- data: any;
967
- extensions?: Record<string, any>;
968
- extras?: any;
969
- };
970
- /**
971
- * Features whose property values are stored directly in texture channels. This is not to be confused with feature ID textures which store feature IDs for use with a feature table.
972
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#feature-texture
973
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/featureTexture.schema.json
974
- */
975
- export type GLTF_EXT_feature_metadata_FeatureTexture = {
976
- /** The class this feature texture conforms to. The value must be a class ID declared in the classes dictionary. */
977
- class: string;
978
- /**
979
- * A dictionary, where each key corresponds to a property ID in the class properties dictionary
980
- * and each value describes the texture channels containing property values.
981
- */
982
- properties: {
983
- [key: string]: GLTF_EXT_feature_metadata_TextureAccessor;
984
- };
985
- extensions?: Record<string, any>;
986
- extras?: any;
987
- };
988
- /**
989
- * A description of how to access property values from the color channels of a texture.
990
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#texture-accessor
991
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/textureAccessor.schema.json
992
- */
993
- export type GLTF_EXT_feature_metadata_TextureAccessor = {
994
- /** Texture channels containing property values. Channels are labeled by rgba and are swizzled with a string of 1-4 characters. */
995
- channels: string;
996
- /** The glTF texture and texture coordinates to use. */
997
- texture: GLTFTextureInfo;
998
- /** This is not part of the spec. GLTFLoader loads feature tables data into this property */
999
- data: any;
1000
- extensions?: Record<string, any>;
1001
- extras?: any;
1002
- };
1003
- /**
1004
- * Statistics about features.
1005
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#statistics-1
1006
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/statistics.schema.json
1007
- */
1008
- export type GLTF_EXT_feature_metadata_Statistics = {
1009
- /**
1010
- * A dictionary, where each key is a class ID declared in the classes dictionary
1011
- * and each value is an object containing statistics about features that conform to the class.
1012
- */
1013
- classes?: {
1014
- [key: string]: GLTF_EXT_feature_metadata_StatisticsClass;
1015
- };
1016
- extensions?: Record<string, any>;
1017
- extras?: any;
1018
- };
1019
- /**
1020
- * Statistics about features that conform to the class.
1021
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#class-statistics
1022
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/statistics.class.property.schema.json
1023
- */
1024
- export type GLTF_EXT_feature_metadata_StatisticsClass = {
1025
- /** The number of features that conform to the class. */
1026
- count?: number;
1027
- /**
1028
- * A dictionary, where each key is a class ID declared in the classes dictionary
1029
- * and each value is an object containing statistics about property values.
1030
- */
1031
- properties?: {
1032
- [key: string]: GLTF_EXT_feature_metadata_StatisticsClassProperty;
1033
- };
1034
- extensions?: Record<string, any>;
1035
- extras?: any;
1036
- };
1037
- /**
1038
- * min, max, mean, median, standardDeviation, variance, sum are
1039
- * only applicable for numeric types and fixed-length arrays of numeric types.
1040
- * For numeric types this is a single number.
1041
- * For fixed-length arrays this is an array with componentCount number of elements.
1042
- * The normalized property has no effect on these values.
1043
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#property-statistics
1044
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/statistics.class.property.schema.json
1045
- */
1046
- export type GLTF_EXT_feature_metadata_StatisticsClassProperty = {
1047
- /** The minimum property value. */
1048
- min?: number | number[];
1049
- /** The maximum property value. */
1050
- max?: number | number[];
1051
- /** The arithmetic mean of the property values. */
1052
- mean?: number | number[];
1053
- /** The median of the property values. */
1054
- median?: number | number[];
1055
- /** The standard deviation of the property values. */
1056
- standardDeviation?: number | number[];
1057
- /** The variance of the property values. */
1058
- variance?: number | number[];
1059
- /** The sum of the property values. */
1060
- sum?: number | number[];
1061
- /**
1062
- * A dictionary, where each key corresponds to an enum name and each value is the number of occurrences of that enum.
1063
- * Only applicable when type or componentType is ENUM.
1064
- * For fixed-length arrays, this is an array with componentCount number of elements.
1065
- */
1066
- occurrences: {
1067
- [key: string]: number | number[];
1068
- };
1069
- extensions?: Record<string, any>;
1070
- extras?: any;
1071
- };
1072
- /**
1073
- * EXT_feature_metadata extension types
1074
- * This extension has glTF-level metadata and primitive-level (feature indexing and segmentation) metadata
1075
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata
1076
- *
1077
- * primitive-level metadata
1078
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#primitive-extension
1079
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/mesh.primitive.EXT_feature_metadata.schema.json
1080
- */
1081
- export type GLTF_EXT_feature_metadata_Primitive = {
1082
- /** Feature ids definition in attributes */
1083
- featureIdAttributes?: GLTF_EXT_feature_metadata_FeatureIdAttribute[];
1084
- /** Feature ids definition in textures */
1085
- featureIdTextures?: GLTF_EXT_feature_metadata_FeatureIdTexture[];
1086
- /** An array of IDs of feature textures from the root EXT_feature_metadata object. */
1087
- featureTextures?: string[];
1088
- extensions?: Record<string, any>;
1089
- extras?: any;
1090
- };
1091
- /**
1092
- * Attribute which described featureIds definition.
1093
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#feature-id-attribute
1094
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/featureIdAttribute.schema.json
1095
- */
1096
- export type GLTF_EXT_feature_metadata_FeatureIdAttribute = {
1097
- /** Name of feature table */
1098
- featureTable: string;
1099
- /** Described how feature ids are defined */
1100
- featureIds: GLTF_EXT_feature_metadata_FeatureIdAttributeFeatureIds;
1101
- extensions?: Record<string, any>;
1102
- extras?: any;
1103
- };
1104
- /**
1105
- * Defining featureIds by attributes or implicitly.
1106
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#primitive-extensionfeatureidattributes
1107
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/featureIdAttribute.featureIds.schema.json
1108
- */
1109
- export type GLTF_EXT_feature_metadata_FeatureIdAttributeFeatureIds = {
1110
- /** Name of attribute where featureIds are defined */
1111
- attribute?: string;
1112
- /** Sets a constant feature ID for each vertex. The default is 0. */
1113
- constant?: number;
1114
- /** Sets the rate at which feature IDs increment.
1115
- * If divisor is zero then constant is used.
1116
- * If divisor is greater than zero the feature ID increments once per divisor sets of vertices, starting at constant.
1117
- * The default is 0
1118
- */
1119
- divisor?: number;
1120
- };
1121
- /**
1122
- * An object describing a texture used for storing per-texel feature IDs.
1123
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#feature-id-texture
1124
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/featureIdTexture.schema.json
1125
- */
1126
- export type GLTF_EXT_feature_metadata_FeatureIdTexture = {
1127
- /** The ID of the feature table in the model's root `EXT_feature_metadata.featureTables` dictionary. */
1128
- featureTable: string;
1129
- /** A description of the texture and channel to use for feature IDs. The `channels` property must have a single channel. Furthermore,
1130
- * feature IDs must be whole numbers in the range `[0, count - 1]` (inclusive), where `count` is the total number of features
1131
- * in the feature table. Texel values must be read as integers. Texture filtering should be disabled when fetching feature IDs.
1132
- */
1133
- featureIds: GLTF_EXT_feature_metadata_FeatureIdTextureAccessor;
1134
- };
1135
- /**
1136
- * A description of how to access property values from the color channels of a texture.
1137
- * Spec - https://github.com/CesiumGS/glTF/tree/3d-tiles-next/extensions/2.0/Vendor/EXT_feature_metadata#featureidtexturefeatureids
1138
- * JSON Schema - https://github.com/CesiumGS/glTF/blob/c38f7f37e894004353c15cd0481bc5b7381ce841/extensions/2.0/Vendor/EXT_feature_metadata/schema/textureAccessor.schema.json
1139
- */
1140
- export type GLTF_EXT_feature_metadata_FeatureIdTextureAccessor = {
1141
- /** gLTF textureInfo object - https://github.com/CesiumGS/glTF/blob/3d-tiles-next/specification/2.0/schema/textureInfo.schema.json */
1142
- texture: GLTFTextureInfo;
1143
- /** Must be a single channel ("r", "g", "b", or "a") */
1144
- channels: 'r' | 'g' | 'b' | 'a';
1145
- };
1146
727
  //# sourceMappingURL=gltf-json-schema.d.ts.map