Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas zoom control #2513

Merged
merged 6 commits into from
May 15, 2017
Merged

Canvas zoom control #2513

merged 6 commits into from
May 15, 2017

Conversation

fbarl
Copy link
Contributor

@fbarl fbarl commented May 10, 2017

Resolves #2321 and makes #2420 redundant.

Changes
  • Added zoom control in the bottom right corner for graph and resource views.
  • Zoom is disabled (and the control is hidden) when there is no content displayed.
  • The zoom control is automatically managed within ZoomableCanvas.
Note
  • I had some problems running this with local service-ui proxying, as ~rc-slider/dist/rc-slider.css wouldn't be found from in Service UI. Running npm install rc-slider inside the service-ui/client folder did it for me, but I wonder why this dependency wasn't pulled from the local Scope's package.json. Maybe it has to do with Webpack 2 vs. Webpack 1 (@foot had a similar issue with xterm). @jpellizzari I tried fixing this but couldn't figure it out - do you have any ideas what might be causing the issue?

@fbarl fbarl self-assigned this May 10, 2017
@fbarl fbarl force-pushed the try-zoom-slider branch from 16c0411 to 787bed1 Compare May 10, 2017 11:10
@fbarl fbarl mentioned this pull request May 12, 2017
@fbarl fbarl force-pushed the try-zoom-slider branch 2 times, most recently from dde4437 to 4b553f7 Compare May 12, 2017 13:55
@fbarl fbarl force-pushed the try-zoom-slider branch from 4b553f7 to 9365df8 Compare May 12, 2017 14:00
@fbarl fbarl changed the title [WIP] Canvas zoom control Canvas zoom control May 12, 2017
@fbarl fbarl requested a review from jpellizzari May 12, 2017 14:09
@jpellizzari
Copy link
Contributor

@fbarl Re: CSS not being proxied: you stumbled on one of the limitations of our LocalModuleProxy. It only works if all dependencies are present in the service-ui. I haven't checked to see if webpack 2 exposes any new APIs that we can use to make that a nicer integration.

Copy link
Contributor

@jpellizzari jpellizzari left a comment

Choose a reason for hiding this comment

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

Very nicely done. LGTM

@fbarl fbarl merged commit 5935a32 into master May 15, 2017
@abuehrle abuehrle added the component/docs A documentation issue label May 17, 2017
@fbarl fbarl deleted the try-zoom-slider branch June 16, 2017 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/docs A documentation issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zoom control not obvious
3 participants