@clikvn/showroom-visualizer 0.3.0-dev-08 → 0.3.0-dev-10
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/.claude/settings.local.json +19 -0
- package/DEVELOPMENT.md +120 -0
- package/EXAMPLES.md +967 -0
- package/README.md +137 -3
- package/SETUP_COMPLETE.md +149 -0
- package/dist/commons/SkinLayer/components/Button/index.d.ts +4 -4
- package/dist/commons/SkinLayer/components/Button/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/DefaultLayout/index.d.ts +8 -0
- package/dist/components/SkinLayer/DefaultLayout/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/Floorplan/Map.d.ts.map +1 -1
- package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapMarker.d.ts.map +1 -1
- package/dist/components/SkinLayer/Floorplan/Minimap/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/HotspotCategorySlideIn/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/HotspotOverview/index.d.ts +1 -0
- package/dist/components/SkinLayer/HotspotOverview/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/Layout/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/PinActionButtons/index.d.ts +19 -0
- package/dist/components/SkinLayer/PinActionButtons/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/PlayBar/index.d.ts +19 -1
- package/dist/components/SkinLayer/PlayBar/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/PoiDetailSlideIn/Detail.d.ts +5 -0
- package/dist/components/SkinLayer/PoiDetailSlideIn/Detail.d.ts.map +1 -1
- package/dist/components/SkinLayer/PoiDetailSlideIn/TabsContent/index.d.ts +4 -0
- package/dist/components/SkinLayer/PoiDetailSlideIn/TabsContent/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/PoiDetailSlideIn/index.d.ts +23 -1
- package/dist/components/SkinLayer/PoiDetailSlideIn/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/DisplayActionPart/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/HelpActionPart.d.ts.map +1 -1
- package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/PoiInfoActionPart/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/PromotionPart/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/ScenariosPart/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/TourInfoActionPart.d.ts.map +1 -1
- package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/index.d.ts +49 -0
- package/dist/components/SkinLayer/index.d.ts.map +1 -1
- package/dist/constants/SkinLayer/customLayoutPaths.d.ts +84 -0
- package/dist/constants/SkinLayer/customLayoutPaths.d.ts.map +1 -0
- package/dist/constants/SkinLayer/index.d.ts +1 -0
- package/dist/constants/SkinLayer/index.d.ts.map +1 -1
- package/dist/context/CustomLayoutContext.d.ts +20 -0
- package/dist/context/CustomLayoutContext.d.ts.map +1 -0
- package/dist/context/SwizzleContext.d.ts +21 -0
- package/dist/context/SwizzleContext.d.ts.map +1 -0
- package/dist/features/ShowroomVisualizer/VirtualTour.d.ts +5 -0
- package/dist/features/ShowroomVisualizer/VirtualTour.d.ts.map +1 -1
- package/dist/features/ShowroomVisualizer/VirtualTourContainer.d.ts +4 -3
- package/dist/features/ShowroomVisualizer/VirtualTourContainer.d.ts.map +1 -1
- package/dist/features/ShowroomVisualizer/index.d.ts +24 -3
- package/dist/features/ShowroomVisualizer/index.d.ts.map +1 -1
- package/dist/hooks/headless/index.d.ts +150 -0
- package/dist/hooks/headless/index.d.ts.map +1 -0
- package/dist/hooks/headless/useFloorplanControl.d.ts +18 -0
- package/dist/hooks/headless/useFloorplanControl.d.ts.map +1 -0
- package/dist/hooks/headless/usePOIInteraction.d.ts +23 -0
- package/dist/hooks/headless/usePOIInteraction.d.ts.map +1 -0
- package/dist/hooks/headless/useScenarioControl.d.ts +22 -0
- package/dist/hooks/headless/useScenarioControl.d.ts.map +1 -0
- package/dist/hooks/headless/useSceneNavigation.d.ts +26 -0
- package/dist/hooks/headless/useSceneNavigation.d.ts.map +1 -0
- package/dist/hooks/headless/useTourCore.d.ts +23 -0
- package/dist/hooks/headless/useTourCore.d.ts.map +1 -0
- package/dist/hooks/headless/useViewportControl.d.ts +22 -0
- package/dist/hooks/headless/useViewportControl.d.ts.map +1 -0
- package/dist/hooks/useActionMiddleware.d.ts.map +1 -1
- package/dist/hooks/useConfiguration.d.ts +0 -1
- package/dist/hooks/useConfiguration.d.ts.map +1 -1
- package/dist/hooks/useToolConfig.d.ts.map +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.html +110 -0
- package/dist/index.js +1 -0
- package/dist/register.d.ts +3 -0
- package/dist/register.d.ts.map +1 -1
- package/dist/types/SkinLayer/tool.type.d.ts +6 -0
- package/dist/types/SkinLayer/tool.type.d.ts.map +1 -1
- package/dist/types/SkinLayer/visualizer.type.d.ts +3 -0
- package/dist/types/SkinLayer/visualizer.type.d.ts.map +1 -1
- package/dist/types/custom-layout.d.ts +167 -0
- package/dist/types/custom-layout.d.ts.map +1 -0
- package/dist/types/swizzle.d.ts +59 -0
- package/dist/types/swizzle.d.ts.map +1 -0
- package/dist/web.js +1 -1
- package/example/CSS_HANDLING.md +141 -0
- package/example/FIXES_SUMMARY.md +121 -0
- package/example/PATH_ALIASES.md +103 -0
- package/example/README.md +64 -0
- package/example/index.html +13 -0
- package/example/package.json +25 -0
- package/example/postcss.config.cjs +6 -0
- package/example/tailwind.config.cjs +12 -0
- package/example/tsconfig.node.json +12 -0
- package/example/vite.config.ts +126 -0
- package/package.json +9 -1
- package/rollup.config.js +334 -4
- package/dist/utils/middleware/listenerWrapper.d.ts +0 -31
- package/dist/utils/middleware/listenerWrapper.d.ts.map +0 -1
package/dist/index.html
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta
|
|
6
|
+
name="viewport"
|
|
7
|
+
content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
|
|
8
|
+
/>
|
|
9
|
+
<title>Title</title>
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div class="flex h-screen w-screen">
|
|
13
|
+
<!-- <div class="h-full" style="width: 72px"></div>-->
|
|
14
|
+
<div class="h-full" style="width: /*calc(100% - 462px);*/ 100%">
|
|
15
|
+
<div class="h-full w-full relative">
|
|
16
|
+
<showroom-visualizer></showroom-visualizer>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<!-- <div class="h-full" style="width: 390px"></div>-->
|
|
20
|
+
</div>
|
|
21
|
+
<script type="module">
|
|
22
|
+
// import ShowroomVisualizer from 'https://85f81d7dc992.ngrok-free.app/web.js';
|
|
23
|
+
import ShowroomVisualizer from 'http://localhost:3000/web.js';
|
|
24
|
+
|
|
25
|
+
ShowroomVisualizer.initVisualizer({
|
|
26
|
+
apiHost: 'https://ci-api.clik.vn/vt360',
|
|
27
|
+
webRotateApiHost: 'https://ci-api.clik.vn/cms',
|
|
28
|
+
webRotateClientHost: 'https://ci-webrotate360-client.clik.vn',
|
|
29
|
+
config: {
|
|
30
|
+
language: 'VI',
|
|
31
|
+
// tourCode: 'TOUR_FXYCEN7ZZVW6',
|
|
32
|
+
|
|
33
|
+
// startScene: 'scene_kr3rgeezzvw6',
|
|
34
|
+
// hLookAt: -254,
|
|
35
|
+
// vLookAt: 1
|
|
36
|
+
// tourCode: 'TOUR_GEVEXLWNPT74',
|
|
37
|
+
// tourCode: 'TOUR_7YUL2ALGFL94',
|
|
38
|
+
tourCode: 'TOUR_KUFGDEPDTJA4',
|
|
39
|
+
hLookAt: 10,
|
|
40
|
+
vLookAt: 28,
|
|
41
|
+
// startScene: 'SCENE_KNLRAKUHFL94',
|
|
42
|
+
// hLookAt: -54.11884505373274,
|
|
43
|
+
// vLookAt: -9.111287009391969
|
|
44
|
+
|
|
45
|
+
// tourCode: 'tour_7a6hchjljga4'.toUpperCase(),
|
|
46
|
+
|
|
47
|
+
// tourCode: 'TOUR_ZJMHKMJEACAH',
|
|
48
|
+
// startScene: 'SCENE_LVN4DLUFACAH',
|
|
49
|
+
// hLookAt: -179.145,
|
|
50
|
+
// vLookAt: 11.597,
|
|
51
|
+
|
|
52
|
+
// tourCode: 'tour_7yul2algfl94'.toUpperCase(),
|
|
53
|
+
// startScene: 'scene_vrz9v2uhfl94'.toUpperCase(),
|
|
54
|
+
// hLookAt: -87,
|
|
55
|
+
// vLookAt: 9,
|
|
56
|
+
// hotspot: 'item27getn2d2m94'.toUpperCase(),
|
|
57
|
+
},
|
|
58
|
+
listeners: {
|
|
59
|
+
onTourSwitchLoaded: (tool) => {
|
|
60
|
+
window.switchTour = tool.switchTour;
|
|
61
|
+
},
|
|
62
|
+
onSceneCompleted: (...args) => {
|
|
63
|
+
// console.log('onSceneCompleted', args);
|
|
64
|
+
},
|
|
65
|
+
onLoaded: (tool) => {
|
|
66
|
+
// console.log('TOOL_LOADED')
|
|
67
|
+
window.tool = tool;
|
|
68
|
+
},
|
|
69
|
+
onPoiClicked: (poi) => {
|
|
70
|
+
console.log('onPoiClicked', poi);
|
|
71
|
+
},
|
|
72
|
+
onPoiOut: () => {
|
|
73
|
+
// console.log('onPoiOut');
|
|
74
|
+
},
|
|
75
|
+
onPoiOver: (poi) => {
|
|
76
|
+
console.log('onPoiOver', poi);
|
|
77
|
+
},
|
|
78
|
+
onPoiInCenter: (poi) => {
|
|
79
|
+
// console.log('onPoiInCenter', poi);
|
|
80
|
+
},
|
|
81
|
+
onStartScenario: (code) => {
|
|
82
|
+
// console.log('onStartScenario', code);
|
|
83
|
+
},
|
|
84
|
+
onScenarioPaused: (code) => {
|
|
85
|
+
// console.log('onScenarioPaused', code);
|
|
86
|
+
},
|
|
87
|
+
onScenarioEnded: (code) => {
|
|
88
|
+
// console.log('onScenarioEnded', code);
|
|
89
|
+
},
|
|
90
|
+
onChanged: (args) => {
|
|
91
|
+
console.log('onChanged', args);
|
|
92
|
+
},
|
|
93
|
+
onStartLoadingTour: (code) => {
|
|
94
|
+
// console.log('onStartLoadingTour', code);
|
|
95
|
+
},
|
|
96
|
+
onFinishedLoadingTour: (code) => {
|
|
97
|
+
// console.log('onFinishedLoadingTour', code);
|
|
98
|
+
},
|
|
99
|
+
onStateChanged: (changes) => {
|
|
100
|
+
// console.log('changes', changes);
|
|
101
|
+
},
|
|
102
|
+
onShareProductClicked: (code) => {
|
|
103
|
+
console.log('onShareProductClicked----->', code);
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
mobile: false,
|
|
107
|
+
});
|
|
108
|
+
</script>
|
|
109
|
+
</body>
|
|
110
|
+
</html>
|