@clikvn/showroom-visualizer 0.5.0-hotfix-01 → 0.5.1-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/base.json +21 -21
- package/dist/components/SkinLayer/DefaultLayout/index.d.ts.map +1 -1
- 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/PoiListMovingOptions/Menu/HorizontalMenu.d.ts +14 -0
- package/dist/components/SkinLayer/PoiListMovingOptions/Menu/HorizontalMenu.d.ts.map +1 -0
- package/dist/components/SkinLayer/{PoiTextureOptions/TextureMenuItem/index.d.ts → PoiListMovingOptions/Menu/ListMovingMenuItem.d.ts} +5 -6
- package/dist/components/SkinLayer/PoiListMovingOptions/Menu/ListMovingMenuItem.d.ts.map +1 -0
- package/dist/components/SkinLayer/PoiListMovingOptions/Menu/SemicircleMenu.d.ts +14 -0
- package/dist/components/SkinLayer/PoiListMovingOptions/Menu/SemicircleMenu.d.ts.map +1 -0
- package/dist/components/SkinLayer/PoiListMovingOptions/Menu/VerticalMenu.d.ts +14 -0
- package/dist/components/SkinLayer/PoiListMovingOptions/Menu/VerticalMenu.d.ts.map +1 -0
- package/dist/components/SkinLayer/PoiListMovingOptions/index.d.ts +4 -0
- package/dist/components/SkinLayer/PoiListMovingOptions/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/index.d.ts +1 -0
- package/dist/components/SkinLayer/index.d.ts.map +1 -1
- package/dist/constants/Visualizer/index.d.ts +1 -0
- package/dist/constants/Visualizer/index.d.ts.map +1 -1
- package/dist/constants/Visualizer/poi.d.ts +1 -0
- package/dist/constants/Visualizer/poi.d.ts.map +1 -1
- package/dist/features/ShowroomVisualizer/cssStyles.d.ts.map +1 -1
- package/dist/fonts/icomoon.svg +633 -633
- package/dist/hooks/Visualizer/useTourVisualizer.d.ts.map +1 -1
- package/dist/hooks/useStore.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.html +31 -105
- package/dist/index.js +1 -1
- package/dist/models/Visualizer/Poi/PoiListMoving.d.ts +39 -0
- package/dist/models/Visualizer/Poi/PoiListMoving.d.ts.map +1 -0
- package/dist/models/Visualizer/Scene.d.ts.map +1 -1
- package/dist/models/Visualizer/Tour.d.ts +3 -0
- package/dist/models/Visualizer/Tour.d.ts.map +1 -1
- package/dist/types/SkinLayer/store.type.d.ts +7 -0
- package/dist/types/SkinLayer/store.type.d.ts.map +1 -1
- package/dist/types/Visualizer/poi.type.d.ts +17 -0
- package/dist/types/Visualizer/poi.type.d.ts.map +1 -1
- package/dist/types/Visualizer/signal.type.d.ts +3 -0
- package/dist/types/Visualizer/signal.type.d.ts.map +1 -1
- package/dist/utils/Visualizer/index.d.ts +1 -0
- package/dist/utils/Visualizer/index.d.ts.map +1 -1
- package/dist/utils/Visualizer/scene.utils.d.ts +5 -0
- package/dist/utils/Visualizer/scene.utils.d.ts.map +1 -0
- package/dist/web.d.ts.map +1 -1
- package/dist/web.js +1 -1
- package/package.json +1 -1
- package/tailwind.config.cjs +151 -151
- package/.idea/inspectionProfiles/Project_Default.xml +0 -36
- package/.idea/jsLinters/eslint.xml +0 -7
- package/.idea/misc.xml +0 -9
- package/.idea/modules.xml +0 -8
- package/.idea/prettier.xml +0 -8
- package/.idea/showroom-visualizer.iml +0 -9
- package/.idea/vcs.xml +0 -6
- package/dist/components/SkinLayer/GalleryFullScreen/Content/ARViewer.d.ts +0 -30
- package/dist/components/SkinLayer/GalleryFullScreen/Content/ARViewer.d.ts.map +0 -1
- package/dist/components/SkinLayer/ModalItemInfo/Description.d.ts +0 -10
- package/dist/components/SkinLayer/ModalItemInfo/Description.d.ts.map +0 -1
- package/dist/components/SkinLayer/ModalItemInfo/Intro.d.ts +0 -9
- package/dist/components/SkinLayer/ModalItemInfo/Intro.d.ts.map +0 -1
- package/dist/components/SkinLayer/ModalItemInfo/Media.d.ts +0 -13
- package/dist/components/SkinLayer/ModalItemInfo/Media.d.ts.map +0 -1
- package/dist/components/SkinLayer/ModalItemInfo/index.d.ts +0 -10
- package/dist/components/SkinLayer/ModalItemInfo/index.d.ts.map +0 -1
- package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts +0 -13
- package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts.map +0 -1
- package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts +0 -13
- package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts.map +0 -1
- package/dist/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.d.ts.map +0 -1
- package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts +0 -13
- package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts.map +0 -1
- package/dist/context/StoreContext.d.ts +0 -5
- package/dist/context/StoreContext.d.ts.map +0 -1
- package/dist/features/ShowroomVisualizer/Scripts.d.ts +0 -4
- package/dist/features/ShowroomVisualizer/Scripts.d.ts.map +0 -1
- package/dist/features/ShowroomVisualizer/TourContainer.d.ts +0 -9
- package/dist/features/ShowroomVisualizer/TourContainer.d.ts.map +0 -1
- package/dist/features/ShowroomVisualizer/Tours.d.ts +0 -3
- package/dist/features/ShowroomVisualizer/Tours.d.ts.map +0 -1
- package/dist/hooks/Visualizer/reducer.d.ts +0 -116
- package/dist/hooks/Visualizer/reducer.d.ts.map +0 -1
- package/yarn-error.log +0 -12200
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTourVisualizer.d.ts","sourceRoot":"","sources":["../../../src/hooks/Visualizer/useTourVisualizer.ts"],"names":[],"mappings":"AA4BA,QAAA,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useTourVisualizer.d.ts","sourceRoot":"","sources":["../../../src/hooks/Visualizer/useTourVisualizer.ts"],"names":[],"mappings":"AA4BA,QAAA,MAAM,iBAAiB,YAsrBtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useStore.d.ts","sourceRoot":"","sources":["../../src/hooks/useStore.tsx"],"names":[],"mappings":"AACA,OAAO,KAQN,MAAM,OAAO,CAAC;AAsBf,OAAO,
|
|
1
|
+
{"version":3,"file":"useStore.d.ts","sourceRoot":"","sources":["../../src/hooks/useStore.tsx"],"names":[],"mappings":"AACA,OAAO,KAQN,MAAM,OAAO,CAAC;AAsBf,OAAO,EAOL,SAAS,EAGV,MAAM,oBAAoB,CAAC;AAwB5B,eAAO,MAAM,aAAa,GAAI,uBAG3B;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC3C,4CA0kDA,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,KAAK,EAAE,SAAS,CAAC;KAClB;CACF;AAED,eAAO,MAAM,QAAQ,iBAMpB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { CUSTOM_LAYOUT_COMPONENTS, resolveCustomLayoutComponent, } from './types
|
|
|
4
4
|
export { useCustomLayout, CustomLayoutProvider, } from './context/CustomLayoutContext';
|
|
5
5
|
export { useShowroomControls, useTourCore, useFloorplanControl, useSceneNavigation, useScenarioControl, usePOIInteraction, useViewportControl, } from './hooks/headless';
|
|
6
6
|
export type { ShowroomControls, TourCoreControls, FloorplanControls, SceneNavigationControls, ScenarioControls, POIControls, ViewportControls, } from './hooks/headless';
|
|
7
|
-
export { Layout, DefaultLayout, PinActions, ButtonWithTooltip, PinActionButtonDefault, PinActionButtonWithTooltipDefault, ActionsChangeScene, SceneCategories, Floorplan, ScenarioList, TourScenarios, AGTProgressBar, HotspotActive, HotspotOverview, HotspotCategorySlideIn, ScenarioSlideIn, SpaceAndSceneSlideIn, FeatureSlideIn, ProductSlideIn, PoiSlideIn, PoiDetailSlideIn, PoiMovingPreview, PoiTextureOptions, ModalPopupPoi, ModalPopupPromotion, ModalGuide, PlayBar, PlayListSlideIn, GalleryFullScreen, SearchAndDiscoverySlideIn, TourInfoActionPart, ScenarioPart, PromotionPart, PoiInfoActionPart, DisplayActionPart, HelpActionPart, ContentItem, ScenarioItem, ContentItemLanguage, CardItem, LogoAndTitle, Joystick, Guide, UnmuteButton, LoadingScreen, } from './components/SkinLayer';
|
|
7
|
+
export { Layout, DefaultLayout, PinActions, ButtonWithTooltip, PinActionButtonDefault, PinActionButtonWithTooltipDefault, ActionsChangeScene, SceneCategories, Floorplan, ScenarioList, TourScenarios, AGTProgressBar, HotspotActive, HotspotOverview, HotspotCategorySlideIn, ScenarioSlideIn, SpaceAndSceneSlideIn, FeatureSlideIn, ProductSlideIn, PoiSlideIn, PoiDetailSlideIn, PoiMovingPreview, PoiTextureOptions, PoiListMovingOptions, ModalPopupPoi, ModalPopupPromotion, ModalGuide, PlayBar, PlayListSlideIn, GalleryFullScreen, SearchAndDiscoverySlideIn, TourInfoActionPart, ScenarioPart, PromotionPart, PoiInfoActionPart, DisplayActionPart, HelpActionPart, ContentItem, ScenarioItem, ContentItemLanguage, CardItem, LogoAndTitle, Joystick, Guide, UnmuteButton, LoadingScreen, } from './components/SkinLayer';
|
|
8
8
|
export { default as FloorplanMapDefault } from './components/SkinLayer/Floorplan/Map';
|
|
9
9
|
export { default as FloorplanMinimapDefault } from './components/SkinLayer/Floorplan/Minimap';
|
|
10
10
|
export { default as MiniMapMarkerDefault } from './components/SkinLayer/Floorplan/Minimap/MiniMapMarker';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAG9E,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAG1B,YAAY,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,WAAW,EACX,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAI1B,OAAO,EAEL,MAAM,EACN,aAAa,EAGb,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,iCAAiC,EAGjC,kBAAkB,EAClB,eAAe,EAGf,SAAS,EAGT,YAAY,EACZ,aAAa,EACb,cAAc,EAGd,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,UAAU,EACV,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAG9E,YAAY,EACV,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,eAAe,EACf,oBAAoB,GACrB,MAAM,+BAA+B,CAAC;AAIvC,OAAO,EACL,mBAAmB,EACnB,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,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CAAC"}
|
package/dist/index.html
CHANGED
|
@@ -1,110 +1,36 @@
|
|
|
1
|
-
<!
|
|
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
|
-
|
|
7
|
-
|
|
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
|
-
|
|
11
|
-
|
|
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://api.clik.vn/vt360',
|
|
27
|
-
webRotateApiHost: 'https://api.clik.vn/cms',
|
|
28
|
-
webRotateClientHost: 'https://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(),
|
|
10
|
+
<script type="module">
|
|
11
|
+
import ShowroomVisualizer from 'http://localhost:3000/web.js';
|
|
46
12
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
onPoiClicked: (poi) => {
|
|
73
|
-
console.log('onPoiClicked', poi);
|
|
74
|
-
},
|
|
75
|
-
onPoiOut: () => {
|
|
76
|
-
// console.log('onPoiOut');
|
|
77
|
-
},
|
|
78
|
-
onPoiOver: (poi) => {
|
|
79
|
-
console.log('onPoiOver', poi);
|
|
80
|
-
},
|
|
81
|
-
onPoiInCenter: (poi) => {
|
|
82
|
-
// console.log('onPoiInCenter', poi);
|
|
83
|
-
},
|
|
84
|
-
onStartScenario: (code) => {
|
|
85
|
-
// console.log('onStartScenario', code);
|
|
86
|
-
},
|
|
87
|
-
onScenarioPaused: (code) => {
|
|
88
|
-
// console.log('onScenarioPaused', code);
|
|
89
|
-
},
|
|
90
|
-
onScenarioEnded: (code) => {
|
|
91
|
-
// console.log('onScenarioEnded', code);
|
|
92
|
-
},
|
|
93
|
-
onChanged: (args) => {
|
|
94
|
-
console.log('onChanged', args);
|
|
95
|
-
},
|
|
96
|
-
onStartLoadingTour: (code) => {
|
|
97
|
-
// console.log('onStartLoadingTour', code);
|
|
98
|
-
},
|
|
99
|
-
onFinishedLoadingTour: (code) => {
|
|
100
|
-
// console.log('onFinishedLoadingTour', code);
|
|
101
|
-
},
|
|
102
|
-
onStateChanged: (changes) => {
|
|
103
|
-
// console.log('changes', changes);
|
|
104
|
-
}
|
|
105
|
-
},
|
|
106
|
-
mobile: true
|
|
107
|
-
});
|
|
108
|
-
</script>
|
|
109
|
-
</body>
|
|
110
|
-
</html>
|
|
13
|
+
ShowroomVisualizer.initVisualizer({
|
|
14
|
+
apiHost: 'http://localhost:8084/vt360',
|
|
15
|
+
webRotateHost: 'https://ci-webrotate360-client.clik.vn',
|
|
16
|
+
config: {
|
|
17
|
+
tourCode: "TOUR_KZCGAU2ZT7K7",
|
|
18
|
+
language: 'VI',
|
|
19
|
+
},
|
|
20
|
+
onLoaded: (tool) => {
|
|
21
|
+
window.tool = tool;
|
|
22
|
+
},
|
|
23
|
+
mobile: false,
|
|
24
|
+
listeners: {
|
|
25
|
+
onToggleFavorite: (productCode) =>
|
|
26
|
+
console.log('productCode', productCode),
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
</script>
|
|
30
|
+
</head>
|
|
31
|
+
<body>
|
|
32
|
+
<div style="width: 100vw; height: 100vh; overflow: hidden">
|
|
33
|
+
<showroom-visualizer></showroom-visualizer>
|
|
34
|
+
</div>
|
|
35
|
+
</body>
|
|
36
|
+
</html>
|