itowns 2.45.1 → 2.45.2-next.0

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 (220) hide show
  1. package/dist/455.js +1 -1
  2. package/dist/455.js.map +1 -1
  3. package/dist/debug.js +1 -1
  4. package/dist/debug.js.LICENSE.txt +8 -2
  5. package/dist/debug.js.map +1 -1
  6. package/dist/itowns.js +1 -1
  7. package/dist/itowns.js.LICENSE.txt +1 -1
  8. package/dist/itowns.js.map +1 -1
  9. package/dist/itowns_lasparser.js +1 -1
  10. package/dist/itowns_lasparser.js.map +1 -1
  11. package/dist/itowns_lasworker.js +1 -1
  12. package/dist/itowns_lasworker.js.map +1 -1
  13. package/dist/itowns_potree2worker.js +1 -1
  14. package/dist/itowns_potree2worker.js.map +1 -1
  15. package/dist/itowns_widgets.js +1 -1
  16. package/dist/itowns_widgets.js.map +1 -1
  17. package/examples/copc_simple_loader.html +3 -3
  18. package/examples/entwine_3d_loader.html +2 -2
  19. package/examples/entwine_simple_loader.html +10 -6
  20. package/examples/view_3d_map_webxr.html +2 -5
  21. package/lib/Controls/FirstPersonControls.d.ts +90 -0
  22. package/lib/Controls/FlyControls.d.ts +36 -0
  23. package/lib/Controls/GlobeControls.d.ts +274 -0
  24. package/lib/Controls/PlanarControls.d.ts +339 -0
  25. package/lib/Controls/StateControl.d.ts +140 -0
  26. package/lib/Controls/StreetControls.d.ts +134 -0
  27. package/lib/Controls/VRControls.d.ts +56 -0
  28. package/lib/Controls/VRControls.js +409 -0
  29. package/lib/Converter/Feature2Mesh.d.ts +42 -0
  30. package/lib/Converter/Feature2Texture.d.ts +5 -0
  31. package/lib/Converter/convertToTile.d.ts +5 -0
  32. package/lib/Converter/convertToTile.js +2 -2
  33. package/lib/Converter/textureConverter.d.ts +4 -0
  34. package/lib/Core/3DTiles/C3DTBatchTable.d.ts +49 -0
  35. package/lib/Core/3DTiles/C3DTBatchTableHierarchyExtension.d.ts +37 -0
  36. package/lib/Core/3DTiles/C3DTBoundingVolume.d.ts +39 -0
  37. package/lib/Core/3DTiles/C3DTExtensions.d.ts +75 -0
  38. package/lib/Core/3DTiles/C3DTFeature.d.ts +47 -0
  39. package/lib/Core/3DTiles/C3DTilesEnums.d.ts +14 -0
  40. package/lib/Core/3DTiles/C3DTileset.d.ts +46 -0
  41. package/lib/Core/3DTiles/utils/BinaryPropertyAccessor.d.ts +14 -0
  42. package/lib/Core/AnimationPlayer.d.ts +53 -0
  43. package/lib/Core/CopcNode.d.ts +67 -0
  44. package/lib/Core/CopcNode.js +50 -69
  45. package/lib/Core/Deprecated/Undeprecator.d.ts +6 -0
  46. package/lib/Core/EntwinePointTileNode.d.ts +58 -0
  47. package/lib/Core/EntwinePointTileNode.js +6 -34
  48. package/lib/Core/Feature.d.ts +323 -0
  49. package/lib/Core/Geographic/GeoidGrid.d.ts +86 -0
  50. package/lib/Core/Label.d.ts +86 -0
  51. package/lib/Core/MainLoop.d.ts +23 -0
  52. package/lib/Core/Picking.d.ts +6 -0
  53. package/lib/Core/Picking.js +4 -0
  54. package/lib/Core/PointCloudNode.d.ts +14 -0
  55. package/lib/Core/PointCloudNode.js +28 -0
  56. package/lib/Core/Potree2Node.d.ts +11 -0
  57. package/lib/Core/Potree2Node.js +3 -57
  58. package/lib/Core/Potree2PointAttributes.d.ts +97 -0
  59. package/lib/Core/PotreeNode.d.ts +13 -0
  60. package/lib/Core/PotreeNode.js +17 -17
  61. package/lib/Core/Prefab/Globe/Atmosphere.d.ts +66 -0
  62. package/lib/Core/Prefab/Globe/Atmosphere.js +10 -5
  63. package/lib/Core/Prefab/Globe/GlobeLayer.d.ts +48 -0
  64. package/lib/Core/Prefab/Globe/GlobeTileBuilder.d.ts +38 -0
  65. package/lib/Core/Prefab/Globe/SkyShader.d.ts +5 -0
  66. package/lib/Core/Prefab/Globe/SkyShader.js +3 -3
  67. package/lib/Core/Prefab/GlobeView.d.ts +65 -0
  68. package/lib/Core/Prefab/GlobeView.js +9 -0
  69. package/lib/Core/Prefab/Planar/PlanarLayer.d.ts +38 -0
  70. package/lib/Core/Prefab/Planar/PlanarTileBuilder.d.ts +32 -0
  71. package/lib/Core/Prefab/PlanarView.d.ts +33 -0
  72. package/lib/Core/Prefab/TileBuilder.d.ts +63 -0
  73. package/lib/Core/Prefab/computeBufferTileGeometry.d.ts +17 -0
  74. package/lib/Core/Scheduler/Cache.d.ts +25 -0
  75. package/lib/Core/Scheduler/CancelledCommandException.d.ts +12 -0
  76. package/lib/Core/Scheduler/Scheduler.d.ts +106 -0
  77. package/lib/Core/Style.d.ts +248 -0
  78. package/lib/Core/StyleOptions.d.ts +455 -0
  79. package/lib/Core/System/Capabilities.d.ts +9 -0
  80. package/lib/Core/Tile/Tile.d.ts +70 -0
  81. package/lib/Core/Tile/TileGrid.d.ts +12 -0
  82. package/lib/Core/TileGeometry.d.ts +46 -0
  83. package/lib/Core/TileMesh.d.ts +50 -0
  84. package/lib/Core/TileMesh.js +2 -4
  85. package/lib/Core/View.d.ts +403 -0
  86. package/lib/Core/View.js +1 -7
  87. package/lib/Layer/C3DTilesLayer.d.ts +140 -0
  88. package/lib/Layer/ColorLayer.d.ts +128 -0
  89. package/lib/Layer/ColorLayer.js +4 -4
  90. package/lib/Layer/CopcLayer.d.ts +42 -0
  91. package/lib/Layer/CopcLayer.js +3 -6
  92. package/lib/Layer/ElevationLayer.d.ts +96 -0
  93. package/lib/Layer/ElevationLayer.js +3 -3
  94. package/lib/Layer/EntwinePointTileLayer.d.ts +56 -0
  95. package/lib/Layer/EntwinePointTileLayer.js +4 -3
  96. package/lib/Layer/FeatureGeometryLayer.d.ts +62 -0
  97. package/lib/Layer/GeoidLayer.d.ts +41 -0
  98. package/lib/Layer/GeometryLayer.d.ts +120 -0
  99. package/lib/Layer/InfoLayer.d.ts +24 -0
  100. package/lib/Layer/InfoLayer.js +1 -1
  101. package/lib/Layer/LabelLayer.d.ts +93 -0
  102. package/lib/Layer/LabelLayer.js +2 -2
  103. package/lib/Layer/Layer.d.ts +185 -0
  104. package/lib/Layer/LayerUpdateState.d.ts +24 -0
  105. package/lib/Layer/LayerUpdateStrategy.d.ts +11 -0
  106. package/lib/Layer/LayerUpdateStrategy.js +2 -7
  107. package/lib/Layer/OGC3DTilesLayer.d.ts +277 -0
  108. package/lib/Layer/OGC3DTilesLayer.js +21 -0
  109. package/lib/Layer/OrientedImageLayer.d.ts +53 -0
  110. package/lib/Layer/PointCloudLayer.d.ts +103 -0
  111. package/lib/Layer/PointCloudLayer.js +1 -1
  112. package/lib/Layer/Potree2Layer.d.ts +56 -0
  113. package/lib/Layer/PotreeLayer.d.ts +55 -0
  114. package/lib/Layer/RasterLayer.d.ts +8 -0
  115. package/lib/Layer/RasterLayer.js +2 -2
  116. package/lib/Layer/ReferencingLayerProperties.d.ts +2 -0
  117. package/lib/Layer/ReferencingLayerProperties.js +0 -12
  118. package/lib/Layer/TiledGeometryLayer.d.ts +192 -0
  119. package/lib/Layer/TiledGeometryLayer.js +4 -3
  120. package/lib/Main.d.ts +89 -0
  121. package/lib/Main.js +3 -1
  122. package/lib/Parser/B3dmParser.d.ts +26 -0
  123. package/lib/Parser/CameraCalibrationParser.d.ts +32 -0
  124. package/lib/Parser/GDFParser.d.ts +24 -0
  125. package/lib/Parser/GTXParser.d.ts +28 -0
  126. package/lib/Parser/GeoJsonParser.d.ts +12 -0
  127. package/lib/Parser/GpxParser.d.ts +12 -0
  128. package/lib/Parser/ISGParser.d.ts +23 -0
  129. package/lib/Parser/KMLParser.d.ts +12 -0
  130. package/lib/Parser/LASParser.d.ts +61 -0
  131. package/lib/Parser/MapBoxUrlParser.d.ts +9 -0
  132. package/lib/Parser/PntsParser.d.ts +4 -0
  133. package/lib/Parser/Potree2BinParser.d.ts +8 -0
  134. package/lib/Parser/PotreeBinParser.d.ts +4 -0
  135. package/lib/Parser/PotreeCinParser.d.ts +4 -0
  136. package/lib/Parser/ShapefileParser.d.ts +25 -0
  137. package/lib/Parser/VectorTileParser.d.ts +34 -0
  138. package/lib/Parser/XbilParser.d.ts +18 -0
  139. package/lib/Parser/deprecated/LegacyGLTFLoader.d.ts +32 -0
  140. package/lib/Parser/iGLTFLoader.d.ts +104 -0
  141. package/lib/Process/3dTilesProcessing.d.ts +43 -0
  142. package/lib/Process/FeatureProcessing.d.ts +4 -0
  143. package/lib/Process/LayeredMaterialNodeProcessing.d.ts +3 -0
  144. package/lib/Process/LayeredMaterialNodeProcessing.js +12 -12
  145. package/lib/Process/ObjectRemovalHelper.d.ts +32 -0
  146. package/lib/Process/handlerNodeError.d.ts +1 -0
  147. package/lib/Provider/3dTilesProvider.d.ts +7 -0
  148. package/lib/Provider/DataSourceProvider.d.ts +4 -0
  149. package/lib/Provider/Fetcher.d.ts +101 -0
  150. package/lib/Provider/PointCloudProvider.d.ts +4 -0
  151. package/lib/Provider/TileProvider.d.ts +4 -0
  152. package/lib/Provider/URLBuilder.d.ts +28 -0
  153. package/lib/Renderer/Camera.d.ts +95 -0
  154. package/lib/Renderer/Color.d.ts +3 -0
  155. package/lib/Renderer/ColorLayersOrdering.d.ts +38 -0
  156. package/lib/Renderer/ColorLayersOrdering.js +2 -2
  157. package/lib/Renderer/CommonMaterial.d.ts +6 -0
  158. package/lib/Renderer/Label2DRenderer.d.ts +31 -0
  159. package/lib/Renderer/LayeredMaterial.d.ts +121 -0
  160. package/lib/Renderer/LayeredMaterial.js +221 -141
  161. package/lib/Renderer/OBB.d.ts +65 -0
  162. package/lib/Renderer/OrientedImageCamera.d.ts +36 -0
  163. package/lib/Renderer/OrientedImageMaterial.d.ts +68 -0
  164. package/lib/Renderer/PointsMaterial.d.ts +226 -0
  165. package/lib/Renderer/PointsMaterial.js +60 -22
  166. package/lib/Renderer/RasterTile.d.ts +53 -0
  167. package/lib/Renderer/RasterTile.js +8 -9
  168. package/lib/Renderer/RenderMode.d.ts +11 -0
  169. package/lib/Renderer/RenderMode.js +1 -0
  170. package/lib/Renderer/Shader/ShaderChunk.d.ts +78 -0
  171. package/lib/Renderer/Shader/ShaderUtils.d.ts +5 -0
  172. package/lib/Renderer/WebXR.d.ts +33 -0
  173. package/lib/Renderer/WebXR.js +128 -47
  174. package/lib/Renderer/c3DEngine.d.ts +55 -0
  175. package/lib/Renderer/c3DEngine.js +5 -1
  176. package/lib/Source/C3DTilesGoogleSource.d.ts +38 -0
  177. package/lib/Source/C3DTilesIonSource.d.ts +31 -0
  178. package/lib/Source/C3DTilesSource.d.ts +17 -0
  179. package/lib/Source/CopcSource.d.ts +79 -0
  180. package/lib/Source/EntwinePointTileSource.d.ts +40 -0
  181. package/lib/Source/EntwinePointTileSource.js +0 -5
  182. package/lib/Source/FileSource.d.ts +118 -0
  183. package/lib/Source/OGC3DTilesGoogleSource.d.ts +24 -0
  184. package/lib/Source/OGC3DTilesIonSource.d.ts +26 -0
  185. package/lib/Source/OGC3DTilesSource.d.ts +21 -0
  186. package/lib/Source/OrientedImageSource.d.ts +48 -0
  187. package/lib/Source/Potree2Source.d.ts +157 -0
  188. package/lib/Source/PotreeSource.d.ts +69 -0
  189. package/lib/Source/Source.d.ts +122 -0
  190. package/lib/Source/TMSSource.d.ts +77 -0
  191. package/lib/Source/VectorTilesSource.d.ts +56 -0
  192. package/lib/Source/WFSSource.d.ts +110 -0
  193. package/lib/Source/WMSSource.d.ts +85 -0
  194. package/lib/Source/WMTSSource.d.ts +65 -0
  195. package/lib/ThreeExtended/capabilities/WebGL.d.ts +9 -0
  196. package/lib/ThreeExtended/libs/ktx-parse.module.d.ts +274 -0
  197. package/lib/ThreeExtended/libs/motion-controllers.module.d.ts +64 -0
  198. package/lib/ThreeExtended/libs/motion-controllers.module.js +375 -0
  199. package/lib/ThreeExtended/libs/zstddec.module.d.ts +6 -0
  200. package/lib/ThreeExtended/loaders/DDSLoader.js +40 -1
  201. package/lib/ThreeExtended/loaders/DRACOLoader.d.ts +41 -0
  202. package/lib/ThreeExtended/loaders/GLTFLoader.d.ts +16 -0
  203. package/lib/ThreeExtended/loaders/GLTFLoader.js +22 -3
  204. package/lib/ThreeExtended/loaders/KTX2Loader.d.ts +116 -0
  205. package/lib/ThreeExtended/loaders/KTX2Loader.js +9 -2
  206. package/lib/ThreeExtended/math/ColorSpaces.d.ts +56 -0
  207. package/lib/ThreeExtended/utils/BufferGeometryUtils.d.ts +62 -0
  208. package/lib/ThreeExtended/utils/BufferGeometryUtils.js +2 -2
  209. package/lib/ThreeExtended/utils/WorkerPool.d.ts +19 -0
  210. package/lib/ThreeExtended/webxr/XRControllerModelFactory.d.ts +25 -0
  211. package/lib/ThreeExtended/webxr/XRControllerModelFactory.js +209 -0
  212. package/lib/Utils/CameraUtils.d.ts +132 -0
  213. package/lib/Utils/DEMUtils.d.ts +84 -0
  214. package/lib/Utils/DEMUtils.js +2 -2
  215. package/lib/Utils/FeaturesUtils.d.ts +17 -0
  216. package/lib/Utils/Gradients.d.ts +13 -0
  217. package/lib/Utils/ThreeUtils.d.ts +14 -0
  218. package/lib/Utils/placeObjectOnGround.d.ts +28 -0
  219. package/lib/global.d.js +0 -0
  220. package/package.json +18 -15
@@ -0,0 +1,85 @@
1
+ export default WMSSource;
2
+ /**
3
+ * An object defining the source of images to get from a
4
+ * [WMS](http://www.opengeospatial.org/standards/wms) server. It inherits
5
+ * from {@link Source}.
6
+ *
7
+ * @extends Source
8
+ *
9
+ * @property {boolean} isWMSSource - Used to checkout whether this source is a
10
+ * WMSSource. Default is true. You should not change this, as it is used
11
+ * internally for optimisation.
12
+ * @property {string} name - The name of the layer, used in the generation of
13
+ * the url.
14
+ * @property {string} version - The version of the WMS server to request on.
15
+ * Default value is '1.3.0'.
16
+ * @property {string} style - The style to query on the WMS server. Default
17
+ * value is 'normal'.
18
+ * @property {number} width - The width of the image to fetch, in pixel.
19
+ * Default value is the height if set or 256.
20
+ * @property {number} height - The height of the image to fetch, in pixel.
21
+ * Default value is the width if set or 256.
22
+ * @property {string} axisOrder - The order of the axis, that helps building the
23
+ * BBOX to put in the url requesting a resource. Default value is 'wsen', other
24
+ * value can be 'swne'.
25
+ * @property {boolean} transparent - Tells if the image to fetch needs
26
+ * transparency support. Default value is false.
27
+ * @property {Object} zoom - Object containing the minimum and maximum values of
28
+ * the level, to zoom in the source.
29
+ * @property {number} zoom.min - The minimum level of the source. Default value
30
+ * is 0.
31
+ * @property {number} zoom.max - The maximum level of the source. Default value
32
+ * is 21.
33
+ * @property {string} bboxDigits - The bbox digits precision used in URL
34
+ * @property {Object} vendorSpecific - An object containing vendor specific
35
+ * parameters. See for example a [list of these parameters for GeoServer](
36
+ * https://docs.geoserver.org/latest/en/user/services/wms/vendor.html). This
37
+ * object is read simply with the `key` being the name of the parameter and
38
+ * `value` being the value of the parameter. If used, this property should be
39
+ * set in the constructor parameters.
40
+ *
41
+ * @example
42
+ * // Create the source
43
+ * const wmsSource = new itowns.WMSSource({
44
+ * url: 'https://server.geo/wms',
45
+ * version: '1.3.0',
46
+ * name: 'REGION.2016',
47
+ * style: '',
48
+ * crs: 'EPSG:3857',
49
+ * extent: {
50
+ * west: '-6880639.13557728',
51
+ * east: '6215707.87974825',
52
+ * south: '-2438399.00148845',
53
+ * north: '7637050.03850605',
54
+ * },
55
+ * transparent: true,
56
+ * });
57
+ *
58
+ * // Create the layer
59
+ * const colorlayer = new itowns.ColorLayer('Region', {
60
+ * source: wmsSource,
61
+ * });
62
+ *
63
+ * // Add the layer
64
+ * view.addLayer(colorlayer);
65
+ */
66
+ declare class WMSSource extends Source {
67
+ isWMSSource: boolean;
68
+ name: any;
69
+ zoom: {
70
+ min: number;
71
+ max: number;
72
+ };
73
+ style: any;
74
+ width: any;
75
+ height: any;
76
+ version: any;
77
+ transparent: any;
78
+ bboxDigits: any;
79
+ axisOrder: any;
80
+ vendorSpecific: any;
81
+ url: string;
82
+ urlFromExtent(extentOrTile: any): string;
83
+ extentInsideLimit(extent: any): any;
84
+ }
85
+ import Source from '../Source/Source';
@@ -0,0 +1,65 @@
1
+ export default WMTSSource;
2
+ /**
3
+ * An object defining the source of resources to get from a
4
+ * [WMTS](http://www.opengeospatial.org/standards/wmts) server. It inherits
5
+ * from {@link TMSSource}.
6
+ *
7
+ * @extends TMSSource
8
+ *
9
+ * @property {boolean} isWMTSSource - Used to checkout whether this source is a
10
+ * WMTSSource. Default is true. You should not change this, as it is used
11
+ * internally for optimisation.
12
+ * @property {string} name - The name of the layer, used in the generation of
13
+ * the url.
14
+ * @property {string} version - The version of the WMTS server to request on.
15
+ * Default value is '1.0.0'.
16
+ * @property {string} style - The style to query on the WMTS server. Default
17
+ * value is 'normal'.
18
+ * @property {string} crs - The crs projection in which to fetch the data.
19
+ * @property {string} tileMatrixSet - Tile matrix set of the layer, used in the
20
+ * generation of the url. Default value is 'WGS84'.
21
+ * @property {Object} tileMatrixSetLimits - Limits of the tile matrix set. Each
22
+ * limit has for key its level number, and their properties are the
23
+ * `minTileRow`, `maxTileRow`, `minTileCol` and `maxTileCol`.
24
+ * @property {number} tileMatrixSetLimits.minTileRow - Minimum row for tiles at
25
+ * the specified level.
26
+ * @property {number} tileMatrixSetLimits.maxTileRow - Maximum row for tiles at
27
+ * the specified level.
28
+ * @property {number} tileMatrixSetLimits.minTileCol - Minimum column for tiles
29
+ * at the specified level.
30
+ * @property {number} tileMatrixSetLimits.maxTileCol - Maximum column for tiles
31
+ * at the specified level.
32
+ * @property {Object} zoom - Object containing the minimum and maximum values of
33
+ * the level, to zoom in the source.
34
+ * @property {number} zoom.min - The minimum level of the source. Default value
35
+ * is 2.
36
+ * @property {number} zoom.max - The maximum level of the source. Default value
37
+ * is 20.
38
+ * @property {Object} vendorSpecific - An object containing vendor specific
39
+ * parameters. This object is read simply with the `key` being the name of the
40
+ * parameter and `value` being the value of the parameter. If used, this
41
+ * property should be set in the constructor parameters.
42
+ *
43
+ * @example
44
+ * // Create the source
45
+ * const wmtsSource = new itowns.WMTSSource({
46
+ * name: 'DARK',
47
+ * tileMatrixSet: 'PM',
48
+ * url: 'http://server.geo/wmts',
49
+ * format: 'image/jpg',
50
+ * });
51
+ *
52
+ * // Create the layer
53
+ * const colorLayer = new itowns.ColorLayer('darkmap', {
54
+ * source: wmtsSource,
55
+ * });
56
+ *
57
+ * // Add the layer
58
+ * view.addLayer(colorLayer);
59
+ */
60
+ declare class WMTSSource extends TMSSource {
61
+ isWMTSSource: boolean;
62
+ vendorSpecific: any;
63
+ url: string;
64
+ }
65
+ import TMSSource from '../Source/TMSSource';
@@ -0,0 +1,9 @@
1
+ export default WebGL;
2
+ declare class WebGL {
3
+ static isWebGL2Available(): boolean;
4
+ static isColorSpaceAvailable(colorSpace: any): boolean;
5
+ static getWebGL2ErrorMessage(): HTMLDivElement;
6
+ static getErrorMessage(version: any): HTMLDivElement;
7
+ static isWebGLAvailable(): boolean;
8
+ static getWebGLErrorMessage(): HTMLDivElement;
9
+ }
@@ -0,0 +1,274 @@
1
+ declare const Z: 15;
2
+ declare const G: 2;
3
+ declare const Q: 14;
4
+ declare const q: 1;
5
+ declare const j: 0;
6
+ declare const J: 13;
7
+ declare const g: 1;
8
+ declare const p: 0;
9
+ declare const s: 0;
10
+ declare const U: 162;
11
+ declare const f: 160;
12
+ declare const c: 163;
13
+ declare const h: 161;
14
+ declare const l: 1;
15
+ declare const _: 166;
16
+ declare const o: 0;
17
+ declare const H: 6;
18
+ declare const N: 7;
19
+ declare const Y: 11;
20
+ declare const z: 4;
21
+ declare const M: 2;
22
+ declare const P: 3;
23
+ declare const C: 1;
24
+ declare const W: 5;
25
+ declare const R: 10;
26
+ declare const K: 8;
27
+ declare const X: 9;
28
+ declare const T: 0;
29
+ declare const et: 32;
30
+ declare const $: 128;
31
+ declare const nt: 16;
32
+ declare const tt: 64;
33
+ declare const F: 16;
34
+ declare const O: 17;
35
+ declare const E: 18;
36
+ declare const D: 7;
37
+ declare const k: 12;
38
+ declare const L: 9;
39
+ declare const B: 8;
40
+ declare const b: 3;
41
+ declare const x: 1;
42
+ declare const d: 4;
43
+ declare const I: 14;
44
+ declare const V: 13;
45
+ declare const v: 10;
46
+ declare const A: 11;
47
+ declare const w: 5;
48
+ declare const m: 6;
49
+ declare const u: 2;
50
+ declare const S: 15;
51
+ declare const y: 0;
52
+ declare const a: 0;
53
+ declare const r: 2;
54
+ declare const e: 1;
55
+ declare const t: 0;
56
+ declare const i: 3;
57
+ declare const n: 2;
58
+ declare class Ii {
59
+ vkFormat: number;
60
+ typeSize: number;
61
+ pixelWidth: number;
62
+ pixelHeight: number;
63
+ pixelDepth: number;
64
+ layerCount: number;
65
+ faceCount: number;
66
+ supercompressionScheme: number;
67
+ levels: any[];
68
+ dataFormatDescriptor: {
69
+ vendorId: number;
70
+ descriptorType: number;
71
+ descriptorBlockSize: number;
72
+ versionNumber: number;
73
+ colorModel: number;
74
+ colorPrimaries: number;
75
+ transferFunction: number;
76
+ flags: number;
77
+ texelBlockDimension: number[];
78
+ bytesPlane: number[];
79
+ samples: never[];
80
+ }[];
81
+ keyValue: {};
82
+ globalData: any;
83
+ }
84
+ declare const Ut: 8;
85
+ declare const Gt: 69;
86
+ declare const jt: 65;
87
+ declare const qt: 68;
88
+ declare const Yt: 64;
89
+ declare const Rt: 63;
90
+ declare const Kt: 59;
91
+ declare const Xt: 62;
92
+ declare const Nt: 58;
93
+ declare const Vi: 1000340001;
94
+ declare const ki: 1000340000;
95
+ declare const Li: 1000066011;
96
+ declare const Rn: 180;
97
+ declare const Xn: 179;
98
+ declare const mi: 1000066008;
99
+ declare const zn: 174;
100
+ declare const Pn: 173;
101
+ declare const Di: 1000066009;
102
+ declare const Hn: 176;
103
+ declare const Wn: 175;
104
+ declare const Bi: 1000066010;
105
+ declare const Kn: 178;
106
+ declare const Nn: 177;
107
+ declare const vi: 1000066012;
108
+ declare const jn: 182;
109
+ declare const Yn: 181;
110
+ declare const Ai: 1000066013;
111
+ declare const Gn: 184;
112
+ declare const qn: 183;
113
+ declare const pi: 1000066000;
114
+ declare const Dn: 158;
115
+ declare const mn: 157;
116
+ declare const gi: 1000066001;
117
+ declare const Ln: 160;
118
+ declare const Bn: 159;
119
+ declare const yi: 1000066002;
120
+ declare const An: 162;
121
+ declare const vn: 161;
122
+ declare const xi: 1000066003;
123
+ declare const Vn: 164;
124
+ declare const kn: 163;
125
+ declare const ui: 1000066004;
126
+ declare const Sn: 166;
127
+ declare const In: 165;
128
+ declare const bi: 1000066005;
129
+ declare const On: 168;
130
+ declare const Fn: 167;
131
+ declare const di: 1000066006;
132
+ declare const Tn: 170;
133
+ declare const En: 169;
134
+ declare const wi: 1000066007;
135
+ declare const Mn: 172;
136
+ declare const Cn: 171;
137
+ declare const We: 122;
138
+ declare const ti: 1000156011;
139
+ declare const ai: 1000156021;
140
+ declare const rt: 3;
141
+ declare const ht: 7;
142
+ declare const lt: 5;
143
+ declare const Wt: 49;
144
+ declare const Pt: 45;
145
+ declare const Ht: 50;
146
+ declare const zt: 48;
147
+ declare const Mt: 44;
148
+ declare const It: 35;
149
+ declare const kt: 31;
150
+ declare const St: 36;
151
+ declare const Vt: 34;
152
+ declare const At: 30;
153
+ declare const Ze: 134;
154
+ declare const Qe: 133;
155
+ declare const Je: 132;
156
+ declare const Ge: 131;
157
+ declare const tn: 136;
158
+ declare const $e: 135;
159
+ declare const nn: 138;
160
+ declare const en: 137;
161
+ declare const an: 140;
162
+ declare const sn: 139;
163
+ declare const on: 142;
164
+ declare const rn: 141;
165
+ declare const fn: 144;
166
+ declare const ln: 143;
167
+ declare const Un: 146;
168
+ declare const hn: 145;
169
+ declare const Ne: 124;
170
+ declare const Ye: 128;
171
+ declare const je: 129;
172
+ declare const Xe: 126;
173
+ declare const qe: 130;
174
+ declare const He: 123;
175
+ declare const wn: 156;
176
+ declare const dn: 155;
177
+ declare const bn: 154;
178
+ declare const un: 153;
179
+ declare const gn: 150;
180
+ declare const pn: 149;
181
+ declare const xn: 152;
182
+ declare const yn: 151;
183
+ declare const _n: 148;
184
+ declare const cn: 147;
185
+ declare const $n: 1000156010;
186
+ declare const si: 1000156020;
187
+ declare const hi: 1000054004;
188
+ declare const ri: 1000054000;
189
+ declare const Ui: 1000054005;
190
+ declare const oi: 1000054001;
191
+ declare const ci: 1000054006;
192
+ declare const li: 1000054002;
193
+ declare const _i: 1000054007;
194
+ declare const fi: 1000054003;
195
+ declare const Zn: 1000156009;
196
+ declare const Qn: 1000156008;
197
+ declare const Jn: 1000156007;
198
+ declare const ii: 1000156019;
199
+ declare const ni: 1000156018;
200
+ declare const ei: 1000156017;
201
+ declare const ge: 97;
202
+ declare const pe: 96;
203
+ declare const ce: 92;
204
+ declare const _e: 95;
205
+ declare const Ue: 91;
206
+ declare const he: 90;
207
+ declare const fe: 89;
208
+ declare const oe: 85;
209
+ declare const le: 88;
210
+ declare const re: 84;
211
+ declare const ae: 83;
212
+ declare const se: 82;
213
+ declare const ne: 78;
214
+ declare const ie: 81;
215
+ declare const ee: 77;
216
+ declare const te: 76;
217
+ declare const $t: 75;
218
+ declare const Qt: 71;
219
+ declare const Zt: 74;
220
+ declare const Jt: 70;
221
+ declare const Ae: 109;
222
+ declare const ve: 108;
223
+ declare const Le: 107;
224
+ declare const Be: 106;
225
+ declare const De: 105;
226
+ declare const me: 104;
227
+ declare const we: 103;
228
+ declare const de: 102;
229
+ declare const be: 101;
230
+ declare const ue: 100;
231
+ declare const xe: 99;
232
+ declare const ye: 98;
233
+ declare const at: 2;
234
+ declare const st: 1;
235
+ declare const ft: 6;
236
+ declare const ot: 4;
237
+ declare const ze: 121;
238
+ declare const Pe: 120;
239
+ declare const Me: 119;
240
+ declare const Ce: 118;
241
+ declare const Te: 117;
242
+ declare const Ee: 116;
243
+ declare const Oe: 115;
244
+ declare const Fe: 114;
245
+ declare const Se: 113;
246
+ declare const Ie: 112;
247
+ declare const Ve: 111;
248
+ declare const ke: 110;
249
+ declare const Tt: 42;
250
+ declare const Ot: 38;
251
+ declare const Ct: 43;
252
+ declare const Et: 41;
253
+ declare const Ft: 37;
254
+ declare const Lt: 28;
255
+ declare const Dt: 24;
256
+ declare const vt: 29;
257
+ declare const Bt: 27;
258
+ declare const mt: 23;
259
+ declare const dt: 21;
260
+ declare const ut: 17;
261
+ declare const wt: 22;
262
+ declare const bt: 20;
263
+ declare const xt: 16;
264
+ declare const gt: 14;
265
+ declare const _t: 10;
266
+ declare const yt: 15;
267
+ declare const pt: 13;
268
+ declare const ct: 9;
269
+ declare const Re: 127;
270
+ declare const it: 0;
271
+ declare const Ke: 125;
272
+ declare function Pi(t: any): Ii;
273
+ declare function Wi(t: any, e: any): Uint8Array<ArrayBuffer>;
274
+ export { Z as KHR_DF_CHANNEL_RGBSDA_ALPHA, G as KHR_DF_CHANNEL_RGBSDA_BLUE, Q as KHR_DF_CHANNEL_RGBSDA_DEPTH, q as KHR_DF_CHANNEL_RGBSDA_GREEN, j as KHR_DF_CHANNEL_RGBSDA_RED, J as KHR_DF_CHANNEL_RGBSDA_STENCIL, g as KHR_DF_FLAG_ALPHA_PREMULTIPLIED, p as KHR_DF_FLAG_ALPHA_STRAIGHT, s as KHR_DF_KHR_DESCRIPTORTYPE_BASICFORMAT, U as KHR_DF_MODEL_ASTC, f as KHR_DF_MODEL_ETC1, c as KHR_DF_MODEL_ETC1S, h as KHR_DF_MODEL_ETC2, l as KHR_DF_MODEL_RGBSDA, _ as KHR_DF_MODEL_UASTC, o as KHR_DF_MODEL_UNSPECIFIED, H as KHR_DF_PRIMARIES_ACES, N as KHR_DF_PRIMARIES_ACESCC, Y as KHR_DF_PRIMARIES_ADOBERGB, z as KHR_DF_PRIMARIES_BT2020, M as KHR_DF_PRIMARIES_BT601_EBU, P as KHR_DF_PRIMARIES_BT601_SMPTE, C as KHR_DF_PRIMARIES_BT709, W as KHR_DF_PRIMARIES_CIEXYZ, R as KHR_DF_PRIMARIES_DISPLAYP3, K as KHR_DF_PRIMARIES_NTSC1953, X as KHR_DF_PRIMARIES_PAL525, T as KHR_DF_PRIMARIES_UNSPECIFIED, et as KHR_DF_SAMPLE_DATATYPE_EXPONENT, $ as KHR_DF_SAMPLE_DATATYPE_FLOAT, nt as KHR_DF_SAMPLE_DATATYPE_LINEAR, tt as KHR_DF_SAMPLE_DATATYPE_SIGNED, F as KHR_DF_TRANSFER_ACESCC, O as KHR_DF_TRANSFER_ACESCCT, E as KHR_DF_TRANSFER_ADOBERGB, D as KHR_DF_TRANSFER_BT1886, k as KHR_DF_TRANSFER_DCIP3, L as KHR_DF_TRANSFER_HLG_EOTF, B as KHR_DF_TRANSFER_HLG_OETF, b as KHR_DF_TRANSFER_ITU, x as KHR_DF_TRANSFER_LINEAR, d as KHR_DF_TRANSFER_NTSC, I as KHR_DF_TRANSFER_PAL625_EOTF, V as KHR_DF_TRANSFER_PAL_OETF, v as KHR_DF_TRANSFER_PQ_EOTF, A as KHR_DF_TRANSFER_PQ_OETF, w as KHR_DF_TRANSFER_SLOG, m as KHR_DF_TRANSFER_SLOG2, u as KHR_DF_TRANSFER_SRGB, S as KHR_DF_TRANSFER_ST240, y as KHR_DF_TRANSFER_UNSPECIFIED, a as KHR_DF_VENDORID_KHRONOS, r as KHR_DF_VERSION, e as KHR_SUPERCOMPRESSION_BASISLZ, t as KHR_SUPERCOMPRESSION_NONE, i as KHR_SUPERCOMPRESSION_ZLIB, n as KHR_SUPERCOMPRESSION_ZSTD, Ii as KTX2Container, Ut as VK_FORMAT_A1R5G5B5_UNORM_PACK16, Gt as VK_FORMAT_A2B10G10R10_SINT_PACK32, jt as VK_FORMAT_A2B10G10R10_SNORM_PACK32, qt as VK_FORMAT_A2B10G10R10_UINT_PACK32, Yt as VK_FORMAT_A2B10G10R10_UNORM_PACK32, Rt as VK_FORMAT_A2R10G10B10_SINT_PACK32, Kt as VK_FORMAT_A2R10G10B10_SNORM_PACK32, Xt as VK_FORMAT_A2R10G10B10_UINT_PACK32, Nt as VK_FORMAT_A2R10G10B10_UNORM_PACK32, Vi as VK_FORMAT_A4B4G4R4_UNORM_PACK16_EXT, ki as VK_FORMAT_A4R4G4B4_UNORM_PACK16_EXT, Li as VK_FORMAT_ASTC_10x10_SFLOAT_BLOCK_EXT, Rn as VK_FORMAT_ASTC_10x10_SRGB_BLOCK, Xn as VK_FORMAT_ASTC_10x10_UNORM_BLOCK, mi as VK_FORMAT_ASTC_10x5_SFLOAT_BLOCK_EXT, zn as VK_FORMAT_ASTC_10x5_SRGB_BLOCK, Pn as VK_FORMAT_ASTC_10x5_UNORM_BLOCK, Di as VK_FORMAT_ASTC_10x6_SFLOAT_BLOCK_EXT, Hn as VK_FORMAT_ASTC_10x6_SRGB_BLOCK, Wn as VK_FORMAT_ASTC_10x6_UNORM_BLOCK, Bi as VK_FORMAT_ASTC_10x8_SFLOAT_BLOCK_EXT, Kn as VK_FORMAT_ASTC_10x8_SRGB_BLOCK, Nn as VK_FORMAT_ASTC_10x8_UNORM_BLOCK, vi as VK_FORMAT_ASTC_12x10_SFLOAT_BLOCK_EXT, jn as VK_FORMAT_ASTC_12x10_SRGB_BLOCK, Yn as VK_FORMAT_ASTC_12x10_UNORM_BLOCK, Ai as VK_FORMAT_ASTC_12x12_SFLOAT_BLOCK_EXT, Gn as VK_FORMAT_ASTC_12x12_SRGB_BLOCK, qn as VK_FORMAT_ASTC_12x12_UNORM_BLOCK, pi as VK_FORMAT_ASTC_4x4_SFLOAT_BLOCK_EXT, Dn as VK_FORMAT_ASTC_4x4_SRGB_BLOCK, mn as VK_FORMAT_ASTC_4x4_UNORM_BLOCK, gi as VK_FORMAT_ASTC_5x4_SFLOAT_BLOCK_EXT, Ln as VK_FORMAT_ASTC_5x4_SRGB_BLOCK, Bn as VK_FORMAT_ASTC_5x4_UNORM_BLOCK, yi as VK_FORMAT_ASTC_5x5_SFLOAT_BLOCK_EXT, An as VK_FORMAT_ASTC_5x5_SRGB_BLOCK, vn as VK_FORMAT_ASTC_5x5_UNORM_BLOCK, xi as VK_FORMAT_ASTC_6x5_SFLOAT_BLOCK_EXT, Vn as VK_FORMAT_ASTC_6x5_SRGB_BLOCK, kn as VK_FORMAT_ASTC_6x5_UNORM_BLOCK, ui as VK_FORMAT_ASTC_6x6_SFLOAT_BLOCK_EXT, Sn as VK_FORMAT_ASTC_6x6_SRGB_BLOCK, In as VK_FORMAT_ASTC_6x6_UNORM_BLOCK, bi as VK_FORMAT_ASTC_8x5_SFLOAT_BLOCK_EXT, On as VK_FORMAT_ASTC_8x5_SRGB_BLOCK, Fn as VK_FORMAT_ASTC_8x5_UNORM_BLOCK, di as VK_FORMAT_ASTC_8x6_SFLOAT_BLOCK_EXT, Tn as VK_FORMAT_ASTC_8x6_SRGB_BLOCK, En as VK_FORMAT_ASTC_8x6_UNORM_BLOCK, wi as VK_FORMAT_ASTC_8x8_SFLOAT_BLOCK_EXT, Mn as VK_FORMAT_ASTC_8x8_SRGB_BLOCK, Cn as VK_FORMAT_ASTC_8x8_UNORM_BLOCK, We as VK_FORMAT_B10G11R11_UFLOAT_PACK32, ti as VK_FORMAT_B10X6G10X6R10X6G10X6_422_UNORM_4PACK16, ai as VK_FORMAT_B12X4G12X4R12X4G12X4_422_UNORM_4PACK16, rt as VK_FORMAT_B4G4R4A4_UNORM_PACK16, ht as VK_FORMAT_B5G5R5A1_UNORM_PACK16, lt as VK_FORMAT_B5G6R5_UNORM_PACK16, Wt as VK_FORMAT_B8G8R8A8_SINT, Pt as VK_FORMAT_B8G8R8A8_SNORM, Ht as VK_FORMAT_B8G8R8A8_SRGB, zt as VK_FORMAT_B8G8R8A8_UINT, Mt as VK_FORMAT_B8G8R8A8_UNORM, It as VK_FORMAT_B8G8R8_SINT, kt as VK_FORMAT_B8G8R8_SNORM, St as VK_FORMAT_B8G8R8_SRGB, Vt as VK_FORMAT_B8G8R8_UINT, At as VK_FORMAT_B8G8R8_UNORM, Ze as VK_FORMAT_BC1_RGBA_SRGB_BLOCK, Qe as VK_FORMAT_BC1_RGBA_UNORM_BLOCK, Je as VK_FORMAT_BC1_RGB_SRGB_BLOCK, Ge as VK_FORMAT_BC1_RGB_UNORM_BLOCK, tn as VK_FORMAT_BC2_SRGB_BLOCK, $e as VK_FORMAT_BC2_UNORM_BLOCK, nn as VK_FORMAT_BC3_SRGB_BLOCK, en as VK_FORMAT_BC3_UNORM_BLOCK, an as VK_FORMAT_BC4_SNORM_BLOCK, sn as VK_FORMAT_BC4_UNORM_BLOCK, on as VK_FORMAT_BC5_SNORM_BLOCK, rn as VK_FORMAT_BC5_UNORM_BLOCK, fn as VK_FORMAT_BC6H_SFLOAT_BLOCK, ln as VK_FORMAT_BC6H_UFLOAT_BLOCK, Un as VK_FORMAT_BC7_SRGB_BLOCK, hn as VK_FORMAT_BC7_UNORM_BLOCK, Ne as VK_FORMAT_D16_UNORM, Ye as VK_FORMAT_D16_UNORM_S8_UINT, je as VK_FORMAT_D24_UNORM_S8_UINT, Xe as VK_FORMAT_D32_SFLOAT, qe as VK_FORMAT_D32_SFLOAT_S8_UINT, He as VK_FORMAT_E5B9G9R9_UFLOAT_PACK32, wn as VK_FORMAT_EAC_R11G11_SNORM_BLOCK, dn as VK_FORMAT_EAC_R11G11_UNORM_BLOCK, bn as VK_FORMAT_EAC_R11_SNORM_BLOCK, un as VK_FORMAT_EAC_R11_UNORM_BLOCK, gn as VK_FORMAT_ETC2_R8G8B8A1_SRGB_BLOCK, pn as VK_FORMAT_ETC2_R8G8B8A1_UNORM_BLOCK, xn as VK_FORMAT_ETC2_R8G8B8A8_SRGB_BLOCK, yn as VK_FORMAT_ETC2_R8G8B8A8_UNORM_BLOCK, _n as VK_FORMAT_ETC2_R8G8B8_SRGB_BLOCK, cn as VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK, $n as VK_FORMAT_G10X6B10X6G10X6R10X6_422_UNORM_4PACK16, si as VK_FORMAT_G12X4B12X4G12X4R12X4_422_UNORM_4PACK16, hi as VK_FORMAT_PVRTC1_2BPP_SRGB_BLOCK_IMG, ri as VK_FORMAT_PVRTC1_2BPP_UNORM_BLOCK_IMG, Ui as VK_FORMAT_PVRTC1_4BPP_SRGB_BLOCK_IMG, oi as VK_FORMAT_PVRTC1_4BPP_UNORM_BLOCK_IMG, ci as VK_FORMAT_PVRTC2_2BPP_SRGB_BLOCK_IMG, li as VK_FORMAT_PVRTC2_2BPP_UNORM_BLOCK_IMG, _i as VK_FORMAT_PVRTC2_4BPP_SRGB_BLOCK_IMG, fi as VK_FORMAT_PVRTC2_4BPP_UNORM_BLOCK_IMG, Zn as VK_FORMAT_R10X6G10X6B10X6A10X6_UNORM_4PACK16, Qn as VK_FORMAT_R10X6G10X6_UNORM_2PACK16, Jn as VK_FORMAT_R10X6_UNORM_PACK16, ii as VK_FORMAT_R12X4G12X4B12X4A12X4_UNORM_4PACK16, ni as VK_FORMAT_R12X4G12X4_UNORM_2PACK16, ei as VK_FORMAT_R12X4_UNORM_PACK16, ge as VK_FORMAT_R16G16B16A16_SFLOAT, pe as VK_FORMAT_R16G16B16A16_SINT, ce as VK_FORMAT_R16G16B16A16_SNORM, _e as VK_FORMAT_R16G16B16A16_UINT, Ue as VK_FORMAT_R16G16B16A16_UNORM, he as VK_FORMAT_R16G16B16_SFLOAT, fe as VK_FORMAT_R16G16B16_SINT, oe as VK_FORMAT_R16G16B16_SNORM, le as VK_FORMAT_R16G16B16_UINT, re as VK_FORMAT_R16G16B16_UNORM, ae as VK_FORMAT_R16G16_SFLOAT, se as VK_FORMAT_R16G16_SINT, ne as VK_FORMAT_R16G16_SNORM, ie as VK_FORMAT_R16G16_UINT, ee as VK_FORMAT_R16G16_UNORM, te as VK_FORMAT_R16_SFLOAT, $t as VK_FORMAT_R16_SINT, Qt as VK_FORMAT_R16_SNORM, Zt as VK_FORMAT_R16_UINT, Jt as VK_FORMAT_R16_UNORM, Ae as VK_FORMAT_R32G32B32A32_SFLOAT, ve as VK_FORMAT_R32G32B32A32_SINT, Le as VK_FORMAT_R32G32B32A32_UINT, Be as VK_FORMAT_R32G32B32_SFLOAT, De as VK_FORMAT_R32G32B32_SINT, me as VK_FORMAT_R32G32B32_UINT, we as VK_FORMAT_R32G32_SFLOAT, de as VK_FORMAT_R32G32_SINT, be as VK_FORMAT_R32G32_UINT, ue as VK_FORMAT_R32_SFLOAT, xe as VK_FORMAT_R32_SINT, ye as VK_FORMAT_R32_UINT, at as VK_FORMAT_R4G4B4A4_UNORM_PACK16, st as VK_FORMAT_R4G4_UNORM_PACK8, ft as VK_FORMAT_R5G5B5A1_UNORM_PACK16, ot as VK_FORMAT_R5G6B5_UNORM_PACK16, ze as VK_FORMAT_R64G64B64A64_SFLOAT, Pe as VK_FORMAT_R64G64B64A64_SINT, Me as VK_FORMAT_R64G64B64A64_UINT, Ce as VK_FORMAT_R64G64B64_SFLOAT, Te as VK_FORMAT_R64G64B64_SINT, Ee as VK_FORMAT_R64G64B64_UINT, Oe as VK_FORMAT_R64G64_SFLOAT, Fe as VK_FORMAT_R64G64_SINT, Se as VK_FORMAT_R64G64_UINT, Ie as VK_FORMAT_R64_SFLOAT, Ve as VK_FORMAT_R64_SINT, ke as VK_FORMAT_R64_UINT, Tt as VK_FORMAT_R8G8B8A8_SINT, Ot as VK_FORMAT_R8G8B8A8_SNORM, Ct as VK_FORMAT_R8G8B8A8_SRGB, Et as VK_FORMAT_R8G8B8A8_UINT, Ft as VK_FORMAT_R8G8B8A8_UNORM, Lt as VK_FORMAT_R8G8B8_SINT, Dt as VK_FORMAT_R8G8B8_SNORM, vt as VK_FORMAT_R8G8B8_SRGB, Bt as VK_FORMAT_R8G8B8_UINT, mt as VK_FORMAT_R8G8B8_UNORM, dt as VK_FORMAT_R8G8_SINT, ut as VK_FORMAT_R8G8_SNORM, wt as VK_FORMAT_R8G8_SRGB, bt as VK_FORMAT_R8G8_UINT, xt as VK_FORMAT_R8G8_UNORM, gt as VK_FORMAT_R8_SINT, _t as VK_FORMAT_R8_SNORM, yt as VK_FORMAT_R8_SRGB, pt as VK_FORMAT_R8_UINT, ct as VK_FORMAT_R8_UNORM, Re as VK_FORMAT_S8_UINT, it as VK_FORMAT_UNDEFINED, Ke as VK_FORMAT_X8_D24_UNORM_PACK32, Pi as read, Wi as write };
@@ -0,0 +1,64 @@
1
+ export namespace Constants {
2
+ let Handedness: Readonly<{
3
+ NONE: "none";
4
+ LEFT: "left";
5
+ RIGHT: "right";
6
+ }>;
7
+ let ComponentState: Readonly<{
8
+ DEFAULT: "default";
9
+ TOUCHED: "touched";
10
+ PRESSED: "pressed";
11
+ }>;
12
+ let ComponentProperty: Readonly<{
13
+ BUTTON: "button";
14
+ X_AXIS: "xAxis";
15
+ Y_AXIS: "yAxis";
16
+ STATE: "state";
17
+ }>;
18
+ let ComponentType: Readonly<{
19
+ TRIGGER: "trigger";
20
+ SQUEEZE: "squeeze";
21
+ TOUCHPAD: "touchpad";
22
+ THUMBSTICK: "thumbstick";
23
+ BUTTON: "button";
24
+ }>;
25
+ let ButtonTouchThreshold: number;
26
+ let AxisTouchThreshold: number;
27
+ let VisualResponseProperty: Readonly<{
28
+ TRANSFORM: "transform";
29
+ VISIBILITY: "visibility";
30
+ }>;
31
+ }
32
+ /**
33
+ * @description Builds a motion controller with components and visual responses based on the
34
+ * supplied profile description. Data is polled from the xrInputSource's gamepad.
35
+ * @author Nell Waliczek / https://github.com/NellWaliczek
36
+ */
37
+ export class MotionController {
38
+ /**
39
+ * @param {Object} xrInputSource - The XRInputSource to build the MotionController around
40
+ * @param {Object} profile - The best matched profile description for the supplied xrInputSource
41
+ * @param {Object} assetUrl
42
+ */
43
+ constructor(xrInputSource: Object, profile: Object, assetUrl: Object);
44
+ xrInputSource: Object;
45
+ assetUrl: Object;
46
+ id: any;
47
+ layoutDescription: any;
48
+ components: {};
49
+ get gripSpace(): any;
50
+ get targetRaySpace(): any;
51
+ /**
52
+ * @description Returns a subset of component data for simplified debugging
53
+ */
54
+ get data(): any[];
55
+ /**
56
+ * @description Poll for updated data based on current gamepad state
57
+ */
58
+ updateFromGamepad(): void;
59
+ }
60
+ export function fetchProfile(xrInputSource: any, basePath: any, defaultProfile?: null, getAssetPath?: boolean): Promise<{
61
+ profile: any;
62
+ assetPath: string | undefined;
63
+ }>;
64
+ export function fetchProfilesList(basePath: any): Promise<any>;