forked from MichalBryxi/dom-to-image
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
temporary fix: tsayen#125 Marker is not included(arrow)
- Loading branch information
Aleksander Burzec
committed
Apr 5, 2019
1 parent
ebd40ae
commit 51a7b6e
Showing
6 changed files
with
54 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAC3UlEQVR4Xu3bsW3bYBQE4NMCKVwYSJAt3HsCT5AqVdKkygL2BBkgA3gbL+IlFPxCFBCCFPLIX6d75Kn1s9/v+3gUIdi7PbBHXjYJ7BrIDtjZnGjDBzlYBMTnCgiIj8XhJAEJiFkCZsdJQwJiloDZcdKQgJglYHacOQ35CuAOwC+z32UVx2FBfgBoIO31GpT+1wAL8hPAl8ExgtLZhAVp64PSGWH44+aABMUQJChXQpnbkONxcvvqDLMUJE0xBAlKR5QeDcntyxQkTekA07MhaYopSJqyAOYaDUlTTEHSlBkw12xImmIKkqYQMIqGpCmmIGnKBBhlQ9IUU5A05T8wt2hImmIKkqacgbllQ9IUU5A0ZQDj0JA0xRQkTTH9h51N/+GE0y1r+Ba3WRRXkM3evpxB5qK8APgI4PuETyrsRtxBWJSG8fQ35QbyZpf4yIEqgExFGWK072kY5VpSBWQM5RTjeB2Wa0klkEsoHwa3qdMbQrmWVAM5RXkHcD9yWy7VkoogR5RHAJ8nvGmXaklVkEvvGZd8yrSkIgiLUeqJqxrIHIxST1yVQJZglGlJFZClGGVaUgHkE4BnAA8TnqjGRuyfuCqAHENuIN86wFg/cVUC6QVj3ZKKID1gbFtSGWQJjG1L1gAyF8ayJWsCYWEsW7JGEAbGriVrBpkCY9eSLYCMwVi1ZEsgl2CsWrJFkHMwNi3ZMsgQpn0s83vsgzDF1wOiSJnYERAiLMVoQBQpEzsCQoSlGA2IImViR0CIsBSjAVGkTOwICBGWYjQgipSJHQEhwlKMBkSRMrEjIERYitGAKFImdgSECEsxGhBFysSOgBBhKUYDokiZ2BEQIizFaEAUKRM7AkKEpRgNiCJlYkdAiLAUowFRpEzsCAgRlmI0IIqUiR0BIcJSjAZEkTKxIyBEWIrRgChSJnYEhAhLMRoQRcrEjoAQYSlGA6JImdgRECIsxeg/EMWy7JiWwB8pKgC7pb/IIwAAAABJRU5ErkJggg== |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<div id="root"> | ||
<svg xmlns="http://www.w3.org/1999/xhtml" height="94px" width="94px"> | ||
<defs> | ||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="0" refY="3" orient="auto" | ||
markerUnits="strokeWidth"> | ||
<path d="M0,0 L0,6 L9,3 z" class="svg-line-head"/> | ||
</marker> | ||
</defs> | ||
<line marker-end="url(#arrow)" x1="5" y1="5" x2="40" y2="40" class="svg-line"/> | ||
</svg> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#dom-node { | ||
width: 100px; | ||
overflow: hidden; | ||
} | ||
|
||
#root { | ||
border: 1px solid red; | ||
position: relative; | ||
height: 100px; | ||
} | ||
|
||
svg { | ||
position: absolute; | ||
left: 5px; | ||
top: 5px; | ||
} | ||
.svg-line { | ||
cursor: crosshair; | ||
stroke: rgba(0, 0, 0, 0.8); | ||
stroke-width: 3; | ||
} | ||
.svg-line-head { | ||
fill: rgba(0, 0, 0, 0.8); | ||
} |
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