@clikvn/showroom-visualizer 0.2.3-dev-02 → 0.2.3-dev-03

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 (109) hide show
  1. package/.idea/inspectionProfiles/Project_Default.xml +36 -0
  2. package/.idea/jsLinters/eslint.xml +7 -0
  3. package/.idea/misc.xml +9 -0
  4. package/.idea/modules.xml +8 -0
  5. package/.idea/prettier.xml +8 -0
  6. package/.idea/showroom-visualizer.iml +9 -0
  7. package/.idea/vcs.xml +6 -0
  8. package/DEVELOPMENT.md +120 -0
  9. package/EXAMPLES.md +967 -0
  10. package/README.md +139 -32
  11. package/SETUP_COMPLETE.md +149 -0
  12. package/dist/commons/SkinLayer/components/Button/index.d.ts +4 -4
  13. package/dist/commons/SkinLayer/components/Button/index.d.ts.map +1 -1
  14. package/dist/components/SkinLayer/DefaultLayout/index.d.ts.map +1 -1
  15. package/dist/components/SkinLayer/Drawer/PoiHeader/index.d.ts +16 -0
  16. package/dist/components/SkinLayer/Drawer/PoiHeader/index.d.ts.map +1 -0
  17. package/dist/components/SkinLayer/Drawer/index.d.ts +29 -0
  18. package/dist/components/SkinLayer/Drawer/index.d.ts.map +1 -0
  19. package/dist/components/SkinLayer/Floorplan/Map.d.ts.map +1 -1
  20. package/dist/components/SkinLayer/Floorplan/Minimap/MiniMapMarker.d.ts.map +1 -1
  21. package/dist/components/SkinLayer/Floorplan/Minimap/index.d.ts.map +1 -1
  22. package/dist/components/SkinLayer/GalleryFullScreen/Content/ARViewer.d.ts +30 -0
  23. package/dist/components/SkinLayer/GalleryFullScreen/Content/ARViewer.d.ts.map +1 -0
  24. package/dist/components/SkinLayer/HotspotCategorySlideIn/index.d.ts.map +1 -1
  25. package/dist/components/SkinLayer/HotspotOverview/index.d.ts +1 -0
  26. package/dist/components/SkinLayer/HotspotOverview/index.d.ts.map +1 -1
  27. package/dist/components/SkinLayer/Layout/index.d.ts.map +1 -1
  28. package/dist/components/SkinLayer/ModalItemInfo/Description.d.ts +10 -0
  29. package/dist/components/SkinLayer/ModalItemInfo/Description.d.ts.map +1 -0
  30. package/dist/components/SkinLayer/ModalItemInfo/Intro.d.ts +9 -0
  31. package/dist/components/SkinLayer/ModalItemInfo/Intro.d.ts.map +1 -0
  32. package/dist/components/SkinLayer/ModalItemInfo/Media.d.ts +13 -0
  33. package/dist/components/SkinLayer/ModalItemInfo/Media.d.ts.map +1 -0
  34. package/dist/components/SkinLayer/ModalItemInfo/index.d.ts +10 -0
  35. package/dist/components/SkinLayer/ModalItemInfo/index.d.ts.map +1 -0
  36. package/dist/components/SkinLayer/PinActionButtons/index.d.ts.map +1 -1
  37. package/dist/components/SkinLayer/PlayAll/index.d.ts +8 -0
  38. package/dist/components/SkinLayer/PlayAll/index.d.ts.map +1 -0
  39. package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts +13 -0
  40. package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts.map +1 -0
  41. package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts +13 -0
  42. package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts.map +1 -0
  43. package/dist/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.d.ts +15 -0
  44. package/dist/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.d.ts.map +1 -0
  45. package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts +13 -0
  46. package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts.map +1 -0
  47. package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/DisplayActionPart/index.d.ts.map +1 -1
  48. package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/HelpActionPart.d.ts.map +1 -1
  49. package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/PoiInfoActionPart/index.d.ts.map +1 -1
  50. package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/PromotionPart/index.d.ts.map +1 -1
  51. package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/ScenariosPart/index.d.ts.map +1 -1
  52. package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/TourInfoActionPart.d.ts.map +1 -1
  53. package/dist/components/SkinLayer/SearchAndDiscoverySlideIn/index.d.ts.map +1 -1
  54. package/dist/components/SkinLayer/index.d.ts +47 -0
  55. package/dist/components/SkinLayer/index.d.ts.map +1 -1
  56. package/dist/context/CustomLayoutContext.d.ts.map +1 -1
  57. package/dist/context/StoreContext.d.ts +5 -0
  58. package/dist/context/StoreContext.d.ts.map +1 -0
  59. package/dist/features/ShowroomVisualizer/Scripts.d.ts +4 -0
  60. package/dist/features/ShowroomVisualizer/Scripts.d.ts.map +1 -0
  61. package/dist/features/ShowroomVisualizer/TourContainer.d.ts +9 -0
  62. package/dist/features/ShowroomVisualizer/TourContainer.d.ts.map +1 -0
  63. package/dist/features/ShowroomVisualizer/Tours.d.ts +3 -0
  64. package/dist/features/ShowroomVisualizer/Tours.d.ts.map +1 -0
  65. package/dist/features/ShowroomVisualizer/VirtualTour.d.ts +5 -0
  66. package/dist/features/ShowroomVisualizer/VirtualTour.d.ts.map +1 -1
  67. package/dist/features/ShowroomVisualizer/VirtualTourContainer.d.ts +4 -3
  68. package/dist/features/ShowroomVisualizer/VirtualTourContainer.d.ts.map +1 -1
  69. package/dist/features/ShowroomVisualizer/index.d.ts +24 -3
  70. package/dist/features/ShowroomVisualizer/index.d.ts.map +1 -1
  71. package/dist/features/VirtualTourVisualizer/index.d.ts +20 -0
  72. package/dist/features/VirtualTourVisualizer/index.d.ts.map +1 -0
  73. package/dist/features/VirtualTourVisualizerUI/index.d.ts +17 -0
  74. package/dist/features/VirtualTourVisualizerUI/index.d.ts.map +1 -0
  75. package/dist/hooks/Visualizer/reducer.d.ts +116 -0
  76. package/dist/hooks/Visualizer/reducer.d.ts.map +1 -0
  77. package/dist/hooks/useToolConfig.d.ts.map +1 -1
  78. package/dist/index.d.ts +11 -0
  79. package/dist/index.d.ts.map +1 -1
  80. package/dist/index.html +95 -95
  81. package/dist/index.js +1 -1
  82. package/dist/register.d.ts +3 -0
  83. package/dist/register.d.ts.map +1 -1
  84. package/dist/types/SkinLayer/tool.type.d.ts +6 -0
  85. package/dist/types/SkinLayer/tool.type.d.ts.map +1 -1
  86. package/dist/types/SkinLayer/visualizer.type.d.ts +3 -0
  87. package/dist/types/SkinLayer/visualizer.type.d.ts.map +1 -1
  88. package/dist/types/custom-layout.d.ts +104 -0
  89. package/dist/types/custom-layout.d.ts.map +1 -1
  90. package/dist/web.js +1 -1
  91. package/example/CSS_HANDLING.md +141 -0
  92. package/example/FIXES_SUMMARY.md +121 -0
  93. package/example/PATH_ALIASES.md +103 -0
  94. package/example/README.md +64 -0
  95. package/example/index.html +13 -0
  96. package/example/package.json +25 -0
  97. package/example/postcss.config.cjs +6 -0
  98. package/example/tailwind.config.cjs +12 -0
  99. package/example/tsconfig.node.json +12 -0
  100. package/example/vite.config.ts +126 -0
  101. package/package.json +132 -124
  102. package/rollup.config.js +427 -97
  103. package/.claude/settings.local.json +0 -19
  104. package/dist/context/SwizzleContext.d.ts +0 -21
  105. package/dist/context/SwizzleContext.d.ts.map +0 -1
  106. package/dist/types/swizzle.d.ts +0 -59
  107. package/dist/types/swizzle.d.ts.map +0 -1
  108. /package/dist/features/ShowroomVisualizer/{CssStyles.d.ts → cssStyles.d.ts} +0 -0
  109. /package/dist/features/ShowroomVisualizer/{CssStyles.d.ts.map → cssStyles.d.ts.map} +0 -0
package/dist/index.html CHANGED
@@ -1,107 +1,107 @@
1
- <!doctype html>
1
+ <!DOCTYPE html>
2
2
  <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
3
+ <head>
4
+ <meta charset="UTF-8">
5
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"
6
+ name="viewport"
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%">
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
15
  <div class="h-full w-full relative">
16
- <showroom-visualizer></showroom-visualizer>
16
+ <showroom-visualizer></showroom-visualizer>
17
17
  </div>
18
- </div>
19
- <!-- <div class="h-full" style="width: 390px"></div>-->
20
18
  </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';
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
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',
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
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
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
44
 
45
- // tourCode: 'tour_7a6hchjljga4'.toUpperCase(),
45
+ // tourCode: 'tour_7a6hchjljga4'.toUpperCase(),
46
46
 
47
- // tourCode: 'TOUR_ZJMHKMJEACAH',
48
- // startScene: 'SCENE_LVN4DLUFACAH',
49
- // hLookAt: -179.145,
50
- // vLookAt: 11.597,
47
+ // tourCode: 'TOUR_ZJMHKMJEACAH',
48
+ // startScene: 'SCENE_LVN4DLUFACAH',
49
+ // hLookAt: -179.145,
50
+ // vLookAt: 11.597,
51
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
- },
103
- mobile: false,
104
- });
105
- </script>
106
- </body>
107
- </html>
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
+ },
103
+ mobile: false
104
+ });
105
+ </script>
106
+ </body>
107
+ </html>