Ability to centre or right align for fit SVG to viewer
See original GitHub issueThis is for scenarios where the dimensions for the viewer and the canvas are not the same (the canvas is the rect
that has a white background by default).
When clicking zoom to fit button, it fits the canvas to the left of the screen. It would be better if there is a way to align this canvas to the centre or to the right (without having to play around with bounds for fitSelectionToViewer method).
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
How do I center an SVG in a div?
I have an SVG that I am trying to center in a div. The div has a width of 900px. The SVG has...
Read more >Align SVG Icons to Text and Say Goodbye to Font Icons
The icons align to your text easily and can be modified by changing the font-size of the element. There is no clearly defined...
Read more >alignment-baseline - SVG: Scalable Vector Graphics | MDN
Aligns the top of the aligned subtree with the top of the line box. Aligns the center of the aligned subtree with the...
Read more >Coordinate Systems, Transformations and Units — SVG 2
Align the midpoint Y value of the element's 'viewBox' with the midpoint Y value of the SVG viewport.
Read more >Move And Scale SVG Graphics With The viewBox Attribute
The SVG canvas and the SVG viewport, through which you see the canvas operate on independent coordinate systems. The systems are aligned by ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK, thanks. Never mind, please don’t forget 😃
Feature released with 2.18