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.
- package/README.md +346 -0
- package/build/AIXSolutionsVendor.css +1 -0
- package/build/Api.js +54 -0
- package/build/ClassMaker-DarbH_-a.js +14268 -0
- package/build/DebugPanelPlugin.css +1 -0
- package/build/Waiter-DTIFLXLw.js +190 -0
- package/build/createWidget.css +1 -0
- package/build/createWidget.js +34244 -0
- package/build/index.js +6 -0
- package/build/plugins/DebugPanelPlugin.js +8395 -0
- package/build/plugins/SentryPlugin.js +16228 -0
- package/build/preventDefault-CoB0CvuT.js +5956 -0
- package/build/types/Widget.d.ts +8 -0
- package/build/types/api/Api.d.ts +11 -0
- package/build/types/api/lib/ApiConstructor.d.ts +8 -0
- package/build/types/api/lib/NetworkFallback/index.d.ts +13 -0
- package/build/types/api/lib/NetworkFallback/types/TNetworkFallbackConfig.d.ts +59 -0
- package/build/types/api/stores/ApiStore/ApiBranding.d.ts +15 -0
- package/build/types/api/stores/ApiStore/ApiExplorer.d.ts +34 -0
- package/build/types/api/stores/ApiStore/ApiFallback.d.ts +8 -0
- package/build/types/api/stores/ApiStore/ApiJson.d.ts +8 -0
- package/build/types/api/stores/ApiStore/index.d.ts +29 -0
- package/build/types/api/types/TApi/TAperture.d.ts +15 -0
- package/build/types/api/types/TApi/TCameraPoint.d.ts +10 -0
- package/build/types/api/types/TApi/TCapabilities.d.ts +16 -0
- package/build/types/api/types/TApi/TDoor.d.ts +20 -0
- package/build/types/api/types/TApi/TFloorData.d.ts +35 -0
- package/build/types/api/types/TApi/TIsometricViewData.d.ts +5 -0
- package/build/types/api/types/TApi/TLosslessFormat.d.ts +1 -0
- package/build/types/api/types/TApi/TLossyFormat.d.ts +1 -0
- package/build/types/api/types/TApi/TPanoramaViewData.d.ts +5 -0
- package/build/types/api/types/TApi/TPortal.d.ts +11 -0
- package/build/types/api/types/TApi/TRenderingSettings.d.ts +14 -0
- package/build/types/api/types/TApi/TSceneGeometry.d.ts +7 -0
- package/build/types/api/types/TApi/TStair.d.ts +7 -0
- package/build/types/api/types/TApi/TTopViewData.d.ts +5 -0
- package/build/types/api/types/TApi/TVariant.d.ts +20 -0
- package/build/types/api/types/TApi/TWidgetBranding.d.ts +23 -0
- package/build/types/api/types/TApi/index.d.ts +8 -0
- package/build/types/api/types/TApiError.d.ts +6 -0
- package/build/types/api/types/TGLTFData/TGLTFDataV0.d.ts +5 -0
- package/build/types/api/types/TGLTFData/TGLTFDataV1.d.ts +21 -0
- package/build/types/api/types/TGLTFData/index.d.ts +3 -0
- package/build/types/assets/img/index.d.ts +2 -0
- package/build/types/components/ApplicationWrapper.d.ts +2 -0
- package/build/types/components/EditorApplication/index.d.ts +4 -0
- package/build/types/components/WidgetApplication/AdditionalFrame/index.d.ts +2 -0
- package/build/types/components/WidgetApplication/ControlPanel/ButtonsContainer/SettingsButton/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/ControlPanel/ButtonsContainer/VisibilityButton/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/ControlPanel/ButtonsContainer/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/ControlPanel/ControlButtons/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/ControlPanel/SettingsFrame/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/ControlPanel/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/ErrorScreen/ErrorScreenWrapper.d.ts +2 -0
- package/build/types/components/WidgetApplication/ErrorScreen/index.d.ts +8 -0
- package/build/types/components/WidgetApplication/FullscreenButton/index.d.ts +2 -0
- package/build/types/components/WidgetApplication/LoadingScreen/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/Logger/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/Logo/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/MadeBy/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/MapOverlay/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/RoomLabel/index.d.ts +8 -0
- package/build/types/components/WidgetApplication/Tabs/Tab2D/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/Tabs/Tab360/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/Tabs/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/index.d.ts +5 -0
- package/build/types/components/WidgetApplication/shared/DoorLinkRenderer/DoorLink.d.ts +10 -0
- package/build/types/components/WidgetApplication/shared/DoorLinkRenderer/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/shared/Map/Camera.d.ts +10 -0
- package/build/types/components/WidgetApplication/shared/Map/CurrentCamera.d.ts +8 -0
- package/build/types/components/WidgetApplication/shared/Map/index.d.ts +9 -0
- package/build/types/components/WidgetApplication/shared/RoomLinkRenderer/RoomLink.d.ts +10 -0
- package/build/types/components/WidgetApplication/shared/RoomLinkRenderer/index.d.ts +3 -0
- package/build/types/components/WidgetApplication/shared/TransformImage/index.d.ts +5 -0
- package/build/types/components/WidgetApplication/ui/BorderFrame/index.d.ts +5 -0
- package/build/types/components/WidgetApplication/ui/FloatButton/index.d.ts +7 -0
- package/build/types/config/2d/TTab2DConfig.d.ts +6 -0
- package/build/types/config/2d/Tab2DDefaults.d.ts +2 -0
- package/build/types/config/360/TTab360Config.d.ts +28 -0
- package/build/types/config/360/Tab360Defaults.d.ts +2 -0
- package/build/types/config/360/camera/CameraDefaults.d.ts +2 -0
- package/build/types/config/360/camera/TCameraConfig.d.ts +5 -0
- package/build/types/config/360/collider/ColliderDefaults.d.ts +2 -0
- package/build/types/config/360/collider/TColliderConfig.d.ts +4 -0
- package/build/types/config/3d/TTab3DConfig.d.ts +24 -0
- package/build/types/config/3d/Tab3DDefaults.d.ts +2 -0
- package/build/types/config/TConfig.d.ts +65 -0
- package/build/types/config/TExternalConfig.d.ts +3 -0
- package/build/types/config/defaultConfig.d.ts +2 -0
- package/build/types/config/doorLink/DoorLinkDefaults.d.ts +2 -0
- package/build/types/config/doorLink/TDoorLinkConfig.d.ts +18 -0
- package/build/types/config/loader/LoaderConfig.d.ts +2 -0
- package/build/types/config/loader/TLoaderConfig.d.ts +6 -0
- package/build/types/config/material/MaterialConfig.d.ts +5 -0
- package/build/types/config/query/QueryDefaults.d.ts +2 -0
- package/build/types/config/query/TQueryConfig.d.ts +14 -0
- package/build/types/config/roomLink/RoomLinkDefaults.d.ts +2 -0
- package/build/types/config/roomLink/TRoomLinkConfig.d.ts +20 -0
- package/build/types/config/topView/TTabTopViewConfig.d.ts +16 -0
- package/build/types/config/topView/TabTopViewDefaults.d.ts +2 -0
- package/build/types/config/watermark/TWatermarkConfig.d.ts +12 -0
- package/build/types/config/watermark/WatermarkDefaults.d.ts +2 -0
- package/build/types/controllers/CameraController/Handler360/index.d.ts +52 -0
- package/build/types/controllers/CameraController/Handler3D/Events3D.d.ts +31 -0
- package/build/types/controllers/CameraController/Handler3D/index.d.ts +50 -0
- package/build/types/controllers/CameraController/HandlerTopView/EventsTopView.d.ts +26 -0
- package/build/types/controllers/CameraController/HandlerTopView/index.d.ts +49 -0
- package/build/types/controllers/CameraController/index.d.ts +49 -0
- package/build/types/controllers/PanZoomController/index.d.ts +40 -0
- package/build/types/controllers/Scene360Controller/RaycastHandler.d.ts +57 -0
- package/build/types/controllers/Scene360Controller/SceneAnimationHandler.d.ts +23 -0
- package/build/types/controllers/Scene360Controller/index.d.ts +34 -0
- package/build/types/createWidget/TWidgetInputParams.d.ts +11 -0
- package/build/types/createWidget/WidgetBuilder.d.ts +20 -0
- package/build/types/createWidget/WidgetDirector.d.ts +4 -0
- package/build/types/createWidget/createWidget.d.ts +6 -0
- package/build/types/enums/MouseButton.d.ts +5 -0
- package/build/types/enums/RoomIcons.d.ts +1 -0
- package/build/types/lib/Arrayf.d.ts +10 -0
- package/build/types/lib/ClassMaker.d.ts +5 -0
- package/build/types/lib/CollisionResolver.d.ts +6 -0
- package/build/types/lib/ColorRgba.d.ts +63 -0
- package/build/types/lib/Device.d.ts +6 -0
- package/build/types/lib/Line2.d.ts +21 -0
- package/build/types/lib/Mathf.d.ts +30 -0
- package/build/types/lib/Objectf.d.ts +5 -0
- package/build/types/lib/Polygon2.d.ts +41 -0
- package/build/types/lib/RoomApertureResolver.d.ts +12 -0
- package/build/types/lib/Sprintf.d.ts +3 -0
- package/build/types/lib/TemplateDecoder.d.ts +20 -0
- package/build/types/lib/ThreeNormal.d.ts +7 -0
- package/build/types/lib/TopViewHelper.d.ts +7 -0
- package/build/types/lib/TypedObserver.d.ts +14 -0
- package/build/types/lib/UnrealToThree.d.ts +10 -0
- package/build/types/lib/V3.d.ts +45 -0
- package/build/types/lib/Vector2.d.ts +67 -0
- package/build/types/lib/Waiter.d.ts +4 -0
- package/build/types/lib/preventDefault.d.ts +1 -0
- package/build/types/lib/unused.d.ts +3 -0
- package/build/types/locale/index.d.ts +53 -0
- package/build/types/locale/types/TLocaleOverrides.d.ts +23 -0
- package/build/types/plugins/IPlugin.d.ts +12 -0
- package/build/types/plugins/PluginManager.d.ts +21 -0
- package/build/types/resources/GLTFResource/GLTFNormalizer.d.ts +19 -0
- package/build/types/resources/GLTFResource/index.d.ts +17 -0
- package/build/types/resources/TextureResource.d.ts +9 -0
- package/build/types/scenes/Scene360/core/Camera.d.ts +13 -0
- package/build/types/scenes/Scene360/core/Renderer.d.ts +11 -0
- package/build/types/scenes/Scene360/core/SideRenderer.d.ts +5 -0
- package/build/types/scenes/Scene360/core/ViewPoint.d.ts +8 -0
- package/build/types/scenes/Scene360/index.d.ts +27 -0
- package/build/types/scenes/Scene360/objects/Cursor3D.d.ts +16 -0
- package/build/types/scenes/Scene360/objects/EnvMap.d.ts +15 -0
- package/build/types/scenes/Scene360/objects/GLTFObject.d.ts +22 -0
- package/build/types/solid-js/makeStore.d.ts +1 -0
- package/build/types/store/ConfigStore/index.d.ts +43 -0
- package/build/types/store/ContainerStore/index.d.ts +39 -0
- package/build/types/store/DoorLinkStore/index.d.ts +41 -0
- package/build/types/store/EditorStore/index.d.ts +13 -0
- package/build/types/store/ErrorScreenStore/index.d.ts +19 -0
- package/build/types/store/ErrorStore/index.d.ts +14 -0
- package/build/types/store/FurnitureStore/index.d.ts +24 -0
- package/build/types/store/IndexStore/IndexResolver.d.ts +17 -0
- package/build/types/store/IndexStore/index.d.ts +34 -0
- package/build/types/store/LoadingStore/index.d.ts +22 -0
- package/build/types/store/LocaleStore/index.d.ts +29 -0
- package/build/types/store/LoggerStore/index.d.ts +13 -0
- package/build/types/store/MapStore/index.d.ts +23 -0
- package/build/types/store/OverrideStore/index.d.ts +31 -0
- package/build/types/store/RaycastStore/index.d.ts +13 -0
- package/build/types/store/RoomLinkStore/index.d.ts +47 -0
- package/build/types/store/SettingsStore/index.d.ts +16 -0
- package/build/types/store/TabStore/Tab2DStore/index.d.ts +12 -0
- package/build/types/store/TabStore/Tab360Store/index.d.ts +37 -0
- package/build/types/store/TabStore/index.d.ts +32 -0
- package/build/types/store/TexturePackStore/index.d.ts +16 -0
- package/build/types/store/VertexStore/index.d.ts +21 -0
- package/build/types/store/VisibilityStore/index.d.ts +17 -0
- package/build/types/store/WallStore/index.d.ts +22 -0
- package/build/types/store/index.d.ts +55 -0
- package/build/types/three/EnvMapMaterial/index.d.ts +15 -0
- package/build/types/three/GFPGLTFLoader/GLTFParser.d.ts +226 -0
- package/build/types/three/GFPGLTFLoader/GLTFRegistry.d.ts +7 -0
- package/build/types/three/GFPGLTFLoader/constants/ALPHA_MODES.d.ts +5 -0
- package/build/types/three/GFPGLTFLoader/constants/ATTRIBUTES.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/constants/EXTENSIONS.d.ts +24 -0
- package/build/types/three/GFPGLTFLoader/constants/INTERPOLATION.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/constants/PATH_PROPERTIES.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/constants/WEBGL_COMPONENT_TYPES.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/constants/WEBGL_CONSTANTS.d.ts +20 -0
- package/build/types/three/GFPGLTFLoader/constants/WEBGL_FILTERS.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/constants/WEBGL_TYPE_SIZES.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/constants/WEBGL_WRAPPINGS.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFBinaryExtension.d.ts +13 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFDracoMeshCompressionExtension.d.ts +16 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFMaterialsEmissiveStrengthExtension.d.ts +14 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFMaterialsTransmissionExtension.d.ts +17 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFMaterialsUnlitExtension.d.ts +15 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFMeshGpuInstancing.d.ts +14 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFMeshQuantizationExtension.d.ts +11 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFMeshoptCompression.d.ts +14 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFTextureAVIFExtension.d.ts +14 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFTextureBasisUExtension.d.ts +14 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFTextureTransformExtension.d.ts +13 -0
- package/build/types/three/GFPGLTFLoader/extensions/GLTFTextureWebPExtension.d.ts +14 -0
- package/build/types/three/GFPGLTFLoader/index.d.ts +24 -0
- package/build/types/three/GFPGLTFLoader/lib/GLTFCubicSplineInterpolant.d.ts +6 -0
- package/build/types/three/GFPGLTFLoader/lib/GLTFCubicSplineQuaternionInterpolant.d.ts +4 -0
- package/build/types/three/GFPGLTFLoader/utils/addMorphTargets.d.ts +12 -0
- package/build/types/three/GFPGLTFLoader/utils/addPrimitiveAttributes.d.ts +9 -0
- package/build/types/three/GFPGLTFLoader/utils/addUnknownExtensionsToUserData.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/utils/assignExtrasToUserData.d.ts +7 -0
- package/build/types/three/GFPGLTFLoader/utils/computeBounds.d.ts +8 -0
- package/build/types/three/GFPGLTFLoader/utils/createAttributesKey.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/utils/createDefaultMaterial.d.ts +10 -0
- package/build/types/three/GFPGLTFLoader/utils/createPrimitiveKey.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/utils/getImageURIMimeType.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/utils/getNormalizedComponentScale.d.ts +1 -0
- package/build/types/three/GFPGLTFLoader/utils/updateMorphTargets.d.ts +7 -0
- package/build/types/three/SmartGLTFLoader.d.ts +11 -0
- package/build/types/three/UnrealMaterial/index.d.ts +91 -0
- package/build/types/types/DeepPartial.d.ts +3 -0
- package/build/types/types/DeepRequired.d.ts +3 -0
- package/build/types/types/IStoreProps.d.ts +4 -0
- package/build/types/types/Nullable.d.ts +1 -0
- package/build/types/types/TBuilding.d.ts +218 -0
- package/build/types/types/TGLTF.d.ts +14 -0
- package/build/types/types/TGLTFJson.d.ts +52 -0
- package/build/types/types/TTelemetry.d.ts +19 -0
- package/build/types/types/Tuple.d.ts +4 -0
- package/build/types/vendors/AIXSolutionsVendor/config/TAIXSolutionsConfig.d.ts +16 -0
- package/build/types/vendors/TVendorsConfig.d.ts +4 -0
- package/build/vendors/AIXSolutionsVendor.js +763 -0
- package/package.json +93 -0
|
@@ -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 @@
|
|
|
1
|
+
export type TLosslessFormat = 'exr' | 'png';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TLossyFormat = 'jpg' | 'jpeg' | 'webp';
|
|
@@ -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,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,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,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,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,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 {};
|