@qispace/vue3-player 0.1.6 → 0.1.9
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/src/components/apartmentChooser/VApartmentChooser.vue.d.ts +34 -34
- package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserNavigation.vue.d.ts +14 -11
- package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserRaster.vue.d.ts +33 -23
- package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserRotator.vue.d.ts +8 -6
- package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserSvg.vue.d.ts +33 -23
- package/dist/vue-components/src/components/apartmentChooser/types.d.ts +39 -12
- package/dist/vue-components/src/components/buildingPicker/VBuildingChooser.vue.d.ts +2 -1
- package/dist/vue-components/src/components/buildingPicker/VBuildingChooserRaster.vue.d.ts +4 -3
- package/dist/vue-components/src/components/buildingPicker/VBuildingChooserRasterOverlay.vue.d.ts +1 -1
- package/dist/vue-components/src/components/buildingPicker/VBuildingChooserSvg.vue.d.ts +4 -3
- package/dist/vue-components/src/components/buildingPicker/types.d.ts +0 -9
- package/dist/vue-components/src/components/injectionKeys.d.ts +4 -0
- package/dist/vue-components/src/components/types.d.ts +24 -0
- package/dist/vue-components/src/components/virtualTour/VVirtualTour.vue.d.ts +3 -2
- package/dist/vue-components/src/lib/apartmentChooser/BuildingViewerModel.d.ts +6 -10
- package/dist/vue-components/src/lib/apartmentChooser/RotationStep.d.ts +3 -2
- package/dist/vue-components/src/lib/apartmentChooser/SceneRotator.d.ts +5 -5
- package/dist/vue-components/src/lib/shared/BatchLoadTracker.d.ts +5 -5
- package/dist/vue-components/src/lib/shared/I18N.d.ts +4 -3
- package/dist/vue-components/src/lib/shared/ResourceLoader.d.ts +6 -3
- package/dist/vue-components/src/vue-components.d.ts +6 -2
- package/dist/vue-components/style.css +1 -1
- package/dist/vue-components/vue3-player.js +1855 -1864
- package/dist/vue-components/vue3-player.umd.cjs +1 -1
- package/package.json +2 -3
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { ApartmentChooserData, ApartmentChooserDataInitializer, CanGoToUnitCallback, UnitRenderer } from './types';
|
|
3
|
+
import type { ColorCallback, CdnFileResolverCallback, I18NConfig } from '../types';
|
|
2
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
-
|
|
5
|
+
i18nConfig?: I18NConfig;
|
|
4
6
|
showCards?: boolean;
|
|
5
7
|
build?: string;
|
|
6
|
-
buildingSceneDataResolver?: BuildingSceneDataResolver;
|
|
7
|
-
buildingScenesByApartmentResolver?: BuildingScenesByApartmentResolver;
|
|
8
8
|
cdnFileResolver: CdnFileResolverCallback;
|
|
9
9
|
colorCallback?: ColorCallback;
|
|
10
|
-
unitCallback?: UnitCallback;
|
|
11
10
|
canGoToUnitCallback?: CanGoToUnitCallback;
|
|
11
|
+
unitRenderer?: UnitRenderer;
|
|
12
|
+
apartmentChooserData?: Pick<ApartmentChooserData, "sceneData" | "startScene" | "scenes">;
|
|
12
13
|
selectedUnitId?: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
drawObserver?: any
|
|
14
|
+
nextUnitId?: string;
|
|
15
|
+
prevUnitId?: string;
|
|
16
|
+
drawObserver?: Ref<any>;
|
|
16
17
|
interactiveDesktop?: boolean;
|
|
17
18
|
interactiveMobile?: boolean;
|
|
18
19
|
useSvg?: boolean;
|
|
@@ -26,33 +27,32 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
26
27
|
a: number;
|
|
27
28
|
s: number;
|
|
28
29
|
};
|
|
29
|
-
unitCallback: (unitId?: string) => string;
|
|
30
30
|
canGoToUnitCallback: () => true;
|
|
31
|
+
unitRenderer: (unitId: string) => string;
|
|
31
32
|
drawObserver: any;
|
|
32
33
|
interactiveDesktop: boolean;
|
|
33
34
|
interactiveMobile: boolean;
|
|
34
35
|
useSvg: boolean;
|
|
35
36
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
-
selectUnit: (
|
|
37
|
-
goToUnit: (
|
|
38
|
-
navUnit: (
|
|
39
|
-
hoverOverUnit: (
|
|
40
|
-
hoverOutUnit: (
|
|
41
|
-
initialized: (
|
|
37
|
+
selectUnit: (unitId: string) => void;
|
|
38
|
+
goToUnit: (unitId: string) => void;
|
|
39
|
+
navUnit: (unitId: string) => void;
|
|
40
|
+
hoverOverUnit: (unitId: string | false) => void;
|
|
41
|
+
hoverOutUnit: (unitId: string | false) => void;
|
|
42
|
+
initialized: (initData: ApartmentChooserDataInitializer) => void;
|
|
42
43
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
43
|
-
|
|
44
|
+
i18nConfig?: I18NConfig;
|
|
44
45
|
showCards?: boolean;
|
|
45
46
|
build?: string;
|
|
46
|
-
buildingSceneDataResolver?: BuildingSceneDataResolver;
|
|
47
|
-
buildingScenesByApartmentResolver?: BuildingScenesByApartmentResolver;
|
|
48
47
|
cdnFileResolver: CdnFileResolverCallback;
|
|
49
48
|
colorCallback?: ColorCallback;
|
|
50
|
-
unitCallback?: UnitCallback;
|
|
51
49
|
canGoToUnitCallback?: CanGoToUnitCallback;
|
|
50
|
+
unitRenderer?: UnitRenderer;
|
|
51
|
+
apartmentChooserData?: Pick<ApartmentChooserData, "sceneData" | "startScene" | "scenes">;
|
|
52
52
|
selectedUnitId?: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
drawObserver?: any
|
|
53
|
+
nextUnitId?: string;
|
|
54
|
+
prevUnitId?: string;
|
|
55
|
+
drawObserver?: Ref<any>;
|
|
56
56
|
interactiveDesktop?: boolean;
|
|
57
57
|
interactiveMobile?: boolean;
|
|
58
58
|
useSvg?: boolean;
|
|
@@ -66,24 +66,24 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
66
66
|
a: number;
|
|
67
67
|
s: number;
|
|
68
68
|
};
|
|
69
|
-
unitCallback: (unitId?: string) => string;
|
|
70
69
|
canGoToUnitCallback: () => true;
|
|
70
|
+
unitRenderer: (unitId: string) => string;
|
|
71
71
|
drawObserver: any;
|
|
72
72
|
interactiveDesktop: boolean;
|
|
73
73
|
interactiveMobile: boolean;
|
|
74
74
|
useSvg: boolean;
|
|
75
75
|
}>>> & {
|
|
76
|
-
onSelectUnit?: (
|
|
77
|
-
onGoToUnit?: (
|
|
78
|
-
onNavUnit?: (
|
|
79
|
-
onHoverOverUnit?: (
|
|
80
|
-
onHoverOutUnit?: (
|
|
81
|
-
onInitialized?: (
|
|
76
|
+
onSelectUnit?: (unitId: string) => any;
|
|
77
|
+
onGoToUnit?: (unitId: string) => any;
|
|
78
|
+
onNavUnit?: (unitId: string) => any;
|
|
79
|
+
onHoverOverUnit?: (unitId: string | false) => any;
|
|
80
|
+
onHoverOutUnit?: (unitId: string | false) => any;
|
|
81
|
+
onInitialized?: (initData: ApartmentChooserDataInitializer) => any;
|
|
82
82
|
}, {
|
|
83
|
-
unitCallback: UnitCallback;
|
|
84
83
|
canGoToUnitCallback: CanGoToUnitCallback;
|
|
85
84
|
colorCallback: ColorCallback;
|
|
86
|
-
drawObserver: any
|
|
85
|
+
drawObserver: Ref<any>;
|
|
86
|
+
unitRenderer: UnitRenderer;
|
|
87
87
|
build: string;
|
|
88
88
|
showCards: boolean;
|
|
89
89
|
interactiveDesktop: boolean;
|
|
@@ -91,7 +91,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
91
91
|
useSvg: boolean;
|
|
92
92
|
}, {}>, {
|
|
93
93
|
default?(_: {
|
|
94
|
-
unit:
|
|
94
|
+
unit: string;
|
|
95
95
|
canGoToUnit: boolean;
|
|
96
96
|
goToUnit: () => void;
|
|
97
97
|
pos: {
|
|
@@ -100,8 +100,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
100
100
|
width: number;
|
|
101
101
|
height: number;
|
|
102
102
|
};
|
|
103
|
-
isHoverable:
|
|
104
|
-
close:
|
|
103
|
+
isHoverable: boolean;
|
|
104
|
+
close: () => void;
|
|
105
105
|
}): any;
|
|
106
106
|
}>;
|
|
107
107
|
export default _default;
|
package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserNavigation.vue.d.ts
CHANGED
|
@@ -1,26 +1,29 @@
|
|
|
1
|
-
import type { CanGoToUnitCallback } from './types';
|
|
1
|
+
import type { CanGoToUnitCallback, UnitRenderer } from './types';
|
|
2
|
+
import BuildingViewerModel from '../../lib/apartmentChooser/BuildingViewerModel';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
canGoToUnitCallback?: CanGoToUnitCallback;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
unitRenderer: UnitRenderer;
|
|
6
|
+
selectedUnitId?: string;
|
|
7
|
+
prevUnitId?: string;
|
|
8
|
+
nextUnitId?: string;
|
|
9
|
+
viewModel: BuildingViewerModel;
|
|
8
10
|
}>, {
|
|
9
11
|
canGoToUnitCallback: () => true;
|
|
10
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
goToUnit: (
|
|
13
|
+
goToUnit: (unitId: string) => void;
|
|
12
14
|
prevUnit: () => void;
|
|
13
15
|
nextUnit: () => void;
|
|
14
16
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
15
17
|
canGoToUnitCallback?: CanGoToUnitCallback;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
unitRenderer: UnitRenderer;
|
|
19
|
+
selectedUnitId?: string;
|
|
20
|
+
prevUnitId?: string;
|
|
21
|
+
nextUnitId?: string;
|
|
22
|
+
viewModel: BuildingViewerModel;
|
|
20
23
|
}>, {
|
|
21
24
|
canGoToUnitCallback: () => true;
|
|
22
25
|
}>>> & {
|
|
23
|
-
onGoToUnit?: (
|
|
26
|
+
onGoToUnit?: (unitId: string) => any;
|
|
24
27
|
onPrevUnit?: () => any;
|
|
25
28
|
onNextUnit?: () => any;
|
|
26
29
|
}, {
|
package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserRaster.vue.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { CanGoToUnitCallback, SceneData } from './types';
|
|
3
|
+
import type { ColorCallback, CdnFileResolverCallback, Pos } from '../types';
|
|
4
|
+
import BuildingViewerModel from '../../lib/apartmentChooser/BuildingViewerModel';
|
|
2
5
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
6
|
cdnFileResolver: CdnFileResolverCallback;
|
|
4
|
-
viewModel:
|
|
7
|
+
viewModel: BuildingViewerModel;
|
|
5
8
|
selectedUnitId?: string;
|
|
6
|
-
unitCallback?: UnitCallback;
|
|
7
9
|
canGoToUnitCallback?: CanGoToUnitCallback;
|
|
8
|
-
sceneData?:
|
|
10
|
+
sceneData?: SceneData;
|
|
9
11
|
colorCallback: ColorCallback;
|
|
10
|
-
drawObserver?: any
|
|
12
|
+
drawObserver?: Ref<any>;
|
|
11
13
|
}>, {
|
|
12
|
-
unitCallback: (unitId?: string) => string;
|
|
13
14
|
canGoToUnitCallback: () => true;
|
|
14
15
|
sceneData: () => any[];
|
|
15
16
|
colorCallback: () => {
|
|
@@ -20,22 +21,26 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
21
|
s: number;
|
|
21
22
|
};
|
|
22
23
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
-
selectUnit: (
|
|
24
|
-
goToUnit: (
|
|
25
|
-
hoverOver: (
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
selectUnit: (unitId: string) => void;
|
|
25
|
+
goToUnit: (unitId: string) => void;
|
|
26
|
+
hoverOver: (hoverData: {
|
|
27
|
+
hoverUnit: string | false;
|
|
28
|
+
closeHandler: () => void;
|
|
29
|
+
}) => void;
|
|
30
|
+
hoverOut: (hoverData: {
|
|
31
|
+
hoverUnit: string | false;
|
|
32
|
+
closeHandler: () => void;
|
|
33
|
+
}) => void;
|
|
34
|
+
pos: (pos: Pos) => void;
|
|
28
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
29
36
|
cdnFileResolver: CdnFileResolverCallback;
|
|
30
|
-
viewModel:
|
|
37
|
+
viewModel: BuildingViewerModel;
|
|
31
38
|
selectedUnitId?: string;
|
|
32
|
-
unitCallback?: UnitCallback;
|
|
33
39
|
canGoToUnitCallback?: CanGoToUnitCallback;
|
|
34
|
-
sceneData?:
|
|
40
|
+
sceneData?: SceneData;
|
|
35
41
|
colorCallback: ColorCallback;
|
|
36
|
-
drawObserver?: any
|
|
42
|
+
drawObserver?: Ref<any>;
|
|
37
43
|
}>, {
|
|
38
|
-
unitCallback: (unitId?: string) => string;
|
|
39
44
|
canGoToUnitCallback: () => true;
|
|
40
45
|
sceneData: () => any[];
|
|
41
46
|
colorCallback: () => {
|
|
@@ -46,15 +51,20 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
46
51
|
s: number;
|
|
47
52
|
};
|
|
48
53
|
}>>> & {
|
|
49
|
-
onSelectUnit?: (
|
|
50
|
-
onGoToUnit?: (
|
|
51
|
-
onHoverOver?: (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
onSelectUnit?: (unitId: string) => any;
|
|
55
|
+
onGoToUnit?: (unitId: string) => any;
|
|
56
|
+
onHoverOver?: (hoverData: {
|
|
57
|
+
hoverUnit: string | false;
|
|
58
|
+
closeHandler: () => void;
|
|
59
|
+
}) => any;
|
|
60
|
+
onHoverOut?: (hoverData: {
|
|
61
|
+
hoverUnit: string | false;
|
|
62
|
+
closeHandler: () => void;
|
|
63
|
+
}) => any;
|
|
64
|
+
onPos?: (pos: Pos) => any;
|
|
54
65
|
}, {
|
|
55
|
-
unitCallback: UnitCallback;
|
|
56
66
|
canGoToUnitCallback: CanGoToUnitCallback;
|
|
57
|
-
sceneData:
|
|
67
|
+
sceneData: SceneData;
|
|
58
68
|
colorCallback: ColorCallback;
|
|
59
69
|
}, {}>;
|
|
60
70
|
export default _default;
|
package/dist/vue-components/src/components/apartmentChooser/VApartmentChooserRotator.vue.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import BuildingViewerModel from '../../lib/apartmentChooser/BuildingViewerModel';
|
|
2
|
+
import { CdnFileResolverCallback } from '../types';
|
|
1
3
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
viewModel:
|
|
4
|
+
viewModel: BuildingViewerModel;
|
|
3
5
|
build: string;
|
|
4
|
-
cdnFileResolver:
|
|
5
|
-
cardinalFrames: Array<
|
|
6
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
7
|
+
cardinalFrames: Array<number>;
|
|
6
8
|
}>, {
|
|
7
9
|
build: string;
|
|
8
10
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -10,10 +12,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
10
12
|
error: () => void;
|
|
11
13
|
loaded: () => void;
|
|
12
14
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
|
-
viewModel:
|
|
15
|
+
viewModel: BuildingViewerModel;
|
|
14
16
|
build: string;
|
|
15
|
-
cdnFileResolver:
|
|
16
|
-
cardinalFrames: Array<
|
|
17
|
+
cdnFileResolver: CdnFileResolverCallback;
|
|
18
|
+
cardinalFrames: Array<number>;
|
|
17
19
|
}>, {
|
|
18
20
|
build: string;
|
|
19
21
|
}>>> & {
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { CanGoToUnitCallback, SceneData } from './types';
|
|
3
|
+
import type { ColorCallback, CdnFileResolverCallback, Pos } from '../types';
|
|
4
|
+
import { BuildingViewerModel } from '../../lib';
|
|
2
5
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
6
|
cdnFileResolver: CdnFileResolverCallback;
|
|
4
|
-
viewModel:
|
|
7
|
+
viewModel: BuildingViewerModel;
|
|
5
8
|
selectedUnitId?: string;
|
|
6
|
-
unitCallback?: UnitCallback;
|
|
7
9
|
canGoToUnitCallback?: CanGoToUnitCallback;
|
|
8
|
-
sceneData?:
|
|
10
|
+
sceneData?: SceneData;
|
|
9
11
|
colorCallback: ColorCallback;
|
|
10
|
-
drawObserver?: any
|
|
12
|
+
drawObserver?: Ref<any>;
|
|
11
13
|
}>, {
|
|
12
|
-
unitCallback: (unitId?: string) => string;
|
|
13
14
|
canGoToUnitCallback: () => true;
|
|
14
15
|
sceneData: () => any[];
|
|
15
16
|
colorCallback: () => {
|
|
@@ -20,22 +21,26 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
20
21
|
s: number;
|
|
21
22
|
};
|
|
22
23
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
-
selectUnit: (
|
|
24
|
-
goToUnit: (
|
|
25
|
-
hoverOver: (
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
selectUnit: (unitId: string) => void;
|
|
25
|
+
goToUnit: (unitId: string) => void;
|
|
26
|
+
hoverOver: (hoverData: {
|
|
27
|
+
hoverUnit: string | false;
|
|
28
|
+
closeHandler: () => void;
|
|
29
|
+
}) => void;
|
|
30
|
+
hoverOut: (hoverData: {
|
|
31
|
+
hoverUnit: string | false;
|
|
32
|
+
closeHandler: () => void;
|
|
33
|
+
}) => void;
|
|
34
|
+
pos: (args_0: Pos) => void;
|
|
28
35
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
29
36
|
cdnFileResolver: CdnFileResolverCallback;
|
|
30
|
-
viewModel:
|
|
37
|
+
viewModel: BuildingViewerModel;
|
|
31
38
|
selectedUnitId?: string;
|
|
32
|
-
unitCallback?: UnitCallback;
|
|
33
39
|
canGoToUnitCallback?: CanGoToUnitCallback;
|
|
34
|
-
sceneData?:
|
|
40
|
+
sceneData?: SceneData;
|
|
35
41
|
colorCallback: ColorCallback;
|
|
36
|
-
drawObserver?: any
|
|
42
|
+
drawObserver?: Ref<any>;
|
|
37
43
|
}>, {
|
|
38
|
-
unitCallback: (unitId?: string) => string;
|
|
39
44
|
canGoToUnitCallback: () => true;
|
|
40
45
|
sceneData: () => any[];
|
|
41
46
|
colorCallback: () => {
|
|
@@ -46,15 +51,20 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
46
51
|
s: number;
|
|
47
52
|
};
|
|
48
53
|
}>>> & {
|
|
49
|
-
onSelectUnit?: (
|
|
50
|
-
onGoToUnit?: (
|
|
51
|
-
onHoverOver?: (
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
onSelectUnit?: (unitId: string) => any;
|
|
55
|
+
onGoToUnit?: (unitId: string) => any;
|
|
56
|
+
onHoverOver?: (hoverData: {
|
|
57
|
+
hoverUnit: string | false;
|
|
58
|
+
closeHandler: () => void;
|
|
59
|
+
}) => any;
|
|
60
|
+
onHoverOut?: (hoverData: {
|
|
61
|
+
hoverUnit: string | false;
|
|
62
|
+
closeHandler: () => void;
|
|
63
|
+
}) => any;
|
|
64
|
+
onPos?: (args_0: Pos) => any;
|
|
54
65
|
}, {
|
|
55
|
-
unitCallback: UnitCallback;
|
|
56
66
|
canGoToUnitCallback: CanGoToUnitCallback;
|
|
57
|
-
sceneData:
|
|
67
|
+
sceneData: SceneData;
|
|
58
68
|
colorCallback: ColorCallback;
|
|
59
69
|
}, {}>;
|
|
60
70
|
export default _default;
|
|
@@ -1,13 +1,40 @@
|
|
|
1
|
-
export type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
export type SceneData = Array<{
|
|
2
|
+
unitId: string;
|
|
3
|
+
index: number;
|
|
4
|
+
}>;
|
|
5
|
+
export type CanGoToUnitCallback = (unitId: string) => boolean;
|
|
6
|
+
export type UnitRenderer = (unitId: string) => string;
|
|
7
|
+
export type ApartmentChooserDataInitializer = {
|
|
8
|
+
scene: number;
|
|
9
|
+
scenes: Array<number>;
|
|
10
|
+
sceneData: SceneData;
|
|
11
|
+
scenesByApartment: {
|
|
12
|
+
[unitId: string]: number;
|
|
13
|
+
};
|
|
14
|
+
unitsSceneSort: (units: Array<{
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
}>, key?: string) => Array<{
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>;
|
|
19
|
+
initialize: (scene: number) => void;
|
|
20
|
+
};
|
|
21
|
+
export type ApartmentChooserData = {
|
|
22
|
+
renderVersion?: string;
|
|
23
|
+
version: number;
|
|
24
|
+
scenes?: Array<number>;
|
|
25
|
+
startScene?: number;
|
|
26
|
+
sceneData?: Array<{
|
|
27
|
+
index: number;
|
|
28
|
+
bestScene: number;
|
|
29
|
+
bestFrame: number;
|
|
30
|
+
apartmentID: string;
|
|
31
|
+
}>;
|
|
32
|
+
sceneCameras?: Array<{
|
|
33
|
+
scene: number;
|
|
34
|
+
cameraRotation: {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
z: number;
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
7
40
|
};
|
|
8
|
-
export type ColorCallback = (building: any, state: any) => Color;
|
|
9
|
-
export type BuildingSceneDataResolver = () => any;
|
|
10
|
-
export type BuildingScenesByApartmentResolver = () => any;
|
|
11
|
-
export type UnitCallback = (unitId: string) => any;
|
|
12
|
-
export type CdnFileResolverCallback = (path: string) => string;
|
|
13
|
-
export type CanGoToUnitCallback = (unit: any) => boolean;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BuildingCallback, CanGoToBuildingCallback } from './types';
|
|
2
|
+
import type { ColorCallback, CdnFileResolverCallback } from '../types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
showCards?: boolean;
|
|
4
5
|
colorCallback?: ColorCallback;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BuildingCallback, CanGoToBuildingCallback } from './types';
|
|
2
|
+
import type { ColorCallback, CdnFileResolverCallback, I18NConfig } from '../types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
showCards?: boolean;
|
|
4
5
|
colorCallback?: ColorCallback;
|
|
@@ -6,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
7
|
canGoToBuildingCallback?: CanGoToBuildingCallback;
|
|
7
8
|
buildingChooserTimeOfDay?: string;
|
|
8
9
|
cdnFileResolver: CdnFileResolverCallback;
|
|
9
|
-
|
|
10
|
+
i18nConfig?: I18NConfig;
|
|
10
11
|
interactiveDesktop?: boolean;
|
|
11
12
|
interactiveMobile?: boolean;
|
|
12
13
|
customOverlayContent?: string;
|
|
@@ -34,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
34
35
|
canGoToBuildingCallback?: CanGoToBuildingCallback;
|
|
35
36
|
buildingChooserTimeOfDay?: string;
|
|
36
37
|
cdnFileResolver: CdnFileResolverCallback;
|
|
37
|
-
|
|
38
|
+
i18nConfig?: I18NConfig;
|
|
38
39
|
interactiveDesktop?: boolean;
|
|
39
40
|
interactiveMobile?: boolean;
|
|
40
41
|
customOverlayContent?: string;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { BuildingCallback, CanGoToBuildingCallback } from './types';
|
|
2
|
+
import type { ColorCallback, CdnFileResolverCallback, I18NConfig } from '../types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
3
4
|
showCards?: boolean;
|
|
4
5
|
colorCallback?: ColorCallback;
|
|
@@ -6,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
6
7
|
canGoToBuildingCallback?: CanGoToBuildingCallback;
|
|
7
8
|
buildingChooserTimeOfDay?: string;
|
|
8
9
|
cdnFileResolver: CdnFileResolverCallback;
|
|
9
|
-
|
|
10
|
+
i18nConfig?: I18NConfig;
|
|
10
11
|
interactiveDesktop?: boolean;
|
|
11
12
|
interactiveMobile?: boolean;
|
|
12
13
|
customOverlayContent?: string;
|
|
@@ -34,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
34
35
|
canGoToBuildingCallback?: CanGoToBuildingCallback;
|
|
35
36
|
buildingChooserTimeOfDay?: string;
|
|
36
37
|
cdnFileResolver: CdnFileResolverCallback;
|
|
37
|
-
|
|
38
|
+
i18nConfig?: I18NConfig;
|
|
38
39
|
interactiveDesktop?: boolean;
|
|
39
40
|
interactiveMobile?: boolean;
|
|
40
41
|
customOverlayContent?: string;
|
|
@@ -1,11 +1,2 @@
|
|
|
1
|
-
export type Color = {
|
|
2
|
-
r: number;
|
|
3
|
-
g: number;
|
|
4
|
-
b: number;
|
|
5
|
-
a: number;
|
|
6
|
-
s: number;
|
|
7
|
-
};
|
|
8
|
-
export type ColorCallback = (building: any, state: any) => Color;
|
|
9
1
|
export type BuildingCallback = (publicId: string) => any;
|
|
10
|
-
export type CdnFileResolverCallback = (path: string) => any;
|
|
11
2
|
export type CanGoToBuildingCallback = (building: any) => boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type Color = {
|
|
2
|
+
r: number;
|
|
3
|
+
g: number;
|
|
4
|
+
b: number;
|
|
5
|
+
a: number;
|
|
6
|
+
s: number;
|
|
7
|
+
};
|
|
8
|
+
export type HoverState = 'idle' | 'selected' | 'hover';
|
|
9
|
+
export type ColorCallback = (identifier: string, state: HoverState) => Color | undefined;
|
|
10
|
+
export type CdnFileResolverCallback = (path: string) => string;
|
|
11
|
+
export type Pos = {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
width: number;
|
|
15
|
+
height: number;
|
|
16
|
+
};
|
|
17
|
+
export type I18NConfig = {
|
|
18
|
+
labels: {
|
|
19
|
+
[key: string]: {
|
|
20
|
+
[key: string]: string;
|
|
21
|
+
} | string;
|
|
22
|
+
};
|
|
23
|
+
language: string;
|
|
24
|
+
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { I18NConfig } from '../types';
|
|
1
2
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
2
3
|
fileLoader?: any;
|
|
3
4
|
cdnRoot: string;
|
|
@@ -8,7 +9,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
8
9
|
viewModes?: Array<string>;
|
|
9
10
|
displayViewModeSwitch?: boolean;
|
|
10
11
|
websiteUrl?: string;
|
|
11
|
-
|
|
12
|
+
i18nConfig?: I18NConfig;
|
|
12
13
|
showCarousel?: boolean;
|
|
13
14
|
showTimeOfDay?: boolean;
|
|
14
15
|
showCompass?: boolean;
|
|
@@ -67,7 +68,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
67
68
|
viewModes?: Array<string>;
|
|
68
69
|
displayViewModeSwitch?: boolean;
|
|
69
70
|
websiteUrl?: string;
|
|
70
|
-
|
|
71
|
+
i18nConfig?: I18NConfig;
|
|
71
72
|
showCarousel?: boolean;
|
|
72
73
|
showTimeOfDay?: boolean;
|
|
73
74
|
showCompass?: boolean;
|
|
@@ -3,16 +3,12 @@ export declare function nextScene(fromScene: any): any;
|
|
|
3
3
|
export declare function prevScene(fromScene: any): number;
|
|
4
4
|
export default class BuildingViewerModel {
|
|
5
5
|
private _state;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
get sceneModel(): any;
|
|
13
|
-
unlessRotatingDo(action: any): void;
|
|
14
|
-
get currentScene(): any;
|
|
15
|
-
set currentScene(value: any);
|
|
6
|
+
constructor(scene: number);
|
|
7
|
+
get isRotating(): boolean;
|
|
8
|
+
set isRotating(value: boolean);
|
|
9
|
+
unlessRotatingDo(action: () => void): void;
|
|
10
|
+
get currentScene(): number;
|
|
11
|
+
set currentScene(value: number);
|
|
16
12
|
rotateCounterClockwise(): void;
|
|
17
13
|
rotateClockwise(): void;
|
|
18
14
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import SceneRotator from './SceneRotator';
|
|
1
2
|
export default class RotationStep {
|
|
2
3
|
private _rotator;
|
|
3
4
|
private _direction;
|
|
4
5
|
private _frameIndex;
|
|
5
6
|
private _sceneCount;
|
|
6
|
-
constructor(rotator:
|
|
7
|
+
constructor(rotator: SceneRotator, direction: number, frameIndex: number, sceneCount: number);
|
|
7
8
|
get atEnd(): boolean;
|
|
8
|
-
get frameIndex():
|
|
9
|
+
get frameIndex(): number;
|
|
9
10
|
nextFrame(): RotationStep;
|
|
10
11
|
}
|
|
@@ -2,9 +2,9 @@ import RotationStep from './RotationStep';
|
|
|
2
2
|
export default class SceneRotator {
|
|
3
3
|
private _cardinalFrames;
|
|
4
4
|
private _totalFrameCount;
|
|
5
|
-
constructor(cardinalFrames:
|
|
6
|
-
start(direction:
|
|
7
|
-
isCardinalFrame(frameIndex:
|
|
8
|
-
clampFrameIndex(frameIndex:
|
|
9
|
-
startFrameIndexForScene(sceneIndex:
|
|
5
|
+
constructor(cardinalFrames: Array<number>, totalFrameCount: number);
|
|
6
|
+
start(direction: number, fromScene: number, sceneCount: number): RotationStep;
|
|
7
|
+
isCardinalFrame(frameIndex: number): boolean;
|
|
8
|
+
clampFrameIndex(frameIndex: number): number;
|
|
9
|
+
startFrameIndexForScene(sceneIndex: number): number;
|
|
10
10
|
}
|
|
@@ -5,13 +5,13 @@ export default class BatchLoadTracker {
|
|
|
5
5
|
private _finishedAction;
|
|
6
6
|
private _errorAction;
|
|
7
7
|
private _loadProgressAction;
|
|
8
|
-
constructor(numParts:
|
|
9
|
-
onLoadFinished(action:
|
|
10
|
-
onLoadError(action:
|
|
11
|
-
onLoadProgress(action:
|
|
8
|
+
constructor(numParts: number);
|
|
9
|
+
onLoadFinished(action: () => void): this;
|
|
10
|
+
onLoadError(action: () => void): this;
|
|
11
|
+
onLoadProgress(action: (progress: number) => void): this;
|
|
12
12
|
partLoaded(): void;
|
|
13
13
|
errorDetected(): void;
|
|
14
14
|
get isFinished(): boolean;
|
|
15
|
-
get isError():
|
|
15
|
+
get isError(): boolean;
|
|
16
16
|
get percentLoaded(): number;
|
|
17
17
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { I18NConfig } from '../../components/types';
|
|
1
2
|
export default class I18N {
|
|
2
3
|
private _labels;
|
|
3
4
|
private _language;
|
|
4
|
-
constructor(labels
|
|
5
|
-
getLabel(key:
|
|
6
|
-
get(i18nObject:
|
|
5
|
+
constructor({ labels, language }?: I18NConfig);
|
|
6
|
+
getLabel(key: string): string;
|
|
7
|
+
get(i18nObject: string | object): string;
|
|
7
8
|
}
|