@clikvn/showroom-visualizer 0.3.0-dev-13 → 0.3.0-dev-14
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/dist/features/ShowroomVisualizer/index.d.ts.map +1 -1
- package/dist/index.html +97 -98
- package/dist/index.js +1 -1
- package/dist/web.js +1 -1
- package/package.json +1 -1
- package/.claude/settings.local.json +0 -19
- package/dist/context/SwizzleContext.d.ts +0 -21
- package/dist/context/SwizzleContext.d.ts.map +0 -1
- package/dist/types/swizzle.d.ts +0 -59
- package/dist/types/swizzle.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/ShowroomVisualizer/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAON,MAAM,OAAO,CAAC;AAWf,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAO/B,KAAK,0BAA0B,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B,CAAC;;AAgSF,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/features/ShowroomVisualizer/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAON,MAAM,OAAO,CAAC;AAWf,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EACL,gBAAgB,EAChB,WAAW,EACX,uBAAuB,EACxB,MAAM,uBAAuB,CAAC;AAO/B,KAAK,0BAA0B,GAAG;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE;QACP,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,SAAS,CAAC,EAAE,uBAAuB,CAAC;IACpC,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;IACzB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;;;;;;;;;;;OAYG;IACH,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,UAAU,CAAC,EAAE,gBAAgB,CAAC;CAC/B,CAAC;;AAgSF,wBAKG"}
|
package/dist/index.html
CHANGED
|
@@ -1,110 +1,109 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
16
|
+
<showroom-visualizer></showroom-visualizer>
|
|
17
17
|
</div>
|
|
18
|
-
</div>
|
|
19
|
-
<!-- <div class="h-full" style="width: 390px"></div>-->
|
|
20
18
|
</div>
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
45
|
+
// tourCode: 'tour_7a6hchjljga4'.toUpperCase(),
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
// tourCode: 'TOUR_ZJMHKMJEACAH',
|
|
48
|
+
// startScene: 'SCENE_LVN4DLUFACAH',
|
|
49
|
+
// hLookAt: -179.145,
|
|
50
|
+
// vLookAt: 11.597,
|
|
51
51
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
</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', tool);
|
|
67
|
+
},
|
|
68
|
+
onPoiClicked: (poi) => {
|
|
69
|
+
console.log('onPoiClicked', poi);
|
|
70
|
+
},
|
|
71
|
+
onPoiOut: () => {
|
|
72
|
+
// console.log('onPoiOut');
|
|
73
|
+
},
|
|
74
|
+
onPoiOver: (poi) => {
|
|
75
|
+
console.log('onPoiOver', poi);
|
|
76
|
+
},
|
|
77
|
+
onPoiInCenter: (poi) => {
|
|
78
|
+
// console.log('onPoiInCenter', poi);
|
|
79
|
+
},
|
|
80
|
+
onStartScenario: (code) => {
|
|
81
|
+
// console.log('onStartScenario', code);
|
|
82
|
+
},
|
|
83
|
+
onScenarioPaused: (code) => {
|
|
84
|
+
// console.log('onScenarioPaused', code);
|
|
85
|
+
},
|
|
86
|
+
onScenarioEnded: (code) => {
|
|
87
|
+
// console.log('onScenarioEnded', code);
|
|
88
|
+
},
|
|
89
|
+
onChanged: (args) => {
|
|
90
|
+
console.log('onChanged', args);
|
|
91
|
+
},
|
|
92
|
+
onStartLoadingTour: (code) => {
|
|
93
|
+
// console.log('onStartLoadingTour', code);
|
|
94
|
+
},
|
|
95
|
+
onFinishedLoadingTour: (code) => {
|
|
96
|
+
// console.log('onFinishedLoadingTour', code);
|
|
97
|
+
},
|
|
98
|
+
onStateChanged: (changes) => {
|
|
99
|
+
// console.log('changes', changes);
|
|
100
|
+
},
|
|
101
|
+
onToolLoaded: (tool) => {
|
|
102
|
+
console.log('onToolLoaded', tool);
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
mobile: false
|
|
106
|
+
});
|
|
107
|
+
</script>
|
|
108
|
+
</body>
|
|
109
|
+
</html>
|