@clikvn/showroom-visualizer 0.5.0 → 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/CLAUDE.md +145 -145
- package/DEVELOPMENT.md +120 -120
- package/EXAMPLES.md +967 -967
- package/README.md +489 -489
- package/SETUP_COMPLETE.md +149 -149
- package/base.json +21 -21
- package/dist/components/SkinLayer/DefaultLayout/index.d.ts.map +1 -1
- 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/HotspotOverview/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/Layout/index.d.ts.map +1 -1
- 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/PoiListMovingOptions/Menu/HorizontalMenu.d.ts +14 -0
- package/dist/components/SkinLayer/PoiListMovingOptions/Menu/HorizontalMenu.d.ts.map +1 -0
- package/dist/components/SkinLayer/PoiListMovingOptions/Menu/ListMovingMenuItem.d.ts +14 -0
- 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 → cssStyles.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/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 +36 -0
- 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/models/Visualizer/TourScenario/TourScenarioPlayer.d.ts +1 -0
- package/dist/models/Visualizer/TourScenario/TourScenarioPlayer.d.ts.map +1 -1
- package/dist/models/Visualizer/TourScenario/actions/RotationAction.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/example/CSS_HANDLING.md +141 -141
- package/example/FIXES_SUMMARY.md +121 -121
- package/example/PATH_ALIASES.md +103 -103
- package/example/README.md +64 -64
- package/example/index.html +13 -13
- package/example/package.json +25 -25
- package/example/postcss.config.cjs +5 -5
- package/example/tailwind.config.cjs +12 -12
- package/example/tsconfig.node.json +12 -12
- package/example/vite.config.ts +142 -142
- package/package.json +133 -133
- package/rollup.config.js +400 -400
- package/tailwind.config.cjs +151 -151
- package/.claude/settings.local.json +0 -19
- package/dist/components/SkinLayer/Floorplan/Minimap/test01.d.ts +0 -15
- package/dist/components/SkinLayer/Floorplan/Minimap/test01.d.ts.map +0 -1
- /package/dist/features/ShowroomVisualizer/{CssStyles.d.ts → cssStyles.d.ts} +0 -0
|
@@ -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,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,EACjB,oBAAoB,EAGpB,aAAa,EACb,mBAAmB,EACnB,UAAU,EAGV,OAAO,EACP,eAAe,EAGf,iBAAiB,EAGjB,yBAAyB,EACzB,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,WAAW,EACX,YAAY,EACZ,mBAAmB,EACnB,QAAQ,EAGR,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,aAAa,GACd,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAC9F,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,wDAAwD,CAAC;AACzG,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAG7G,YAAY,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AACnF,YAAY,EACV,oBAAoB,EACpB,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAEhC,YAAY,EACV,gBAAgB,EAChB,WAAW,GACZ,MAAM,mCAAmC,CAAC"}
|
package/dist/index.html
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
<script type="module">
|
|
11
|
+
import ShowroomVisualizer from 'http://localhost:3000/web.js';
|
|
12
|
+
|
|
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>
|