Skip to content

Improve usage examples#54

Merged
floryst merged 1 commit intoKitware:masterfrom
osiux:usage-performance-improvements
Mar 7, 2022
Merged

Improve usage examples#54
floryst merged 1 commit intoKitware:masterfrom
osiux:usage-performance-improvements

Conversation

@osiux
Copy link
Copy Markdown
Contributor

@osiux osiux commented Mar 2, 2022

Hi! I'm debugging some things with the lib and wanted to use the examples for this, but building or using it for dev (npm run dev inside usage) was taking so much time, so I made a few changes:

  • Uses vite for building usage
  • When selecting a demo, store it in query param so on refresh you are back to the same demo
  • Running npm run dev on root folder puts rollup on watch mode, this allows to make changes and see it instantly on the usage examples.

Only difference I see at first glance from current examples is with the Geometry/PolyDataViewer, but not sure if current one is fine or new one is how it should look. If new one is wrong and you like this change I can try to find what is happening.

Note: This is not a must have change, but it's been pretty helpful to me while testing the library with the examples.

Current:
image

New:
image

Copy link
Copy Markdown
Collaborator

@jourdain jourdain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I haven't tested it. Thanks for providing such PR to improve usage testing/experience.

@jourdain jourdain requested a review from floryst March 2, 2022 21:33
@floryst
Copy link
Copy Markdown
Contributor

floryst commented Mar 4, 2022

I did a quick passthrough, and it looks reasonable to me. Off the top of my head, the differences in the PolyDataViewer seem to be related to whichever representation configuration is set. I'm good to merge this and figure that out later, since it's not that much of a critical thing in my opinion.

@jourdain
Copy link
Copy Markdown
Collaborator

jourdain commented Mar 4, 2022

I let you handle the merge @floryst since you are playing with that project more lately. ;-)

@floryst floryst merged commit 189dd9d into Kitware:master Mar 7, 2022
@osiux osiux deleted the usage-performance-improvements branch March 7, 2022 17:33
@jourdain
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 1.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants