@cornerstonejs/core 1.36.1 → 1.36.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "1.36.1",
3
+ "version": "1.36.3",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "type": "individual",
48
48
  "url": "https://ohif.org/donate"
49
49
  },
50
- "gitHead": "98d7148d2ab5fd6e804e8c4907982de9978667b5"
50
+ "gitHead": "b6b6f9273ca4cff849336005d199c4b1b1570815"
51
51
  }
@@ -232,13 +232,11 @@ class RenderingEngine implements IRenderingEngine {
232
232
  this._clearAnimationFrame();
233
233
  }
234
234
 
235
- // 8. Resize the offScreen canvas to accommodate for the new size (after removal)
236
- // Note: Resize should not reset pan and zoom when disabling an element.
237
- // This is because we are only resizing the offscreen canvas to deal with the element
238
- // which was removed, and do not wish to alter the current state of any other currently enabled element
239
- const immediate = true;
240
- const keepCamera = true;
241
- this.resize(immediate, keepCamera);
235
+ // Note: we should not call resize at the end of here, the reason is that
236
+ // in batch rendering, we might disable a viewport and enable others at the same
237
+ // time which would interfere with each other. So we just let the enable
238
+ // to call resize, and also resize getting called by applications on the
239
+ // DOM resize event.
242
240
  }
243
241
 
244
242
  /**