Skip to content

Fixes for tool widget manager life-cycle and SVG tool resize update#344

Merged
floryst merged 4 commits intoKitware:mainfrom
PaulHax:view-widget-lifecycle
Jun 13, 2023
Merged

Fixes for tool widget manager life-cycle and SVG tool resize update#344
floryst merged 4 commits intoKitware:mainfrom
PaulHax:view-widget-lifecycle

Conversation

@PaulHax
Copy link
Collaborator

@PaulHax PaulHax commented Jun 8, 2023

Crop3D: Avoids calling widgetManger.addWidget before widgetManager is linked to viewProxy

Reverts conditional rendering of 2D tools on useViewProxyMounted. Applies initialization fix to useViewProxy to avoid adding a widget to widgetManager before linking with viewProxy.

Fixes resize update for SVG widgets by calling ResizeObserver with tool container DIV rather than SVG group element (which did not trigger ResizeObserver callback.)

fixes #343

@netlify
Copy link

netlify bot commented Jun 8, 2023

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit abb1d3b
🔍 Latest deploy log https://app.netlify.com/sites/volview-dev/deploys/6487820eea434e0009e49f9d
😎 Deploy Preview https://deploy-preview-344--volview-dev.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@PaulHax PaulHax changed the title fix(Crop3D): replace onMounted with useViewProxyMounted Fixes for tool widget manager life-cycle and SVG tool resize update Jun 9, 2023
@PaulHax PaulHax requested a review from floryst June 9, 2023 19:04
@floryst
Copy link
Contributor

floryst commented Jun 12, 2023

LGTM!

PaulHax added 4 commits June 12, 2023 16:37
Avoids widgetManger.addWidget before widgetManager is linked to viewProxy

fixes #343
SVG widgets were using SVG element for ResizeObserver which does not
trigger resize callback.
@floryst floryst merged commit b462895 into Kitware:main Jun 13, 2023
PaulHax pushed a commit to PaulHax/VolView that referenced this pull request Apr 24, 2025
Fixes for tool widget manager life-cycle and SVG tool resize update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cropping in 3D crashes after switching layouts

2 participants