dwv 0.30.6 → 0.30.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.
- package/changelog.md +8 -0
- package/dist/dwv.js +5 -4
- package/dist/dwv.min.js +2 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [v0.30.7](https://github.com/ivmartel/dwv/releases/tag/v0.30.7) - 28/12/2021
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Pinch zoom is not working [#1070](https://github.com/ivmartel/dwv/issues/1070)
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
3
11
|
## [v0.30.6](https://github.com/ivmartel/dwv/releases/tag/v0.30.6) - 20/12/2021
|
|
4
12
|
|
|
5
13
|
### Fixed
|
package/dist/dwv.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! dwv 0.30.
|
|
1
|
+
/*! dwv 0.30.7 2021-12-30 11:37:54 */
|
|
2
2
|
// Inspired from umdjs
|
|
3
3
|
// See https://github.com/umdjs/umd/blob/master/templates/returnExports.js
|
|
4
4
|
(function (root, factory) {
|
|
@@ -4444,7 +4444,7 @@ dwv.dicom = dwv.dicom || {};
|
|
|
4444
4444
|
* @returns {string} The version of the library.
|
|
4445
4445
|
*/
|
|
4446
4446
|
dwv.getVersion = function () {
|
|
4447
|
-
return '0.30.
|
|
4447
|
+
return '0.30.7';
|
|
4448
4448
|
};
|
|
4449
4449
|
|
|
4450
4450
|
/**
|
|
@@ -31707,8 +31707,9 @@ dwv.tool.ZoomAndPan = function (app) {
|
|
|
31707
31707
|
// zoom mode
|
|
31708
31708
|
var zoom = (lineRatio - 1) / 2;
|
|
31709
31709
|
if (Math.abs(zoom) % 0.1 <= 0.05) {
|
|
31710
|
-
var planePos = viewLayer.
|
|
31711
|
-
|
|
31710
|
+
var planePos = viewLayer.displayToMainPlanePos(
|
|
31711
|
+
self.midPoint.getX(), self.midPoint.getY());
|
|
31712
|
+
var center = viewController.getPlanePositionFromPlanePoint(planePos);
|
|
31712
31713
|
layerGroup.addScale(zoom, center);
|
|
31713
31714
|
layerGroup.draw();
|
|
31714
31715
|
}
|