Describe the Bug
I've noticed that if the WSI viewport is created using enableElement, then future enableElement (even with a corresponding disableElement in between) breaks the viewport.
Steps to Reproduce
In the WSI example, just after renderingEngine.enableElement(viewportInput);, add these lines:
renderingEngine.disableElement(viewportId);
renderingEngine.enableElement(viewportInput);
Now, run the example using yarn example -- wsi.
The current behavior
The viewport no longer shows an image:
The expected behavior
A disableElement then enableElement with the same options should be a no-op, so behaviour should be the same as without those additional lines. (Perhaps even without a disableElement a repeated enableElement with the same options should be a no-op, arguably?)
System Information
System:
OS: macOS 26.3.1
CPU: (10) arm64 Apple M1 Pro
Memory: 191.41 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 25.2.0 - /opt/homebrew/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 11.6.2 - /opt/homebrew/bin/npm
Browsers:
Brave Browser: 146.1.88.138
Chrome: 147.0.7727.55
Safari: 26.3.1
Describe the Bug
I've noticed that if the WSI viewport is created using
enableElement, then futureenableElement(even with a correspondingdisableElementin between) breaks the viewport.Steps to Reproduce
In the WSI example, just after
renderingEngine.enableElement(viewportInput);, add these lines:Now, run the example using
yarn example -- wsi.The current behavior
The viewport no longer shows an image:
The expected behavior
A
disableElementthenenableElementwith the same options should be a no-op, so behaviour should be the same as without those additional lines. (Perhaps even without adisableElementa repeatedenableElementwith the same options should be a no-op, arguably?)System Information