vue-visual-kit 1.0.202507110949 → 1.0.202507241431
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-visual-kit",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.202507241431",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"axios": "^0.27.2",
|
|
39
39
|
"patch-package": "^8.0.0",
|
|
40
40
|
"postcss-pxtorem": "^6.0.0",
|
|
41
|
-
"sm4js": "^0.0.6",
|
|
42
41
|
"vant": "^3.5.2",
|
|
43
42
|
"vue": "^3.2.13",
|
|
44
43
|
"vue-clipboard3": "^2.0.0",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git a/node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/BaseVolumeViewport.js b/node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/BaseVolumeViewport.js
|
|
2
|
-
index 75d8c08..
|
|
2
|
+
index 75d8c08..8f58cc2 100644
|
|
3
3
|
--- a/node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/BaseVolumeViewport.js
|
|
4
4
|
+++ b/node_modules/@cornerstonejs/core/dist/esm/RenderingEngine/BaseVolumeViewport.js
|
|
5
5
|
@@ -1,6 +1,7 @@
|
|
@@ -10,7 +10,7 @@ index 75d8c08..957c23e 100644
|
|
|
10
10
|
import { vec2, vec3 } from 'gl-matrix';
|
|
11
11
|
import cache from '../cache/cache';
|
|
12
12
|
import { MPR_CAMERA_VALUES, RENDERING_DEFAULTS, VIEWPORT_PRESETS, } from '../constants';
|
|
13
|
-
@@ -163,6 +164,
|
|
13
|
+
@@ -163,6 +164,50 @@ class BaseVolumeViewport extends Viewport {
|
|
14
14
|
vtkCamera.setIsPerformingCoordinateTransformation?.(false);
|
|
15
15
|
return [worldCoord[0], worldCoord[1], worldCoord[2]];
|
|
16
16
|
};
|
|
@@ -33,6 +33,30 @@ index 75d8c08..957c23e 100644
|
|
|
33
33
|
+ vtkCamera.setIsPerformingCoordinateTransformation?.(false);
|
|
34
34
|
+ return [worldCoord[0], worldCoord[1], worldCoord[2]];
|
|
35
35
|
+ }
|
|
36
|
+
+ };
|
|
37
|
+
+ this.canvasToPickerActors = (canvasPos) => {
|
|
38
|
+
+ const vtkCamera = this.getVtkActiveCamera();
|
|
39
|
+
+ vtkCamera.setIsPerformingCoordinateTransformation?.(true);
|
|
40
|
+
+ const renderer = this.getRenderer();
|
|
41
|
+
+ const displayCoords = this.getVtkDisplayCoords(canvasPos);
|
|
42
|
+
+ const picker = vtkCellPicker.newInstance({ opacityThreshold: 0.0001 });
|
|
43
|
+
+ picker.setTolerance(0);
|
|
44
|
+
+ picker.pick(displayCoords, renderer);
|
|
45
|
+
+ const pickedActors = picker.getActors();
|
|
46
|
+
+ const result = [];
|
|
47
|
+
+ if (pickedActors.length>0) {
|
|
48
|
+
+ pickedActors.forEach(it => {
|
|
49
|
+
+ const tmp = it.get('custome');
|
|
50
|
+
+ if(tmp.custome && tmp.custome.id) {
|
|
51
|
+
+ result.push({
|
|
52
|
+
+ id: tmp.custome.id,
|
|
53
|
+
+ name: tmp.custome.name
|
|
54
|
+
+ })
|
|
55
|
+
+ }
|
|
56
|
+
+ })
|
|
57
|
+
+ }
|
|
58
|
+
+ vtkCamera.setIsPerformingCoordinateTransformation?.(false);
|
|
59
|
+
+ return result;
|
|
36
60
|
+ };
|
|
37
61
|
this.getVtkDisplayCoords = (canvasPos) => {
|
|
38
62
|
const devicePixelRatio = window.devicePixelRatio || 1;
|
|
@@ -11,7 +11,7 @@ index e4bfd9b..46105be 100644
|
|
|
11
11
|
color: 'rgb(0, 255, 0)',
|
|
12
12
|
handleRadius: '6',
|
|
13
13
|
diff --git a/node_modules/@cornerstonejs/tools/dist/esm/tools/CrosshairsTool.js b/node_modules/@cornerstonejs/tools/dist/esm/tools/CrosshairsTool.js
|
|
14
|
-
index e0e5d55..
|
|
14
|
+
index e0e5d55..9de6b6c 100644
|
|
15
15
|
--- a/node_modules/@cornerstonejs/tools/dist/esm/tools/CrosshairsTool.js
|
|
16
16
|
+++ b/node_modules/@cornerstonejs/tools/dist/esm/tools/CrosshairsTool.js
|
|
17
17
|
@@ -37,6 +37,7 @@ class CrosshairsTool extends AnnotationTool {
|
|
@@ -38,7 +38,7 @@ index e0e5d55..c897917 100644
|
|
|
38
38
|
drawHandlesSvg(svgDrawingHelper, annotationUID, handleUID, rotationHandles, {
|
|
39
39
|
color,
|
|
40
40
|
handleRadius,
|
|
41
|
-
@@ -619,
|
|
41
|
+
@@ -619,10 +622,12 @@ class CrosshairsTool extends AnnotationTool {
|
|
42
42
|
(this.configuration.enableHDPIHandles
|
|
43
43
|
? window.devicePixelRatio
|
|
44
44
|
: 1);
|
|
@@ -46,7 +46,12 @@ index e0e5d55..c897917 100644
|
|
|
46
46
|
drawHandlesSvg(svgDrawingHelper, annotationUID, handleUID, rotationHandles, {
|
|
47
47
|
color,
|
|
48
48
|
handleRadius,
|
|
49
|
-
|
|
49
|
+
fill: color,
|
|
50
|
+
+ opacity,
|
|
51
|
+
type: 'circle',
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
@@ -972,7 +977,11 @@ class CrosshairsTool extends AnnotationTool {
|
|
50
55
|
if (this._isClockWise(centerCanvas, originalPointCanvas, finalPointCanvas)) {
|
|
51
56
|
angle *= -1;
|
|
52
57
|
}
|