@qispace/vue3-player 0.1.13 → 0.1.18
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/dist/vue-components/config/vite.config.d.ts +1 -1
- package/dist/vue-components/config/vite.config.dev.d.ts +1 -1
- package/dist/vue-components/config/vite.config.web-components.d.ts +1 -1
- package/dist/vue-components/src/components/apartmentChooser/VApartmentChooser.vue.d.ts +8 -7
- package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserNavigation.vue.d.ts +6 -5
- package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserRaster.vue.d.ts +7 -6
- package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserRotator.vue.d.ts +5 -4
- package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserSvg.vue.d.ts +6 -5
- package/dist/vue-components/src/components/apartmentChooser/index.d.ts +1 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5.vue.d.ts +85 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5Camera.vue.d.ts +50 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5CameraDay.vue.d.ts +50 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5CameraDayTimeSample.vue.d.ts +50 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5Overlay.vue.d.ts +34 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5Transition.vue.d.ts +30 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5UiCamera.vue.d.ts +25 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5UiDay.vue.d.ts +25 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5UiRotator.vue.d.ts +48 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/VApartmentChooserV5UiTimeSample.vue.d.ts +25 -0
- package/dist/vue-components/src/components/apartmentChooser/v5/types.d.ts +54 -0
- package/dist/vue-components/src/components/{buildingPicker → buildingChooser}/VBuildingChooser.vue.d.ts +17 -17
- package/dist/vue-components/src/components/{buildingPicker → buildingChooser}/VBuildingChooserRaster.vue.d.ts +23 -20
- package/dist/vue-components/src/components/{buildingPicker → buildingChooser}/VBuildingChooserRasterOverlay.vue.d.ts +15 -5
- package/dist/vue-components/src/components/{buildingPicker → buildingChooser}/VBuildingChooserSceneImageStack.vue.d.ts +11 -5
- package/dist/vue-components/src/components/{buildingPicker → buildingChooser}/VBuildingChooserSunSimControl.vue.d.ts +9 -7
- package/dist/vue-components/src/components/{buildingPicker → buildingChooser}/VBuildingChooserSvg.vue.d.ts +17 -19
- package/dist/vue-components/src/components/{buildingPicker → buildingChooser}/index.d.ts +1 -0
- package/dist/vue-components/src/components/buildingChooser/types.d.ts +60 -0
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5.vue.d.ts +83 -0
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5Camera.vue.d.ts +50 -0
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5CameraDay.vue.d.ts +50 -0
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5CameraDayTimeSample.vue.d.ts +50 -0
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5Overlay.vue.d.ts +34 -0
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5UiCamera.vue.d.ts +23 -0
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5UiDay.vue.d.ts +23 -0
- package/dist/vue-components/src/components/buildingChooser/v5/VBuildingChooserV5UiTimeSample.vue.d.ts +23 -0
- package/dist/vue-components/src/components/buildingChooser/v5/types.d.ts +41 -0
- package/dist/vue-components/src/components/index.d.ts +3 -1
- package/dist/vue-components/src/components/injectionKeys.d.ts +3 -2
- package/dist/vue-components/src/components/manualSlideShow/VManualSlideShow.vue.d.ts +47 -0
- package/dist/vue-components/src/components/manualSlideShow/VManualSlideShowPlayer.vue.d.ts +35 -0
- package/dist/vue-components/src/components/manualSlideShow/index.d.ts +1 -0
- package/dist/vue-components/src/components/miniMap/VMiniMap.vue.d.ts +51 -0
- package/dist/vue-components/src/components/{virtualTour/minimap/VMinimapCompass.vue.d.ts → miniMap/VMiniMapCompass.vue.d.ts} +4 -4
- package/dist/vue-components/src/components/miniMap/VMiniMapMap.vue.d.ts +28 -0
- package/dist/vue-components/src/components/{virtualTour/minimap → miniMap}/VRotationMarker.vue.d.ts +2 -2
- package/dist/vue-components/src/components/miniMap/VSunSimulationSlider.vue.d.ts +28 -0
- package/dist/vue-components/src/components/shared/VDisclaimer.vue.d.ts +2 -0
- package/dist/vue-components/src/components/shared/VFloatingCard.vue.d.ts +9 -7
- package/dist/vue-components/src/components/{virtualTour → shared}/VFullScreenButton.vue.d.ts +3 -3
- package/dist/vue-components/src/components/shared/VHoverProbe.vue.d.ts +3 -3
- package/dist/vue-components/src/components/shared/VNorthDirection.vue.d.ts +2 -2
- package/dist/vue-components/src/components/{virtualTour → shared}/VSingleImage.vue.d.ts +2 -2
- package/dist/vue-components/src/components/shared/VSocialShare.vue.d.ts +2 -0
- package/dist/vue-components/src/components/{virtualTour → shared}/VWaypointCarousel.vue.d.ts +13 -7
- package/dist/vue-components/src/components/shared/VZoomBox.vue.d.ts +8 -3
- package/dist/vue-components/src/components/types.d.ts +1 -0
- package/dist/vue-components/src/components/virtualTour/VCompass.vue.d.ts +2 -2
- package/dist/vue-components/src/components/virtualTour/VFloorLevel.vue.d.ts +8 -8
- package/dist/vue-components/src/components/virtualTour/VInteriorSelector.vue.d.ts +16 -7
- package/dist/vue-components/src/components/virtualTour/{minimap/VMiniMap.vue.d.ts → VMiniMap.vue.d.ts} +12 -15
- package/dist/vue-components/src/components/virtualTour/{minimap/VMoveable.vue.d.ts → VMoveable.vue.d.ts} +2 -2
- package/dist/vue-components/src/components/virtualTour/VPlayer.vue.d.ts +23 -24
- package/dist/vue-components/src/components/virtualTour/VPlayerSettingsUi.vue.d.ts +23 -0
- package/dist/vue-components/src/components/virtualTour/VTimeOfDay.vue.d.ts +2 -2
- package/dist/vue-components/src/components/virtualTour/VTutorial.vue.d.ts +3 -3
- package/dist/vue-components/src/components/virtualTour/VViewModeToggle.vue.d.ts +3 -3
- package/dist/vue-components/src/components/virtualTour/VVirtualTour.vue.d.ts +28 -35
- package/dist/vue-components/src/components/virtualTour/types.d.ts +113 -0
- package/dist/vue-components/src/lib/apartmentChooser/RotationStep.d.ts +2 -1
- package/dist/vue-components/src/lib/apartmentChooser/SceneRotator.d.ts +2 -1
- package/dist/vue-components/src/lib/buildingChooser/BuildingChooserResourceProvider.d.ts +32 -0
- package/dist/vue-components/src/lib/buildingChooser/BuildingMap.d.ts +9 -0
- package/dist/vue-components/src/lib/buildingChooser/CanvasRaster.d.ts +8 -0
- package/dist/vue-components/src/lib/{buildingPicker → buildingChooser}/DayOfYearSelector.d.ts +1 -1
- package/dist/vue-components/src/lib/{buildingPicker → buildingChooser}/index.d.ts +1 -1
- package/dist/vue-components/src/lib/index.d.ts +2 -1
- package/dist/vue-components/src/lib/shared/I18N.d.ts +1 -0
- package/dist/vue-components/src/lib/shared/ResourceLoader.d.ts +4 -2
- package/dist/vue-components/src/lib/virtualTour/index.d.ts +1 -0
- package/dist/vue-components/src/vue-components.d.ts +10 -6
- package/dist/vue-components/src/web-components.d.ts +4 -3
- package/dist/vue-components/style.css +1 -1
- package/dist/vue-components/vue3-player.js +3618 -2411
- package/dist/vue-components/vue3-player.umd.cjs +1 -1
- package/package.json +1 -1
- package/dist/vue-components/src/components/buildingPicker/types.d.ts +0 -2
- package/dist/vue-components/src/components/virtualTour/VDisclaimer.vue.d.ts +0 -2
- package/dist/vue-components/src/components/virtualTour/VSettingsUI.vue.d.ts +0 -23
- package/dist/vue-components/src/components/virtualTour/VSocialShare.vue.d.ts +0 -2
- package/dist/vue-components/src/components/virtualTour/minimap/VMiniMapMap.vue.d.ts +0 -25
- package/dist/vue-components/src/components/virtualTour/minimap/VSunSimulationSlider.vue.d.ts +0 -23
- package/dist/vue-components/src/lib/buildingPicker/BuildingMap.d.ts +0 -7
- package/dist/vue-components/src/lib/buildingPicker/BuildingPickerResourceProvider.d.ts +0 -27
- package/dist/vue-components/src/lib/buildingPicker/CanvasRaster.d.ts +0 -8
- /package/dist/vue-components/src/components/{virtualTour/minimap → miniMap}/index.d.ts +0 -0
- /package/dist/vue-components/src/lib/{buildingPicker → buildingChooser}/SampleRaster.d.ts +0 -0
- /package/dist/vue-components/src/lib/{virtualTour → shared}/FullscreenModel.d.ts +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
level?: number;
|
|
3
|
-
floorLevels?: Array<
|
|
3
|
+
floorLevels?: Array<number>;
|
|
4
4
|
}>, {
|
|
5
5
|
level: number;
|
|
6
6
|
floorLevels: () => any[];
|
|
7
|
-
}>, {}, unknown, {}, {}, import(
|
|
8
|
-
level: (
|
|
9
|
-
}, string, import(
|
|
7
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
level: (level: number) => void;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
10
10
|
level?: number;
|
|
11
|
-
floorLevels?: Array<
|
|
11
|
+
floorLevels?: Array<number>;
|
|
12
12
|
}>, {
|
|
13
13
|
level: number;
|
|
14
14
|
floorLevels: () => any[];
|
|
15
15
|
}>>> & {
|
|
16
|
-
onLevel?: (
|
|
16
|
+
onLevel?: (level: number) => any;
|
|
17
17
|
}, {
|
|
18
18
|
level: number;
|
|
19
|
-
floorLevels: Array<
|
|
19
|
+
floorLevels: Array<number>;
|
|
20
20
|
}, {}>;
|
|
21
21
|
export default _default;
|
|
22
22
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CdnFileResolverCallback, Unpacked } from '../types';
|
|
2
|
+
import { ConfigJson } from './types';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
6
|
+
availableArchetypes: Array<Unpacked<ConfigJson['archetypes']> & {
|
|
7
|
+
url: string;
|
|
8
|
+
}>;
|
|
3
9
|
selectedIndex: number;
|
|
4
|
-
}>, {}, unknown, {}, {}, import(
|
|
5
|
-
selectInterior: (
|
|
6
|
-
}, string, import(
|
|
7
|
-
|
|
10
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
selectInterior: (interiorId: string) => void;
|
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
14
|
+
availableArchetypes: Array<Unpacked<ConfigJson['archetypes']> & {
|
|
15
|
+
url: string;
|
|
16
|
+
}>;
|
|
8
17
|
selectedIndex: number;
|
|
9
18
|
}>>> & {
|
|
10
|
-
onSelectInterior?: (
|
|
19
|
+
onSelectInterior?: (interiorId: string) => any;
|
|
11
20
|
}, {}, {}>;
|
|
12
21
|
export default _default;
|
|
13
22
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ApartmentJson, MiniMapJson } from './types';
|
|
2
|
+
import { CdnFileResolverCallback } from '../types';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
6
|
+
minimapJson: MiniMapJson;
|
|
7
|
+
apartmentJson: ApartmentJson;
|
|
7
8
|
currentCamera: string;
|
|
8
9
|
level: number;
|
|
9
10
|
rotation: number;
|
|
10
|
-
}>, {}, unknown, {}, {}, import(
|
|
11
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
12
|
close: () => void;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
backgroundImage: string;
|
|
17
|
-
allCameras: Array<any>;
|
|
18
|
-
minimapCamera: any;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
14
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
15
|
+
minimapJson: MiniMapJson;
|
|
16
|
+
apartmentJson: ApartmentJson;
|
|
19
17
|
currentCamera: string;
|
|
20
18
|
level: number;
|
|
21
19
|
rotation: number;
|
|
22
20
|
}>>> & {
|
|
23
21
|
onClose?: () => any;
|
|
24
|
-
onSetBackgroundImage?: (args_0: any) => any;
|
|
25
22
|
}, {}, {}>;
|
|
26
23
|
export default _default;
|
|
27
24
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
declare const _default: __VLS_WithTemplateSlots<import(
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
2
|
close: () => void;
|
|
3
3
|
transform: () => void;
|
|
4
|
-
}, string, import(
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>> & {
|
|
5
5
|
onClose?: () => any;
|
|
6
6
|
onTransform?: () => any;
|
|
7
7
|
}, {}, {}>, {
|
|
@@ -1,42 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { CdnFileResolverCallback } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
5
|
+
interiorId: string;
|
|
6
|
+
apartmentId: string;
|
|
4
7
|
currentCameraId?: string;
|
|
5
8
|
showStaticImage: boolean;
|
|
6
9
|
isFullScreen: boolean;
|
|
7
10
|
mouseSensitivity?: number;
|
|
8
|
-
isInIframe?: boolean;
|
|
9
11
|
}>, {
|
|
10
12
|
mouseSensitivity: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
newCameraCallback: (cameraId: string) => void;
|
|
15
|
+
newRotationCallback: (rotation: number) => void;
|
|
16
|
+
newFloorCallback: (floor: number) => void;
|
|
17
|
+
newFovCallback: (fov: number) => void;
|
|
18
|
+
playerApiCallback: (playerApi: any) => void;
|
|
19
|
+
newSizeCallback: (width: number, height: number) => void;
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
21
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
22
|
+
interiorId: string;
|
|
23
|
+
apartmentId: string;
|
|
22
24
|
currentCameraId?: string;
|
|
23
25
|
showStaticImage: boolean;
|
|
24
26
|
isFullScreen: boolean;
|
|
25
27
|
mouseSensitivity?: number;
|
|
26
|
-
isInIframe?: boolean;
|
|
27
28
|
}>, {
|
|
28
29
|
mouseSensitivity: number;
|
|
29
|
-
isInIframe: boolean;
|
|
30
30
|
}>>> & {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
31
|
+
onNewCameraCallback?: (cameraId: string) => any;
|
|
32
|
+
onNewRotationCallback?: (rotation: number) => any;
|
|
33
|
+
onNewFloorCallback?: (floor: number) => any;
|
|
34
|
+
onNewFovCallback?: (fov: number) => any;
|
|
35
|
+
onPlayerApiCallback?: (playerApi: any) => any;
|
|
36
|
+
onNewSizeCallback?: (width: number, height: number) => any;
|
|
37
37
|
}, {
|
|
38
38
|
mouseSensitivity: number;
|
|
39
|
-
isInIframe: boolean;
|
|
40
39
|
}, {}>, {
|
|
41
40
|
"slideshow-image"?(_: {}): any;
|
|
42
41
|
"top-left"?(_: {}): any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PlayerSettings } from './types';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
initialSettings?: PlayerSettings;
|
|
5
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
updateSettings: (playerSettings: PlayerSettings) => void;
|
|
7
|
+
saveSettings: (playerSettings: PlayerSettings) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
initialSettings?: PlayerSettings;
|
|
10
|
+
}>>> & {
|
|
11
|
+
onUpdateSettings?: (playerSettings: PlayerSettings) => any;
|
|
12
|
+
onSaveSettings?: (playerSettings: PlayerSettings) => any;
|
|
13
|
+
}, {}, {}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
+
} : {
|
|
20
|
+
type: import('vue').PropType<T[K]>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
hours: number;
|
|
3
3
|
minutes: number;
|
|
4
4
|
}>, {
|
|
5
5
|
hours: number;
|
|
6
6
|
minutes: number;
|
|
7
|
-
}>, {}, unknown, {}, {}, import(
|
|
7
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
8
8
|
hours: number;
|
|
9
9
|
minutes: number;
|
|
10
10
|
}>, {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
project: string;
|
|
3
|
-
}>, {}, unknown, {}, {}, import(
|
|
3
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
4
|
closeTutorial: () => void;
|
|
5
|
-
}, string, import(
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
6
|
project: string;
|
|
7
7
|
}>>> & {
|
|
8
8
|
onCloseTutorial?: () => any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
2
2
|
showStaticImage: boolean;
|
|
3
|
-
}>, {}, unknown, {}, {}, import(
|
|
3
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
4
4
|
toggle: () => void;
|
|
5
|
-
}, string, import(
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
6
|
showStaticImage: boolean;
|
|
7
7
|
}>>> & {
|
|
8
8
|
onToggle?: () => any;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { default as CameraSnapshot } from '../../lib/virtualTour/CameraSnapshot';
|
|
2
|
+
import { CdnFileResolverCallback, I18NConfig } from '../types';
|
|
3
|
+
import { ApartmentJson, PlayerSettings } from './types';
|
|
4
|
+
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
6
7
|
apartmentId: string;
|
|
7
8
|
defaultInteriorId?: string;
|
|
8
|
-
validInteriorIds?: Array<
|
|
9
|
-
viewModes?: Array<string>;
|
|
9
|
+
validInteriorIds?: Array<string>;
|
|
10
10
|
displayViewModeSwitch?: boolean;
|
|
11
11
|
websiteUrl?: string;
|
|
12
12
|
i18nConfig?: I18NConfig;
|
|
@@ -24,10 +24,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
24
24
|
mouseSensitivity?: number;
|
|
25
25
|
isInIframe?: boolean;
|
|
26
26
|
adminMode?: boolean;
|
|
27
|
-
playerSettings?:
|
|
27
|
+
playerSettings?: PlayerSettings;
|
|
28
28
|
}>, {
|
|
29
29
|
validInteriorIds: () => any[];
|
|
30
|
-
viewModes: () => string[];
|
|
31
30
|
displayViewModeSwitch: boolean;
|
|
32
31
|
showCarousel: boolean;
|
|
33
32
|
showTimeOfDay: boolean;
|
|
@@ -41,7 +40,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
41
40
|
defaultWaypointIndex: number;
|
|
42
41
|
defaultViewMode: string;
|
|
43
42
|
mouseSensitivity: number;
|
|
44
|
-
isInIframe: boolean;
|
|
45
43
|
adminMode: boolean;
|
|
46
44
|
playerSettings: () => {
|
|
47
45
|
temperature: number;
|
|
@@ -52,20 +50,18 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
52
50
|
UNREAL_BLOOM_STRENGTH: number;
|
|
53
51
|
TRANSITION_MOVEMENT_SCALE: number;
|
|
54
52
|
whitePoint: number[];
|
|
53
|
+
lut: string;
|
|
55
54
|
};
|
|
56
|
-
}>, {}, unknown, {}, {}, import(
|
|
57
|
-
saveSettings: (
|
|
58
|
-
onSnapshot: (
|
|
59
|
-
onInteriorUpdate: (
|
|
60
|
-
onCameraUpdate: (
|
|
61
|
-
}, string, import(
|
|
62
|
-
|
|
63
|
-
cdnRoot: string;
|
|
64
|
-
projectSlug: string;
|
|
55
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
56
|
+
saveSettings: (playerSettings: PlayerSettings) => void;
|
|
57
|
+
onSnapshot: (snapshot: CameraSnapshot, rotation: [x: number, y: number, z: number]) => void;
|
|
58
|
+
onInteriorUpdate: (interiorId: string) => void;
|
|
59
|
+
onCameraUpdate: (cameraId: string, apartmentJson: ApartmentJson) => void;
|
|
60
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
61
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
65
62
|
apartmentId: string;
|
|
66
63
|
defaultInteriorId?: string;
|
|
67
|
-
validInteriorIds?: Array<
|
|
68
|
-
viewModes?: Array<string>;
|
|
64
|
+
validInteriorIds?: Array<string>;
|
|
69
65
|
displayViewModeSwitch?: boolean;
|
|
70
66
|
websiteUrl?: string;
|
|
71
67
|
i18nConfig?: I18NConfig;
|
|
@@ -83,10 +79,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
83
79
|
mouseSensitivity?: number;
|
|
84
80
|
isInIframe?: boolean;
|
|
85
81
|
adminMode?: boolean;
|
|
86
|
-
playerSettings?:
|
|
82
|
+
playerSettings?: PlayerSettings;
|
|
87
83
|
}>, {
|
|
88
84
|
validInteriorIds: () => any[];
|
|
89
|
-
viewModes: () => string[];
|
|
90
85
|
displayViewModeSwitch: boolean;
|
|
91
86
|
showCarousel: boolean;
|
|
92
87
|
showTimeOfDay: boolean;
|
|
@@ -100,7 +95,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
100
95
|
defaultWaypointIndex: number;
|
|
101
96
|
defaultViewMode: string;
|
|
102
97
|
mouseSensitivity: number;
|
|
103
|
-
isInIframe: boolean;
|
|
104
98
|
adminMode: boolean;
|
|
105
99
|
playerSettings: () => {
|
|
106
100
|
temperature: number;
|
|
@@ -111,31 +105,30 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
111
105
|
UNREAL_BLOOM_STRENGTH: number;
|
|
112
106
|
TRANSITION_MOVEMENT_SCALE: number;
|
|
113
107
|
whitePoint: number[];
|
|
108
|
+
lut: string;
|
|
114
109
|
};
|
|
115
110
|
}>>> & {
|
|
116
|
-
onSaveSettings?: (
|
|
117
|
-
onOnSnapshot?: (
|
|
118
|
-
onOnInteriorUpdate?: (
|
|
119
|
-
onOnCameraUpdate?: (
|
|
111
|
+
onSaveSettings?: (playerSettings: PlayerSettings) => any;
|
|
112
|
+
onOnSnapshot?: (snapshot: CameraSnapshot, rotation: [x: number, y: number, z: number]) => any;
|
|
113
|
+
onOnInteriorUpdate?: (interiorId: string) => any;
|
|
114
|
+
onOnCameraUpdate?: (cameraId: string, apartmentJson: ApartmentJson) => any;
|
|
120
115
|
}, {
|
|
121
|
-
showFullScreen: boolean;
|
|
122
|
-
showShare: boolean;
|
|
123
|
-
defaultWaypointIndex: number;
|
|
124
116
|
mouseSensitivity: number;
|
|
125
|
-
|
|
126
|
-
validInteriorIds: Array<any>;
|
|
127
|
-
viewModes: Array<string>;
|
|
117
|
+
validInteriorIds: Array<string>;
|
|
128
118
|
displayViewModeSwitch: boolean;
|
|
129
119
|
showCarousel: boolean;
|
|
130
120
|
showTimeOfDay: boolean;
|
|
131
121
|
showCompass: boolean;
|
|
122
|
+
showFullScreen: boolean;
|
|
132
123
|
showSnapshot: boolean;
|
|
124
|
+
showShare: boolean;
|
|
133
125
|
showInteriorOptions: boolean;
|
|
134
126
|
showMiniMap: boolean;
|
|
135
127
|
showFloorLevel: boolean;
|
|
128
|
+
defaultWaypointIndex: number;
|
|
136
129
|
defaultViewMode: string;
|
|
137
130
|
adminMode: boolean;
|
|
138
|
-
playerSettings:
|
|
131
|
+
playerSettings: PlayerSettings;
|
|
139
132
|
}, {}>;
|
|
140
133
|
export default _default;
|
|
141
134
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export type PlayerSettings = {
|
|
2
|
+
temperature: number;
|
|
3
|
+
targetLuminance: number;
|
|
4
|
+
exposureFovScale: number;
|
|
5
|
+
UNREAL_BLOOM_ENABLED: boolean;
|
|
6
|
+
sharpenFilter_amount: number;
|
|
7
|
+
UNREAL_BLOOM_STRENGTH: number;
|
|
8
|
+
TRANSITION_MOVEMENT_SCALE: number;
|
|
9
|
+
whitePoint: [r: number, g: number, b: number];
|
|
10
|
+
lut: string;
|
|
11
|
+
};
|
|
12
|
+
export type FullPlayerSettingBaseOptions<T = string> = {
|
|
13
|
+
label: string;
|
|
14
|
+
type: string;
|
|
15
|
+
value: T;
|
|
16
|
+
};
|
|
17
|
+
export type FullPlayerSettingNumberOptions = FullPlayerSettingBaseOptions<number> & {
|
|
18
|
+
min: number;
|
|
19
|
+
max: number;
|
|
20
|
+
step: number;
|
|
21
|
+
};
|
|
22
|
+
export type FullPlayerSettingBooleanOptions = FullPlayerSettingBaseOptions<boolean>;
|
|
23
|
+
export type FullPlayerSettingLutOptions = FullPlayerSettingBaseOptions<string> & {
|
|
24
|
+
items: Array<{
|
|
25
|
+
text: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}>;
|
|
28
|
+
};
|
|
29
|
+
export type FullPlayerSettings = {
|
|
30
|
+
temperature: FullPlayerSettingNumberOptions;
|
|
31
|
+
targetLuminance: FullPlayerSettingNumberOptions;
|
|
32
|
+
exposureFovScale: FullPlayerSettingNumberOptions;
|
|
33
|
+
UNREAL_BLOOM_ENABLED: FullPlayerSettingBooleanOptions;
|
|
34
|
+
sharpenFilter_amount: FullPlayerSettingNumberOptions;
|
|
35
|
+
UNREAL_BLOOM_STRENGTH: FullPlayerSettingNumberOptions;
|
|
36
|
+
TRANSITION_MOVEMENT_SCALE: FullPlayerSettingNumberOptions;
|
|
37
|
+
whitePoint: FullPlayerSettingBaseOptions;
|
|
38
|
+
lut: FullPlayerSettingLutOptions;
|
|
39
|
+
};
|
|
40
|
+
export type VirtualPlayerViewMode = 'virtualTour' | 'slideShow' | '';
|
|
41
|
+
export type ConfigJson = {
|
|
42
|
+
projectID: string;
|
|
43
|
+
defaultArchetypeID: string;
|
|
44
|
+
archetypes: Array<{
|
|
45
|
+
archetypeID: string;
|
|
46
|
+
description: {
|
|
47
|
+
en: string;
|
|
48
|
+
nb: string;
|
|
49
|
+
};
|
|
50
|
+
title: {
|
|
51
|
+
en: string;
|
|
52
|
+
nb: string;
|
|
53
|
+
};
|
|
54
|
+
}>;
|
|
55
|
+
has360: boolean;
|
|
56
|
+
version: number;
|
|
57
|
+
};
|
|
58
|
+
export type ApartmentJson = {
|
|
59
|
+
version: number;
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
type: string;
|
|
63
|
+
dayOfYear: number;
|
|
64
|
+
timeInHours: number;
|
|
65
|
+
offsetUTC: number;
|
|
66
|
+
latitude: number;
|
|
67
|
+
longitude: number;
|
|
68
|
+
defaultMinimap: any;
|
|
69
|
+
minimaps: Array<any>;
|
|
70
|
+
cameras: Array<{
|
|
71
|
+
id: string;
|
|
72
|
+
type: string;
|
|
73
|
+
floor_vertical_position: string;
|
|
74
|
+
title: string;
|
|
75
|
+
description: string;
|
|
76
|
+
floorLevel: number;
|
|
77
|
+
position: string;
|
|
78
|
+
rotation: string;
|
|
79
|
+
uposition: string;
|
|
80
|
+
urotation: string;
|
|
81
|
+
hasQA: boolean;
|
|
82
|
+
fieldOfView: number;
|
|
83
|
+
}>;
|
|
84
|
+
};
|
|
85
|
+
export type ThumbsJson = {
|
|
86
|
+
version: number;
|
|
87
|
+
id: string;
|
|
88
|
+
cameras: Array<{
|
|
89
|
+
v: string;
|
|
90
|
+
id: string;
|
|
91
|
+
title: string;
|
|
92
|
+
description: string;
|
|
93
|
+
thumbnail_url: string;
|
|
94
|
+
}>;
|
|
95
|
+
};
|
|
96
|
+
export type MiniMapJson = {
|
|
97
|
+
storeys: Array<{
|
|
98
|
+
position: {
|
|
99
|
+
x: number;
|
|
100
|
+
y: number;
|
|
101
|
+
z: number;
|
|
102
|
+
};
|
|
103
|
+
rotation: {
|
|
104
|
+
x: number;
|
|
105
|
+
y: number;
|
|
106
|
+
z: number;
|
|
107
|
+
};
|
|
108
|
+
fovY: number;
|
|
109
|
+
sunsimFiles: Array<string>;
|
|
110
|
+
sunsimFilesTimeStamps: Array<string>;
|
|
111
|
+
defaultSunsimFile: string;
|
|
112
|
+
}>;
|
|
113
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { CdnFileResolverCallback } from '../../vue-components';
|
|
2
|
+
import { BuildingChooserConfig, BuildingChooserData } from '../../components/buildingChooser/types';
|
|
3
|
+
|
|
4
|
+
export default class BuildingChooserResourceProvider {
|
|
5
|
+
private _cdnFileResolver;
|
|
6
|
+
private _resourceLoader;
|
|
7
|
+
constructor(cdnFileResolver: CdnFileResolverCallback);
|
|
8
|
+
constructFileUrl(filename: string): string;
|
|
9
|
+
loadBuildingMapImage(config: Pick<BuildingChooserData, 'lookupFilename'>): Promise<HTMLImageElement>;
|
|
10
|
+
getViewLongitude(config: Pick<BuildingChooserData, 'cameraRotation'>): number;
|
|
11
|
+
getBuildingData(config: Pick<BuildingChooserData, 'buildings'>): {
|
|
12
|
+
buildingIds: Array<string>;
|
|
13
|
+
buildingOverlays: Array<{
|
|
14
|
+
id: string;
|
|
15
|
+
url: string;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
getBackgroundImageData(config: Pick<BuildingChooserData, 'timeSamples' | 'days'>): Array<{
|
|
19
|
+
urls: Array<string>;
|
|
20
|
+
referenceDate: Date;
|
|
21
|
+
}>;
|
|
22
|
+
processMultipleDays(dayRecords: BuildingChooserData['days']): {
|
|
23
|
+
urls: string[];
|
|
24
|
+
referenceDate: Date;
|
|
25
|
+
}[];
|
|
26
|
+
processTimeSamples(dayOfYear: number, timeSamples: BuildingChooserData['timeSamples']): {
|
|
27
|
+
urls: string[];
|
|
28
|
+
referenceDate: Date;
|
|
29
|
+
};
|
|
30
|
+
makeReferenceDate(dayOfYear: number): Date;
|
|
31
|
+
loadBuildingChooser(config?: Pick<BuildingChooserData, 'lookupFilename' | 'cameraRotation' | 'buildings' | 'timeSamples' | 'days'>): Promise<null | BuildingChooserConfig>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as CanvasRaster } from './CanvasRaster';
|
|
2
|
+
|
|
3
|
+
export default class BuildingMap {
|
|
4
|
+
private _buildingIds;
|
|
5
|
+
static empty(): BuildingMap;
|
|
6
|
+
constructor(buildingIds: Array<string>);
|
|
7
|
+
getBuildingId(raster: CanvasRaster, x: number, y: number): string;
|
|
8
|
+
_getBuildingIndex(raster: CanvasRaster, x: number, y: number): number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export default class CanvasRaster {
|
|
2
|
+
private _mapImage;
|
|
3
|
+
private _context;
|
|
4
|
+
static empty(): CanvasRaster;
|
|
5
|
+
constructor(mapImage: HTMLImageElement);
|
|
6
|
+
update(canvas: HTMLCanvasElement): void;
|
|
7
|
+
getPixel(x: number, y: number): Array<number> | Uint8ClampedArray;
|
|
8
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as BuildingMap } from './BuildingMap';
|
|
2
|
-
export { default as
|
|
2
|
+
export { default as BuildingChooserResourceProvider } from './BuildingChooserResourceProvider';
|
|
3
3
|
export { default as CanvasRaster } from './CanvasRaster';
|
|
4
4
|
export { default as DayOfYearSelector } from './DayOfYearSelector';
|
|
5
5
|
export { default as SampleRaster } from './SampleRaster';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export default class ResourceLoader {
|
|
2
|
+
static loadText(url: string): Promise<string>;
|
|
2
3
|
static loadJson<T = any>(url: string): Promise<T>;
|
|
3
|
-
static loadImage(url: string): Promise<
|
|
4
|
+
static loadImage(url: string): Promise<HTMLImageElement>;
|
|
4
5
|
static loadImageData(url: string): Promise<string>;
|
|
6
|
+
loadText(url: string): Promise<string>;
|
|
5
7
|
loadJson<T = any>(url: string): Promise<T>;
|
|
6
|
-
loadImage(url: string): Promise<
|
|
8
|
+
loadImage(url: string): Promise<HTMLImageElement>;
|
|
7
9
|
loadImageData(url: string): Promise<string>;
|
|
8
10
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CameraSnapshot } from './CameraSnapshot';
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { VApartmentChooser, VBuildingChooser, VVirtualTour, VFloatingCard, VHoverProbe, VNorthDirection, VZoomBox } from './components';
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { VApartmentChooser, VApartmentChooserV5, VBuildingChooser, VBuildingChooserV5, VVirtualTour, VFloatingCard, VHoverProbe, VNorthDirection, VZoomBox } from './components';
|
|
3
3
|
import { ResourceLoader } from './lib';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { CdnFileResolverCallback, Color, ColorCallback, HoverState, I18NConfig, Pos } from './components/types';
|
|
5
|
+
import { ApartmentChooserDataInitializer, ApartmentChooserData, CanGoToUnitCallback, SceneData, UnitRenderer } from './components/apartmentChooser/types';
|
|
6
|
+
import { BuildingChooserData, BuildingChooserConfig, CanGoToBuildingCallback } from './components/buildingChooser/types';
|
|
7
|
+
import { ApartmentChooserDataV5 } from './components/apartmentChooser/v5/types';
|
|
8
|
+
import { BuildingChooserDataV5 } from './components/buildingChooser/v5/types';
|
|
9
|
+
import { ApartmentJson, ConfigJson, FullPlayerSettingBaseOptions, FullPlayerSettingBooleanOptions, FullPlayerSettingLutOptions, FullPlayerSettingNumberOptions, FullPlayerSettings, MiniMapJson, PlayerSettings, ThumbsJson, VirtualPlayerViewMode } from './components/virtualTour/types';
|
|
10
|
+
|
|
7
11
|
declare const _default: {
|
|
8
12
|
install: (app: App) => void;
|
|
9
13
|
};
|
|
10
14
|
export default _default;
|
|
11
|
-
export { VApartmentChooser, VBuildingChooser, VVirtualTour, VFloatingCard, VHoverProbe, VNorthDirection, VZoomBox, ResourceLoader, CdnFileResolverCallback, Color, ColorCallback, HoverState, I18NConfig, Pos, ApartmentChooserDataInitializer, ApartmentChooserData, CanGoToUnitCallback, SceneData, UnitRenderer,
|
|
15
|
+
export { VApartmentChooser, VApartmentChooserV5, VBuildingChooser, VBuildingChooserV5, VVirtualTour, VFloatingCard, VHoverProbe, VNorthDirection, VZoomBox, ResourceLoader, CdnFileResolverCallback, Color, ColorCallback, HoverState, I18NConfig, Pos, ApartmentChooserDataInitializer, ApartmentChooserData, CanGoToUnitCallback, SceneData, UnitRenderer, BuildingChooserData, BuildingChooserConfig, CanGoToBuildingCallback, ApartmentChooserDataV5, BuildingChooserDataV5, ApartmentJson, ConfigJson, FullPlayerSettingBaseOptions, FullPlayerSettingBooleanOptions, FullPlayerSettingLutOptions, FullPlayerSettingNumberOptions, FullPlayerSettings, MiniMapJson, PlayerSettings, ThumbsJson, VirtualPlayerViewMode, };
|