diff --git a/packages/ngx-view360/projects/ngx-view360/package-lock.json b/packages/ngx-view360/projects/ngx-view360/package-lock.json new file mode 100644 index 000000000..df96bf6de --- /dev/null +++ b/packages/ngx-view360/projects/ngx-view360/package-lock.json @@ -0,0 +1,288 @@ +{ + "name": "@egjs/ngx-view360", + "version": "3.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "@egjs/ngx-view360", + "version": "3.0.0", + "license": "MIT", + "dependencies": { + "@egjs/view360": "^3.6.0" + }, + "devDependencies": { + "@angular/common": "~10.0.0", + "@angular/core": "~10.0.0" + }, + "peerDependencies": { + "@angular/common": ">=10.0.0", + "@angular/core": ">=10.0.0" + } + }, + "node_modules/@angular/common": { + "version": "10.0.14", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-10.0.14.tgz", + "integrity": "sha512-EOAuaMt2HwJF3DtIJ/ksHtnF8Pqh5K2rWISYLEs9R3WNaSGn74kbCODAT4pNhI8P22Ykl3H4FmQUgnDZ3uDAUg==", + "dev": true, + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "@angular/core": "10.0.14", + "rxjs": "^6.5.3" + } + }, + "node_modules/@angular/core": { + "version": "10.0.14", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-10.0.14.tgz", + "integrity": "sha512-m+c9g6fA/gE+6K7It01b6r8TEmbuFjUZajQ9gG/pzist0mTBcqfvn0O4h5X+ebnSgw/bbnnp+4PbaXEi1pOWZQ==", + "dev": true, + "dependencies": { + "tslib": "^2.0.0" + }, + "peerDependencies": { + "rxjs": "^6.5.3", + "zone.js": "~0.10.3" + } + }, + "node_modules/@egjs/agent": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@egjs/agent/-/agent-2.3.0.tgz", + "integrity": "sha512-ENhwkOW6rnYW8IuXJwvECIAzj7nMxq+ctB8uCJ+mKnoKK8tGiv3YXtN6nuaOov2YmXdRdwafSz9rhgRNXswX/A==" + }, + "node_modules/@egjs/axes": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@egjs/axes/-/axes-2.8.0.tgz", + "integrity": "sha512-WPMIM/ExZBS8guD3oeNr6YGDn2xSnj0YUZHWvY/NWvTQIs7A2O7WxJivYgzcg7r2q0RYtzrdpHn+982iaKCLSw==", + "dependencies": { + "@egjs/agent": "^2.2.1", + "@egjs/component": "^2.2.2", + "@egjs/hammerjs": "^2.0.15" + } + }, + "node_modules/@egjs/axes/node_modules/@egjs/component": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-2.2.2.tgz", + "integrity": "sha512-2m6nu6/Mbs6VnoT4IHFGUBX6V82Zp01zDmlWpIJ3fMatHpe7BB1qUYFgMmSWGY0uOvOl4plvflwbCRUAGMfwWQ==" + }, + "node_modules/@egjs/component": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-3.0.1.tgz", + "integrity": "sha512-Hus9GMXOVfHBzyumyeRL1TkN60LhGen+e9FpqXqbS9jA9hDYEE1AH3ulahbBGhRdMs4uXYl3hRnB5kGZRb9n7Q==" + }, + "node_modules/@egjs/hammerjs": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@egjs/hammerjs/-/hammerjs-2.0.17.tgz", + "integrity": "sha512-XQsZgjm2EcVUiZQf11UBJQfmZeEmOW8DpI1gsFeln6w0ae0ii4dMQEQ0kjl6DspdWX1aGY1/loyXnP0JS06e/A==", + "dependencies": { + "@types/hammerjs": "^2.0.36" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/@egjs/imready": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@egjs/imready/-/imready-1.1.4.tgz", + "integrity": "sha512-LyAyriK4syI3URtZtTHE68sfQRBJAcdhzJL1m2N+6QHGwo+M0YNC1HwcLx/ze15MDfv+gGXfQrlF6jPHzK+V4A==", + "dependencies": { + "@egjs/component": "^2.2.2" + } + }, + "node_modules/@egjs/imready/node_modules/@egjs/component": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-2.2.2.tgz", + "integrity": "sha512-2m6nu6/Mbs6VnoT4IHFGUBX6V82Zp01zDmlWpIJ3fMatHpe7BB1qUYFgMmSWGY0uOvOl4plvflwbCRUAGMfwWQ==" + }, + "node_modules/@egjs/view360": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.6.0.tgz", + "integrity": "sha512-N5ycDj6qHTJcuCSIaAq7tqJD1qCxmJrvq+qOyVxcsNiyAY1XPVQS+SY3KNDJiDJn1DhBsfDR9SoR+IsDaNFiNg==", + "dependencies": { + "@egjs/axes": "^2.7.1", + "@egjs/component": "^3.0.1", + "@egjs/imready": "^1.1.2", + "gl-matrix": "^3.3.0", + "promise-polyfill": "^8.2.0" + } + }, + "node_modules/@types/hammerjs": { + "version": "2.0.40", + "resolved": "https://registry.npmjs.org/@types/hammerjs/-/hammerjs-2.0.40.tgz", + "integrity": "sha512-VbjwR1fhsn2h2KXAY4oy1fm7dCxaKy0D+deTb8Ilc3Eo3rc5+5eA4rfYmZaHgNJKxVyI0f6WIXzO2zLkVmQPHA==" + }, + "node_modules/gl-matrix": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.3.tgz", + "integrity": "sha512-wcCp8vu8FT22BnvKVPjXa/ICBWRq/zjFfdofZy1WSpQZpphblv12/bOQLBC1rMM7SGOFS9ltVmKOHil5+Ml7gA==" + }, + "node_modules/promise-polyfill": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-8.2.0.tgz", + "integrity": "sha512-k/TC0mIcPVF6yHhUvwAp7cvL6I2fFV7TzF1DuGPI8mBh4QQazf36xCKEHKTZKRysEoTQoQdKyP25J8MPJp7j5g==" + }, + "node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "peer": true, + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/rxjs/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true, + "peer": true + }, + "node_modules/tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + }, + "node_modules/zone.js": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.10.3.tgz", + "integrity": "sha512-LXVLVEq0NNOqK/fLJo3d0kfzd4sxwn2/h67/02pjCjfKDxgx1i9QqpvtHD8CrBnSSwMw5+dy11O7FRX5mkO7Cg==", + "dev": true, + "peer": true + } + }, + "dependencies": { + "@angular/common": { + "version": "10.0.14", + "resolved": "https://registry.npmjs.org/@angular/common/-/common-10.0.14.tgz", + "integrity": "sha512-EOAuaMt2HwJF3DtIJ/ksHtnF8Pqh5K2rWISYLEs9R3WNaSGn74kbCODAT4pNhI8P22Ykl3H4FmQUgnDZ3uDAUg==", + "dev": true, + "requires": { + "tslib": "^2.0.0" + } + }, + "@angular/core": { + "version": "10.0.14", + "resolved": "https://registry.npmjs.org/@angular/core/-/core-10.0.14.tgz", + "integrity": "sha512-m+c9g6fA/gE+6K7It01b6r8TEmbuFjUZajQ9gG/pzist0mTBcqfvn0O4h5X+ebnSgw/bbnnp+4PbaXEi1pOWZQ==", + "dev": true, + "requires": { + "tslib": "^2.0.0" + } + }, + "@egjs/agent": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@egjs/agent/-/agent-2.3.0.tgz", + "integrity": "sha512-ENhwkOW6rnYW8IuXJwvECIAzj7nMxq+ctB8uCJ+mKnoKK8tGiv3YXtN6nuaOov2YmXdRdwafSz9rhgRNXswX/A==" + }, + "@egjs/axes": { + "version": "2.8.0", + "resolved": "https://registry.npmjs.org/@egjs/axes/-/axes-2.8.0.tgz", + "integrity": "sha512-WPMIM/ExZBS8guD3oeNr6YGDn2xSnj0YUZHWvY/NWvTQIs7A2O7WxJivYgzcg7r2q0RYtzrdpHn+982iaKCLSw==", + "requires": { + "@egjs/agent": "^2.2.1", + "@egjs/component": "^2.2.2", + "@egjs/hammerjs": "^2.0.15" + }, + "dependencies": { + "@egjs/component": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-2.2.2.tgz", + "integrity": "sha512-2m6nu6/Mbs6VnoT4IHFGUBX6V82Zp01zDmlWpIJ3fMatHpe7BB1qUYFgMmSWGY0uOvOl4plvflwbCRUAGMfwWQ==" + } + } + }, + "@egjs/component": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-3.0.1.tgz", + "integrity": "sha512-Hus9GMXOVfHBzyumyeRL1TkN60LhGen+e9FpqXqbS9jA9hDYEE1AH3ulahbBGhRdMs4uXYl3hRnB5kGZRb9n7Q==" + }, + "@egjs/hammerjs": { + "version": "2.0.17", + "resolved": "https://registry.npmjs.org/@egjs/hammerjs/-/hammerjs-2.0.17.tgz", + "integrity": "sha512-XQsZgjm2EcVUiZQf11UBJQfmZeEmOW8DpI1gsFeln6w0ae0ii4dMQEQ0kjl6DspdWX1aGY1/loyXnP0JS06e/A==", + "requires": { + "@types/hammerjs": "^2.0.36" + } + }, + "@egjs/imready": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@egjs/imready/-/imready-1.1.4.tgz", + "integrity": "sha512-LyAyriK4syI3URtZtTHE68sfQRBJAcdhzJL1m2N+6QHGwo+M0YNC1HwcLx/ze15MDfv+gGXfQrlF6jPHzK+V4A==", + "requires": { + "@egjs/component": "^2.2.2" + }, + "dependencies": { + "@egjs/component": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-2.2.2.tgz", + "integrity": "sha512-2m6nu6/Mbs6VnoT4IHFGUBX6V82Zp01zDmlWpIJ3fMatHpe7BB1qUYFgMmSWGY0uOvOl4plvflwbCRUAGMfwWQ==" + } + } + }, + "@egjs/view360": { + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.6.0.tgz", + "integrity": "sha512-N5ycDj6qHTJcuCSIaAq7tqJD1qCxmJrvq+qOyVxcsNiyAY1XPVQS+SY3KNDJiDJn1DhBsfDR9SoR+IsDaNFiNg==", + "requires": { + "@egjs/axes": "^2.7.1", + "@egjs/component": "^3.0.1", + "@egjs/imready": "^1.1.2", + "gl-matrix": "^3.3.0", + "promise-polyfill": "^8.2.0" + } + }, + "@types/hammerjs": { + "version": "2.0.40", + "resolved": "https://registry.npmjs.org/@types/hammerjs/-/hammerjs-2.0.40.tgz", + "integrity": "sha512-VbjwR1fhsn2h2KXAY4oy1fm7dCxaKy0D+deTb8Ilc3Eo3rc5+5eA4rfYmZaHgNJKxVyI0f6WIXzO2zLkVmQPHA==" + }, + "gl-matrix": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/gl-matrix/-/gl-matrix-3.4.3.tgz", + "integrity": "sha512-wcCp8vu8FT22BnvKVPjXa/ICBWRq/zjFfdofZy1WSpQZpphblv12/bOQLBC1rMM7SGOFS9ltVmKOHil5+Ml7gA==" + }, + "promise-polyfill": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/promise-polyfill/-/promise-polyfill-8.2.0.tgz", + "integrity": "sha512-k/TC0mIcPVF6yHhUvwAp7cvL6I2fFV7TzF1DuGPI8mBh4QQazf36xCKEHKTZKRysEoTQoQdKyP25J8MPJp7j5g==" + }, + "rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dev": true, + "peer": true, + "requires": { + "tslib": "^1.9.0" + }, + "dependencies": { + "tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", + "dev": true, + "peer": true + } + } + }, + "tslib": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.1.tgz", + "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==", + "dev": true + }, + "zone.js": { + "version": "0.10.3", + "resolved": "https://registry.npmjs.org/zone.js/-/zone.js-0.10.3.tgz", + "integrity": "sha512-LXVLVEq0NNOqK/fLJo3d0kfzd4sxwn2/h67/02pjCjfKDxgx1i9QqpvtHD8CrBnSSwMw5+dy11O7FRX5mkO7Cg==", + "dev": true, + "peer": true + } + } +} diff --git a/packages/ngx-view360/projects/ngx-view360/package.json b/packages/ngx-view360/projects/ngx-view360/package.json index 07b505737..336dbe07b 100644 --- a/packages/ngx-view360/projects/ngx-view360/package.json +++ b/packages/ngx-view360/projects/ngx-view360/package.json @@ -7,7 +7,11 @@ "@angular/core": ">=10.0.0" }, "dependencies": { - "@egjs/view360": "^3.5.1" + "@egjs/view360": "^3.6.0" + }, + "devDependencies": { + "@angular/common": "~10.0.0", + "@angular/core": "~10.0.0" }, "repository": { "type": "git", diff --git a/packages/ngx-view360/projects/ngx-view360/src/lib/ngx-pano-viewer.component.ts b/packages/ngx-view360/projects/ngx-view360/src/lib/ngx-pano-viewer.component.ts index 7b44281fb..0360ce1c1 100644 --- a/packages/ngx-view360/projects/ngx-view360/src/lib/ngx-pano-viewer.component.ts +++ b/packages/ngx-view360/projects/ngx-view360/src/lib/ngx-pano-viewer.component.ts @@ -140,7 +140,7 @@ export class NgxPanoViewerComponent extends PanoViewerInterface } private _bindEvents() { - const panoViewer = this._vanillaPanoViewer!; + const panoViewer = this._vanillaPanoViewer; Object.keys(PANOVIEWER_EVENTS).forEach(evtKey => { const evtName = PANOVIEWER_EVENTS[evtKey]; diff --git a/packages/react-view360/.npmignore b/packages/react-view360/.npmignore index 5bca43732..a05c0c6cf 100644 --- a/packages/react-view360/.npmignore +++ b/packages/react-view360/.npmignore @@ -2,12 +2,9 @@ node_modules/ public/ src/demo/ -src/index.tsx -src/react-app-env.d.ts .eslintcache .env config-overrides.js rollup.config.js -tsconfig.paths.json tsconfig.declaration.json tsconfig.build.json diff --git a/packages/react-view360/package-lock.json b/packages/react-view360/package-lock.json index 2c60583a0..bc4652485 100644 --- a/packages/react-view360/package-lock.json +++ b/packages/react-view360/package-lock.json @@ -9,7 +9,7 @@ "version": "3.0.0", "license": "MIT", "dependencies": { - "@egjs/view360": "^3.5.2" + "@egjs/view360": "^3.6.0" }, "devDependencies": { "@egjs/build-helper": "0.0.5", @@ -2151,17 +2151,22 @@ } }, "node_modules/@egjs/view360": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.5.2.tgz", - "integrity": "sha512-iuy7DtN0RNw4hhdtuc1PXCg98tiuUNLOTMDG0HWChqPLiL/VOd5w4TNJ4nD07dWwQ7TgXs2EXqMEPU5EzJg7WQ==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.6.0.tgz", + "integrity": "sha512-N5ycDj6qHTJcuCSIaAq7tqJD1qCxmJrvq+qOyVxcsNiyAY1XPVQS+SY3KNDJiDJn1DhBsfDR9SoR+IsDaNFiNg==", "dependencies": { "@egjs/axes": "^2.7.1", - "@egjs/component": "^2.2.2", + "@egjs/component": "^3.0.1", "@egjs/imready": "^1.1.2", "gl-matrix": "^3.3.0", "promise-polyfill": "^8.2.0" } }, + "node_modules/@egjs/view360/node_modules/@egjs/component": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-3.0.1.tgz", + "integrity": "sha512-Hus9GMXOVfHBzyumyeRL1TkN60LhGen+e9FpqXqbS9jA9hDYEE1AH3ulahbBGhRdMs4uXYl3hRnB5kGZRb9n7Q==" + }, "node_modules/@eslint/eslintrc": { "version": "0.4.3", "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-0.4.3.tgz", @@ -38651,15 +38656,22 @@ } }, "@egjs/view360": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.5.2.tgz", - "integrity": "sha512-iuy7DtN0RNw4hhdtuc1PXCg98tiuUNLOTMDG0HWChqPLiL/VOd5w4TNJ4nD07dWwQ7TgXs2EXqMEPU5EzJg7WQ==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.6.0.tgz", + "integrity": "sha512-N5ycDj6qHTJcuCSIaAq7tqJD1qCxmJrvq+qOyVxcsNiyAY1XPVQS+SY3KNDJiDJn1DhBsfDR9SoR+IsDaNFiNg==", "requires": { "@egjs/axes": "^2.7.1", - "@egjs/component": "^2.2.2", + "@egjs/component": "^3.0.1", "@egjs/imready": "^1.1.2", "gl-matrix": "^3.3.0", "promise-polyfill": "^8.2.0" + }, + "dependencies": { + "@egjs/component": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-3.0.1.tgz", + "integrity": "sha512-Hus9GMXOVfHBzyumyeRL1TkN60LhGen+e9FpqXqbS9jA9hDYEE1AH3ulahbBGhRdMs4uXYl3hRnB5kGZRb9n7Q==" + } } }, "@eslint/eslintrc": { diff --git a/packages/vue-view360/.npmignore b/packages/vue-view360/.npmignore index 9365f5cc5..7788a2ca6 100644 --- a/packages/vue-view360/.npmignore +++ b/packages/vue-view360/.npmignore @@ -16,7 +16,7 @@ webpack.*.js tslint* #docs -demo +demo/ jsdoc.json #editor settings diff --git a/packages/vue-view360/package-lock.json b/packages/vue-view360/package-lock.json index 9cfaee1bd..cd738bfcd 100644 --- a/packages/vue-view360/package-lock.json +++ b/packages/vue-view360/package-lock.json @@ -9,7 +9,7 @@ "version": "3.0.0", "license": "MIT", "dependencies": { - "@egjs/view360": "^3.5.1" + "@egjs/view360": "^3.6.0" }, "devDependencies": { "@egjs/build-helper": "^0.1.2", @@ -1753,17 +1753,22 @@ } }, "node_modules/@egjs/view360": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.5.1.tgz", - "integrity": "sha512-3dSWZjAhIM7ggBgMle7u2fbdUJDE1qzUfY0UZgTPhyhu7fzRHq/u6JkOlJn+8AWXZeDCZjLX9WCanzBIfCF+Zw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.6.0.tgz", + "integrity": "sha512-N5ycDj6qHTJcuCSIaAq7tqJD1qCxmJrvq+qOyVxcsNiyAY1XPVQS+SY3KNDJiDJn1DhBsfDR9SoR+IsDaNFiNg==", "dependencies": { "@egjs/axes": "^2.7.1", - "@egjs/component": "^2.2.2", + "@egjs/component": "^3.0.1", "@egjs/imready": "^1.1.2", "gl-matrix": "^3.3.0", "promise-polyfill": "^8.2.0" } }, + "node_modules/@egjs/view360/node_modules/@egjs/component": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-3.0.1.tgz", + "integrity": "sha512-Hus9GMXOVfHBzyumyeRL1TkN60LhGen+e9FpqXqbS9jA9hDYEE1AH3ulahbBGhRdMs4uXYl3hRnB5kGZRb9n7Q==" + }, "node_modules/@hapi/address": { "version": "2.1.4", "resolved": "https://registry.npmjs.org/@hapi/address/-/address-2.1.4.tgz", @@ -18857,15 +18862,22 @@ } }, "@egjs/view360": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.5.1.tgz", - "integrity": "sha512-3dSWZjAhIM7ggBgMle7u2fbdUJDE1qzUfY0UZgTPhyhu7fzRHq/u6JkOlJn+8AWXZeDCZjLX9WCanzBIfCF+Zw==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@egjs/view360/-/view360-3.6.0.tgz", + "integrity": "sha512-N5ycDj6qHTJcuCSIaAq7tqJD1qCxmJrvq+qOyVxcsNiyAY1XPVQS+SY3KNDJiDJn1DhBsfDR9SoR+IsDaNFiNg==", "requires": { "@egjs/axes": "^2.7.1", - "@egjs/component": "^2.2.2", + "@egjs/component": "^3.0.1", "@egjs/imready": "^1.1.2", "gl-matrix": "^3.3.0", "promise-polyfill": "^8.2.0" + }, + "dependencies": { + "@egjs/component": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@egjs/component/-/component-3.0.1.tgz", + "integrity": "sha512-Hus9GMXOVfHBzyumyeRL1TkN60LhGen+e9FpqXqbS9jA9hDYEE1AH3ulahbBGhRdMs4uXYl3hRnB5kGZRb9n7Q==" + } } }, "@hapi/address": { diff --git a/packages/vue-view360/package.json b/packages/vue-view360/package.json index 620b990c7..7d909c793 100644 --- a/packages/vue-view360/package.json +++ b/packages/vue-view360/package.json @@ -34,7 +34,7 @@ "not op_mini all" ], "dependencies": { - "@egjs/view360": "^3.5.2" + "@egjs/view360": "^3.6.0" }, "peerDependencies": { "vue": "^2.0.0" diff --git a/packages/vue-view360/src/PanoViewer.ts b/packages/vue-view360/src/PanoViewer.ts index cc2a68075..c54aca9ea 100644 --- a/packages/vue-view360/src/PanoViewer.ts +++ b/packages/vue-view360/src/PanoViewer.ts @@ -60,12 +60,6 @@ export default Vue.extend<{ beforeDestroy() { const panoViewer = this._vanillaPanoViewer; - // Turn off video if it has one - const video = panoViewer?.getVideo(); - if (video) { - video.pause(); - } - panoViewer?.destroy(); }, updated() { diff --git a/packages/vue-view360/src/index.ts b/packages/vue-view360/src/index.ts index 9d2cab4cd..3ffcd4999 100644 --- a/packages/vue-view360/src/index.ts +++ b/packages/vue-view360/src/index.ts @@ -4,6 +4,12 @@ import { VueConstructor } from "vue"; import PanoViewer from "./PanoViewer"; import SpinViewer from "./SpinViewer"; +declare global { + interface Window { + Vue: VueConstructor; + } +} + const version = "#__VERSION__#"; const install = (Vue: VueConstructor) => { Vue.component("PanoViewer", PanoViewer); diff --git a/packages/vue-view360/src/index.umd.ts b/packages/vue-view360/src/index.umd.ts new file mode 100644 index 000000000..64390932f --- /dev/null +++ b/packages/vue-view360/src/index.umd.ts @@ -0,0 +1,25 @@ +/* eslint-disable @typescript-eslint/naming-convention */ +import { VueConstructor } from "vue"; + +import PanoViewer from "./PanoViewer"; +import SpinViewer from "./SpinViewer"; + +declare global { + interface Window { + Vue: VueConstructor; + } +} + +const version = "#__VERSION__#"; +const install = (Vue: VueConstructor) => { + Vue.component("PanoViewer", PanoViewer); + Vue.component("SpinViewer", SpinViewer); +}; + +const plugin = { + PanoViewer, + SpinViewer, + install, + version +}; +export default plugin;