@panoramax/web-viewer 4.0.1-develop-9d10729d → 4.0.1-develop-16812d39
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/CHANGELOG.md +5 -1
- package/build/index.css +1 -1
- package/build/index.js +4 -4
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/picture.js +6 -1
package/package.json
CHANGED
package/src/utils/picture.js
CHANGED
|
@@ -191,7 +191,12 @@ export function getCroppedPanoData(picture) {
|
|
|
191
191
|
// Check if crop is really necessary
|
|
192
192
|
if(res) {
|
|
193
193
|
res = Object.fromEntries(Object.entries(res || {}).filter(e => !isNaN(e[1])));
|
|
194
|
-
if(
|
|
194
|
+
if(
|
|
195
|
+
(!res.fullWidth && !res.croppedWidth && res.fullHeight && !res.croppedHeight)
|
|
196
|
+
|| (res.fullWidth && !res.croppedWidth && !res.fullHeight && !res.croppedHeight)
|
|
197
|
+
|| (res.fullWidth && !res.croppedWidth && res.fullHeight && !res.croppedHeight)
|
|
198
|
+
|| (res.fullWidth == res.croppedWidth && res.fullHeight == res.croppedHeight)
|
|
199
|
+
) {
|
|
195
200
|
res = {};
|
|
196
201
|
}
|
|
197
202
|
}
|