getfloorplan-gltf-widget 1.11.29

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 (234) hide show
  1. package/README.md +346 -0
  2. package/build/AIXSolutionsVendor.css +1 -0
  3. package/build/Api.js +54 -0
  4. package/build/ClassMaker-DarbH_-a.js +14268 -0
  5. package/build/DebugPanelPlugin.css +1 -0
  6. package/build/Waiter-DTIFLXLw.js +190 -0
  7. package/build/createWidget.css +1 -0
  8. package/build/createWidget.js +34244 -0
  9. package/build/index.js +6 -0
  10. package/build/plugins/DebugPanelPlugin.js +8395 -0
  11. package/build/plugins/SentryPlugin.js +16228 -0
  12. package/build/preventDefault-CoB0CvuT.js +5956 -0
  13. package/build/types/Widget.d.ts +8 -0
  14. package/build/types/api/Api.d.ts +11 -0
  15. package/build/types/api/lib/ApiConstructor.d.ts +8 -0
  16. package/build/types/api/lib/NetworkFallback/index.d.ts +13 -0
  17. package/build/types/api/lib/NetworkFallback/types/TNetworkFallbackConfig.d.ts +59 -0
  18. package/build/types/api/stores/ApiStore/ApiBranding.d.ts +15 -0
  19. package/build/types/api/stores/ApiStore/ApiExplorer.d.ts +34 -0
  20. package/build/types/api/stores/ApiStore/ApiFallback.d.ts +8 -0
  21. package/build/types/api/stores/ApiStore/ApiJson.d.ts +8 -0
  22. package/build/types/api/stores/ApiStore/index.d.ts +29 -0
  23. package/build/types/api/types/TApi/TAperture.d.ts +15 -0
  24. package/build/types/api/types/TApi/TCameraPoint.d.ts +10 -0
  25. package/build/types/api/types/TApi/TCapabilities.d.ts +16 -0
  26. package/build/types/api/types/TApi/TDoor.d.ts +20 -0
  27. package/build/types/api/types/TApi/TFloorData.d.ts +35 -0
  28. package/build/types/api/types/TApi/TIsometricViewData.d.ts +5 -0
  29. package/build/types/api/types/TApi/TLosslessFormat.d.ts +1 -0
  30. package/build/types/api/types/TApi/TLossyFormat.d.ts +1 -0
  31. package/build/types/api/types/TApi/TPanoramaViewData.d.ts +5 -0
  32. package/build/types/api/types/TApi/TPortal.d.ts +11 -0
  33. package/build/types/api/types/TApi/TRenderingSettings.d.ts +14 -0
  34. package/build/types/api/types/TApi/TSceneGeometry.d.ts +7 -0
  35. package/build/types/api/types/TApi/TStair.d.ts +7 -0
  36. package/build/types/api/types/TApi/TTopViewData.d.ts +5 -0
  37. package/build/types/api/types/TApi/TVariant.d.ts +20 -0
  38. package/build/types/api/types/TApi/TWidgetBranding.d.ts +23 -0
  39. package/build/types/api/types/TApi/index.d.ts +8 -0
  40. package/build/types/api/types/TApiError.d.ts +6 -0
  41. package/build/types/api/types/TGLTFData/TGLTFDataV0.d.ts +5 -0
  42. package/build/types/api/types/TGLTFData/TGLTFDataV1.d.ts +21 -0
  43. package/build/types/api/types/TGLTFData/index.d.ts +3 -0
  44. package/build/types/assets/img/index.d.ts +2 -0
  45. package/build/types/components/ApplicationWrapper.d.ts +2 -0
  46. package/build/types/components/EditorApplication/index.d.ts +4 -0
  47. package/build/types/components/WidgetApplication/AdditionalFrame/index.d.ts +2 -0
  48. package/build/types/components/WidgetApplication/ControlPanel/ButtonsContainer/SettingsButton/index.d.ts +3 -0
  49. package/build/types/components/WidgetApplication/ControlPanel/ButtonsContainer/VisibilityButton/index.d.ts +3 -0
  50. package/build/types/components/WidgetApplication/ControlPanel/ButtonsContainer/index.d.ts +3 -0
  51. package/build/types/components/WidgetApplication/ControlPanel/ControlButtons/index.d.ts +3 -0
  52. package/build/types/components/WidgetApplication/ControlPanel/SettingsFrame/index.d.ts +3 -0
  53. package/build/types/components/WidgetApplication/ControlPanel/index.d.ts +3 -0
  54. package/build/types/components/WidgetApplication/ErrorScreen/ErrorScreenWrapper.d.ts +2 -0
  55. package/build/types/components/WidgetApplication/ErrorScreen/index.d.ts +8 -0
  56. package/build/types/components/WidgetApplication/FullscreenButton/index.d.ts +2 -0
  57. package/build/types/components/WidgetApplication/LoadingScreen/index.d.ts +3 -0
  58. package/build/types/components/WidgetApplication/Logger/index.d.ts +3 -0
  59. package/build/types/components/WidgetApplication/Logo/index.d.ts +3 -0
  60. package/build/types/components/WidgetApplication/MadeBy/index.d.ts +3 -0
  61. package/build/types/components/WidgetApplication/MapOverlay/index.d.ts +3 -0
  62. package/build/types/components/WidgetApplication/RoomLabel/index.d.ts +8 -0
  63. package/build/types/components/WidgetApplication/Tabs/Tab2D/index.d.ts +3 -0
  64. package/build/types/components/WidgetApplication/Tabs/Tab360/index.d.ts +3 -0
  65. package/build/types/components/WidgetApplication/Tabs/index.d.ts +3 -0
  66. package/build/types/components/WidgetApplication/index.d.ts +5 -0
  67. package/build/types/components/WidgetApplication/shared/DoorLinkRenderer/DoorLink.d.ts +10 -0
  68. package/build/types/components/WidgetApplication/shared/DoorLinkRenderer/index.d.ts +3 -0
  69. package/build/types/components/WidgetApplication/shared/Map/Camera.d.ts +10 -0
  70. package/build/types/components/WidgetApplication/shared/Map/CurrentCamera.d.ts +8 -0
  71. package/build/types/components/WidgetApplication/shared/Map/index.d.ts +9 -0
  72. package/build/types/components/WidgetApplication/shared/RoomLinkRenderer/RoomLink.d.ts +10 -0
  73. package/build/types/components/WidgetApplication/shared/RoomLinkRenderer/index.d.ts +3 -0
  74. package/build/types/components/WidgetApplication/shared/TransformImage/index.d.ts +5 -0
  75. package/build/types/components/WidgetApplication/ui/BorderFrame/index.d.ts +5 -0
  76. package/build/types/components/WidgetApplication/ui/FloatButton/index.d.ts +7 -0
  77. package/build/types/config/2d/TTab2DConfig.d.ts +6 -0
  78. package/build/types/config/2d/Tab2DDefaults.d.ts +2 -0
  79. package/build/types/config/360/TTab360Config.d.ts +28 -0
  80. package/build/types/config/360/Tab360Defaults.d.ts +2 -0
  81. package/build/types/config/360/camera/CameraDefaults.d.ts +2 -0
  82. package/build/types/config/360/camera/TCameraConfig.d.ts +5 -0
  83. package/build/types/config/360/collider/ColliderDefaults.d.ts +2 -0
  84. package/build/types/config/360/collider/TColliderConfig.d.ts +4 -0
  85. package/build/types/config/3d/TTab3DConfig.d.ts +24 -0
  86. package/build/types/config/3d/Tab3DDefaults.d.ts +2 -0
  87. package/build/types/config/TConfig.d.ts +65 -0
  88. package/build/types/config/TExternalConfig.d.ts +3 -0
  89. package/build/types/config/defaultConfig.d.ts +2 -0
  90. package/build/types/config/doorLink/DoorLinkDefaults.d.ts +2 -0
  91. package/build/types/config/doorLink/TDoorLinkConfig.d.ts +18 -0
  92. package/build/types/config/loader/LoaderConfig.d.ts +2 -0
  93. package/build/types/config/loader/TLoaderConfig.d.ts +6 -0
  94. package/build/types/config/material/MaterialConfig.d.ts +5 -0
  95. package/build/types/config/query/QueryDefaults.d.ts +2 -0
  96. package/build/types/config/query/TQueryConfig.d.ts +14 -0
  97. package/build/types/config/roomLink/RoomLinkDefaults.d.ts +2 -0
  98. package/build/types/config/roomLink/TRoomLinkConfig.d.ts +20 -0
  99. package/build/types/config/topView/TTabTopViewConfig.d.ts +16 -0
  100. package/build/types/config/topView/TabTopViewDefaults.d.ts +2 -0
  101. package/build/types/config/watermark/TWatermarkConfig.d.ts +12 -0
  102. package/build/types/config/watermark/WatermarkDefaults.d.ts +2 -0
  103. package/build/types/controllers/CameraController/Handler360/index.d.ts +52 -0
  104. package/build/types/controllers/CameraController/Handler3D/Events3D.d.ts +31 -0
  105. package/build/types/controllers/CameraController/Handler3D/index.d.ts +50 -0
  106. package/build/types/controllers/CameraController/HandlerTopView/EventsTopView.d.ts +26 -0
  107. package/build/types/controllers/CameraController/HandlerTopView/index.d.ts +49 -0
  108. package/build/types/controllers/CameraController/index.d.ts +49 -0
  109. package/build/types/controllers/PanZoomController/index.d.ts +40 -0
  110. package/build/types/controllers/Scene360Controller/RaycastHandler.d.ts +57 -0
  111. package/build/types/controllers/Scene360Controller/SceneAnimationHandler.d.ts +23 -0
  112. package/build/types/controllers/Scene360Controller/index.d.ts +34 -0
  113. package/build/types/createWidget/TWidgetInputParams.d.ts +11 -0
  114. package/build/types/createWidget/WidgetBuilder.d.ts +20 -0
  115. package/build/types/createWidget/WidgetDirector.d.ts +4 -0
  116. package/build/types/createWidget/createWidget.d.ts +6 -0
  117. package/build/types/enums/MouseButton.d.ts +5 -0
  118. package/build/types/enums/RoomIcons.d.ts +1 -0
  119. package/build/types/lib/Arrayf.d.ts +10 -0
  120. package/build/types/lib/ClassMaker.d.ts +5 -0
  121. package/build/types/lib/CollisionResolver.d.ts +6 -0
  122. package/build/types/lib/ColorRgba.d.ts +63 -0
  123. package/build/types/lib/Device.d.ts +6 -0
  124. package/build/types/lib/Line2.d.ts +21 -0
  125. package/build/types/lib/Mathf.d.ts +30 -0
  126. package/build/types/lib/Objectf.d.ts +5 -0
  127. package/build/types/lib/Polygon2.d.ts +41 -0
  128. package/build/types/lib/RoomApertureResolver.d.ts +12 -0
  129. package/build/types/lib/Sprintf.d.ts +3 -0
  130. package/build/types/lib/TemplateDecoder.d.ts +20 -0
  131. package/build/types/lib/ThreeNormal.d.ts +7 -0
  132. package/build/types/lib/TopViewHelper.d.ts +7 -0
  133. package/build/types/lib/TypedObserver.d.ts +14 -0
  134. package/build/types/lib/UnrealToThree.d.ts +10 -0
  135. package/build/types/lib/V3.d.ts +45 -0
  136. package/build/types/lib/Vector2.d.ts +67 -0
  137. package/build/types/lib/Waiter.d.ts +4 -0
  138. package/build/types/lib/preventDefault.d.ts +1 -0
  139. package/build/types/lib/unused.d.ts +3 -0
  140. package/build/types/locale/index.d.ts +53 -0
  141. package/build/types/locale/types/TLocaleOverrides.d.ts +23 -0
  142. package/build/types/plugins/IPlugin.d.ts +12 -0
  143. package/build/types/plugins/PluginManager.d.ts +21 -0
  144. package/build/types/resources/GLTFResource/GLTFNormalizer.d.ts +19 -0
  145. package/build/types/resources/GLTFResource/index.d.ts +17 -0
  146. package/build/types/resources/TextureResource.d.ts +9 -0
  147. package/build/types/scenes/Scene360/core/Camera.d.ts +13 -0
  148. package/build/types/scenes/Scene360/core/Renderer.d.ts +11 -0
  149. package/build/types/scenes/Scene360/core/SideRenderer.d.ts +5 -0
  150. package/build/types/scenes/Scene360/core/ViewPoint.d.ts +8 -0
  151. package/build/types/scenes/Scene360/index.d.ts +27 -0
  152. package/build/types/scenes/Scene360/objects/Cursor3D.d.ts +16 -0
  153. package/build/types/scenes/Scene360/objects/EnvMap.d.ts +15 -0
  154. package/build/types/scenes/Scene360/objects/GLTFObject.d.ts +22 -0
  155. package/build/types/solid-js/makeStore.d.ts +1 -0
  156. package/build/types/store/ConfigStore/index.d.ts +43 -0
  157. package/build/types/store/ContainerStore/index.d.ts +39 -0
  158. package/build/types/store/DoorLinkStore/index.d.ts +41 -0
  159. package/build/types/store/EditorStore/index.d.ts +13 -0
  160. package/build/types/store/ErrorScreenStore/index.d.ts +19 -0
  161. package/build/types/store/ErrorStore/index.d.ts +14 -0
  162. package/build/types/store/FurnitureStore/index.d.ts +24 -0
  163. package/build/types/store/IndexStore/IndexResolver.d.ts +17 -0
  164. package/build/types/store/IndexStore/index.d.ts +34 -0
  165. package/build/types/store/LoadingStore/index.d.ts +22 -0
  166. package/build/types/store/LocaleStore/index.d.ts +29 -0
  167. package/build/types/store/LoggerStore/index.d.ts +13 -0
  168. package/build/types/store/MapStore/index.d.ts +23 -0
  169. package/build/types/store/OverrideStore/index.d.ts +31 -0
  170. package/build/types/store/RaycastStore/index.d.ts +13 -0
  171. package/build/types/store/RoomLinkStore/index.d.ts +47 -0
  172. package/build/types/store/SettingsStore/index.d.ts +16 -0
  173. package/build/types/store/TabStore/Tab2DStore/index.d.ts +12 -0
  174. package/build/types/store/TabStore/Tab360Store/index.d.ts +37 -0
  175. package/build/types/store/TabStore/index.d.ts +32 -0
  176. package/build/types/store/TexturePackStore/index.d.ts +16 -0
  177. package/build/types/store/VertexStore/index.d.ts +21 -0
  178. package/build/types/store/VisibilityStore/index.d.ts +17 -0
  179. package/build/types/store/WallStore/index.d.ts +22 -0
  180. package/build/types/store/index.d.ts +55 -0
  181. package/build/types/three/EnvMapMaterial/index.d.ts +15 -0
  182. package/build/types/three/GFPGLTFLoader/GLTFParser.d.ts +226 -0
  183. package/build/types/three/GFPGLTFLoader/GLTFRegistry.d.ts +7 -0
  184. package/build/types/three/GFPGLTFLoader/constants/ALPHA_MODES.d.ts +5 -0
  185. package/build/types/three/GFPGLTFLoader/constants/ATTRIBUTES.d.ts +1 -0
  186. package/build/types/three/GFPGLTFLoader/constants/EXTENSIONS.d.ts +24 -0
  187. package/build/types/three/GFPGLTFLoader/constants/INTERPOLATION.d.ts +1 -0
  188. package/build/types/three/GFPGLTFLoader/constants/PATH_PROPERTIES.d.ts +1 -0
  189. package/build/types/three/GFPGLTFLoader/constants/WEBGL_COMPONENT_TYPES.d.ts +1 -0
  190. package/build/types/three/GFPGLTFLoader/constants/WEBGL_CONSTANTS.d.ts +20 -0
  191. package/build/types/three/GFPGLTFLoader/constants/WEBGL_FILTERS.d.ts +1 -0
  192. package/build/types/three/GFPGLTFLoader/constants/WEBGL_TYPE_SIZES.d.ts +1 -0
  193. package/build/types/three/GFPGLTFLoader/constants/WEBGL_WRAPPINGS.d.ts +1 -0
  194. package/build/types/three/GFPGLTFLoader/extensions/GLTFBinaryExtension.d.ts +13 -0
  195. package/build/types/three/GFPGLTFLoader/extensions/GLTFDracoMeshCompressionExtension.d.ts +16 -0
  196. package/build/types/three/GFPGLTFLoader/extensions/GLTFMaterialsEmissiveStrengthExtension.d.ts +14 -0
  197. package/build/types/three/GFPGLTFLoader/extensions/GLTFMaterialsTransmissionExtension.d.ts +17 -0
  198. package/build/types/three/GFPGLTFLoader/extensions/GLTFMaterialsUnlitExtension.d.ts +15 -0
  199. package/build/types/three/GFPGLTFLoader/extensions/GLTFMeshGpuInstancing.d.ts +14 -0
  200. package/build/types/three/GFPGLTFLoader/extensions/GLTFMeshQuantizationExtension.d.ts +11 -0
  201. package/build/types/three/GFPGLTFLoader/extensions/GLTFMeshoptCompression.d.ts +14 -0
  202. package/build/types/three/GFPGLTFLoader/extensions/GLTFTextureAVIFExtension.d.ts +14 -0
  203. package/build/types/three/GFPGLTFLoader/extensions/GLTFTextureBasisUExtension.d.ts +14 -0
  204. package/build/types/three/GFPGLTFLoader/extensions/GLTFTextureTransformExtension.d.ts +13 -0
  205. package/build/types/three/GFPGLTFLoader/extensions/GLTFTextureWebPExtension.d.ts +14 -0
  206. package/build/types/three/GFPGLTFLoader/index.d.ts +24 -0
  207. package/build/types/three/GFPGLTFLoader/lib/GLTFCubicSplineInterpolant.d.ts +6 -0
  208. package/build/types/three/GFPGLTFLoader/lib/GLTFCubicSplineQuaternionInterpolant.d.ts +4 -0
  209. package/build/types/three/GFPGLTFLoader/utils/addMorphTargets.d.ts +12 -0
  210. package/build/types/three/GFPGLTFLoader/utils/addPrimitiveAttributes.d.ts +9 -0
  211. package/build/types/three/GFPGLTFLoader/utils/addUnknownExtensionsToUserData.d.ts +1 -0
  212. package/build/types/three/GFPGLTFLoader/utils/assignExtrasToUserData.d.ts +7 -0
  213. package/build/types/three/GFPGLTFLoader/utils/computeBounds.d.ts +8 -0
  214. package/build/types/three/GFPGLTFLoader/utils/createAttributesKey.d.ts +1 -0
  215. package/build/types/three/GFPGLTFLoader/utils/createDefaultMaterial.d.ts +10 -0
  216. package/build/types/three/GFPGLTFLoader/utils/createPrimitiveKey.d.ts +1 -0
  217. package/build/types/three/GFPGLTFLoader/utils/getImageURIMimeType.d.ts +1 -0
  218. package/build/types/three/GFPGLTFLoader/utils/getNormalizedComponentScale.d.ts +1 -0
  219. package/build/types/three/GFPGLTFLoader/utils/updateMorphTargets.d.ts +7 -0
  220. package/build/types/three/SmartGLTFLoader.d.ts +11 -0
  221. package/build/types/three/UnrealMaterial/index.d.ts +91 -0
  222. package/build/types/types/DeepPartial.d.ts +3 -0
  223. package/build/types/types/DeepRequired.d.ts +3 -0
  224. package/build/types/types/IStoreProps.d.ts +4 -0
  225. package/build/types/types/Nullable.d.ts +1 -0
  226. package/build/types/types/TBuilding.d.ts +218 -0
  227. package/build/types/types/TGLTF.d.ts +14 -0
  228. package/build/types/types/TGLTFJson.d.ts +52 -0
  229. package/build/types/types/TTelemetry.d.ts +19 -0
  230. package/build/types/types/Tuple.d.ts +4 -0
  231. package/build/types/vendors/AIXSolutionsVendor/config/TAIXSolutionsConfig.d.ts +16 -0
  232. package/build/types/vendors/TVendorsConfig.d.ts +4 -0
  233. package/build/vendors/AIXSolutionsVendor.js +763 -0
  234. package/package.json +93 -0
@@ -0,0 +1,13 @@
1
+ export declare const BINARY_EXTENSION_HEADER_MAGIC = "glTF";
2
+ export declare const BINARY_EXTENSION_HEADER_LENGTH = 12;
3
+ export declare const BINARY_EXTENSION_CHUNK_TYPES: {
4
+ JSON: number;
5
+ BIN: number;
6
+ };
7
+ export declare class GLTFBinaryExtension {
8
+ name: string;
9
+ content: any | null;
10
+ body: any | null;
11
+ header: any;
12
+ constructor(data: any);
13
+ }
@@ -0,0 +1,16 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ import type { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
3
+ /**
4
+ * DRACO Mesh Compression Extension
5
+ *
6
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_draco_mesh_compression
7
+ *
8
+ * @private
9
+ */
10
+ export declare class GLTFDracoMeshCompressionExtension {
11
+ name: string;
12
+ json: any;
13
+ dracoLoader: DRACOLoader;
14
+ constructor(json: any, dracoLoader: DRACOLoader);
15
+ decodePrimitive(primitive: any, parser: GLTFParser): any;
16
+ }
@@ -0,0 +1,14 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ /**
3
+ * Materials Emissive Strength Extension
4
+ *
5
+ * Specification: https://github.com/KhronosGroup/glTF/blob/5768b3ce0ef32bc39cdf1bef10b948586635ead3/extensions/2.0/Khronos/KHR_materials_emissive_strength/README.md
6
+ *
7
+ * @private
8
+ */
9
+ export declare class GLTFMaterialsEmissiveStrengthExtension {
10
+ parser: GLTFParser;
11
+ name: string;
12
+ constructor(parser: GLTFParser);
13
+ extendMaterialParams(materialIndex: number, materialParams: Record<string, any>): Promise<void>;
14
+ }
@@ -0,0 +1,17 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ import { UnrealMaterial } from 'three/UnrealMaterial';
3
+ /**
4
+ * Transmission Materials Extension
5
+ *
6
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_transmission
7
+ * Draft: https://github.com/KhronosGroup/glTF/pull/1698
8
+ *
9
+ * @private
10
+ */
11
+ export declare class GLTFMaterialsTransmissionExtension {
12
+ parser: GLTFParser;
13
+ name: string;
14
+ constructor(parser: GLTFParser);
15
+ getMaterialType(materialIndex: number): typeof UnrealMaterial | null;
16
+ extendMaterialParams(materialIndex: number, materialParams: Record<string, any>): Promise<void> | Promise<import("three").Texture[]>;
17
+ }
@@ -0,0 +1,15 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ import { UnrealMaterial } from 'three/UnrealMaterial';
3
+ /**
4
+ * Unlit Materials Extension
5
+ *
6
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_unlit
7
+ *
8
+ * @private
9
+ */
10
+ export declare class GLTFMaterialsUnlitExtension {
11
+ name: string;
12
+ constructor();
13
+ getMaterialType(): typeof UnrealMaterial;
14
+ extendParams(materialParams: Record<string, any>, materialDef: Record<string, any>, parser: GLTFParser): Promise<import("three").Texture[]>;
15
+ }
@@ -0,0 +1,14 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ /**
3
+ * GPU Instancing Extension
4
+ *
5
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_mesh_gpu_instancing
6
+ *
7
+ * @private
8
+ */
9
+ export declare class GLTFMeshGpuInstancing {
10
+ parser: GLTFParser;
11
+ name: string;
12
+ constructor(parser: GLTFParser);
13
+ createNodeMesh(nodeIndex: number): Promise<any> | null;
14
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Mesh Quantization Extension
3
+ *
4
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_mesh_quantization
5
+ *
6
+ * @private
7
+ */
8
+ export declare class GLTFMeshQuantizationExtension {
9
+ name: string;
10
+ constructor();
11
+ }
@@ -0,0 +1,14 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ /**
3
+ * meshopt BufferView Compression Extension
4
+ *
5
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_meshopt_compression
6
+ *
7
+ * @private
8
+ */
9
+ export declare class GLTFMeshoptCompression {
10
+ parser: GLTFParser;
11
+ name: string;
12
+ constructor(parser: GLTFParser);
13
+ loadBufferView(index: number): any;
14
+ }
@@ -0,0 +1,14 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ /**
3
+ * AVIF Texture Extension
4
+ *
5
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_texture_avif
6
+ *
7
+ * @private
8
+ */
9
+ export declare class GLTFTextureAVIFExtension {
10
+ parser: GLTFParser;
11
+ name: string;
12
+ constructor(parser: GLTFParser);
13
+ loadTexture(textureIndex: number): any;
14
+ }
@@ -0,0 +1,14 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ /**
3
+ * BasisU Texture Extension
4
+ *
5
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_basisu
6
+ *
7
+ * @private
8
+ */
9
+ export declare class GLTFTextureBasisUExtension {
10
+ parser: GLTFParser;
11
+ name: string;
12
+ constructor(parser: GLTFParser);
13
+ loadTexture(textureIndex: number): any;
14
+ }
@@ -0,0 +1,13 @@
1
+ import type { Texture } from 'three';
2
+ /**
3
+ * Texture Transform Extension
4
+ *
5
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_texture_transform
6
+ *
7
+ * @private
8
+ */
9
+ export declare class GLTFTextureTransformExtension {
10
+ name: string;
11
+ constructor();
12
+ extendTexture(texture: Texture, transform: any): Texture;
13
+ }
@@ -0,0 +1,14 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ /**
3
+ * WebP Texture Extension
4
+ *
5
+ * Specification: https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/EXT_texture_webp
6
+ *
7
+ * @private
8
+ */
9
+ export declare class GLTFTextureWebPExtension {
10
+ parser: GLTFParser;
11
+ name: string;
12
+ constructor(parser: GLTFParser);
13
+ loadTexture(textureIndex: number): any;
14
+ }
@@ -0,0 +1,24 @@
1
+ import type { Store } from 'store';
2
+ import type { LoadingManager } from 'three';
3
+ import type { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader';
4
+ import type { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
5
+ import type { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader';
6
+ import { Loader } from 'three';
7
+ import { GLTFParser } from './GLTFParser';
8
+ export declare class GFPGLTFLoader extends Loader {
9
+ dracoLoader: DRACOLoader | null;
10
+ ktx2Loader: KTX2Loader | null;
11
+ meshoptDecoder: any | null;
12
+ pluginCallbacks: ((parser: GLTFParser) => any)[];
13
+ private readonly _store;
14
+ constructor(store: Store, manager?: LoadingManager);
15
+ loadPlease(url: string, onLoad?: (gltf: GLTF) => void, onProgress?: (loaded: number, total: number) => void, onError?: (error: any) => void): void;
16
+ loadAsyncPlease(url: string, onProgress?: (loaded: number, total: number) => void): Promise<GLTF>;
17
+ setDRACOLoader(dracoLoader: DRACOLoader): this;
18
+ setKTX2Loader(ktx2Loader: KTX2Loader): this;
19
+ setMeshoptDecoder(meshoptDecoder: any): this;
20
+ register(callback: (parser: GLTFParser) => void): this;
21
+ unregister(callback: (parser: GLTFParser) => void): this;
22
+ parse(data: string | ArrayBuffer | object, path?: string, onLoad?: (gltf: GLTF) => void, onProgress?: (loaded: number, total: number) => void, onError?: (error: any) => void): void;
23
+ parseAsync(data: ArrayBuffer | string | object, path?: string): Promise<GLTF>;
24
+ }
@@ -0,0 +1,6 @@
1
+ import { Interpolant } from 'three';
2
+ export declare class GLTFCubicSplineInterpolant extends Interpolant {
3
+ constructor(parameterPositions: any, sampleValues: any, sampleSize: any, resultBuffer: any);
4
+ copySampleValue_(index: number): any;
5
+ interpolate_(i1: number, t0: number, t: number, t1: number): any;
6
+ }
@@ -0,0 +1,4 @@
1
+ import { GLTFCubicSplineInterpolant } from './GLTFCubicSplineInterpolant';
2
+ export declare class GLTFCubicSplineQuaternionInterpolant extends GLTFCubicSplineInterpolant {
3
+ interpolate_(i1: number, t0: number, t: number, t1: number): any;
4
+ }
@@ -0,0 +1,12 @@
1
+ import type { GLTFParser } from '../GLTFParser';
2
+ import type { BufferGeometry } from 'three';
3
+ /**
4
+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#morph-targets
5
+ *
6
+ * @private
7
+ * @param {BufferGeometry} geometry
8
+ * @param {Array<GLTF.Target>} targets
9
+ * @param {GLTFParser} parser
10
+ * @return {Promise<BufferGeometry>}
11
+ */
12
+ export declare function addMorphTargets(geometry: BufferGeometry, targets: any[], parser: GLTFParser): Promise<BufferGeometry>;
@@ -0,0 +1,9 @@
1
+ /**
2
+ *
3
+ * @private
4
+ * @param {BufferGeometry} geometry
5
+ * @param {GLTF.Primitive} primitiveDef
6
+ * @param {GLTFParser} parser
7
+ * @return {Promise<BufferGeometry>}
8
+ */
9
+ export declare function addPrimitiveAttributes(geometry: any, primitiveDef: any, parser: any): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function addUnknownExtensionsToUserData(knownExtensions: Record<string, any>, object: any, objectDef: any): void;
@@ -0,0 +1,7 @@
1
+ /**
2
+ *
3
+ * @private
4
+ * @param {Object3D|Material|BufferGeometry|Object} object
5
+ * @param {GLTF.definition} gltfDef
6
+ */
7
+ export declare function assignExtrasToUserData(object: any, gltfDef: any): void;
@@ -0,0 +1,8 @@
1
+ /**
2
+ *
3
+ * @private
4
+ * @param {BufferGeometry} geometry
5
+ * @param {GLTF.Primitive} primitiveDef
6
+ * @param {GLTFParser} parser
7
+ */
8
+ export declare function computeBounds(geometry: any, primitiveDef: any, parser: any): void;
@@ -0,0 +1 @@
1
+ export declare function createAttributesKey(attributes: any): string;
@@ -0,0 +1,10 @@
1
+ import type { Store } from 'store';
2
+ import { UnrealMaterial } from 'three/UnrealMaterial';
3
+ /**
4
+ * Specification: https://github.com/KhronosGroup/glTF/blob/master/specification/2.0/README.md#default-material
5
+ *
6
+ * @private
7
+ * @param {Object<string, Material>} cache
8
+ * @return {Material}
9
+ */
10
+ export declare function createDefaultMaterial(store: Store): UnrealMaterial;
@@ -0,0 +1 @@
1
+ export declare function createPrimitiveKey(primitiveDef: any): string;
@@ -0,0 +1 @@
1
+ export declare function getImageURIMimeType(uri: string): "image/jpeg" | "image/webp" | "image/ktx2" | "image/png";
@@ -0,0 +1 @@
1
+ export declare function getNormalizedComponentScale(constructor: any): number;
@@ -0,0 +1,7 @@
1
+ /**
2
+ *
3
+ * @private
4
+ * @param {Mesh} mesh
5
+ * @param {GLTF.Mesh} meshDef
6
+ */
7
+ export declare function updateMorphTargets(mesh: any, meshDef: any): void;
@@ -0,0 +1,11 @@
1
+ import type { Store } from 'store';
2
+ import type { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
3
+ export declare class SmartGLTFLoader {
4
+ private readonly _gltfLoader;
5
+ private readonly _customGLTFLoader;
6
+ private readonly _store;
7
+ constructor(store: Store);
8
+ loadAsync(url: string, path?: string, onProgress?: (loaded: number, total: number) => void): Promise<GLTF>;
9
+ private loadGlbAsync;
10
+ private loadGltfAsync;
11
+ }
@@ -0,0 +1,91 @@
1
+ import type { Store } from 'store';
2
+ import type { ColorRepresentation, ShaderMaterialParameters, Texture, ToneMapping, Vector2Like } from 'three';
3
+ import type { TGLTFEpicLightmap } from 'types/TGLTFJson';
4
+ import { Color, RawShaderMaterial, Vector2, Vector4 } from 'three';
5
+ type TUnrealMaterialOptions = ShaderMaterialParameters & {
6
+ color?: ColorRepresentation;
7
+ map?: Texture | null;
8
+ alphaMap?: Texture | null;
9
+ emissive?: ColorRepresentation;
10
+ emissiveIntensity?: number;
11
+ emissiveMap?: Texture | null;
12
+ metalness?: number;
13
+ roughness?: number;
14
+ transmission?: number;
15
+ ior?: number;
16
+ metalnessMap?: Texture | null;
17
+ roughnessMap?: Texture | null;
18
+ aoMap?: Texture | null;
19
+ normalScale?: Vector2Like;
20
+ normalMap?: Texture | null;
21
+ watermarkMap?: Texture | null;
22
+ };
23
+ export declare class UnrealMaterial extends RawShaderMaterial {
24
+ private readonly _store;
25
+ readonly isUnrealMaterial = true;
26
+ isDebugLightmapVisible: boolean;
27
+ isDebugMapVisible: boolean;
28
+ private _prevTime;
29
+ private _toneMapping;
30
+ private readonly _smoothness;
31
+ constructor(store: Store, { uniforms, color, opacity, transmission, map, alphaMap, alphaTest, emissive, emissiveMap, emissiveIntensity, metalness, roughness, ior, metalnessMap, roughnessMap, watermarkMap, aoMap, normalScale, normalMap, ...rest }: TUnrealMaterialOptions);
32
+ get config(): import("../../config/material/MaterialConfig").TMaterialConfig;
33
+ get color(): Color;
34
+ set color(value: Color);
35
+ get map(): Texture | null;
36
+ set map(value: Texture | null);
37
+ get alphaMap(): Texture | null;
38
+ set alphaMap(value: Texture | null);
39
+ get emissive(): Color;
40
+ set emissive(value: Color);
41
+ get emissiveMap(): Texture | null;
42
+ set emissiveMap(value: Texture | null);
43
+ get metalness(): number;
44
+ set metalness(value: number);
45
+ get roughness(): number;
46
+ set roughness(value: number);
47
+ get transmission(): number;
48
+ set transmission(value: number);
49
+ get ior(): number;
50
+ set ior(value: number);
51
+ get metalnessMap(): Texture | null;
52
+ set metalnessMap(value: Texture | null);
53
+ get roughnessMap(): Texture | null;
54
+ set roughnessMap(value: Texture | null);
55
+ get aoMap(): Texture | null;
56
+ set aoMap(value: Texture | null);
57
+ get normalScale(): Vector2;
58
+ set normalScale(value: Vector2);
59
+ get normalMap(): Texture | null;
60
+ set normalMap(value: Texture | null);
61
+ get epicLightMap(): Texture | null;
62
+ set epicLightMap(value: Texture | null);
63
+ get coordinateScaleBias(): Vector4;
64
+ set coordinateScaleBias(value: Vector4);
65
+ get lightmapAdd(): Vector4;
66
+ set lightmapAdd(value: Vector4);
67
+ get lightmapScale(): Vector4;
68
+ set lightmapScale(value: Vector4);
69
+ get lightmapIntensity(): number;
70
+ set lightmapIntensity(value: number);
71
+ get mapIntensity(): number;
72
+ set mapIntensity(value: number);
73
+ get watermarkMap(): Texture | null;
74
+ set watermarkMap(value: Texture | null);
75
+ get watermarkIntensity(): number;
76
+ set watermarkIntensity(value: number);
77
+ get toneMapping(): ToneMapping;
78
+ set toneMapping(value: ToneMapping);
79
+ get toneMappingExposure(): number;
80
+ set toneMappingExposure(value: number);
81
+ update: (time: number) => void;
82
+ private updateMap;
83
+ private updateLightmap;
84
+ setLightmapData(lightMap: Texture | null, lightMapData: TGLTFEpicLightmap | null): void;
85
+ private applyMapTransformUniform;
86
+ private getUniformTexture;
87
+ private getToneMappingFunction;
88
+ private getTexelEncodingFunction;
89
+ private updateShaders;
90
+ }
91
+ export {};
@@ -0,0 +1,3 @@
1
+ export type DeepPartial<T extends object> = {
2
+ [K in keyof T]?: T[K] extends object ? Partial<DeepPartial<T[K]>> : T[K];
3
+ };
@@ -0,0 +1,3 @@
1
+ export type DeepRequired<T> = {
2
+ [K in keyof T]: Required<T[K] extends object ? DeepRequired<T[K]> : T[K]>;
3
+ };
@@ -0,0 +1,4 @@
1
+ import type { Store } from 'store';
2
+ export interface IStoreProps {
3
+ store: Store;
4
+ }
@@ -0,0 +1 @@
1
+ export type Nullable<T> = T | null | undefined;
@@ -0,0 +1,218 @@
1
+ export type TUpperVector2 = {
2
+ X: number;
3
+ Y: number;
4
+ };
5
+ export type TUpperVector3 = {
6
+ X: number;
7
+ Y: number;
8
+ Z: number;
9
+ };
10
+ export type TUpperVector4 = {
11
+ X: number;
12
+ Y: number;
13
+ Z: number;
14
+ W: number;
15
+ };
16
+ export type TUpperBounds = {
17
+ Left: number;
18
+ Top: number;
19
+ Right: number;
20
+ Bottom: number;
21
+ };
22
+ export type TUpperRotator = {
23
+ Pitch: number;
24
+ Roll: number;
25
+ Yaw: number;
26
+ };
27
+ export type TUpperSize2 = {
28
+ Width: number;
29
+ Height: number;
30
+ };
31
+ export type TUpperColorRgba = {
32
+ R: number;
33
+ G: number;
34
+ B: number;
35
+ A: number;
36
+ };
37
+ export type TVector2 = {
38
+ x: number;
39
+ y: number;
40
+ };
41
+ export type TVector3 = {
42
+ x: number;
43
+ y: number;
44
+ z: number;
45
+ };
46
+ export type TVector4 = {
47
+ x: number;
48
+ y: number;
49
+ z: number;
50
+ w: number;
51
+ };
52
+ export type TRgb = {
53
+ r: number;
54
+ g: number;
55
+ b: number;
56
+ };
57
+ export type TRgba = {
58
+ r: number;
59
+ g: number;
60
+ b: number;
61
+ a: number;
62
+ };
63
+ export type TBoundsObject = {
64
+ Origin: TUpperVector3;
65
+ Extent: TUpperVector3;
66
+ };
67
+ export type TUpperMatrix4 = {
68
+ XPlane: TUpperVector4;
69
+ YPlane: TUpperVector4;
70
+ ZPlane: TUpperVector4;
71
+ WPlane: TUpperVector4;
72
+ };
73
+ export type TVertex = {
74
+ ID: string;
75
+ Location: TUpperVector3;
76
+ };
77
+ export type TControlPoint = {
78
+ ID: string;
79
+ Location: TUpperVector3;
80
+ };
81
+ export type TDecor = {
82
+ ID: string;
83
+ RoomID?: string | null;
84
+ Location: TUpperVector3;
85
+ Rotation: TUpperRotator;
86
+ Scale: TUpperVector3;
87
+ Extent: TUpperVector3;
88
+ Walls?: string[];
89
+ Model?: string;
90
+ Type?: string;
91
+ };
92
+ export type TRoom = {
93
+ ID: string;
94
+ Type: string;
95
+ TypeDisplayName?: string;
96
+ DisplayArea?: string;
97
+ Area: number;
98
+ Walls: string[];
99
+ FloorLayersMolding?: boolean;
100
+ FloorMoldingModel?: string;
101
+ CeilingMoldingModel?: string;
102
+ FloorOffsetZ: number;
103
+ FloorCutOutIDs?: string[];
104
+ CeilingCutOutIDs?: string[];
105
+ Furniture: TFurniture[];
106
+ FloorLayers?: any[];
107
+ ColorID?: TUpperColorRgba | null;
108
+ Width?: number;
109
+ Length?: number;
110
+ WallsState?: 'Flipped';
111
+ CeilingState?: 'Gap';
112
+ Numeric?: number;
113
+ };
114
+ export type TWall = {
115
+ ID: string;
116
+ Vertices: [string, string];
117
+ ControlPoint?: TControlPoint | null;
118
+ IsCurved?: boolean;
119
+ IsExterior?: boolean;
120
+ IsHidden?: boolean;
121
+ MaterialID?: number;
122
+ Model?: string;
123
+ };
124
+ export type TFurniture = Record<string, any> & {
125
+ ID: string;
126
+ Type: string;
127
+ Model: string;
128
+ RoomID: string;
129
+ Location: TUpperVector3;
130
+ Rotation: TUpperRotator;
131
+ Scale: TUpperVector3;
132
+ Extent: TUpperVector3;
133
+ HideWithCeiling?: boolean;
134
+ };
135
+ export type TCameraPoint = {
136
+ ID: string;
137
+ RoomID: string | null;
138
+ Location: TUpperVector3;
139
+ Rotation: TUpperRotator;
140
+ };
141
+ export type TPortal = {
142
+ ID: string;
143
+ Location: TUpperVector3;
144
+ RelativeLocation: TUpperVector3;
145
+ Rotation: TUpperRotator;
146
+ Scale: TUpperVector3;
147
+ Extent: TUpperVector3;
148
+ Icon: string;
149
+ FromID: string;
150
+ ToID: string;
151
+ };
152
+ export type TUnit = {
153
+ Location: TUpperVector3;
154
+ Rotation: TUpperRotator;
155
+ Scale: TUpperVector3;
156
+ Rooms: TRoom[];
157
+ };
158
+ export type TFloor = {
159
+ Number: number;
160
+ Entrance: number;
161
+ Height: number;
162
+ FloorOffsetZ: number;
163
+ MarginTop: number;
164
+ MarginBottom: number;
165
+ Location: TUpperVector3;
166
+ Rotation: TUpperRotator;
167
+ Scale: TUpperVector3;
168
+ Units: TUnit[];
169
+ Walls: TWall[];
170
+ CameraPoints: TCameraPoint[];
171
+ Apertures: any[];
172
+ Doors?: any[];
173
+ Decors: TDecor[];
174
+ RoofSlopes: any[];
175
+ RoofSlopeApertures: any[];
176
+ Portals?: TPortal[];
177
+ ExteriorWalls: string[];
178
+ GlassWalls: string[];
179
+ FenceWalls: string[];
180
+ VerandaWalls: string[];
181
+ CompanionWalls: string[];
182
+ Helpers: any[];
183
+ PrimaryCameraPointId: string | null;
184
+ };
185
+ export type TWidgetInfo = {
186
+ PlanBounds: TUpperBounds[];
187
+ };
188
+ export type TBackgroundTransform = {
189
+ Location: TUpperVector2;
190
+ Scale: TUpperVector2;
191
+ Rotation: number;
192
+ Modified: boolean;
193
+ };
194
+ export type TMeta = {
195
+ FloorsScales?: TUpperVector3[];
196
+ BackgroundsTransforms?: TBackgroundTransform[];
197
+ WidgetInfo?: TWidgetInfo;
198
+ PrimaryCameraPointId?: string;
199
+ };
200
+ export type TObjectType = 'Room' | 'Furniture' | 'Aperture';
201
+ export type TObjectMaskColorPair = {
202
+ ObjectID: string;
203
+ Type: TObjectType;
204
+ MaskColorID: TUpperColorRgba;
205
+ };
206
+ export type TRoomColorIDPair = {
207
+ ObjectID: string;
208
+ Type: TObjectType;
209
+ ColorID: TUpperColorRgba;
210
+ };
211
+ export type TBuilding = {
212
+ Floors: TFloor[];
213
+ Vertices: TVertex[];
214
+ Scale: TUpperVector3;
215
+ Meta: TMeta;
216
+ RoomColorIDPairs?: TRoomColorIDPair[];
217
+ ObjectMaskColorPairs?: TObjectMaskColorPair[];
218
+ };
@@ -0,0 +1,14 @@
1
+ import type { AnimationAction, AnimationMixer, Object3D } from 'three';
2
+ import type { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
3
+ import type { GLTFParser } from 'three/GFPGLTFLoader/GLTFParser';
4
+ export type TGLTF = GLTF & {
5
+ parser: GLTFParser;
6
+ userData: {
7
+ mixer?: AnimationMixer;
8
+ animationAction?: AnimationAction;
9
+ objectsToRaycast?: Object3D[];
10
+ roomLinkObjectsToRaycast?: Object3D[];
11
+ doorLinkObjectsToRaycast?: Object3D[];
12
+ roofObjects: Object3D[];
13
+ };
14
+ };