@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/dist/index.html
CHANGED
|
@@ -7,101 +7,26 @@
|
|
|
7
7
|
content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no"
|
|
8
8
|
/>
|
|
9
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
10
|
<script type="module">
|
|
22
|
-
// import ShowroomVisualizer from 'https://85f81d7dc992.ngrok-free.app/web.js';
|
|
23
11
|
import ShowroomVisualizer from 'http://localhost:3000/web.js';
|
|
24
12
|
|
|
25
13
|
ShowroomVisualizer.initVisualizer({
|
|
26
|
-
apiHost: 'https://
|
|
27
|
-
|
|
28
|
-
webRotateClientHost: 'https://ci-webrotate360-client.clik.vn',
|
|
14
|
+
apiHost: 'https://api.clik.vn/vt360',
|
|
15
|
+
webRotateHost: 'https://ci-webrotate360-client.clik.vn',
|
|
29
16
|
config: {
|
|
17
|
+
tourCode: 'TOUR_96YHCYLYFG7F',
|
|
30
18
|
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
19
|
},
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
},
|
|
20
|
+
onLoaded: (tool) => {
|
|
21
|
+
window.tool = tool;
|
|
102
22
|
},
|
|
103
23
|
mobile: false,
|
|
104
24
|
});
|
|
105
25
|
</script>
|
|
26
|
+
</head>
|
|
27
|
+
<body>
|
|
28
|
+
<div style="width: 100vw; height: 100vh; overflow: hidden">
|
|
29
|
+
<showroom-visualizer></showroom-visualizer>
|
|
30
|
+
</div>
|
|
106
31
|
</body>
|
|
107
32
|
</html>
|
package/dist/web.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU;;
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/web.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,UAAU;;UAIuF,CAAC;;;CAJpE,CAAC;AAGrC,eAAe,UAAU,CAAC"}
|