Created
March 3, 2019 18:08
-
-
Save clementbat/6372493be8c07f7691732af29f8e8c9e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<svg :width="width" :height="height"> | |
<g v-for="rectangle in rectangles" fill="grey"> | |
<rect | |
:x=rectangle[0] | |
:y=rectangle[1] | |
:width=rectangle[2] | |
:height=rectangle[3] | |
style="stroke-width:1;stroke:white"/> | |
<text | |
:x="rectangle[0] + rectangle[2] / 2" | |
:y="rectangle[1] + rectangle[3] / 2" | |
fill="white"> | |
{{getLabel(rectangle)}} | |
</text> | |
</g> | |
Sorry, your browser does not support inline SVG. | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment