@cornerstonejs/tools 5.4.2 → 5.4.4

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.
@@ -11,14 +11,14 @@ export default function drawLine(svgDrawingHelper, annotationUID, lineUID, start
11
11
  const svgNodeHash = _getHash(annotationUID, 'line', lineUID);
12
12
  const existingLine = svgDrawingHelper.getSvgNode(svgNodeHash);
13
13
  const layerId = svgDrawingHelper.svgLayerElement.id;
14
- const dropShadowStyle = shadow ? `filter:url(#shadow-${layerId});` : '';
14
+ const dropShadowStyle = shadow ? `url(#shadow-${layerId});` : '';
15
15
  const attributes = {
16
16
  x1: `${start[0]}`,
17
17
  y1: `${start[1]}`,
18
18
  x2: `${end[0]}`,
19
19
  y2: `${end[1]}`,
20
20
  stroke: textBoxLinkLineColor || color,
21
- style: dropShadowStyle,
21
+ filter: dropShadowStyle,
22
22
  'stroke-width': strokeWidth,
23
23
  'stroke-dasharray': lineDash,
24
24
  'marker-start': markerStartId ? `url(#${markerStartId})` : '',
@@ -165,7 +165,7 @@ class BaseTool {
165
165
  static isInsideVolume(dimensions, indexPoints) {
166
166
  const { length: count } = indexPoints;
167
167
  for (let i = 0; i < count; i++) {
168
- if (!csUtils.indexWithinDimensions(indexPoints[i], dimensions)) {
168
+ if (!csUtils.indexAlmostWithinDimensions(indexPoints[i], dimensions)) {
169
169
  return false;
170
170
  }
171
171
  }
@@ -1 +1 @@
1
- export declare const version = "5.4.2";
1
+ export declare const version = "5.4.4";
@@ -1 +1 @@
1
- export const version = '5.4.2';
1
+ export const version = '5.4.4';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/tools",
3
- "version": "5.4.2",
3
+ "version": "5.4.4",
4
4
  "description": "Cornerstone3D Tools",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "module": "./dist/esm/index.js",
@@ -126,11 +126,11 @@
126
126
  "lodash.get": "4.4.2"
127
127
  },
128
128
  "devDependencies": {
129
- "@cornerstonejs/core": "5.4.2",
129
+ "@cornerstonejs/core": "5.4.4",
130
130
  "canvas": "3.2.0"
131
131
  },
132
132
  "peerDependencies": {
133
- "@cornerstonejs/core": "5.4.2",
133
+ "@cornerstonejs/core": "5.4.4",
134
134
  "@kitware/vtk.js": "35.5.3",
135
135
  "@types/d3-array": "3.2.1",
136
136
  "@types/d3-interpolate": "3.0.4",
@@ -149,5 +149,5 @@
149
149
  "type": "individual",
150
150
  "url": "https://ohif.org/donate"
151
151
  },
152
- "gitHead": "34e073e17bd1da9dbee6f422100042fa90e4ddf7"
152
+ "gitHead": "84c0af662873c165048e70bf4c1ad41fdab23964"
153
153
  }