@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.
Files changed (88) hide show
  1. package/dist/components/apartmentChooser/QiApartmentChooser.vue.d.ts +471 -3
  2. package/dist/components/apartmentChooser/QiApartmentChooserNavigation.vue.d.ts +50 -3
  3. package/dist/components/apartmentChooser/QiApartmentChooserRaster.vue.d.ts +151 -3
  4. package/dist/components/apartmentChooser/QiApartmentChooserRotator.vue.d.ts +66 -3
  5. package/dist/components/apartmentChooser/QiApartmentChooserSvg.vue.d.ts +124 -3
  6. package/dist/components/buildingPicker/QiBuildingChooser.vue.d.ts +425 -2
  7. package/dist/components/buildingPicker/QiBuildingChooserRaster.vue.d.ts +154 -3
  8. package/dist/components/buildingPicker/QiBuildingChooserRasterOverlay.vue.d.ts +53 -3
  9. package/dist/components/buildingPicker/QiBuildingChooserSceneImageStack.vue.d.ts +32 -3
  10. package/dist/components/buildingPicker/QiBuildingChooserSunSimControl.vue.d.ts +41 -4
  11. package/dist/components/buildingPicker/QiBuildingChooserSvg.vue.d.ts +156 -3
  12. package/dist/components/shared/QiFloatingCard.vue.d.ts +17 -3
  13. package/dist/components/shared/QiHoverProbe.vue.d.ts +3 -3
  14. package/dist/components/shared/QiNorthDirection.vue.d.ts +20 -2
  15. package/dist/components/shared/QiZoomBox.vue.d.ts +82 -3
  16. package/dist/components/virtualTourV2/Disclaimer.vue.d.ts +3 -3
  17. package/dist/components/virtualTourV2/FullScreenButton.vue.d.ts +13 -2
  18. package/dist/components/virtualTourV2/ManualSlideShow.vue.d.ts +72 -3
  19. package/dist/components/virtualTourV2/ManualSlideShowPlayer.vue.d.ts +14 -3
  20. package/dist/components/virtualTourV2/SingleImage.vue.d.ts +25 -3
  21. package/dist/components/virtualTourV2/SocialShare.vue.d.ts +9 -3
  22. package/dist/components/virtualTourV2/WaypointCarousel.vue.d.ts +30 -3
  23. package/dist/entry.css +1 -0
  24. package/dist/{vue3-player.esm.js → vue3-player.mjs} +647 -581
  25. package/dist/vue3-player.umd.js +2 -3
  26. package/package.json +12 -10
  27. package/dist/components/apartmentChooser/QiApartmentChooser.vue.d.ts.map +0 -1
  28. package/dist/components/apartmentChooser/QiApartmentChooserNavigation.vue.d.ts.map +0 -1
  29. package/dist/components/apartmentChooser/QiApartmentChooserRaster.vue.d.ts.map +0 -1
  30. package/dist/components/apartmentChooser/QiApartmentChooserRotator.vue.d.ts.map +0 -1
  31. package/dist/components/apartmentChooser/QiApartmentChooserSvg.vue.d.ts.map +0 -1
  32. package/dist/components/buildingPicker/QiBuildingChooser.vue.d.ts.map +0 -1
  33. package/dist/components/buildingPicker/QiBuildingChooserRaster.vue.d.ts.map +0 -1
  34. package/dist/components/buildingPicker/QiBuildingChooserRasterOverlay.vue.d.ts.map +0 -1
  35. package/dist/components/buildingPicker/QiBuildingChooserSceneImageStack.vue.d.ts.map +0 -1
  36. package/dist/components/buildingPicker/QiBuildingChooserSunSimControl.vue.d.ts.map +0 -1
  37. package/dist/components/buildingPicker/QiBuildingChooserSvg.vue.d.ts.map +0 -1
  38. package/dist/components/shared/QiFloatingCard.vue.d.ts.map +0 -1
  39. package/dist/components/shared/QiHoverProbe.vue.d.ts.map +0 -1
  40. package/dist/components/shared/QiNorthDirection.vue.d.ts.map +0 -1
  41. package/dist/components/shared/QiZoomBox.vue.d.ts.map +0 -1
  42. package/dist/components/virtualTourV2/Disclaimer.vue.d.ts.map +0 -1
  43. package/dist/components/virtualTourV2/FullScreenButton.vue.d.ts.map +0 -1
  44. package/dist/components/virtualTourV2/ManualSlideShow.vue.d.ts.map +0 -1
  45. package/dist/components/virtualTourV2/ManualSlideShowPlayer.vue.d.ts.map +0 -1
  46. package/dist/components/virtualTourV2/SingleImage.vue.d.ts.map +0 -1
  47. package/dist/components/virtualTourV2/SocialShare.vue.d.ts.map +0 -1
  48. package/dist/components/virtualTourV2/WaypointCarousel.vue.d.ts.map +0 -1
  49. package/dist/lib/virtualTour__/ApartmentConfig.d.ts +0 -27
  50. package/dist/lib/virtualTour__/ApartmentFiles.d.ts +0 -7
  51. package/dist/lib/virtualTour__/MinimapConfig.d.ts +0 -23
  52. package/dist/lib/virtualTour__/impl/HttpApartmentFiles.d.ts +0 -19
  53. package/dist/vue3-player.cjs.js +0 -2
  54. package/dist/vue3-player.iife.js +0 -3
  55. package/src/entry.esm.js +0 -17
  56. package/src/entry.js +0 -13
  57. package/src/entry.ts_ +0 -17
  58. package/src/lib/virtualTour__/ApartmentConfig.ts +0 -80
  59. package/src/lib/virtualTour__/ApartmentFiles.ts +0 -8
  60. package/src/lib/virtualTour__/CameraNavigator.js_ +0 -74
  61. package/src/lib/virtualTour__/CameraSnapshot.js +0 -42
  62. package/src/lib/virtualTour__/CoordConversions.js +0 -43
  63. package/src/lib/virtualTour__/FullscreenModel.js +0 -69
  64. package/src/lib/virtualTour__/MinimapConfig.ts +0 -46
  65. package/src/lib/virtualTour__/PlayerViewModel.js +0 -423
  66. package/src/lib/virtualTour__/config/ApartmentConfig.js +0 -92
  67. package/src/lib/virtualTour__/config/CameraConfig.js +0 -97
  68. package/src/lib/virtualTour__/config/Interaction.js +0 -393
  69. package/src/lib/virtualTour__/config/Panorama.js +0 -78
  70. package/src/lib/virtualTour__/config/PlayerConfig.js +0 -812
  71. package/src/lib/virtualTour__/config/rawinflate.export.js +0 -833
  72. package/src/lib/virtualTour__/config/shaders.js +0 -24
  73. package/src/lib/virtualTour__/impl/HttpApartmentFiles.ts +0 -57
  74. package/src/lib/virtualTour__/index.js +0 -1
  75. package/src/lib/virtualTour__/textures/arrow.png +0 -0
  76. package/src/lib/virtualTour__/textures/compass-bg.png +0 -0
  77. package/src/lib/virtualTour__/textures/compass-needle.png +0 -0
  78. package/src/lib/virtualTour__/textures/compass-north.png +0 -0
  79. package/src/lib/virtualTour__/textures/floor-1.svg +0 -4
  80. package/src/lib/virtualTour__/textures/floor-2.svg +0 -4
  81. package/src/lib/virtualTour__/textures/marker.png +0 -0
  82. package/src/lib/virtualTour__/textures/tod-sun.png +0 -0
  83. package/src/main.ts_ +0 -24
  84. package/src/shims-png.d.ts +0 -4
  85. package/src/shims-tsx.d.ts +0 -11
  86. package/src/shims-vue.d.ts +0 -4
  87. package/src/style.css +0 -0
  88. 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'
@@ -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>
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')
@@ -1,4 +0,0 @@
1
- declare module "*.png" {
2
- const value: string;
3
- export default value;
4
- }
@@ -1,11 +0,0 @@
1
- import Vue, { VNode } from 'vue'
2
-
3
- declare global {
4
- namespace JSX {
5
- interface Element extends VNode {}
6
- interface ElementClass extends Vue {}
7
- interface IntrinsicElements {
8
- [elem: string]: any
9
- }
10
- }
11
- }
@@ -1,4 +0,0 @@
1
- declare module '*.vue' {
2
- import Vue from 'vue'
3
- export default Vue
4
- }
package/src/style.css DELETED
File without changes
package/src/vite-env.d.ts DELETED
@@ -1,5 +0,0 @@
1
- declare module '*.vue' {
2
- import type { DefineComponent } from 'vue'
3
- const component: DefineComponent<{}, {}, any>
4
- export default component
5
- }