@cornerstonejs/core 3.32.10 → 3.32.12

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.
@@ -8,11 +8,8 @@ import { getOrCreateCanvas } from './helpers';
8
8
  import { EPSILON } from '../constants';
9
9
  import triggerEvent from '../utilities/triggerEvent';
10
10
  import { peerImport } from '../init';
11
- import { pointInShapeCallback } from '../utilities/pointInShapeCallback';
12
11
  import microscopyViewportCss from '../constants/microscopyViewportCss';
13
12
  let WSIUtilFunctions = null;
14
- const _map = Symbol.for('map');
15
- const affineSymbol = Symbol.for('affine');
16
13
  const EVENT_POSTRENDER = 'postrender';
17
14
  class WSIViewport extends Viewport {
18
15
  constructor(props) {
@@ -324,7 +321,7 @@ class WSIViewport extends Viewport {
324
321
  if (!WSIUtilFunctions) {
325
322
  return;
326
323
  }
327
- const affine = this.viewer[affineSymbol];
324
+ const affine = this.viewer.getAffine();
328
325
  const pixelCoords = WSIUtilFunctions.applyInverseTransform({
329
326
  coordinate: [point[0], point[1]],
330
327
  affine,
@@ -337,7 +334,7 @@ class WSIViewport extends Viewport {
337
334
  }
338
335
  const sliceCoords = WSIUtilFunctions.applyTransform({
339
336
  coordinate: [point[0], point[1]],
340
- affine: this.viewer[affineSymbol],
337
+ affine: this.viewer.getAffine(),
341
338
  });
342
339
  return [sliceCoords[0], sliceCoords[1], 0];
343
340
  }
@@ -420,7 +417,7 @@ class WSIViewport extends Viewport {
420
417
  this.metadata = this.getImageDataMetadata();
421
418
  viewer.deactivateDragPanInteraction();
422
419
  this.viewer = viewer;
423
- this.map = viewer[_map];
420
+ this.map = viewer.getMap();
424
421
  this.map.on(EVENT_POSTRENDER, this.postrender);
425
422
  this.resize();
426
423
  this.microscopyElement.innerText = '';
@@ -445,7 +442,7 @@ class WSIViewport extends Viewport {
445
442
  if (!this.viewer) {
446
443
  return;
447
444
  }
448
- const map = this.viewer[_map];
445
+ const map = this.viewer.getMap();
449
446
  const anyWindow = window;
450
447
  anyWindow.map = map;
451
448
  anyWindow.viewer = this.viewer;
@@ -1 +1 @@
1
- export declare const version = "3.32.10";
1
+ export declare const version = "3.32.12";
@@ -1 +1 @@
1
- export const version = '3.32.10';
1
+ export const version = '3.32.12';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "3.32.10",
3
+ "version": "3.32.12",
4
4
  "description": "Cornerstone3D Core",
5
5
  "module": "./dist/esm/index.js",
6
6
  "types": "./dist/esm/index.d.ts",
@@ -97,5 +97,5 @@
97
97
  "type": "individual",
98
98
  "url": "https://ohif.org/donate"
99
99
  },
100
- "gitHead": "643819927064304e4d9d8a8e8fdb8cffbd59bec2"
100
+ "gitHead": "18e77561cbed314d083d89c60d43b8c7f0311108"
101
101
  }