@clikvn/showroom-visualizer 0.2.2-dev-14 → 0.2.3-dev-01
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 +31 -31
- package/base.json +21 -21
- package/dist/components/SkinLayer/Drawer/PoiHeader/index.d.ts +16 -0
- package/dist/components/SkinLayer/Drawer/PoiHeader/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/Drawer/index.d.ts +29 -0
- package/dist/components/SkinLayer/Drawer/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/PlayAll/index.d.ts +8 -0
- package/dist/components/SkinLayer/PlayAll/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/PlayBar/index.d.ts.map +1 -1
- package/dist/features/VirtualTourVisualizer/index.d.ts +20 -0
- package/dist/features/VirtualTourVisualizer/index.d.ts.map +1 -0
- package/dist/features/VirtualTourVisualizerUI/index.d.ts +17 -0
- package/dist/features/VirtualTourVisualizerUI/index.d.ts.map +1 -0
- package/dist/fonts/icomoon.svg +633 -633
- package/dist/index.html +10 -85
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +1 -1
- package/package.json +124 -124
- package/rollup.config.js +97 -97
- package/tailwind.config.cjs +151 -151
- package/.claude/settings.local.json +0 -19
- package/dist/components/SkinLayer/DefaultLayout/index.d.ts +0 -8
- package/dist/components/SkinLayer/DefaultLayout/index.d.ts.map +0 -1
- package/dist/context/CustomLayoutContext.d.ts +0 -20
- package/dist/context/CustomLayoutContext.d.ts.map +0 -1
- package/dist/context/SwizzleContext.d.ts +0 -21
- package/dist/context/SwizzleContext.d.ts.map +0 -1
- package/dist/hooks/headless/index.d.ts +0 -150
- package/dist/hooks/headless/index.d.ts.map +0 -1
- package/dist/hooks/headless/useFloorplanControl.d.ts +0 -18
- package/dist/hooks/headless/useFloorplanControl.d.ts.map +0 -1
- package/dist/hooks/headless/usePOIInteraction.d.ts +0 -23
- package/dist/hooks/headless/usePOIInteraction.d.ts.map +0 -1
- package/dist/hooks/headless/useScenarioControl.d.ts +0 -22
- package/dist/hooks/headless/useScenarioControl.d.ts.map +0 -1
- package/dist/hooks/headless/useSceneNavigation.d.ts +0 -26
- package/dist/hooks/headless/useSceneNavigation.d.ts.map +0 -1
- package/dist/hooks/headless/useTourCore.d.ts +0 -23
- package/dist/hooks/headless/useTourCore.d.ts.map +0 -1
- package/dist/hooks/headless/useViewportControl.d.ts +0 -22
- package/dist/hooks/headless/useViewportControl.d.ts.map +0 -1
- package/dist/index.js +0 -1
- package/dist/types/custom-layout.d.ts +0 -63
- package/dist/types/custom-layout.d.ts.map +0 -1
- package/dist/types/swizzle.d.ts +0 -59
- package/dist/types/swizzle.d.ts.map +0 -1
- /package/dist/features/ShowroomVisualizer/{CssStyles.d.ts → cssStyles.d.ts} +0 -0
- /package/dist/features/ShowroomVisualizer/{CssStyles.d.ts.map → cssStyles.d.ts.map} +0 -0
package/tailwind.config.cjs
CHANGED
|
@@ -1,151 +1,151 @@
|
|
|
1
|
-
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
2
|
-
const defaultTheme = require('tailwindcss/defaultTheme');
|
|
3
|
-
const plugin = require('tailwindcss/plugin');
|
|
4
|
-
|
|
5
|
-
function rem2px(input, fontSize = 16) {
|
|
6
|
-
if (input == null) {
|
|
7
|
-
return input;
|
|
8
|
-
}
|
|
9
|
-
switch (typeof input) {
|
|
10
|
-
case 'object':
|
|
11
|
-
if (Array.isArray(input)) {
|
|
12
|
-
return input.map((val) => rem2px(val, fontSize));
|
|
13
|
-
}
|
|
14
|
-
// eslint-disable-next-line no-case-declarations
|
|
15
|
-
const ret = {};
|
|
16
|
-
for (const key in input) {
|
|
17
|
-
ret[key] = rem2px(input[key], fontSize);
|
|
18
|
-
}
|
|
19
|
-
return ret;
|
|
20
|
-
case 'string':
|
|
21
|
-
return input.replace(
|
|
22
|
-
/(\d*\.?\d+)rem$/,
|
|
23
|
-
(_, val) => `${parseFloat(val) * fontSize}px`
|
|
24
|
-
);
|
|
25
|
-
case 'function':
|
|
26
|
-
return eval(
|
|
27
|
-
input
|
|
28
|
-
.toString()
|
|
29
|
-
.replace(
|
|
30
|
-
/(\d*\.?\d+)rem/g,
|
|
31
|
-
(_, val) => `${parseFloat(val) * fontSize}px`
|
|
32
|
-
)
|
|
33
|
-
);
|
|
34
|
-
default:
|
|
35
|
-
return input;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/** @type {import('tailwindcss').Config} */
|
|
40
|
-
module.exports = {
|
|
41
|
-
darkMode: ['class'],
|
|
42
|
-
content: ['./src/**/*.{js,jsx,ts,tsx}'],
|
|
43
|
-
theme: {
|
|
44
|
-
...rem2px(defaultTheme),
|
|
45
|
-
fontFamily: {
|
|
46
|
-
sans: ['Be Vietnam Pro', 'sans-serif'],
|
|
47
|
-
mono: ['Be Vietnam Pro', 'sans-serif'],
|
|
48
|
-
},
|
|
49
|
-
extend: {
|
|
50
|
-
keyframes: {
|
|
51
|
-
'fade-in': {
|
|
52
|
-
'0%': {
|
|
53
|
-
opacity: '0',
|
|
54
|
-
},
|
|
55
|
-
'100%': {
|
|
56
|
-
opacity: '1',
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
'poi-item-info-bg-animation': {
|
|
60
|
-
'0%': {
|
|
61
|
-
'background-color': 'rgba(0, 0, 0, 0)',
|
|
62
|
-
},
|
|
63
|
-
'100%': {
|
|
64
|
-
'background-color': 'rgba(0, 0, 0, 0.48)',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
'poi-item-info-animation': {
|
|
68
|
-
'0%': {
|
|
69
|
-
width: '0',
|
|
70
|
-
},
|
|
71
|
-
'100%': {
|
|
72
|
-
width: '100%',
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
/*animation: {
|
|
77
|
-
'fade-in': 'fade-in 0.3s ease-out',
|
|
78
|
-
},
|
|
79
|
-
borderRadius: {
|
|
80
|
-
lg: 'var(--radius)',
|
|
81
|
-
md: 'calc(var(--radius) - 2px)',
|
|
82
|
-
sm: 'calc(var(--radius) - 4px)',
|
|
83
|
-
},*/
|
|
84
|
-
colors: {
|
|
85
|
-
background: 'var(--background)',
|
|
86
|
-
foreground: 'var(--foreground)',
|
|
87
|
-
card: {
|
|
88
|
-
DEFAULT: 'var(--card)',
|
|
89
|
-
foreground: 'var(--card-foreground)',
|
|
90
|
-
},
|
|
91
|
-
popover: {
|
|
92
|
-
DEFAULT: 'var(--popover)',
|
|
93
|
-
foreground: 'var(--popover-foreground)',
|
|
94
|
-
},
|
|
95
|
-
primary: {
|
|
96
|
-
DEFAULT: 'var(--primary)',
|
|
97
|
-
foreground: 'var(--primary-foreground)',
|
|
98
|
-
},
|
|
99
|
-
secondary: {
|
|
100
|
-
DEFAULT: 'var(--secondary)',
|
|
101
|
-
foreground: 'var(--secondary-foreground)',
|
|
102
|
-
},
|
|
103
|
-
muted: {
|
|
104
|
-
DEFAULT: 'var(--muted)',
|
|
105
|
-
foreground: 'var(--muted-foreground)',
|
|
106
|
-
},
|
|
107
|
-
accent: {
|
|
108
|
-
DEFAULT: 'var(--accent)',
|
|
109
|
-
foreground: 'var(--accent-foreground)',
|
|
110
|
-
},
|
|
111
|
-
destructive: {
|
|
112
|
-
DEFAULT: 'var(--destructive)',
|
|
113
|
-
foreground: 'var(--destructive-foreground)',
|
|
114
|
-
},
|
|
115
|
-
border: 'var(--border)',
|
|
116
|
-
input: 'var(--input)',
|
|
117
|
-
ring: 'var(--ring)',
|
|
118
|
-
rating: 'var(--rating)',
|
|
119
|
-
chart: {
|
|
120
|
-
1: 'var(--chart-1)',
|
|
121
|
-
2: 'var(--chart-2)',
|
|
122
|
-
3: 'var(--chart-3)',
|
|
123
|
-
4: 'var(--chart-4)',
|
|
124
|
-
5: 'var(--chart-5)',
|
|
125
|
-
},
|
|
126
|
-
sidebar: {
|
|
127
|
-
DEFAULT: 'var(--sidebar)',
|
|
128
|
-
foreground: 'var(--sidebar-foreground)',
|
|
129
|
-
primary: 'var(--sidebar-primary)',
|
|
130
|
-
'primary-foreground': 'var(--sidebar-primary-foreground)',
|
|
131
|
-
accent: 'var(--sidebar-accent)',
|
|
132
|
-
'accent-foreground': 'var(--sidebar-accent-foreground)',
|
|
133
|
-
border: 'var(--sidebar-border)',
|
|
134
|
-
ring: 'var(--sidebar-ring)',
|
|
135
|
-
},
|
|
136
|
-
base: 'var(--base)',
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
plugins: [
|
|
141
|
-
require('tailwindcss-animate'),
|
|
142
|
-
require('@tailwindcss/typography'),
|
|
143
|
-
plugin(function ({ addVariant }) {
|
|
144
|
-
addVariant('wrapped', ({ container }) => {
|
|
145
|
-
container.walkRules((rule) => {
|
|
146
|
-
rule.selector = `.clik-chatbot-wrapper ${rule.selector}`;
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
}),
|
|
150
|
-
],
|
|
151
|
-
};
|
|
1
|
+
// eslint-disable-next-line @typescript-eslint/no-var-requires
|
|
2
|
+
const defaultTheme = require('tailwindcss/defaultTheme');
|
|
3
|
+
const plugin = require('tailwindcss/plugin');
|
|
4
|
+
|
|
5
|
+
function rem2px(input, fontSize = 16) {
|
|
6
|
+
if (input == null) {
|
|
7
|
+
return input;
|
|
8
|
+
}
|
|
9
|
+
switch (typeof input) {
|
|
10
|
+
case 'object':
|
|
11
|
+
if (Array.isArray(input)) {
|
|
12
|
+
return input.map((val) => rem2px(val, fontSize));
|
|
13
|
+
}
|
|
14
|
+
// eslint-disable-next-line no-case-declarations
|
|
15
|
+
const ret = {};
|
|
16
|
+
for (const key in input) {
|
|
17
|
+
ret[key] = rem2px(input[key], fontSize);
|
|
18
|
+
}
|
|
19
|
+
return ret;
|
|
20
|
+
case 'string':
|
|
21
|
+
return input.replace(
|
|
22
|
+
/(\d*\.?\d+)rem$/,
|
|
23
|
+
(_, val) => `${parseFloat(val) * fontSize}px`
|
|
24
|
+
);
|
|
25
|
+
case 'function':
|
|
26
|
+
return eval(
|
|
27
|
+
input
|
|
28
|
+
.toString()
|
|
29
|
+
.replace(
|
|
30
|
+
/(\d*\.?\d+)rem/g,
|
|
31
|
+
(_, val) => `${parseFloat(val) * fontSize}px`
|
|
32
|
+
)
|
|
33
|
+
);
|
|
34
|
+
default:
|
|
35
|
+
return input;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/** @type {import('tailwindcss').Config} */
|
|
40
|
+
module.exports = {
|
|
41
|
+
darkMode: ['class'],
|
|
42
|
+
content: ['./src/**/*.{js,jsx,ts,tsx}'],
|
|
43
|
+
theme: {
|
|
44
|
+
...rem2px(defaultTheme),
|
|
45
|
+
fontFamily: {
|
|
46
|
+
sans: ['Be Vietnam Pro', 'sans-serif'],
|
|
47
|
+
mono: ['Be Vietnam Pro', 'sans-serif'],
|
|
48
|
+
},
|
|
49
|
+
extend: {
|
|
50
|
+
keyframes: {
|
|
51
|
+
'fade-in': {
|
|
52
|
+
'0%': {
|
|
53
|
+
opacity: '0',
|
|
54
|
+
},
|
|
55
|
+
'100%': {
|
|
56
|
+
opacity: '1',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
'poi-item-info-bg-animation': {
|
|
60
|
+
'0%': {
|
|
61
|
+
'background-color': 'rgba(0, 0, 0, 0)',
|
|
62
|
+
},
|
|
63
|
+
'100%': {
|
|
64
|
+
'background-color': 'rgba(0, 0, 0, 0.48)',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
'poi-item-info-animation': {
|
|
68
|
+
'0%': {
|
|
69
|
+
width: '0',
|
|
70
|
+
},
|
|
71
|
+
'100%': {
|
|
72
|
+
width: '100%',
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
/*animation: {
|
|
77
|
+
'fade-in': 'fade-in 0.3s ease-out',
|
|
78
|
+
},
|
|
79
|
+
borderRadius: {
|
|
80
|
+
lg: 'var(--radius)',
|
|
81
|
+
md: 'calc(var(--radius) - 2px)',
|
|
82
|
+
sm: 'calc(var(--radius) - 4px)',
|
|
83
|
+
},*/
|
|
84
|
+
colors: {
|
|
85
|
+
background: 'var(--background)',
|
|
86
|
+
foreground: 'var(--foreground)',
|
|
87
|
+
card: {
|
|
88
|
+
DEFAULT: 'var(--card)',
|
|
89
|
+
foreground: 'var(--card-foreground)',
|
|
90
|
+
},
|
|
91
|
+
popover: {
|
|
92
|
+
DEFAULT: 'var(--popover)',
|
|
93
|
+
foreground: 'var(--popover-foreground)',
|
|
94
|
+
},
|
|
95
|
+
primary: {
|
|
96
|
+
DEFAULT: 'var(--primary)',
|
|
97
|
+
foreground: 'var(--primary-foreground)',
|
|
98
|
+
},
|
|
99
|
+
secondary: {
|
|
100
|
+
DEFAULT: 'var(--secondary)',
|
|
101
|
+
foreground: 'var(--secondary-foreground)',
|
|
102
|
+
},
|
|
103
|
+
muted: {
|
|
104
|
+
DEFAULT: 'var(--muted)',
|
|
105
|
+
foreground: 'var(--muted-foreground)',
|
|
106
|
+
},
|
|
107
|
+
accent: {
|
|
108
|
+
DEFAULT: 'var(--accent)',
|
|
109
|
+
foreground: 'var(--accent-foreground)',
|
|
110
|
+
},
|
|
111
|
+
destructive: {
|
|
112
|
+
DEFAULT: 'var(--destructive)',
|
|
113
|
+
foreground: 'var(--destructive-foreground)',
|
|
114
|
+
},
|
|
115
|
+
border: 'var(--border)',
|
|
116
|
+
input: 'var(--input)',
|
|
117
|
+
ring: 'var(--ring)',
|
|
118
|
+
rating: 'var(--rating)',
|
|
119
|
+
chart: {
|
|
120
|
+
1: 'var(--chart-1)',
|
|
121
|
+
2: 'var(--chart-2)',
|
|
122
|
+
3: 'var(--chart-3)',
|
|
123
|
+
4: 'var(--chart-4)',
|
|
124
|
+
5: 'var(--chart-5)',
|
|
125
|
+
},
|
|
126
|
+
sidebar: {
|
|
127
|
+
DEFAULT: 'var(--sidebar)',
|
|
128
|
+
foreground: 'var(--sidebar-foreground)',
|
|
129
|
+
primary: 'var(--sidebar-primary)',
|
|
130
|
+
'primary-foreground': 'var(--sidebar-primary-foreground)',
|
|
131
|
+
accent: 'var(--sidebar-accent)',
|
|
132
|
+
'accent-foreground': 'var(--sidebar-accent-foreground)',
|
|
133
|
+
border: 'var(--sidebar-border)',
|
|
134
|
+
ring: 'var(--sidebar-ring)',
|
|
135
|
+
},
|
|
136
|
+
base: 'var(--base)',
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
plugins: [
|
|
141
|
+
require('tailwindcss-animate'),
|
|
142
|
+
require('@tailwindcss/typography'),
|
|
143
|
+
plugin(function ({ addVariant }) {
|
|
144
|
+
addVariant('wrapped', ({ container }) => {
|
|
145
|
+
container.walkRules((rule) => {
|
|
146
|
+
rule.selector = `.clik-chatbot-wrapper ${rule.selector}`;
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
}),
|
|
150
|
+
],
|
|
151
|
+
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"Bash(find:*)",
|
|
5
|
-
"Bash(npm run build:*)",
|
|
6
|
-
"Bash(grep:*)",
|
|
7
|
-
"Bash(rm:*)",
|
|
8
|
-
"Bash(ls:*)",
|
|
9
|
-
"Bash(sed:*)",
|
|
10
|
-
"Bash(yarn build)",
|
|
11
|
-
"Bash(yalc push:*)",
|
|
12
|
-
"Bash(yarn dev)",
|
|
13
|
-
"Bash(yarn list:*)",
|
|
14
|
-
"Bash(mv:*)",
|
|
15
|
-
"Bash(rg:*)"
|
|
16
|
-
],
|
|
17
|
-
"deny": []
|
|
18
|
-
}
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SkinLayer/DefaultLayout/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,EAAE,EAAuB,MAAM,OAAO,CAAC;AAc/D,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAkC9D,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CA4UrB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ComponentType, ReactNode } from 'react';
|
|
2
|
-
import { CustomLayoutConfig } from '../types/custom-layout';
|
|
3
|
-
type CustomLayoutContextType = {
|
|
4
|
-
customLayout: CustomLayoutConfig;
|
|
5
|
-
getCustomComponent: <T = unknown>(path: string[], defaultComponent: ComponentType<T>) => ComponentType<T>;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Hook để access custom layout configuration
|
|
9
|
-
*/
|
|
10
|
-
export declare const useCustomLayout: () => CustomLayoutContextType;
|
|
11
|
-
type Props = {
|
|
12
|
-
customLayout?: CustomLayoutConfig;
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* CustomLayoutProvider - Wrap app với provider này để enable component overrides
|
|
17
|
-
*/
|
|
18
|
-
export declare const CustomLayoutProvider: React.FC<Props>;
|
|
19
|
-
export {};
|
|
20
|
-
//# sourceMappingURL=CustomLayoutContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomLayoutContext.d.ts","sourceRoot":"","sources":["../../src/context/CustomLayoutContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,SAAS,EAKV,MAAM,OAAO,CAAC;AACf,OAAO,EACL,kBAAkB,EAEnB,MAAM,wBAAwB,CAAC;AAEhC,KAAK,uBAAuB,GAAG;IAC7B,YAAY,EAAE,kBAAkB,CAAC;IACjC,kBAAkB,EAAE,CAAC,CAAC,GAAG,OAAO,EAC9B,IAAI,EAAE,MAAM,EAAE,EACd,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,KAC/B,aAAa,CAAC,CAAC,CAAC,CAAC;CACvB,CAAC;AAOF;;GAEG;AACH,eAAO,MAAM,eAAe,+BAAwC,CAAC;AAErE,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CA6ChD,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode, ComponentType } from 'react';
|
|
2
|
-
import { SwizzleConfig, SwizzlePath } from '../types/swizzle';
|
|
3
|
-
type SwizzleContextType = {
|
|
4
|
-
swizzle: SwizzleConfig;
|
|
5
|
-
getSwizzledComponent: <T = unknown>(path: SwizzlePath, defaultComponent: ComponentType<T>) => ComponentType<T>;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* Hook để access swizzle configuration
|
|
9
|
-
*/
|
|
10
|
-
export declare const useSwizzle: () => SwizzleContextType;
|
|
11
|
-
type Props = {
|
|
12
|
-
swizzle?: SwizzleConfig;
|
|
13
|
-
children: ReactNode;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* SwizzleProvider - Wrap app với provider này để enable component swizzling
|
|
17
|
-
* Giống như Docusaurus swizzle pattern
|
|
18
|
-
*/
|
|
19
|
-
export declare const SwizzleProvider: React.FC<Props>;
|
|
20
|
-
export {};
|
|
21
|
-
//# sourceMappingURL=SwizzleContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwizzleContext.d.ts","sourceRoot":"","sources":["../../src/context/SwizzleContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAGZ,SAAS,EACT,aAAa,EAGd,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQ9D,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,aAAa,CAAC;IACvB,oBAAoB,EAAE,CAAC,CAAC,GAAG,OAAO,EAChC,IAAI,EAAE,WAAW,EACjB,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,KAC/B,aAAa,CAAC,CAAC,CAAC,CAAC;CACvB,CAAC;AAOF;;GAEG;AACH,eAAO,MAAM,UAAU,0BAAmC,CAAC;AAE3D,KAAK,KAAK,GAAG;IACX,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAkG3C,CAAC"}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { useTourCore } from './useTourCore';
|
|
2
|
-
import { useFloorplanControl } from './useFloorplanControl';
|
|
3
|
-
import { useSceneNavigation } from './useSceneNavigation';
|
|
4
|
-
import { useScenarioControl } from './useScenarioControl';
|
|
5
|
-
import { usePOIInteraction } from './usePOIInteraction';
|
|
6
|
-
import { useViewportControl } from './useViewportControl';
|
|
7
|
-
export declare const useShowroomControls: () => {
|
|
8
|
-
tour: {
|
|
9
|
-
tourReady: boolean;
|
|
10
|
-
tourLoaded: boolean;
|
|
11
|
-
soundReady: boolean;
|
|
12
|
-
canInitVisualizer: boolean;
|
|
13
|
-
tourData: import("../../types/Visualizer").TourType | null;
|
|
14
|
-
activeScene: import("../../models/Visualizer/Scene").default | null;
|
|
15
|
-
scenes: import("../../types/Visualizer").SceneType[];
|
|
16
|
-
floorplans: import("../../types/Visualizer").FloorplanType[];
|
|
17
|
-
loadingScene: boolean;
|
|
18
|
-
tour: import("../../models/Visualizer/Tour").default | undefined;
|
|
19
|
-
isLoading: boolean;
|
|
20
|
-
hasScenes: boolean;
|
|
21
|
-
hasFloorplans: boolean;
|
|
22
|
-
totalScenes: number;
|
|
23
|
-
};
|
|
24
|
-
floorplan: {
|
|
25
|
-
showFloorplan: boolean;
|
|
26
|
-
activeFloorplan: import("../../types/Visualizer").FloorplanType | null;
|
|
27
|
-
floorplans: import("../../types/Visualizer").FloorplanType[];
|
|
28
|
-
toggleFloorplan: () => void;
|
|
29
|
-
openFloorplan: () => void;
|
|
30
|
-
closeFloorplan: () => void;
|
|
31
|
-
switchFloorplan: (floorplanId: string) => void;
|
|
32
|
-
hasFloorplans: boolean;
|
|
33
|
-
canShowFloorplan: boolean;
|
|
34
|
-
};
|
|
35
|
-
navigation: {
|
|
36
|
-
activeScene: import("../../models/Visualizer/Scene").default | null;
|
|
37
|
-
scenes: import("../../types/Visualizer").SceneType[];
|
|
38
|
-
sceneGroups: import("../../types/Visualizer").SceneGroupType[];
|
|
39
|
-
showSceneCategories: boolean;
|
|
40
|
-
currentSceneGroup: import("../../types/Visualizer").SceneGroupType | null;
|
|
41
|
-
scenesByGroup: {
|
|
42
|
-
[groupId: string]: import("../../models/Visualizer/Scene").default[];
|
|
43
|
-
};
|
|
44
|
-
goToScene: (code: string) => Promise<boolean>;
|
|
45
|
-
goToNextScene: () => Promise<boolean>;
|
|
46
|
-
goToPreviousScene: () => Promise<boolean>;
|
|
47
|
-
toggleSceneCategories: () => void;
|
|
48
|
-
switchSceneGroup: (groupCode: string) => Promise<boolean>;
|
|
49
|
-
hasNextScene: boolean;
|
|
50
|
-
hasPreviousScene: boolean;
|
|
51
|
-
totalScenes: number;
|
|
52
|
-
};
|
|
53
|
-
scenario: {
|
|
54
|
-
activeScenario: import("../../types/Visualizer").TourScenarioType | null;
|
|
55
|
-
autoPlaying: boolean;
|
|
56
|
-
scenarioCurrentStep: import("../../types/Visualizer").ScenarioCurrentStepType | null;
|
|
57
|
-
showScenarioList: boolean;
|
|
58
|
-
scenarios: import("../../types/Visualizer").TourScenarioType[];
|
|
59
|
-
playScenario: (scenarioCode: string) => Promise<boolean>;
|
|
60
|
-
pauseScenario: () => void;
|
|
61
|
-
resumeScenario: () => void;
|
|
62
|
-
stopScenario: () => void;
|
|
63
|
-
toggleScenarioList: () => void;
|
|
64
|
-
hasScenarios: boolean;
|
|
65
|
-
isPlaying: boolean;
|
|
66
|
-
totalScenarios: number;
|
|
67
|
-
};
|
|
68
|
-
poi: {
|
|
69
|
-
activePoi: any;
|
|
70
|
-
activePoiCode: string | undefined;
|
|
71
|
-
selectedPoi: any;
|
|
72
|
-
isViewPoiDetail: boolean;
|
|
73
|
-
labelVisible: boolean;
|
|
74
|
-
selectPoi: (poiCode: string) => void;
|
|
75
|
-
clearPoiSelection: () => void;
|
|
76
|
-
toggleLabels: () => void;
|
|
77
|
-
showLabels: () => void;
|
|
78
|
-
hideLabels: () => void;
|
|
79
|
-
openPoiDetail: (poiCode: string) => void;
|
|
80
|
-
closePoiDetail: () => void;
|
|
81
|
-
hasActivePoi: boolean;
|
|
82
|
-
hasSelectedPoi: boolean;
|
|
83
|
-
};
|
|
84
|
-
viewport: {
|
|
85
|
-
isFullscreen: boolean;
|
|
86
|
-
isGyroscope: boolean;
|
|
87
|
-
tourSoundPlaying: boolean;
|
|
88
|
-
navigationArrowsVisible: boolean;
|
|
89
|
-
toggleFullscreen: () => void;
|
|
90
|
-
enterFullscreen: () => void;
|
|
91
|
-
exitFullscreen: () => void;
|
|
92
|
-
toggleGyroscope: () => void;
|
|
93
|
-
toggleSound: () => void;
|
|
94
|
-
muteSound: () => void;
|
|
95
|
-
unmuteSound: () => void;
|
|
96
|
-
toggleNavigationArrows: () => void;
|
|
97
|
-
takeScreenshot: () => void;
|
|
98
|
-
};
|
|
99
|
-
tourReady: boolean;
|
|
100
|
-
isLoading: boolean;
|
|
101
|
-
activeScene: import("../../models/Visualizer/Scene").default | null;
|
|
102
|
-
goToScene: (code: string) => Promise<boolean>;
|
|
103
|
-
goToNextScene: () => Promise<boolean>;
|
|
104
|
-
goToPreviousScene: () => Promise<boolean>;
|
|
105
|
-
showFloorplan: boolean;
|
|
106
|
-
toggleFloorplan: () => void;
|
|
107
|
-
playScenario: (scenarioCode: string) => Promise<boolean>;
|
|
108
|
-
stopScenario: () => void;
|
|
109
|
-
isPlaying: boolean;
|
|
110
|
-
toggleFullscreen: () => void;
|
|
111
|
-
toggleSound: () => void;
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Tour Core Hook
|
|
115
|
-
* @see useTourCore
|
|
116
|
-
*/
|
|
117
|
-
export { useTourCore } from './useTourCore';
|
|
118
|
-
/**
|
|
119
|
-
* Floorplan Control Hook
|
|
120
|
-
* @see useFloorplanControl
|
|
121
|
-
*/
|
|
122
|
-
export { useFloorplanControl } from './useFloorplanControl';
|
|
123
|
-
/**
|
|
124
|
-
* Scene Navigation Hook
|
|
125
|
-
* @see useSceneNavigation
|
|
126
|
-
*/
|
|
127
|
-
export { useSceneNavigation } from './useSceneNavigation';
|
|
128
|
-
/**
|
|
129
|
-
* Scenario Control Hook
|
|
130
|
-
* @see useScenarioControl
|
|
131
|
-
*/
|
|
132
|
-
export { useScenarioControl } from './useScenarioControl';
|
|
133
|
-
/**
|
|
134
|
-
* POI Interaction Hook
|
|
135
|
-
* @see usePOIInteraction
|
|
136
|
-
*/
|
|
137
|
-
export { usePOIInteraction } from './usePOIInteraction';
|
|
138
|
-
/**
|
|
139
|
-
* Viewport Control Hook
|
|
140
|
-
* @see useViewportControl
|
|
141
|
-
*/
|
|
142
|
-
export { useViewportControl } from './useViewportControl';
|
|
143
|
-
export type ShowroomControls = ReturnType<typeof useShowroomControls>;
|
|
144
|
-
export type TourCoreControls = ReturnType<typeof useTourCore>;
|
|
145
|
-
export type FloorplanControls = ReturnType<typeof useFloorplanControl>;
|
|
146
|
-
export type SceneNavigationControls = ReturnType<typeof useSceneNavigation>;
|
|
147
|
-
export type ScenarioControls = ReturnType<typeof useScenarioControl>;
|
|
148
|
-
export type POIControls = ReturnType<typeof usePOIInteraction>;
|
|
149
|
-
export type ViewportControls = ReturnType<typeof useViewportControl>;
|
|
150
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/hooks/headless/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyC/B,CAAC;AAKF;;;GAGG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;GAGG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D;;;GAGG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;GAGG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;GAGG;AACH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;GAGG;AACH,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAG1D,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACtE,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAC9D,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACvE,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC5E,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;AACrE,MAAM,MAAM,WAAW,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC/D,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useFloorplanControl Hook
|
|
3
|
-
*
|
|
4
|
-
* Mục đích: Quản lý floorplan/minimap
|
|
5
|
-
* Cho phép người dùng control floorplan từ custom UI
|
|
6
|
-
*/
|
|
7
|
-
export declare const useFloorplanControl: () => {
|
|
8
|
-
showFloorplan: boolean;
|
|
9
|
-
activeFloorplan: import("../../types/Visualizer").FloorplanType | null;
|
|
10
|
-
floorplans: import("../../types/Visualizer").FloorplanType[];
|
|
11
|
-
toggleFloorplan: () => void;
|
|
12
|
-
openFloorplan: () => void;
|
|
13
|
-
closeFloorplan: () => void;
|
|
14
|
-
switchFloorplan: (floorplanId: string) => void;
|
|
15
|
-
hasFloorplans: boolean;
|
|
16
|
-
canShowFloorplan: boolean;
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=useFloorplanControl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useFloorplanControl.d.ts","sourceRoot":"","sources":["../../../src/hooks/headless/useFloorplanControl.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,eAAO,MAAM,mBAAmB;;;;;;;mCAqBQ,MAAM;;;CAkC7C,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* usePOIInteraction Hook
|
|
3
|
-
*
|
|
4
|
-
* Mục đích: Quản lý tương tác với POI
|
|
5
|
-
* Handle POI click, hover, selection, detail view
|
|
6
|
-
*/
|
|
7
|
-
export declare const usePOIInteraction: () => {
|
|
8
|
-
activePoi: any;
|
|
9
|
-
activePoiCode: string | undefined;
|
|
10
|
-
selectedPoi: any;
|
|
11
|
-
isViewPoiDetail: boolean;
|
|
12
|
-
labelVisible: boolean;
|
|
13
|
-
selectPoi: (poiCode: string) => void;
|
|
14
|
-
clearPoiSelection: () => void;
|
|
15
|
-
toggleLabels: () => void;
|
|
16
|
-
showLabels: () => void;
|
|
17
|
-
hideLabels: () => void;
|
|
18
|
-
openPoiDetail: (poiCode: string) => void;
|
|
19
|
-
closePoiDetail: () => void;
|
|
20
|
-
hasActivePoi: boolean;
|
|
21
|
-
hasSelectedPoi: boolean;
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=usePOIInteraction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePOIInteraction.d.ts","sourceRoot":"","sources":["../../../src/hooks/headless/usePOIInteraction.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,eAAO,MAAM,iBAAiB;;;;;;yBAyBhB,MAAM;;;;;6BA2CN,MAAM;;;;CAmCnB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useScenarioControl Hook
|
|
3
|
-
*
|
|
4
|
-
* Mục đích: Quản lý auto-play scenarios
|
|
5
|
-
* Control playback, pause, resume scenarios
|
|
6
|
-
*/
|
|
7
|
-
export declare const useScenarioControl: () => {
|
|
8
|
-
activeScenario: import("../../types/Visualizer").TourScenarioType | null;
|
|
9
|
-
autoPlaying: boolean;
|
|
10
|
-
scenarioCurrentStep: import("../../types/Visualizer").ScenarioCurrentStepType | null;
|
|
11
|
-
showScenarioList: boolean;
|
|
12
|
-
scenarios: import("../../types/Visualizer").TourScenarioType[];
|
|
13
|
-
playScenario: (scenarioCode: string) => Promise<boolean>;
|
|
14
|
-
pauseScenario: () => void;
|
|
15
|
-
resumeScenario: () => void;
|
|
16
|
-
stopScenario: () => void;
|
|
17
|
-
toggleScenarioList: () => void;
|
|
18
|
-
hasScenarios: boolean;
|
|
19
|
-
isPlaying: boolean;
|
|
20
|
-
totalScenarios: number;
|
|
21
|
-
};
|
|
22
|
-
//# sourceMappingURL=useScenarioControl.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useScenarioControl.d.ts","sourceRoot":"","sources":["../../../src/hooks/headless/useScenarioControl.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,kBAAkB;;;;;;iCA8BN,MAAM;;;;;;;;CA2E9B,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* useSceneNavigation Hook
|
|
3
|
-
*
|
|
4
|
-
* Mục đích: Điều hướng giữa các scene
|
|
5
|
-
* Bao gồm scene groups, categories, navigation
|
|
6
|
-
*/
|
|
7
|
-
import Scene from '../../models/Visualizer/Scene';
|
|
8
|
-
export declare const useSceneNavigation: () => {
|
|
9
|
-
activeScene: Scene | null;
|
|
10
|
-
scenes: import("../../types/Visualizer").SceneType[];
|
|
11
|
-
sceneGroups: import("../../types/Visualizer").SceneGroupType[];
|
|
12
|
-
showSceneCategories: boolean;
|
|
13
|
-
currentSceneGroup: import("../../types/Visualizer").SceneGroupType | null;
|
|
14
|
-
scenesByGroup: {
|
|
15
|
-
[groupId: string]: Scene[];
|
|
16
|
-
};
|
|
17
|
-
goToScene: (code: string) => Promise<boolean>;
|
|
18
|
-
goToNextScene: () => Promise<boolean>;
|
|
19
|
-
goToPreviousScene: () => Promise<boolean>;
|
|
20
|
-
toggleSceneCategories: () => void;
|
|
21
|
-
switchSceneGroup: (groupCode: string) => Promise<boolean>;
|
|
22
|
-
hasNextScene: boolean;
|
|
23
|
-
hasPreviousScene: boolean;
|
|
24
|
-
totalScenes: number;
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=useSceneNavigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSceneNavigation.d.ts","sourceRoot":"","sources":["../../../src/hooks/headless/useSceneNavigation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,MAAM,+BAA+B,CAAC;AAElD,eAAO,MAAM,kBAAkB;;;;;;;;;sBAwCd,MAAM;;;;kCA4ED,MAAM;;;;CAqD3B,CAAC"}
|