@cornerstonejs/tools 4.15.7 → 4.15.9
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.
|
@@ -63,7 +63,7 @@ class Synchronizer {
|
|
|
63
63
|
}
|
|
64
64
|
const eventSource = this._eventSource === 'element' ? viewport.element : eventTarget;
|
|
65
65
|
eventSource.addEventListener(this._eventName, this._onEvent.bind(this));
|
|
66
|
-
this._auxiliaryEvents.forEach(({ name, source }) => {
|
|
66
|
+
this._auxiliaryEvents.forEach(({ name, source = 'element' }) => {
|
|
67
67
|
const target = source === 'element' ? viewport.element : eventTarget;
|
|
68
68
|
target.addEventListener(name, this._onEvent.bind(this));
|
|
69
69
|
});
|
|
@@ -24,6 +24,7 @@ class SculptorTool extends BaseTool {
|
|
|
24
24
|
],
|
|
25
25
|
toolShape: 'circle',
|
|
26
26
|
referencedToolName: 'PlanarFreehandROI',
|
|
27
|
+
updateCursorSize: 'dynamic',
|
|
27
28
|
},
|
|
28
29
|
}) {
|
|
29
30
|
super(toolProps, defaultToolProps);
|
|
@@ -336,7 +337,9 @@ class SculptorTool extends BaseTool {
|
|
|
336
337
|
else {
|
|
337
338
|
const cursorShape = this.registeredShapes.get(this.selectedShape);
|
|
338
339
|
const canvasCoords = eventData.currentPoints.canvas;
|
|
339
|
-
|
|
340
|
+
if (this.configuration.updateCursorSize === 'dynamic') {
|
|
341
|
+
cursorShape.updateToolSize(canvasCoords, viewport, activeAnnotation);
|
|
342
|
+
}
|
|
340
343
|
}
|
|
341
344
|
triggerAnnotationRenderForViewportIds(this.commonData.viewportIdsToRender);
|
|
342
345
|
}
|
package/dist/esm/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.15.
|
|
1
|
+
export declare const version = "4.15.9";
|
package/dist/esm/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '4.15.
|
|
1
|
+
export const version = '4.15.9';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cornerstonejs/tools",
|
|
3
|
-
"version": "4.15.
|
|
3
|
+
"version": "4.15.9",
|
|
4
4
|
"description": "Cornerstone3D Tools",
|
|
5
5
|
"types": "./dist/esm/index.d.ts",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"canvas": "3.2.0"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
|
-
"@cornerstonejs/core": "4.15.
|
|
111
|
+
"@cornerstonejs/core": "4.15.9",
|
|
112
112
|
"@kitware/vtk.js": "34.15.1",
|
|
113
113
|
"@types/d3-array": "3.2.1",
|
|
114
114
|
"@types/d3-interpolate": "3.0.4",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"type": "individual",
|
|
128
128
|
"url": "https://ohif.org/donate"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "a9494c75f3e1405ffab86b48e16b77fcf5caf330"
|
|
131
131
|
}
|