@qispace/vue3-player 0.0.6 → 0.0.7
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/apartmentChooser/QiApartmentChooser.vue.d.ts +471 -3
- package/dist/components/apartmentChooser/QiApartmentChooserNavigation.vue.d.ts +50 -3
- package/dist/components/apartmentChooser/QiApartmentChooserRaster.vue.d.ts +151 -3
- package/dist/components/apartmentChooser/QiApartmentChooserRotator.vue.d.ts +66 -3
- package/dist/components/apartmentChooser/QiApartmentChooserSvg.vue.d.ts +124 -3
- package/dist/components/buildingPicker/QiBuildingChooser.vue.d.ts +425 -2
- package/dist/components/buildingPicker/QiBuildingChooserRaster.vue.d.ts +154 -3
- package/dist/components/buildingPicker/QiBuildingChooserRasterOverlay.vue.d.ts +53 -3
- package/dist/components/buildingPicker/QiBuildingChooserSceneImageStack.vue.d.ts +32 -3
- package/dist/components/buildingPicker/QiBuildingChooserSunSimControl.vue.d.ts +41 -4
- package/dist/components/buildingPicker/QiBuildingChooserSvg.vue.d.ts +156 -3
- package/dist/components/shared/QiFloatingCard.vue.d.ts +17 -3
- package/dist/components/shared/QiHoverProbe.vue.d.ts +3 -3
- package/dist/components/shared/QiNorthDirection.vue.d.ts +20 -2
- package/dist/components/shared/QiZoomBox.vue.d.ts +82 -3
- package/dist/components/virtualTourV2/Disclaimer.vue.d.ts +3 -3
- package/dist/components/virtualTourV2/FullScreenButton.vue.d.ts +13 -2
- package/dist/components/virtualTourV2/ManualSlideShow.vue.d.ts +72 -3
- package/dist/components/virtualTourV2/ManualSlideShowPlayer.vue.d.ts +14 -3
- package/dist/components/virtualTourV2/SingleImage.vue.d.ts +25 -3
- package/dist/components/virtualTourV2/SocialShare.vue.d.ts +9 -3
- package/dist/components/virtualTourV2/WaypointCarousel.vue.d.ts +30 -3
- package/dist/entry.css +1 -0
- package/dist/{vue3-player.esm.js → vue3-player.mjs} +647 -581
- package/dist/vue3-player.umd.js +2 -3
- package/package.json +12 -10
- package/dist/components/apartmentChooser/QiApartmentChooser.vue.d.ts.map +0 -1
- package/dist/components/apartmentChooser/QiApartmentChooserNavigation.vue.d.ts.map +0 -1
- package/dist/components/apartmentChooser/QiApartmentChooserRaster.vue.d.ts.map +0 -1
- package/dist/components/apartmentChooser/QiApartmentChooserRotator.vue.d.ts.map +0 -1
- package/dist/components/apartmentChooser/QiApartmentChooserSvg.vue.d.ts.map +0 -1
- package/dist/components/buildingPicker/QiBuildingChooser.vue.d.ts.map +0 -1
- package/dist/components/buildingPicker/QiBuildingChooserRaster.vue.d.ts.map +0 -1
- package/dist/components/buildingPicker/QiBuildingChooserRasterOverlay.vue.d.ts.map +0 -1
- package/dist/components/buildingPicker/QiBuildingChooserSceneImageStack.vue.d.ts.map +0 -1
- package/dist/components/buildingPicker/QiBuildingChooserSunSimControl.vue.d.ts.map +0 -1
- package/dist/components/buildingPicker/QiBuildingChooserSvg.vue.d.ts.map +0 -1
- package/dist/components/shared/QiFloatingCard.vue.d.ts.map +0 -1
- package/dist/components/shared/QiHoverProbe.vue.d.ts.map +0 -1
- package/dist/components/shared/QiNorthDirection.vue.d.ts.map +0 -1
- package/dist/components/shared/QiZoomBox.vue.d.ts.map +0 -1
- package/dist/components/virtualTourV2/Disclaimer.vue.d.ts.map +0 -1
- package/dist/components/virtualTourV2/FullScreenButton.vue.d.ts.map +0 -1
- package/dist/components/virtualTourV2/ManualSlideShow.vue.d.ts.map +0 -1
- package/dist/components/virtualTourV2/ManualSlideShowPlayer.vue.d.ts.map +0 -1
- package/dist/components/virtualTourV2/SingleImage.vue.d.ts.map +0 -1
- package/dist/components/virtualTourV2/SocialShare.vue.d.ts.map +0 -1
- package/dist/components/virtualTourV2/WaypointCarousel.vue.d.ts.map +0 -1
- package/dist/lib/virtualTour__/ApartmentConfig.d.ts +0 -27
- package/dist/lib/virtualTour__/ApartmentFiles.d.ts +0 -7
- package/dist/lib/virtualTour__/MinimapConfig.d.ts +0 -23
- package/dist/lib/virtualTour__/impl/HttpApartmentFiles.d.ts +0 -19
- package/dist/vue3-player.cjs.js +0 -2
- package/dist/vue3-player.iife.js +0 -3
- package/src/entry.esm.js +0 -17
- package/src/entry.js +0 -13
- package/src/entry.ts_ +0 -17
- package/src/lib/virtualTour__/ApartmentConfig.ts +0 -80
- package/src/lib/virtualTour__/ApartmentFiles.ts +0 -8
- package/src/lib/virtualTour__/CameraNavigator.js_ +0 -74
- package/src/lib/virtualTour__/CameraSnapshot.js +0 -42
- package/src/lib/virtualTour__/CoordConversions.js +0 -43
- package/src/lib/virtualTour__/FullscreenModel.js +0 -69
- package/src/lib/virtualTour__/MinimapConfig.ts +0 -46
- package/src/lib/virtualTour__/PlayerViewModel.js +0 -423
- package/src/lib/virtualTour__/config/ApartmentConfig.js +0 -92
- package/src/lib/virtualTour__/config/CameraConfig.js +0 -97
- package/src/lib/virtualTour__/config/Interaction.js +0 -393
- package/src/lib/virtualTour__/config/Panorama.js +0 -78
- package/src/lib/virtualTour__/config/PlayerConfig.js +0 -812
- package/src/lib/virtualTour__/config/rawinflate.export.js +0 -833
- package/src/lib/virtualTour__/config/shaders.js +0 -24
- package/src/lib/virtualTour__/impl/HttpApartmentFiles.ts +0 -57
- package/src/lib/virtualTour__/index.js +0 -1
- package/src/lib/virtualTour__/textures/arrow.png +0 -0
- package/src/lib/virtualTour__/textures/compass-bg.png +0 -0
- package/src/lib/virtualTour__/textures/compass-needle.png +0 -0
- package/src/lib/virtualTour__/textures/compass-north.png +0 -0
- package/src/lib/virtualTour__/textures/floor-1.svg +0 -4
- package/src/lib/virtualTour__/textures/floor-2.svg +0 -4
- package/src/lib/virtualTour__/textures/marker.png +0 -0
- package/src/lib/virtualTour__/textures/tod-sun.png +0 -0
- package/src/main.ts_ +0 -24
- package/src/shims-png.d.ts +0 -4
- package/src/shims-tsx.d.ts +0 -11
- package/src/shims-vue.d.ts +0 -4
- package/src/style.css +0 -0
- package/src/vite-env.d.ts +0 -5
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export const vertexShader = `
|
|
2
|
-
varying vec2 vUv;
|
|
3
|
-
void main()
|
|
4
|
-
{
|
|
5
|
-
vUv = uv;
|
|
6
|
-
vec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );
|
|
7
|
-
gl_Position = projectionMatrix * mvPosition;
|
|
8
|
-
}
|
|
9
|
-
`
|
|
10
|
-
|
|
11
|
-
export const fragmentShader = `
|
|
12
|
-
uniform sampler2D tex1;
|
|
13
|
-
uniform sampler2D tex2;
|
|
14
|
-
uniform float blend;
|
|
15
|
-
|
|
16
|
-
varying vec2 vUv;
|
|
17
|
-
|
|
18
|
-
void main(void)
|
|
19
|
-
{
|
|
20
|
-
vec4 Ca = texture2D(tex1, vUv);
|
|
21
|
-
vec4 Cb = texture2D(tex2, vUv);
|
|
22
|
-
gl_FragColor= mix(Ca, Cb, blend);
|
|
23
|
-
}
|
|
24
|
-
`
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import axios, { AxiosError, AxiosResponse } from 'axios'
|
|
2
|
-
import { ProjectFiles, ProjectFile } from '../ApartmentFiles'
|
|
3
|
-
|
|
4
|
-
export class HttpFile implements ProjectFile {
|
|
5
|
-
constructor(private readonly url: string) {}
|
|
6
|
-
|
|
7
|
-
async readJson<T>(): Promise<T | undefined> {
|
|
8
|
-
try {
|
|
9
|
-
const res = await axios.get(this.toPath())
|
|
10
|
-
return this.isJsonContent(res) ? res.data : undefined
|
|
11
|
-
} catch (e) {
|
|
12
|
-
if (this.isFileNotFound(e as AxiosError)) return undefined
|
|
13
|
-
else throw e
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
toPath(): string {
|
|
18
|
-
return this.url
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
private isFileNotFound(e: AxiosError) {
|
|
22
|
-
return e.response?.status === 403
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
private isJsonContent(response: AxiosResponse<any>) {
|
|
26
|
-
return response.headers['content-type'] === 'application/json'
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
class AbsentFile implements ProjectFile {
|
|
31
|
-
toPath(): string {
|
|
32
|
-
throw new Error('Can not resolve a missing file')
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
async readJson<T>(): Promise<T | undefined> {
|
|
36
|
-
return undefined
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface FilenameResolver {
|
|
41
|
-
(filename: string): string | null
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export class HttpApartmentFiles implements ProjectFiles {
|
|
45
|
-
constructor(
|
|
46
|
-
private readonly filenameResolver: FilenameResolver,
|
|
47
|
-
private readonly apartmentId: string,
|
|
48
|
-
private readonly interiorId: string
|
|
49
|
-
) {}
|
|
50
|
-
|
|
51
|
-
makeFile(...parts: string[]): ProjectFile {
|
|
52
|
-
const relativeUrl =
|
|
53
|
-
'/' + [this.interiorId, this.apartmentId, ...parts].join('/')
|
|
54
|
-
const absoluteUrl = this.filenameResolver(relativeUrl)
|
|
55
|
-
return absoluteUrl ? new HttpFile(absoluteUrl!) : new AbsentFile()
|
|
56
|
-
}
|
|
57
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PlayerViewModel } from './PlayerViewModel'
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="18" height="16" viewBox="0 0 18 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M8.98034 14.7993L1.54055 10.3376L8.98034 5.87599L16.4201 10.3376L8.98034 14.7993Z" fill="white" stroke="black" stroke-width="1.5" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M8.98034 10.3472L1.54055 5.8855L8.98034 1.42384L16.4201 5.8855L8.98034 10.3472Z" fill="white" stroke="#999999" stroke-width="1.5" stroke-linejoin="round"/>
|
|
4
|
-
</svg>
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
<svg width="19" height="16" viewBox="0 0 19 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M9.76135 14.7993L2.32155 10.3376L9.76135 5.87599L17.2011 10.3376L9.76135 14.7993Z" fill="white" stroke="#999999" stroke-width="1.5" stroke-linejoin="round"/>
|
|
3
|
-
<path d="M9.76135 10.3472L2.32155 5.8855L9.76135 1.42384L17.2011 5.8855L9.76135 10.3472Z" fill="white" stroke="black" stroke-width="1.5" stroke-linejoin="round"/>
|
|
4
|
-
</svg>
|
|
Binary file
|
|
Binary file
|
package/src/main.ts_
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// import { createApp } from 'vue'
|
|
2
|
-
// import './style.css'
|
|
3
|
-
// import App from '../dev/DevApp.vue'
|
|
4
|
-
|
|
5
|
-
// import 'vuetify/styles'
|
|
6
|
-
// import '@mdi/font/css/materialdesignicons.css'
|
|
7
|
-
// import { createVuetify } from 'vuetify'
|
|
8
|
-
// import * as components from 'vuetify/components'
|
|
9
|
-
// import * as directives from 'vuetify/directives'
|
|
10
|
-
// import { aliases, mdi } from 'vuetify/iconsets/mdi'
|
|
11
|
-
|
|
12
|
-
// const vuetify = createVuetify({
|
|
13
|
-
// components,
|
|
14
|
-
// directives,
|
|
15
|
-
// icons: {
|
|
16
|
-
// defaultSet: 'mdi',
|
|
17
|
-
// aliases,
|
|
18
|
-
// sets: {
|
|
19
|
-
// mdi,
|
|
20
|
-
// },
|
|
21
|
-
// },
|
|
22
|
-
// })
|
|
23
|
-
|
|
24
|
-
// createApp(App).use(vuetify).mount('#app')
|
package/src/shims-png.d.ts
DELETED
package/src/shims-tsx.d.ts
DELETED
package/src/shims-vue.d.ts
DELETED
package/src/style.css
DELETED
|
File without changes
|