@cornerstonejs/core 5.4.4 → 5.4.6
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.
|
@@ -107,14 +107,12 @@ class WSIViewport extends Viewport {
|
|
|
107
107
|
this.canvasToIndex = (canvasPos) => {
|
|
108
108
|
const transform = this.getTransform();
|
|
109
109
|
transform.invert();
|
|
110
|
-
const indexPoint = transform.transformPoint(canvasPos
|
|
110
|
+
const indexPoint = transform.transformPoint(canvasPos);
|
|
111
111
|
return [indexPoint[0], indexPoint[1], 0];
|
|
112
112
|
};
|
|
113
113
|
this.indexToCanvas = (indexPos) => {
|
|
114
114
|
const transform = this.getTransform();
|
|
115
|
-
return transform
|
|
116
|
-
.transformPoint([indexPos[0], indexPos[1]])
|
|
117
|
-
.map((it) => it / devicePixelRatio);
|
|
115
|
+
return transform.transformPoint([indexPos[0], indexPos[1]]);
|
|
118
116
|
};
|
|
119
117
|
this.customRenderViewportToCanvas = () => {
|
|
120
118
|
};
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.4.
|
|
1
|
+
export declare const version = "5.4.6";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '5.4.
|
|
1
|
+
export const version = '5.4.6';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/core",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.6",
|
|
4
4
|
"description": "Cornerstone3D Core",
|
|
5
5
|
"module": "./dist/esm/index.js",
|
|
6
6
|
"types": "./dist/esm/index.d.ts",
|
|
@@ -85,18 +85,18 @@
|
|
|
85
85
|
"prepublishOnly": "pnpm run build"
|
|
86
86
|
},
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@cornerstonejs/utils": "5.4.
|
|
88
|
+
"@cornerstonejs/utils": "5.4.6",
|
|
89
89
|
"@kitware/vtk.js": "35.5.3",
|
|
90
90
|
"comlink": "4.4.2",
|
|
91
91
|
"gl-matrix": "3.4.3",
|
|
92
92
|
"loglevel": "1.9.2"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
|
-
"@cornerstonejs/metadata": "5.4.
|
|
95
|
+
"@cornerstonejs/metadata": "5.4.6"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
|
-
"@cornerstonejs/metadata": "5.4.
|
|
99
|
-
"@cornerstonejs/utils": "5.4.
|
|
98
|
+
"@cornerstonejs/metadata": "5.4.6",
|
|
99
|
+
"@cornerstonejs/utils": "5.4.6"
|
|
100
100
|
},
|
|
101
101
|
"contributors": [
|
|
102
102
|
{
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"type": "individual",
|
|
110
110
|
"url": "https://ohif.org/donate"
|
|
111
111
|
},
|
|
112
|
-
"gitHead": "
|
|
112
|
+
"gitHead": "c60c19174686aed42b617bec2f443d9009ef3e3a"
|
|
113
113
|
}
|