@cornerstonejs/core 2.1.1 → 2.1.3

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.
@@ -13,6 +13,7 @@ import isEqual from '../utilities/isEqual';
13
13
  import hasNaNValues from '../utilities/hasNaNValues';
14
14
  import { RENDERING_DEFAULTS } from '../constants';
15
15
  import { InterpolationType } from '../enums';
16
+ import { deepClone } from '../utilities/deepClone';
16
17
  class Viewport {
17
18
  static { this.CameraViewPresentation = {
18
19
  rotation: true,
@@ -71,11 +72,11 @@ class Viewport {
71
72
  this._actors = new Map();
72
73
  this.element.setAttribute('data-viewport-uid', this.id);
73
74
  this.element.setAttribute('data-rendering-engine-uid', this.renderingEngineId);
74
- this.defaultOptions = structuredClone(props.defaultOptions);
75
+ this.defaultOptions = deepClone(props.defaultOptions);
75
76
  this.suppressEvents = props.defaultOptions.suppressEvents
76
77
  ? props.defaultOptions.suppressEvents
77
78
  : false;
78
- this.options = structuredClone(props.defaultOptions);
79
+ this.options = deepClone(props.defaultOptions);
79
80
  this.isDisabled = false;
80
81
  }
81
82
  static get useCustomRenderingPipeline() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "",
5
5
  "main": "./dist/umd/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -84,5 +84,5 @@
84
84
  "type": "individual",
85
85
  "url": "https://ohif.org/donate"
86
86
  },
87
- "gitHead": "1a1d3b83e7513f7d72fb34d702a8260d1859883c"
87
+ "gitHead": "4fa4b3d4816dfde68694811564d3fc44c75e3e1f"
88
88
  }