@qispace/vue3-player 0.0.9 → 0.0.11
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/components/virtualTourV2/ScrollHelper.vue.d.ts +16 -0
- package/dist/components/virtualTourV2/index.d.ts +17 -0
- package/dist/components/virtualTourV2/minimapv2/index.d.ts +1 -0
- package/dist/entry.css +1 -1
- package/dist/vue3-player.mjs +1431 -1371
- package/dist/vue3-player.umd.js +2 -2
- package/package.json +3 -2
- package/src/components/virtualTourV2/{PlayerV2.vue → Player.vue} +1 -1
- package/src/components/virtualTourV2/VirtualTourV2.vue +6 -7
- package/src/components/virtualTourV2/index.ts +17 -0
- package/src/components/virtualTourV2/minimapv2/MiniMapV2.vue +14 -14
- package/src/components/virtualTourV2/minimapv2/index.ts +1 -0
- package/src/lib/index.js +0 -1
- package/src/components/virtualTourV2/index.js +0 -2
- package/src/components/virtualTourV2/minimapv2/index.js +0 -1
- /package/dist/components/virtualTourV2/{PlayerV2.vue.d.ts → Player.vue.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qispace/vue3-player",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"config": {
|
|
5
5
|
"tag-version-prefix": "v"
|
|
6
6
|
},
|
|
@@ -51,7 +51,8 @@
|
|
|
51
51
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
52
52
|
"vite-plugin-dts": "^3.7.3",
|
|
53
53
|
"vue": "^3.4.15",
|
|
54
|
-
"vue-tsc": "^1.8.27"
|
|
54
|
+
"vue-tsc": "^1.8.27",
|
|
55
|
+
"@qispace/player-core": "1.0.50"
|
|
55
56
|
},
|
|
56
57
|
"dependencies": {
|
|
57
58
|
"@qispace/player-core": "1.0.50",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
@set-background-image="setMinimapBackgroundImage"
|
|
23
23
|
/>
|
|
24
24
|
<div v-if="interiorId && currentCameraId">
|
|
25
|
-
<player
|
|
25
|
+
<player
|
|
26
26
|
ref="player"
|
|
27
27
|
:file-loader="fileLoader"
|
|
28
28
|
:style="{ zIndex: showStaticImage ? 1 : 2 }"
|
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
@select-interior="updateSelectedInterior"
|
|
196
196
|
/>
|
|
197
197
|
</template>
|
|
198
|
-
</player
|
|
198
|
+
</player>
|
|
199
199
|
|
|
200
200
|
<waypoint-carousel
|
|
201
201
|
v-if="showCarousel && thumbsJSON"
|
|
@@ -210,9 +210,8 @@
|
|
|
210
210
|
</div>
|
|
211
211
|
</template>
|
|
212
212
|
<script>
|
|
213
|
-
import { defineComponent, ref } from "vue";
|
|
214
213
|
import axios from "axios";
|
|
215
|
-
import
|
|
214
|
+
import Player from "./Player.vue";
|
|
216
215
|
import WaypointCarousel from "./WaypointCarousel.vue";
|
|
217
216
|
import FloorLevel from "./FloorLevel.vue";
|
|
218
217
|
import SocialShare from "./SocialShare.vue";
|
|
@@ -241,7 +240,7 @@ const DEFAULT_PLAYER_SETTINGS = {
|
|
|
241
240
|
whitePoint: [1, 1, 1],
|
|
242
241
|
};
|
|
243
242
|
|
|
244
|
-
export default
|
|
243
|
+
export default {
|
|
245
244
|
name: "VirtualTourV2",
|
|
246
245
|
emits: [
|
|
247
246
|
"on-snapshot",
|
|
@@ -250,7 +249,7 @@ export default defineComponent({
|
|
|
250
249
|
"on-camera-update",
|
|
251
250
|
],
|
|
252
251
|
components: {
|
|
253
|
-
|
|
252
|
+
Player,
|
|
254
253
|
WaypointCarousel,
|
|
255
254
|
InteriorSelector,
|
|
256
255
|
Compass,
|
|
@@ -791,7 +790,7 @@ export default defineComponent({
|
|
|
791
790
|
this.$emit("save-settings", settings);
|
|
792
791
|
},
|
|
793
792
|
},
|
|
794
|
-
}
|
|
793
|
+
};
|
|
795
794
|
|
|
796
795
|
function parseTimeOfDay(floatValue) {
|
|
797
796
|
if (floatValue === undefined) return null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export {default as Compass } from './Compass.vue'
|
|
2
|
+
export {default as Disclaimer } from './Disclaimer.vue'
|
|
3
|
+
export {default as FloorLevel } from './FloorLevel.vue'
|
|
4
|
+
export {default as FullScreenButton } from './FullScreenButton.vue'
|
|
5
|
+
export {default as InteriorSelector } from './InteriorSelector.vue'
|
|
6
|
+
export {default as ManualSlideShow } from './ManualSlideShow.vue'
|
|
7
|
+
export {default as ManualSlideShowPlayer } from './ManualSlideShowPlayer.vue'
|
|
8
|
+
export {default as Player } from './Player.vue'
|
|
9
|
+
export {default as ScrollHelper } from './ScrollHelper.vue'
|
|
10
|
+
export {default as SettingsUI } from './SettingsUI.vue'
|
|
11
|
+
export {default as SingleImage } from './SingleImage.vue'
|
|
12
|
+
export {default as SocialShare } from './SocialShare.vue'
|
|
13
|
+
export {default as TimeOfDay } from './TimeOfDay.vue'
|
|
14
|
+
export {default as Tutorial } from './Tutorial.vue'
|
|
15
|
+
export {default as ViewModeToggle } from './ViewModeToggle.vue'
|
|
16
|
+
export {default as VirtualTourV2 } from './VirtualTourV2.vue'
|
|
17
|
+
export {default as WaypointCarousel } from './WaypointCarousel.vue'
|
|
@@ -28,15 +28,15 @@
|
|
|
28
28
|
</moveable>
|
|
29
29
|
</template>
|
|
30
30
|
<script>
|
|
31
|
-
import MiniMapMap from
|
|
32
|
-
import Moveable from
|
|
33
|
-
import MinimapCompass from
|
|
34
|
-
import SunsimulationSlider from
|
|
31
|
+
import MiniMapMap from "./MiniMapMap.vue";
|
|
32
|
+
import Moveable from "./Moveable.vue";
|
|
33
|
+
import MinimapCompass from "./MinimapCompass.vue";
|
|
34
|
+
import SunsimulationSlider from "./SunsimulationSlider.vue";
|
|
35
35
|
|
|
36
36
|
export default {
|
|
37
37
|
components: { MiniMapMap, Moveable, MinimapCompass, SunsimulationSlider },
|
|
38
|
-
name:
|
|
39
|
-
emits: [
|
|
38
|
+
name: "MiniMapV2",
|
|
39
|
+
emits: ["close", "set-background-image"],
|
|
40
40
|
props: {
|
|
41
41
|
minimapJSON: {
|
|
42
42
|
type: Array,
|
|
@@ -74,31 +74,31 @@ export default {
|
|
|
74
74
|
data() {
|
|
75
75
|
return {
|
|
76
76
|
transformAngle: 0,
|
|
77
|
-
}
|
|
77
|
+
};
|
|
78
78
|
},
|
|
79
79
|
computed: {
|
|
80
80
|
scale() {
|
|
81
|
-
let scale = 1
|
|
81
|
+
let scale = 1;
|
|
82
82
|
if (this.transformAngle !== 0) {
|
|
83
83
|
if (Math.abs(this.transformAngle) % 180 === 0) {
|
|
84
|
-
scale = 1
|
|
84
|
+
scale = 1;
|
|
85
85
|
} else {
|
|
86
|
-
scale = -1
|
|
86
|
+
scale = -1;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
return scale
|
|
90
|
+
return scale;
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
methods: {
|
|
94
94
|
setBackgroundImage(image) {
|
|
95
|
-
this.$emit(
|
|
95
|
+
this.$emit("set-background-image", image);
|
|
96
96
|
},
|
|
97
97
|
transform() {
|
|
98
|
-
this.transformAngle = this.transformAngle + 90
|
|
98
|
+
this.transformAngle = this.transformAngle + 90;
|
|
99
99
|
},
|
|
100
100
|
},
|
|
101
|
-
}
|
|
101
|
+
};
|
|
102
102
|
</script>
|
|
103
103
|
<style scoped>
|
|
104
104
|
.minimap-compass {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MiniMapV2 } from './MiniMapV2.vue'
|
package/src/lib/index.js
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as MiniMapV2 } from './MiniMapV2'
|
|
File without changes
|