@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.
Files changed (48) hide show
  1. package/README.md +31 -31
  2. package/base.json +21 -21
  3. package/dist/components/SkinLayer/Drawer/PoiHeader/index.d.ts +16 -0
  4. package/dist/components/SkinLayer/Drawer/PoiHeader/index.d.ts.map +1 -0
  5. package/dist/components/SkinLayer/Drawer/index.d.ts +29 -0
  6. package/dist/components/SkinLayer/Drawer/index.d.ts.map +1 -0
  7. package/dist/components/SkinLayer/PlayAll/index.d.ts +8 -0
  8. package/dist/components/SkinLayer/PlayAll/index.d.ts.map +1 -0
  9. package/dist/components/SkinLayer/PlayBar/index.d.ts.map +1 -1
  10. package/dist/features/VirtualTourVisualizer/index.d.ts +20 -0
  11. package/dist/features/VirtualTourVisualizer/index.d.ts.map +1 -0
  12. package/dist/features/VirtualTourVisualizerUI/index.d.ts +17 -0
  13. package/dist/features/VirtualTourVisualizerUI/index.d.ts.map +1 -0
  14. package/dist/fonts/icomoon.svg +633 -633
  15. package/dist/index.html +10 -85
  16. package/dist/web.d.ts.map +1 -1
  17. package/dist/web.js +1 -1
  18. package/package.json +124 -124
  19. package/rollup.config.js +97 -97
  20. package/tailwind.config.cjs +151 -151
  21. package/.claude/settings.local.json +0 -19
  22. package/dist/components/SkinLayer/DefaultLayout/index.d.ts +0 -8
  23. package/dist/components/SkinLayer/DefaultLayout/index.d.ts.map +0 -1
  24. package/dist/context/CustomLayoutContext.d.ts +0 -20
  25. package/dist/context/CustomLayoutContext.d.ts.map +0 -1
  26. package/dist/context/SwizzleContext.d.ts +0 -21
  27. package/dist/context/SwizzleContext.d.ts.map +0 -1
  28. package/dist/hooks/headless/index.d.ts +0 -150
  29. package/dist/hooks/headless/index.d.ts.map +0 -1
  30. package/dist/hooks/headless/useFloorplanControl.d.ts +0 -18
  31. package/dist/hooks/headless/useFloorplanControl.d.ts.map +0 -1
  32. package/dist/hooks/headless/usePOIInteraction.d.ts +0 -23
  33. package/dist/hooks/headless/usePOIInteraction.d.ts.map +0 -1
  34. package/dist/hooks/headless/useScenarioControl.d.ts +0 -22
  35. package/dist/hooks/headless/useScenarioControl.d.ts.map +0 -1
  36. package/dist/hooks/headless/useSceneNavigation.d.ts +0 -26
  37. package/dist/hooks/headless/useSceneNavigation.d.ts.map +0 -1
  38. package/dist/hooks/headless/useTourCore.d.ts +0 -23
  39. package/dist/hooks/headless/useTourCore.d.ts.map +0 -1
  40. package/dist/hooks/headless/useViewportControl.d.ts +0 -22
  41. package/dist/hooks/headless/useViewportControl.d.ts.map +0 -1
  42. package/dist/index.js +0 -1
  43. package/dist/types/custom-layout.d.ts +0 -63
  44. package/dist/types/custom-layout.d.ts.map +0 -1
  45. package/dist/types/swizzle.d.ts +0 -59
  46. package/dist/types/swizzle.d.ts.map +0 -1
  47. /package/dist/features/ShowroomVisualizer/{CssStyles.d.ts → cssStyles.d.ts} +0 -0
  48. /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://ci-api.clik.vn/vt360',
27
- webRotateApiHost: 'https://ci-api.clik.vn/cms',
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
- 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
- },
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;;UAIsF,CAAC;;;CAJnE,CAAC;AAGrC,eAAe,UAAU,CAAC"}
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"}