@fieldnotes/core 0.50.4 → 0.50.5
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/index.cjs +6 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2032,7 +2032,11 @@ var InputHandler = class {
|
|
|
2032
2032
|
if (this.lastPinchDistance > 0) {
|
|
2033
2033
|
const scale = dist / this.lastPinchDistance;
|
|
2034
2034
|
const newZoom = this.camera.zoom * scale;
|
|
2035
|
-
this.
|
|
2035
|
+
const rect = this.element.getBoundingClientRect();
|
|
2036
|
+
this.camera.zoomAt(newZoom, {
|
|
2037
|
+
x: center2.x - rect.left,
|
|
2038
|
+
y: center2.y - rect.top
|
|
2039
|
+
});
|
|
2036
2040
|
}
|
|
2037
2041
|
const dx = center2.x - this.lastPointer.x;
|
|
2038
2042
|
const dy = center2.y - this.lastPointer.y;
|
|
@@ -10714,7 +10718,7 @@ var LaserTool = class {
|
|
|
10714
10718
|
};
|
|
10715
10719
|
|
|
10716
10720
|
// src/index.ts
|
|
10717
|
-
var VERSION = "0.50.
|
|
10721
|
+
var VERSION = "0.50.5";
|
|
10718
10722
|
// Annotate the CommonJS export names for ESM import in node:
|
|
10719
10723
|
0 && (module.exports = {
|
|
10720
10724
|
ArrowTool,
|