Skip to content

chore(deps): upgrade @kitware/vtk.js to 36.0.0#879

Open
PaulHax wants to merge 2 commits into
Kitware:mainfrom
PaulHax:vtk-js-upgrade
Open

chore(deps): upgrade @kitware/vtk.js to 36.0.0#879
PaulHax wants to merge 2 commits into
Kitware:mainfrom
PaulHax:vtk-js-upgrade

Conversation

@PaulHax
Copy link
Copy Markdown
Collaborator

@PaulHax PaulHax commented May 17, 2026

Bumps @kitware/vtk.js from ^32.12.1 to ^36.0.0.

API migration

Per vtk.js BREAKING_CHANGES (33 -> 34), several volume mapper setters were moved from the mapper onto the volume property. Callers are adjusted to invoke the new property-based setters:

  • src/utils/volumeProperties.ts: route the relevant set* calls through the volume's property instead of the mapper.
  • src/components/vtk/VtkBaseVolumeRepresentation.vue: same migration for the representation component's mapper/property interactions.

Build config

vtk.js v36 builds with Vite/Rolldown (Kitware/vtk-js#3435). Its internal ColorMaps.json.js is now emitted with export default instead of v35's minified named export, so the virtual-modules stub in vite.config.ts is updated to match.

Verified: vue-tsc --noEmit passes and vite build succeeds against @kitware/vtk.js@36.0.0.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 17, 2026

Deploy Preview for volview-dev ready!

Name Link
🔨 Latest commit 46df383
🔍 Latest deploy log https://app.netlify.com/projects/volview-dev/deploys/6a0f74582b8eb90008938003
😎 Deploy Preview https://deploy-preview-879--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 project configuration.

PaulHax added 2 commits May 21, 2026 17:04
Bumps @kitware/vtk.js from ^32.12.1 to ^36.0.0.

Per vtk.js BREAKING_CHANGES (33 -> 34), several volume mapper setters
were moved from the mapper onto the volume property. Adjust callers to
invoke the new property-based setters:

- src/utils/volumeProperties.ts: route the relevant set* calls through
  the volume's property instead of the mapper.
- src/components/vtk/VtkBaseVolumeRepresentation.vue: same migration for
  the representation component's mapper/property interactions.
VolView's virtual-modules plugin stubs @kitware/vtk.js's internal
ColorMaps.json.js to drop the unused built-in colormap data. vtk.js v36
builds with Vite/Rolldown, which emits that module with `export default`
(v35's Rollup build used a minified named export). Match the new shape
so the stub satisfies ColorMaps.js's default import.
@PaulHax PaulHax changed the title chore(deps): upgrade @kitware/vtk.js to 35.15.1 chore(deps): upgrade @kitware/vtk.js to 36.0.0 May 21, 2026
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.

1 participant