+ 2

How to use viewBox inside the <symbol> tag?

22nd Feb 2019, 7:41 AM
ŠŠ»Š¼Š°Ń‚ ŠŠ¹Ń‚Š±Š°ŠµŠ²
ŠŠ»Š¼Š°Ń‚ ŠŠ¹Ń‚Š±Š°ŠµŠ² - avatar
3 Answers
+ 7
Almat I am not sure if this will help but you could take a look at an example I wrote some time ago. See https://code.sololearn.com/WsCy78HbZoTx/?ref=app
22nd Feb 2019, 11:02 AM
Richard Myatt
Richard Myatt - avatar
+ 6
The format of viewbox is viewbox="x, y, zy, zy" Where x, y is the offset from the origin point and zx, zy is the zooming of the svg from original size, eg the size of svg is width 300, height 300; zx, zy is 150,150 would make the symbol double the size.
22nd Feb 2019, 9:06 AM
CalviÕ²
CalviÕ² - avatar
+ 4
Excellent!! Richard Miyat you surely guessed my thoughts on the question posed. This code seems to completely clarify issues with the <symbol viewBox> tag. I will study this immediately. thank you !! ā˜ŗļøšŸ‘
22nd Feb 2019, 11:35 AM
ŠŠ»Š¼Š°Ń‚ ŠŠ¹Ń‚Š±Š°ŠµŠ²
ŠŠ»Š¼Š°Ń‚ ŠŠ¹Ń‚Š±Š°ŠµŠ² - avatar