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,8 @@
1
+ import type { Store } from 'store';
2
+ export declare class Widget {
3
+ private readonly _store;
4
+ private readonly _container;
5
+ constructor(store: Store, container: HTMLElement);
6
+ startRendering(): this;
7
+ stopRendering: (() => void) | undefined;
8
+ }
@@ -0,0 +1,11 @@
1
+ import type { TApi } from './types/TApi';
2
+ import type { TApiError } from './types/TApiError';
3
+ export declare class Api {
4
+ private readonly baseUrl;
5
+ constructor(baseUrl: string);
6
+ private get headers();
7
+ loadCrmWidgetData: (crmPlanId: unknown) => Promise<TApi | TApiError>;
8
+ loadWidgetData: (planId: unknown) => Promise<TApi | TApiError>;
9
+ private fetch;
10
+ private checkError;
11
+ }
@@ -0,0 +1,8 @@
1
+ import type { TApi } from 'api/types/TApi';
2
+ import type { TBuilding } from 'types/TBuilding';
3
+ export declare class ApiConstructor {
4
+ static getApiFromFiles(files: FileList | File[]): Promise<TApi | undefined>;
5
+ static getGlbApiFromFiles(files: FileList | File[]): Promise<TApi | undefined>;
6
+ static getGltfApiFromFiles(files: FileList | File[]): Promise<TApi | undefined>;
7
+ static getApiFromJson(building: TBuilding): TApi;
8
+ }
@@ -0,0 +1,13 @@
1
+ import type { TNetworkFallbackConfigV1 } from 'api/lib/NetworkFallback/types/TNetworkFallbackConfig';
2
+ import type { Store } from 'store';
3
+ export declare class NetworkFallback {
4
+ config: TNetworkFallbackConfigV1 | undefined;
5
+ private readonly _replaceCache;
6
+ private readonly _store;
7
+ constructor(store: Store);
8
+ getBestCdn(fileUrl: string, assetsUrl: string): Promise<string>;
9
+ replaceAssetPath(url: string): string;
10
+ private extractKey;
11
+ private checkUrl;
12
+ private sendError;
13
+ }
@@ -0,0 +1,59 @@
1
+ import { z } from 'zod';
2
+ export declare const NetworkFallbackSchemaV1: z.ZodObject<{
3
+ version: z.ZodLiteral<1>;
4
+ strategy: z.ZodDefault<z.ZodObject<{
5
+ order: z.ZodArray<z.ZodString>;
6
+ }, z.core.$strip>>;
7
+ failurePolicy: z.ZodDefault<z.ZodObject<{
8
+ http: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
9
+ network: z.ZodDefault<z.ZodBoolean>;
10
+ cors: z.ZodDefault<z.ZodBoolean>;
11
+ contentMismatch: z.ZodDefault<z.ZodBoolean>;
12
+ timeout: z.ZodDefault<z.ZodNumber>;
13
+ }, z.core.$strip>>;
14
+ keyExtraction: z.ZodDefault<z.ZodObject<{
15
+ patterns: z.ZodArray<z.ZodObject<{
16
+ re: z.ZodString;
17
+ }, z.core.$strip>>;
18
+ fallback: z.ZodDefault<z.ZodString>;
19
+ }, z.core.$strip>>;
20
+ routes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
21
+ template: z.ZodString;
22
+ probe: z.ZodOptional<z.ZodEnum<{
23
+ range: "range";
24
+ head: "head";
25
+ }>>;
26
+ cors: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
27
+ }, z.core.$strip>>>;
28
+ groups: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
29
+ }, z.core.$strip>;
30
+ export type TFailurePolicy = {
31
+ http: number[];
32
+ network: boolean;
33
+ cors: boolean;
34
+ contentMismatch: boolean;
35
+ timeout: number;
36
+ };
37
+ export type TRoute = {
38
+ template: string;
39
+ probe?: 'range' | 'head' | undefined;
40
+ cors?: boolean | undefined;
41
+ };
42
+ export type TKeyExtraction = {
43
+ patterns: {
44
+ re: string;
45
+ }[];
46
+ fallback: string;
47
+ };
48
+ export type TStrategy = {
49
+ order: string[];
50
+ };
51
+ export type TNetworkFallbackConfigV1 = {
52
+ version: 1;
53
+ strategy: TStrategy;
54
+ failurePolicy: TFailurePolicy;
55
+ keyExtraction: TKeyExtraction;
56
+ routes: Record<string, TRoute>;
57
+ groups: Record<string, string[]>;
58
+ };
59
+ export type TNetworkFallbackConfig = TNetworkFallbackConfigV1;
@@ -0,0 +1,15 @@
1
+ import type { Store } from 'store';
2
+ export type TMadeByNode = {
3
+ value: string;
4
+ isBold?: boolean;
5
+ };
6
+ export declare class ApiBranding {
7
+ private readonly _store;
8
+ constructor(store: Store);
9
+ get branding(): import("../../types/TApi/TWidgetBranding").TGLTFWidgetBranding | undefined;
10
+ private get config();
11
+ get logoUrl(): string | undefined;
12
+ get logoLinkUrl(): string | undefined;
13
+ get madeByLink(): string | undefined;
14
+ get madeByNodes(): TMadeByNode[];
15
+ }
@@ -0,0 +1,34 @@
1
+ import type { TFloorData } from 'api/types/TApi/TFloorData';
2
+ import type { TVariant } from 'api/types/TApi/TVariant';
3
+ import type { Store } from 'store';
4
+ export declare class ApiExplorer {
5
+ private readonly _store;
6
+ constructor(store: Store);
7
+ get current(): {
8
+ variant: TVariant | undefined;
9
+ floor: TFloorData | undefined;
10
+ floorIndex: number;
11
+ };
12
+ get next(): {
13
+ variant?: undefined;
14
+ floor?: undefined;
15
+ floorIndex?: undefined;
16
+ } | {
17
+ variant: TVariant;
18
+ floor: TFloorData;
19
+ floorIndex: number;
20
+ };
21
+ get prev(): {
22
+ variant?: undefined;
23
+ floor?: undefined;
24
+ floorIndex?: undefined;
25
+ } | {
26
+ variant: TVariant;
27
+ floor: TFloorData;
28
+ floorIndex: number;
29
+ };
30
+ getVariantById(id: string): TVariant | undefined;
31
+ getFloor(idOrVariant: string | TVariant, floorIndex: number): TFloorData | undefined;
32
+ setPrev(): void;
33
+ setNext(): void;
34
+ }
@@ -0,0 +1,8 @@
1
+ import type { Store } from 'store';
2
+ import { NetworkFallback } from 'api/lib/NetworkFallback';
3
+ export declare class ApiFallback {
4
+ readonly networkFallback: NetworkFallback;
5
+ private readonly _store;
6
+ constructor(store: Store);
7
+ updateCdn(): Promise<void>;
8
+ }
@@ -0,0 +1,8 @@
1
+ import type { Store } from 'store/index';
2
+ import type { TBuilding } from 'types/TBuilding';
3
+ export declare class ApiJson {
4
+ private readonly _jsonDict;
5
+ private readonly _store;
6
+ constructor(store: Store);
7
+ getJsonData(variantId: string): Promise<TBuilding | undefined>;
8
+ }
@@ -0,0 +1,29 @@
1
+ import type { TApi } from 'api/types/TApi';
2
+ import type { TApiError } from 'api/types/TApiError';
3
+ import type { Store } from 'store';
4
+ import { TypedObserver } from 'lib/TypedObserver';
5
+ import { ApiBranding } from './ApiBranding';
6
+ import { ApiExplorer } from './ApiExplorer';
7
+ import { ApiFallback } from './ApiFallback';
8
+ import { ApiJson } from './ApiJson';
9
+ type TApiStoreData = {
10
+ isError: boolean;
11
+ };
12
+ type TApiStoreEventMap = {
13
+ change: undefined;
14
+ };
15
+ export interface ApiStore extends TApiStoreData {
16
+ }
17
+ export declare class ApiStore extends TypedObserver<TApiStoreEventMap> {
18
+ readonly branding: ApiBranding;
19
+ readonly explorer: ApiExplorer;
20
+ readonly json: ApiJson;
21
+ readonly fallback: ApiFallback;
22
+ private _data;
23
+ constructor(store: Store, data: TApi | TApiError);
24
+ get data(): TApi | undefined;
25
+ get error(): TApiError | undefined;
26
+ setData(data: TApi | TApiError): void;
27
+ updateError(): void;
28
+ }
29
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { TUpperRotator, TUpperVector3 } from 'types/TBuilding';
2
+ export type TAperture = {
3
+ ID: string;
4
+ Location: TUpperVector3;
5
+ Location1?: TUpperVector3;
6
+ Location2?: TUpperVector3;
7
+ Rotation: TUpperRotator;
8
+ Scale: TUpperVector3;
9
+ Width: number;
10
+ Height: number;
11
+ FloorOffsetZ: number;
12
+ Walls: [string, string];
13
+ Model: string | null;
14
+ IsUseTwoPoints: boolean;
15
+ };
@@ -0,0 +1,10 @@
1
+ import type { TUpperRotator, TUpperVector3 } from 'types/TBuilding';
2
+ export type TCameraPoint = {
3
+ ID: string;
4
+ RoomID: string | null;
5
+ Type: string;
6
+ Area: number;
7
+ Location: TUpperVector3;
8
+ Rotation: TUpperRotator | null;
9
+ panorama_prefix: string;
10
+ };
@@ -0,0 +1,16 @@
1
+ export type TFeatureObject = {
2
+ enabled: boolean;
3
+ version: string;
4
+ };
5
+ export type TConcreteCapabilities = {
6
+ camera_navigation: 'classic' | 'proactive' | 'portals';
7
+ floor_navigation: 'classic' | 'mask';
8
+ ruler: TFeatureObject | null;
9
+ interactive_top_view: TFeatureObject | null;
10
+ top_view_as_miniplan: TFeatureObject | null;
11
+ hidden_furniture: TFeatureObject | null;
12
+ has_panorama: TFeatureObject | null;
13
+ };
14
+ export type TCapabilities = TConcreteCapabilities & {
15
+ [key: string]: TFeatureObject | null | undefined;
16
+ };
@@ -0,0 +1,20 @@
1
+ import type { TUpperRotator, TUpperVector3 } from 'types/TBuilding';
2
+ export type TDoor = {
3
+ ID: string;
4
+ Location: TUpperVector3;
5
+ Location1?: TUpperVector3;
6
+ Location2?: TUpperVector3;
7
+ Rotation: TUpperRotator;
8
+ Scale: TUpperVector3;
9
+ Width: number;
10
+ Height: number;
11
+ FloorOffsetZ: number;
12
+ OpenAngle1: number;
13
+ OpenAngle2: number;
14
+ Walls: [string, string];
15
+ Model: string;
16
+ OrientationMode: string;
17
+ IsUseTwoPoints: boolean;
18
+ MirrorByX: boolean;
19
+ MirrorByY: boolean;
20
+ };
@@ -0,0 +1,35 @@
1
+ import type { TAperture } from './TAperture';
2
+ import type { TCameraPoint } from './TCameraPoint';
3
+ import type { TDoor } from './TDoor';
4
+ import type { TIsometricViewData } from './TIsometricViewData';
5
+ import type { TPanoramaViewData } from './TPanoramaViewData';
6
+ import type { TPortal } from './TPortal';
7
+ import type { TStair } from './TStair';
8
+ import type { TTopViewData } from './TTopViewData';
9
+ import type { TBackgroundTransform, TDecor, TObjectMaskColorPair, TRoom, TRoomColorIDPair, TUpperBounds, TUpperVector3, TVertex, TWall } from 'types/TBuilding';
10
+ export type TFloorData = {
11
+ original_plan_img: string | null;
12
+ miniplan_img: string | null;
13
+ top_view: TTopViewData;
14
+ isometric_view: TIsometricViewData;
15
+ panorama_view: TPanoramaViewData;
16
+ location: TUpperVector3;
17
+ height: number;
18
+ vertices: TVertex[];
19
+ rooms: TRoom[];
20
+ camera_points: TCameraPoint[];
21
+ walls: TWall[];
22
+ exterior_walls: TWall[];
23
+ doors: TDoor[];
24
+ stairs: TStair[];
25
+ portals: TPortal[];
26
+ apertures: TAperture[];
27
+ decors: TDecor[];
28
+ object_pairs: TObjectMaskColorPair[];
29
+ room_pairs: TRoomColorIDPair[];
30
+ plan_meta: {
31
+ transform: TBackgroundTransform | null;
32
+ bounds: TUpperBounds | null;
33
+ scale: TUpperVector3;
34
+ } | null;
35
+ };
@@ -0,0 +1,5 @@
1
+ export type TIsometricViewData = {
2
+ items: string[];
3
+ image_template: string;
4
+ room_ids_template: string;
5
+ };
@@ -0,0 +1 @@
1
+ export type TLosslessFormat = 'exr' | 'png';
@@ -0,0 +1 @@
1
+ export type TLossyFormat = 'jpg' | 'jpeg' | 'webp';
@@ -0,0 +1,5 @@
1
+ export type TPanoramaViewData = {
2
+ template: string;
3
+ scene_depth_template: string;
4
+ primary_camera_point_id: string;
5
+ };
@@ -0,0 +1,11 @@
1
+ import type { TUpperRotator, TUpperVector3 } from 'types/TBuilding';
2
+ export type TPortal = {
3
+ ID: string;
4
+ Location: TUpperVector3;
5
+ Rotation: TUpperRotator;
6
+ Scale: TUpperVector3;
7
+ Extent: TUpperVector3;
8
+ Icon: string;
9
+ FromID: string;
10
+ ToID: string;
11
+ };
@@ -0,0 +1,14 @@
1
+ import type { TLosslessFormat } from './TLosslessFormat';
2
+ import type { TLossyFormat } from './TLossyFormat';
3
+ import type { TSceneGeometry } from './TSceneGeometry';
4
+ export type TRenderingSettings = {
5
+ lossy_format: TLossyFormat | null;
6
+ lossless_format: TLosslessFormat | null;
7
+ scene_depth_suffix: string | null;
8
+ room_ids_suffix: string | null;
9
+ furnishings_suffix: string | null;
10
+ masked_suffix: string | null;
11
+ scene_geometry: TSceneGeometry | null;
12
+ top_view_fov: number | null;
13
+ precision?: number | null;
14
+ };
@@ -0,0 +1,7 @@
1
+ export type TSceneGeometry = {
2
+ type: 'sphere';
3
+ sides: [];
4
+ } | {
5
+ type: 'cube';
6
+ sides: [string, string, string, string, string, string];
7
+ };
@@ -0,0 +1,7 @@
1
+ import type { TFurniture, TUpperVector3 } from 'types/TBuilding';
2
+ export type TStair = TFurniture & {
3
+ UpperFloorCameraPointID: string;
4
+ UpperEntranceLocation: TUpperVector3;
5
+ LowerFloorCameraPointID: string;
6
+ LowerEntranceLocation: TUpperVector3;
7
+ };
@@ -0,0 +1,5 @@
1
+ export type TTopViewData = {
2
+ items: string[];
3
+ image_template: string;
4
+ room_ids_template: string;
5
+ };
@@ -0,0 +1,20 @@
1
+ import type { TGLTFDataV0 } from '../TGLTFData/TGLTFDataV0';
2
+ import type { TGLTFDataV1 } from '../TGLTFData/TGLTFDataV1';
3
+ import type { TCapabilities } from './TCapabilities';
4
+ import type { TFloorData } from './TFloorData';
5
+ import type { TRenderingSettings } from './TRenderingSettings';
6
+ export type TVariantInfo = {
7
+ style_name: string;
8
+ is_renovation: boolean;
9
+ };
10
+ export type TVariant = {
11
+ variant_info: TVariantInfo;
12
+ plan_id: string;
13
+ json: string;
14
+ gltf?: TGLTFDataV0 | TGLTFDataV1;
15
+ assets_path: string;
16
+ capabilities: Partial<TCapabilities>;
17
+ rendering_settings: TRenderingSettings;
18
+ primary_floor: number;
19
+ floors: TFloorData[];
20
+ };
@@ -0,0 +1,23 @@
1
+ import type { TExternalConfig } from 'config/TExternalConfig';
2
+ export type TGLTFWidgetBranding = {
3
+ logo_path: string | null;
4
+ company_name: string | null;
5
+ company_url: string | null;
6
+ widget_language: string | null;
7
+ widget_style_path: string | null;
8
+ widget_params: TExternalConfig | null;
9
+ };
10
+ export type TWidgetBranding = {
11
+ id: number;
12
+ logo_path: string;
13
+ company_name: string;
14
+ company_url: string;
15
+ domain_prefix: string;
16
+ domain: string;
17
+ widget_language: string;
18
+ widget_style_path: string;
19
+ widget_params: unknown;
20
+ created_at: string;
21
+ updated_at: string;
22
+ gltf_widget_branding: TGLTFWidgetBranding | null;
23
+ };
@@ -0,0 +1,8 @@
1
+ import type { TVariant } from './TVariant';
2
+ import type { TWidgetBranding } from './TWidgetBranding';
3
+ export type TApi = {
4
+ created_at: string;
5
+ primary_variant: string;
6
+ variants: TVariant[];
7
+ widget_branding: TWidgetBranding | null;
8
+ };
@@ -0,0 +1,6 @@
1
+ export type TApiError = {
2
+ isError: true;
3
+ source?: any;
4
+ status: number;
5
+ message: string;
6
+ };
@@ -0,0 +1,5 @@
1
+ export type TGLTFDataV0 = {
2
+ version: 0;
3
+ glb_url?: string;
4
+ gltf_url?: string;
5
+ };
@@ -0,0 +1,21 @@
1
+ export type TEnvMap = {
2
+ type: 'cube' | 'sphere';
3
+ output_files: string[];
4
+ };
5
+ export type TGLTFTexturePack = {
6
+ name: string;
7
+ format: string;
8
+ output_file: string;
9
+ env_map?: TEnvMap;
10
+ };
11
+ export type TGLTFDataV1 = {
12
+ version: 1;
13
+ gltf_asset_path: string;
14
+ mesh_path_template: string;
15
+ texture_path_template: string;
16
+ mesh_output_file: string;
17
+ env_path_template?: string;
18
+ preferred_texture_pack: string;
19
+ optimized_texture_pack?: string;
20
+ texture_packs: TGLTFTexturePack[];
21
+ };
@@ -0,0 +1,3 @@
1
+ import type { TGLTFDataV0 } from './TGLTFDataV0';
2
+ import type { TGLTFDataV1 } from './TGLTFDataV1';
3
+ export type TGLTFData = TGLTFDataV0 | TGLTFDataV1;
@@ -0,0 +1,2 @@
1
+ declare const DefaultIcons: Record<string, string | undefined>;
2
+ export default DefaultIcons;
@@ -0,0 +1,2 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ export declare const ApplicationWrapper: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import type { JSX } from 'solid-js';
2
+ import type { IStoreProps } from 'types/IStoreProps';
3
+ import './EditorApplication.sass';
4
+ export declare const EditorApplication: (props: IStoreProps) => JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ export declare const AdditionalFrame: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './SettingsButton.sass';
3
+ export declare const SettingsButton: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './VisibilityButton.sass';
3
+ export declare const VisibilityButton: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './ButtonsContainer.sass';
3
+ export declare const ButtonsContainer: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './ControlButtons.sass';
3
+ export declare const ControlButtons: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './SettingsFrame.sass';
3
+ export declare const SettingsFrame: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './ControlPanel.sass';
3
+ export declare const ControlPanel: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ export declare const ErrorScreenWrapper: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import './ErrorScreen.sass';
2
+ type TErrorScreenProps = {
3
+ visible?: boolean;
4
+ title: string;
5
+ message: string;
6
+ };
7
+ export declare const ErrorScreen: (props: TErrorScreenProps) => import("solid-js").JSX.Element;
8
+ export {};
@@ -0,0 +1,2 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ export declare const FullscreenButton: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './LoadingScreen.sass';
3
+ export declare const LoadingScreen: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './Logger.sass';
3
+ export declare const Logger: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './Logo.sass';
3
+ export declare const Logo: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './MadeBy.sass';
3
+ export declare const MadeBy: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './MapOverlay.sass';
3
+ export declare const MapOverlay: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { JSX } from 'solid-js';
2
+ import type { Store } from 'store';
3
+ import './RoomLabel.sass';
4
+ type TRoomLabelProps = {
5
+ store: Store;
6
+ } & JSX.HTMLAttributes<HTMLDivElement>;
7
+ export declare const RoomLabel: (_props: TRoomLabelProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './Tab2D.sass';
3
+ export declare const Tab2D: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './Tab360.sass';
3
+ export declare const Tab360: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './Tabs.sass';
3
+ export declare const Tabs: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import type { JSX } from 'solid-js';
2
+ import type { IStoreProps } from 'types/IStoreProps';
3
+ import 'assets/sass/_fonts.sass';
4
+ import './WidgetApplication.sass';
5
+ export declare const WidgetApplication: (props: IStoreProps) => JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { Store } from 'store';
2
+ import type { TDoorLink } from 'store/DoorLinkStore';
3
+ import './DoorLink.sass';
4
+ type TDoorLinkProps = {
5
+ store: Store;
6
+ link: TDoorLink;
7
+ container: HTMLElement | undefined;
8
+ };
9
+ export declare const DoorLink: (props: TDoorLinkProps) => import("solid-js").JSX.Element;
10
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { IStoreProps } from 'types/IStoreProps';
2
+ import './DoorLinkRenderer.sass';
3
+ export declare const DoorLinkRenderer: (props: IStoreProps) => import("solid-js").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import type { Store } from 'store';
2
+ import type { TRoomLink } from 'store/RoomLinkStore';
3
+ import './Camera.sass';
4
+ type TCameraProps = {
5
+ store: Store;
6
+ link: TRoomLink;
7
+ container: HTMLElement | undefined;
8
+ };
9
+ export declare const Camera: (props: TCameraProps) => import("solid-js").JSX.Element;
10
+ export {};