@michaelyagi/shoji 0.1.0-beta.17 → 0.1.0-beta.18
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/core/shoji-core.js +1 -1
- package/dist/core/shoji-core.js.map +1 -1
- package/dist/core/shoji-core.min.js +1 -1
- package/dist/core/shoji-core.min.js.map +1 -1
- package/dist/esm/core/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/plugins/rotateFlip/index.js +1 -1
- package/dist/esm/plugins/zoom/index.js +1 -1
- package/dist/esm/{zoomTransition-DZlhPOl8.js → zoomTransition-UoldKrgd.js} +2 -2
- package/dist/esm/zoomTransition-UoldKrgd.js.map +1 -0
- package/dist/plugins/rotateFlip.js.map +1 -1
- package/dist/plugins/rotateFlip.min.js.map +1 -1
- package/dist/plugins/zoom.js.map +1 -1
- package/dist/plugins/zoom.min.js.map +1 -1
- package/dist/shoji.js +2 -2
- package/dist/shoji.js.map +1 -1
- package/dist/shoji.min.js +1 -1
- package/dist/shoji.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/esm/zoomTransition-DZlhPOl8.js.map +0 -1
package/dist/core/shoji-core.js
CHANGED
|
@@ -578,7 +578,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
578
578
|
const targetRatio = targetRect.width / targetRect.height;
|
|
579
579
|
const ratioOfRatios = Math.max(originRatio, targetRatio) / Math.min(originRatio, targetRatio);
|
|
580
580
|
const isMismatch = direction === "out" && ratioOfRatios > ASPECT_MISMATCH_THRESHOLD;
|
|
581
|
-
const transform =
|
|
581
|
+
const transform = direction === "out" ? transformBetweenStretch(pivotRect, targetRect, originRect) : transformBetween(pivotRect, targetRect, originRect);
|
|
582
582
|
return isMismatch ? { kind: "fade", transform } : { kind: "zoom", transform };
|
|
583
583
|
}
|
|
584
584
|
const FADE_IN_TRANSITION = "transform var(--shoji-duration) var(--shoji-easing), opacity var(--shoji-fade-duration, 120ms) var(--shoji-easing)";
|