@clikvn/showroom-visualizer 0.0.30-dev → 0.0.31-dev
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/.idea/inspectionProfiles/Project_Default.xml +36 -0
- package/.idea/jsLinters/eslint.xml +7 -0
- package/.idea/misc.xml +9 -0
- package/.idea/modules.xml +8 -0
- package/.idea/prettier.xml +8 -0
- package/.idea/showroom-visualizer.iml +9 -0
- package/.idea/vcs.xml +6 -0
- package/dist/components/SkinLayer/Floorplan/Map.d.ts +40 -0
- package/dist/components/SkinLayer/Floorplan/Map.d.ts.map +1 -0
- package/dist/components/SkinLayer/Floorplan/index.d.ts +3 -2
- package/dist/components/SkinLayer/Floorplan/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/Layout/index.d.ts.map +1 -1
- package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts +13 -0
- package/dist/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts +13 -0
- package/dist/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.d.ts +15 -0
- package/dist/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.d.ts.map +1 -0
- package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts +13 -0
- package/dist/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.d.ts.map +1 -0
- package/dist/hooks/Visualizer/reducer.d.ts +116 -0
- package/dist/hooks/Visualizer/reducer.d.ts.map +1 -0
- package/dist/hooks/Visualizer/useTourVisualizer.d.ts.map +1 -1
- package/dist/index.html +57 -61
- package/dist/models/Visualizer/Tour.d.ts +1 -1
- package/dist/types/Visualizer/tour.type.d.ts +1 -1
- package/dist/web.js +1 -1
- package/package.json +1 -1
- package/dist/components/SkinLayer/RightPanel/index.d.ts +0 -2
- package/dist/components/SkinLayer/RightPanel/index.d.ts.map +0 -1
- package/dist/constants/Visualizer/fallback-images.d.ts +0 -27
- package/dist/constants/Visualizer/fallback-images.d.ts.map +0 -1
- package/dist/utils/Visualizer/asset.utils.d.ts +0 -19
- package/dist/utils/Visualizer/asset.utils.d.ts.map +0 -1
- package/dist/utils/Visualizer/cors-bypass.utils.d.ts +0 -16
- package/dist/utils/Visualizer/cors-bypass.utils.d.ts.map +0 -1
- package/dist/utils/Visualizer/cors-proxy.d.ts +0 -8
- package/dist/utils/Visualizer/cors-proxy.d.ts.map +0 -1
- package/dist/utils/Visualizer/cors-test.d.ts +0 -12
- package/dist/utils/Visualizer/cors-test.d.ts.map +0 -1
- package/dist/utils/Visualizer/global-cors-handler.d.ts +0 -13
- package/dist/utils/Visualizer/global-cors-handler.d.ts.map +0 -1
- package/dist/utils/Visualizer/no-cors-fetch.d.ts +0 -20
- package/dist/utils/Visualizer/no-cors-fetch.d.ts.map +0 -1
- package/dist/utils/Visualizer/simple-cors-handler.d.ts +0 -9
- package/dist/utils/Visualizer/simple-cors-handler.d.ts.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<component name="InspectionProjectProfileManager">
|
|
2
|
+
<profile version="1.0">
|
|
3
|
+
<option name="myName" value="Project Default" />
|
|
4
|
+
<inspection_tool class="AngularAmbiguousComponentTag" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
5
|
+
<inspection_tool class="AngularCliAddDependency" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
6
|
+
<inspection_tool class="AngularInaccessibleComponentMemberInAotMode" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
7
|
+
<inspection_tool class="AngularIncorrectTemplateDefinition" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
8
|
+
<inspection_tool class="AngularInsecureBindingToEvent" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
9
|
+
<inspection_tool class="AngularInvalidAnimationTriggerAssignment" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
10
|
+
<inspection_tool class="AngularInvalidEntryComponent" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
11
|
+
<inspection_tool class="AngularInvalidI18nAttribute" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
12
|
+
<inspection_tool class="AngularInvalidImportedOrDeclaredSymbol" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
13
|
+
<inspection_tool class="AngularInvalidSelector" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
14
|
+
<inspection_tool class="AngularInvalidTemplateReferenceVariable" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
15
|
+
<inspection_tool class="AngularMissingEventHandler" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
16
|
+
<inspection_tool class="AngularMissingOrInvalidDeclarationInModule" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
17
|
+
<inspection_tool class="AngularMissingRequiredDirectiveInputBinding" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
18
|
+
<inspection_tool class="AngularMultipleStructuralDirectives" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
19
|
+
<inspection_tool class="AngularNgOptimizedImage" enabled="false" level="WEAK WARNING" enabled_by_default="false" />
|
|
20
|
+
<inspection_tool class="AngularNonEmptyNgContent" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
21
|
+
<inspection_tool class="AngularRecursiveModuleImportExport" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
22
|
+
<inspection_tool class="AngularUndefinedBinding" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
23
|
+
<inspection_tool class="AngularUndefinedModuleExport" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
24
|
+
<inspection_tool class="AngularUndefinedTag" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
25
|
+
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
26
|
+
<inspection_tool class="MicronautDataMethodInconsistency" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
27
|
+
<inspection_tool class="MicronautDataRepositoryMethodParameters" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
28
|
+
<inspection_tool class="MicronautDataRepositoryMethodReturnType" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
29
|
+
<inspection_tool class="MnCacheAnnotationParameters" enabled="false" level="ERROR" enabled_by_default="false" />
|
|
30
|
+
<inspection_tool class="MnInjectionPoints" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
31
|
+
<inspection_tool class="MnPropertiesConfig" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
32
|
+
<inspection_tool class="MnUnresolvedPathVariable" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
33
|
+
<inspection_tool class="MnYamlConfig" enabled="false" level="WARNING" enabled_by_default="false" />
|
|
34
|
+
<inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" />
|
|
35
|
+
</profile>
|
|
36
|
+
</component>
|
package/.idea/misc.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/showroom-visualizer.iml" filepath="$PROJECT_DIR$/.idea/showroom-visualizer.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="PrettierConfiguration">
|
|
4
|
+
<option name="myConfigurationMode" value="MANUAL" />
|
|
5
|
+
<option name="myRunOnSave" value="true" />
|
|
6
|
+
<option name="myRunOnReformat" value="true" />
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="JAVA_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
|
4
|
+
<exclude-output />
|
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
|
6
|
+
<orderEntry type="inheritedJdk" />
|
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
8
|
+
</component>
|
|
9
|
+
</module>
|
package/.idea/vcs.xml
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { TargetAndTransition, VariantLabels } from 'framer-motion';
|
|
2
|
+
import { LegacyAnimationControls as AnimationControls } from 'motion-dom';
|
|
3
|
+
import { FC } from 'react';
|
|
4
|
+
import Scene from '../../../models/Visualizer/Scene';
|
|
5
|
+
import { FloorplanType, TourType } from '../../../types/Visualizer';
|
|
6
|
+
export declare const FloorPlanId = "floor-plan-id";
|
|
7
|
+
type AnimationTypes = AnimationControls | TargetAndTransition | VariantLabels | boolean;
|
|
8
|
+
type Props = {
|
|
9
|
+
show: boolean;
|
|
10
|
+
tourData: TourType;
|
|
11
|
+
motionInitial: any;
|
|
12
|
+
animate: AnimationTypes;
|
|
13
|
+
mobile: boolean;
|
|
14
|
+
mobileVertical: boolean;
|
|
15
|
+
minimized: boolean;
|
|
16
|
+
showFloorplan: boolean;
|
|
17
|
+
showFullscreenMinimap: boolean;
|
|
18
|
+
floorplanOpen: boolean;
|
|
19
|
+
activeFloorplan: FloorplanType | null;
|
|
20
|
+
floorplans: FloorplanType[];
|
|
21
|
+
loadingScene: boolean;
|
|
22
|
+
activeScene: Scene | null;
|
|
23
|
+
viewPortRect: {
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
right: number;
|
|
27
|
+
left: number;
|
|
28
|
+
};
|
|
29
|
+
selectFloorPlanWrapperRef: HTMLDivElement | null;
|
|
30
|
+
setSelectFloorPlanWrapperRef: (arg: HTMLDivElement | null) => void;
|
|
31
|
+
setOpenedFloorplan: (arg: boolean) => void;
|
|
32
|
+
handleClickChangeFloorLayout: (code: string) => void;
|
|
33
|
+
openBottomSheetMap: () => void;
|
|
34
|
+
handleCloseMinimap: () => void;
|
|
35
|
+
handleViewScenes: () => void;
|
|
36
|
+
updateMinimize: (value: boolean) => void;
|
|
37
|
+
};
|
|
38
|
+
declare const Map: FC<Props>;
|
|
39
|
+
export default Map;
|
|
40
|
+
//# sourceMappingURL=Map.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Map.d.ts","sourceRoot":"","sources":["../../../../src/components/SkinLayer/Floorplan/Map.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAU,mBAAmB,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,uBAAuB,IAAI,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC1E,OAAc,EAAE,EAAE,EAAY,MAAM,OAAO,CAAC;AAK5C,OAAO,KAAK,MAAM,kCAAkC,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGpE,eAAO,MAAM,WAAW,kBAAkB,CAAC;AAE3C,KAAK,cAAc,GACf,iBAAiB,GACjB,mBAAmB,GACnB,aAAa,GACb,OAAO,CAAC;AAEZ,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,QAAQ,CAAC;IACnB,aAAa,EAAE,GAAG,CAAC;IACnB,OAAO,EAAE,cAAc,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,aAAa,EAAE,OAAO,CAAC;IACvB,eAAe,EAAE,aAAa,GAAG,IAAI,CAAC;IACtC,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,KAAK,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,yBAAyB,EAAE,cAAc,GAAG,IAAI,CAAC;IACjD,4BAA4B,EAAE,CAAC,GAAG,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,kBAAkB,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3C,4BAA4B,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrD,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,cAAc,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C,CAAC;AACF,QAAA,MAAM,GAAG,EAAE,EAAE,CAAC,KAAK,CA0NlB,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FloorplanType } from '../../../types/Visualizer';
|
|
3
3
|
export declare const sortFloorPlans: (a: FloorplanType, b: FloorplanType) => number;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
declare const FloorplanMemo: React.NamedExoticComponent<{
|
|
5
|
+
show: boolean;
|
|
6
|
+
}>;
|
|
6
7
|
export { FloorplanMemo as Floorplan };
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SkinLayer/Floorplan/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SkinLayer/Floorplan/index.tsx"],"names":[],"mappings":"AAQA,OAAO,KAQN,MAAM,OAAO,CAAC;AAWf,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAI1D,eAAO,MAAM,cAAc,GAAI,GAAG,aAAa,EAAE,GAAG,aAAa,WAKhE,CAAC;AA4iBF,QAAA,MAAM,aAAa;UAlgBS,OAAO;EAkgBE,CAAC;AACtC,OAAO,EAAE,aAAa,IAAI,SAAS,EAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SkinLayer/Layout/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,EAAE,EAKH,MAAM,OAAO,CAAC;AAmBf,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AA6B9D,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/SkinLayer/Layout/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAEL,EAAE,EAKH,MAAM,OAAO,CAAC;AAmBf,OAAO,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AA6B9D,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;CACzC,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,EAAE,CAAC,KAAK,CAgdrB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TextureTypes } from '../../../types/PoiTypes';
|
|
3
|
+
import './styles.scss';
|
|
4
|
+
type Props = {
|
|
5
|
+
textures: TextureTypes[];
|
|
6
|
+
selectedIndex: number;
|
|
7
|
+
displayed: boolean;
|
|
8
|
+
imgEls: HTMLCollectionOf<HTMLImageElement>;
|
|
9
|
+
onClick: (index: number) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const HorizontalMenu: FC<Props>;
|
|
12
|
+
export default HorizontalMenu;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SkinLayer/PoiTextureOptions/HorizontalMenu/index.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,eAAe,CAAC;AAMvB,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC3C,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAsC7B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TextureTypes } from '../../../types/PoiTypes';
|
|
3
|
+
import './styles.scss';
|
|
4
|
+
type Props = {
|
|
5
|
+
textures: TextureTypes[];
|
|
6
|
+
selectedIndex: number;
|
|
7
|
+
displayed: boolean;
|
|
8
|
+
imgEls: HTMLCollectionOf<HTMLImageElement>;
|
|
9
|
+
onClick: (index: number) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const SemicircleMenu: FC<Props>;
|
|
12
|
+
export default SemicircleMenu;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SkinLayer/PoiTextureOptions/SemicircleMenu/index.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,eAAe,CAAC;AAIvB,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC3C,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,cAAc,EAAE,EAAE,CAAC,KAAK,CAsC7B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSProperties, FC } from 'react';
|
|
2
|
+
import './styles.scss';
|
|
3
|
+
type Props = {
|
|
4
|
+
imgEl: HTMLImageElement;
|
|
5
|
+
caption: string;
|
|
6
|
+
activated: boolean;
|
|
7
|
+
displayed?: boolean;
|
|
8
|
+
delay?: number;
|
|
9
|
+
style?: CSSProperties;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
captionStyle?: CSSProperties;
|
|
12
|
+
};
|
|
13
|
+
declare const TextureMenuItem: FC<Props>;
|
|
14
|
+
export default TextureMenuItem;
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SkinLayer/PoiTextureOptions/TextureMenuItem/index.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAKjD,OAAO,eAAe,CAAC;AAEvB,KAAK,KAAK,GAAG;IACX,KAAK,EAAE,gBAAgB,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,aAAa,CAAC;CAC9B,CAAC;AAEF,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,KAAK,CAuB9B,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { TextureTypes } from '../../../types/PoiTypes';
|
|
3
|
+
import './styles.scss';
|
|
4
|
+
type Props = {
|
|
5
|
+
textures: TextureTypes[];
|
|
6
|
+
selectedIndex: number;
|
|
7
|
+
displayed: boolean;
|
|
8
|
+
imgEls: HTMLCollectionOf<HTMLImageElement>;
|
|
9
|
+
onClick: (index: number) => void;
|
|
10
|
+
};
|
|
11
|
+
declare const VerticalMenu: FC<Props>;
|
|
12
|
+
export default VerticalMenu;
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/SkinLayer/PoiTextureOptions/VerticalMenu/index.tsx"],"names":[],"mappings":"AACA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAIvD,OAAO,eAAe,CAAC;AAMvB,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IAC3C,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,YAAY,EAAE,EAAE,CAAC,KAAK,CAsC3B,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import Poi from '../../../model/Poi/Poi';
|
|
2
|
+
import { CoordsTypes } from '../../../types/PoiTypes';
|
|
3
|
+
import { FloorplanTypes } from './../../../types/FloorplanTypes';
|
|
4
|
+
export declare const storeName = "tour";
|
|
5
|
+
export declare const actions: {
|
|
6
|
+
SET_TOUR: string;
|
|
7
|
+
SET_ACTIVE_SCENE: string;
|
|
8
|
+
SET_ACTIVE_POI: string;
|
|
9
|
+
SET_ACTIVE_POI_COORDS: string;
|
|
10
|
+
SET_SELECTED_POI: string;
|
|
11
|
+
SET_SELECTED_POI_ACTIVE: string;
|
|
12
|
+
SET_ACTIVE_TOUR_GUIDE: string;
|
|
13
|
+
STOP_ACTIVE_TOUR_GUIDE: string;
|
|
14
|
+
TOGGLE_ACTIVE_TOUR_GUIDE: string;
|
|
15
|
+
TOGGLE_ACTIVE_BG_SOUND: string;
|
|
16
|
+
SET_LOADING: string;
|
|
17
|
+
TOGGLE_TOUR_PLUGIN: string;
|
|
18
|
+
SET_MOUSE_WHEEL: string;
|
|
19
|
+
SET_ACTIVE_FLOOR_PLAN: string;
|
|
20
|
+
SET_ALL_POI_VISIBLE: string;
|
|
21
|
+
SET_LOADING_SCENE: string;
|
|
22
|
+
SET_SOUND_PLAYABLE: string;
|
|
23
|
+
SET_SELECTED_PROMOTION: string;
|
|
24
|
+
SET_SELECTED_GALLERY: string;
|
|
25
|
+
SET_TOUR_READY: string;
|
|
26
|
+
SET_POI_TEXTURE_DATA: string;
|
|
27
|
+
SET_VIEW_ROTATING: string;
|
|
28
|
+
SET_TOUR_SCENARIO: string;
|
|
29
|
+
SET_ACTIVE_SCENARIO_CODE: string;
|
|
30
|
+
SET_REVIEW_SCENARIO_CODE: string;
|
|
31
|
+
SET_LANGUAGE: string;
|
|
32
|
+
SET_SCENARIO_LOADED: string;
|
|
33
|
+
SET_SCENARIO_CONFIG_CODES: string;
|
|
34
|
+
SET_EXIST_POI_TYPE: string;
|
|
35
|
+
SET_POI_CODE_BY_TYPE: string;
|
|
36
|
+
INCREASE_REPLAY_COUNTING: string;
|
|
37
|
+
SET_FLOOR_PLANS: string;
|
|
38
|
+
};
|
|
39
|
+
export interface TourStateType {
|
|
40
|
+
tourReady: boolean;
|
|
41
|
+
data: any;
|
|
42
|
+
activeScene: any;
|
|
43
|
+
activePoi: any;
|
|
44
|
+
activePoiCoords: any;
|
|
45
|
+
selectedPoi: any;
|
|
46
|
+
activeTourGuide: any;
|
|
47
|
+
backgroundSoundPlaying: boolean;
|
|
48
|
+
loading: boolean;
|
|
49
|
+
loadingScene: boolean;
|
|
50
|
+
plugin: {
|
|
51
|
+
[key: string]: boolean;
|
|
52
|
+
};
|
|
53
|
+
activeFloorPlan: FloorplanTypes;
|
|
54
|
+
soundReady: boolean;
|
|
55
|
+
selectedPromotion: any;
|
|
56
|
+
selectedGallery: any;
|
|
57
|
+
poiTextureData: {
|
|
58
|
+
poi: Poi | null;
|
|
59
|
+
coords: CoordsTypes | null;
|
|
60
|
+
};
|
|
61
|
+
viewRotating: boolean;
|
|
62
|
+
activeScenarioCode?: string;
|
|
63
|
+
reviewScenarioCode?: string;
|
|
64
|
+
language: string;
|
|
65
|
+
scenarioLoaded: {
|
|
66
|
+
[key: string]: boolean;
|
|
67
|
+
};
|
|
68
|
+
scenarioConfigCodes?: string[];
|
|
69
|
+
existPoiTypes?: string[];
|
|
70
|
+
poiCodeByType: {
|
|
71
|
+
[key: string]: string[];
|
|
72
|
+
};
|
|
73
|
+
poiCodeActive?: string;
|
|
74
|
+
replayCounting?: number;
|
|
75
|
+
floorplans: FloorplanTypes[];
|
|
76
|
+
}
|
|
77
|
+
declare const _default: (base: {
|
|
78
|
+
readonly tourReady: boolean;
|
|
79
|
+
readonly data: any;
|
|
80
|
+
readonly activeScene: any;
|
|
81
|
+
readonly activePoi: any;
|
|
82
|
+
readonly activePoiCoords: any;
|
|
83
|
+
readonly selectedPoi: any;
|
|
84
|
+
readonly activeTourGuide: any;
|
|
85
|
+
readonly backgroundSoundPlaying: boolean;
|
|
86
|
+
readonly loading: boolean;
|
|
87
|
+
readonly loadingScene: boolean;
|
|
88
|
+
readonly plugin: {
|
|
89
|
+
readonly [x: string]: boolean;
|
|
90
|
+
};
|
|
91
|
+
readonly activeFloorPlan: FloorplanTypes;
|
|
92
|
+
readonly soundReady: boolean;
|
|
93
|
+
readonly selectedPromotion: any;
|
|
94
|
+
readonly selectedGallery: any;
|
|
95
|
+
readonly poiTextureData: {
|
|
96
|
+
readonly poi: Poi | null;
|
|
97
|
+
readonly coords: CoordsTypes | null;
|
|
98
|
+
};
|
|
99
|
+
readonly viewRotating: boolean;
|
|
100
|
+
readonly activeScenarioCode?: string | undefined;
|
|
101
|
+
readonly reviewScenarioCode?: string | undefined;
|
|
102
|
+
readonly language: string;
|
|
103
|
+
readonly scenarioLoaded: {
|
|
104
|
+
readonly [x: string]: boolean;
|
|
105
|
+
};
|
|
106
|
+
readonly scenarioConfigCodes?: readonly string[] | undefined;
|
|
107
|
+
readonly existPoiTypes?: readonly string[] | undefined;
|
|
108
|
+
readonly poiCodeByType: {
|
|
109
|
+
readonly [x: string]: readonly string[];
|
|
110
|
+
};
|
|
111
|
+
readonly poiCodeActive?: string | undefined;
|
|
112
|
+
readonly replayCounting?: number | undefined;
|
|
113
|
+
readonly floorplans: any;
|
|
114
|
+
} | undefined, action: any) => TourStateType | undefined;
|
|
115
|
+
export default _default;
|
|
116
|
+
//# sourceMappingURL=reducer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reducer.d.ts","sourceRoot":"","sources":["../../../src/hooks/Visualizer/reducer.ts"],"names":[],"mappings":"AAGA,OAAO,GAAG,MAAM,wBAAwB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,eAAO,MAAM,SAAS,SAAS,CAAC;AAChC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCnB,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,GAAG,CAAC;IACV,WAAW,EAAE,GAAG,CAAC;IACjB,SAAS,EAAE,GAAG,CAAC;IACf,eAAe,EAAE,GAAG,CAAC;IACrB,WAAW,EAAE,GAAG,CAAC;IACjB,eAAe,EAAE,GAAG,CAAC;IACrB,sBAAsB,EAAE,OAAO,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,OAAO,CAAC;IACtB,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IACnC,eAAe,EAAE,cAAc,CAAC;IAChC,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,GAAG,CAAC;IACvB,eAAe,EAAE,GAAG,CAAC;IACrB,cAAc,EAAE;QAAE,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC;QAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAAA;KAAE,CAAC;IAChE,YAAY,EAAE,OAAO,CAAC;IAEtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAC3C,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;KAAE,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,cAAc,EAAE,CAAC;CAC9B;;wBA5BY,OAAO;mBACZ,GAAG;0BACI,GAAG;wBACL,GAAG;8BACG,GAAG;0BACP,GAAG;8BACC,GAAG;qCACI,OAAO;sBACtB,OAAO;2BACF,OAAO;;;;8BAEJ,cAAc;yBACnB,OAAO;gCACA,GAAG;8BACL,GAAG;;sBACG,GAAG,GAAG,IAAI;yBAAU,WAAW,GAAG,IAAI;;2BAC/C,OAAO;kCAEA,MAAM;kCACN,MAAM;uBACjB,MAAM;;;;;;;;;6BAKA,MAAM;8BACL,MAAM;;;AAmCzB,wBA4HG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTourVisualizer.d.ts","sourceRoot":"","sources":["../../../src/hooks/Visualizer/useTourVisualizer.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"useTourVisualizer.d.ts","sourceRoot":"","sources":["../../../src/hooks/Visualizer/useTourVisualizer.ts"],"names":[],"mappings":"AAoBA,QAAA,MAAM,iBAAiB,YAmiBtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/dist/index.html
CHANGED
|
@@ -1,68 +1,64 @@
|
|
|
1
|
-
<!
|
|
1
|
+
<!DOCTYPE html>
|
|
2
2
|
<html lang="en">
|
|
3
|
-
|
|
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
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
language: 'VI',
|
|
19
|
-
},
|
|
20
|
-
listeners: {
|
|
21
|
-
onLoaded: (tool) => {
|
|
22
|
-
window.tool = tool;
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
mobile: false,
|
|
26
|
-
});
|
|
27
|
-
</script>
|
|
28
|
-
<style>
|
|
29
|
-
.toggle-btn {
|
|
30
|
-
position: fixed;
|
|
31
|
-
top: 20px;
|
|
32
|
-
right: 20px;
|
|
33
|
-
z-index: 9999;
|
|
34
|
-
padding: 10px 15px;
|
|
35
|
-
background: #3585f7;
|
|
36
|
-
color: white;
|
|
37
|
-
border: none;
|
|
38
|
-
border-radius: 5px;
|
|
39
|
-
cursor: pointer;
|
|
40
|
-
font-family: 'Be Vietnam Pro', sans-serif;
|
|
41
|
-
font-size: 14px;
|
|
42
|
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
|
|
43
|
-
transition: background 0.3s ease;
|
|
44
|
-
}
|
|
45
|
-
.toggle-btn:hover {
|
|
46
|
-
background: #2574e6;
|
|
47
|
-
}
|
|
48
|
-
</style>
|
|
49
|
-
</head>
|
|
50
|
-
<body>
|
|
51
|
-
<button class="toggle-btn" onclick="toggleWidth()">Toggle Width</button>
|
|
52
|
-
<div id="container" style="width: 80vw; height: 100vh; overflow: hidden">
|
|
53
|
-
<showroom-visualizer></showroom-visualizer>
|
|
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>
|
|
54
18
|
</div>
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
19
|
+
<!-- <div class="h-full" style="width: 390px"></div>-->
|
|
20
|
+
</div>
|
|
21
|
+
<script type="module">
|
|
22
|
+
import ShowroomVisualizer from 'http://localhost:3000/web.js';
|
|
59
23
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
24
|
+
ShowroomVisualizer.initVisualizer({
|
|
25
|
+
apiHost: 'https://ci-api.clik.vn/vt360',
|
|
26
|
+
webRotateApiHost: 'https://ci-api.clik.vn/cms',
|
|
27
|
+
webRotateClientHost: 'https://ci-webrotate360-client.clik.vn',
|
|
28
|
+
config: {
|
|
29
|
+
tourCode: 'TOUR_KUFGDEPDTJA4',
|
|
30
|
+
// tourCode: 'TOUR_FXYCEN7ZZVW6',
|
|
31
|
+
// tourCode: 'TOUR_GEVEXLWNPT74',
|
|
32
|
+
language: 'VI',
|
|
33
|
+
// startScene: 'scene_kr3rgeezzvw6',
|
|
34
|
+
// hLookAt: -254,
|
|
35
|
+
// vLookAt: 1
|
|
36
|
+
// startScene: 'SCENE_KNLRAKUHFL94',
|
|
37
|
+
// hLookAt: -54.11884505373274,
|
|
38
|
+
// vLookAt: -9.111287009391969
|
|
39
|
+
},
|
|
40
|
+
listeners: {
|
|
41
|
+
onSceneCompleted: (...args) => {
|
|
42
|
+
console.log('onSceneCompleted', args);
|
|
43
|
+
},
|
|
44
|
+
onLoaded: tool => {
|
|
45
|
+
window.tool = tool;
|
|
46
|
+
},
|
|
47
|
+
onPoiClicked: (poi) => {
|
|
48
|
+
console.log('onPoiClicked', poi);
|
|
49
|
+
},
|
|
50
|
+
onStartScenario: (code) => {
|
|
51
|
+
console.log('onStartScenario', code);
|
|
52
|
+
},
|
|
53
|
+
onScenarioPaused: (code) => {
|
|
54
|
+
console.log('onScenarioPaused', code);
|
|
55
|
+
},
|
|
56
|
+
onScenarioEnded: (code) => {
|
|
57
|
+
console.log('onScenarioEnded', code);
|
|
65
58
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
59
|
+
},
|
|
60
|
+
mobile: false,
|
|
61
|
+
});
|
|
62
|
+
</script>
|
|
63
|
+
</body>
|
|
64
|
+
</html>
|