new icons for anchors
parent
6bf68e575d
commit
615f33b0f9
|
@ -1 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="428" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="green" stroke="#000" d="M0 0h120v20H0zM120 0h109v20H120zM229 0h87v20h-87zM316 0h112v20H316z"/><path fill="url(#smooth)" d="M0 0h428v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 52.98%</text><text class="high" x="5" y="14">Statements 52.98%</text><text class="shadow" x="125.5" y="15">Branches 41.61%</text><text class="high" x="125" y="14">Branches 41.61%</text><text class="shadow" x="234.5" y="15">Lines 53.81%</text><text class="high" x="234" y="14">Lines 53.81%</text><text class="shadow" x="321.5" y="15">Functions 60.33%</text><text class="high" x="321" y="14">Functions 60.33%</text></g></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="428" height="20"><defs><style>text{font-size:11px;font-family:Verdana,DejaVu Sans,Geneva,sans-serif}text.shadow{fill:#010101;fill-opacity:.3}text.high{fill:#fff}</style><linearGradient id="smooth" x2="0" y2="100%"><stop offset="0" stop-color="#aaa" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><mask id="round"><rect width="100%" height="100%" rx="3" fill="#fff"/></mask></defs><g id="bg" mask="url(#round)"><path fill="green" stroke="#000" d="M0 0h120v20H0zM120 0h109v20H120zM229 0h87v20h-87zM316 0h112v20H316z"/><path fill="url(#smooth)" d="M0 0h428v20H0z"/></g><g id="fg"><text class="shadow" x="5.5" y="15">Statements 52.97%</text><text class="high" x="5" y="14">Statements 52.97%</text><text class="shadow" x="125.5" y="15">Branches 41.93%</text><text class="high" x="125" y="14">Branches 41.93%</text><text class="shadow" x="234.5" y="15">Lines 53.78%</text><text class="high" x="234" y="14">Lines 53.78%</text><text class="shadow" x="321.5" y="15">Functions 60.47%</text><text class="high" x="321" y="14">Functions 60.47%</text></g></svg>
|
||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -811,6 +811,39 @@
|
|||
</svg>
|
||||
</g>
|
||||
|
||||
<g id="anchor_start">
|
||||
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit-->
|
||||
<g class="layer">
|
||||
<title>Layer 1</title>
|
||||
<text fill="#000000" font-family="serif" font-size="9" id="svg_2" stroke="#000000" stroke-width="0" text-anchor="middle" x="12" xml:space="preserve" y="14.66667">abcd</text>
|
||||
<line fill="none" id="svg_1" stroke="#ff7f00" stroke-width="2" x1="1.5" x2="1.5" y1="5.63542" y2="19.30208"/>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
|
||||
<g id="anchor_middle">
|
||||
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit-->
|
||||
<g class="layer">
|
||||
<title>Layer 1</title>
|
||||
<text fill="#000000" font-family="serif" font-size="9" id="svg_2" stroke="#000000" stroke-width="0" text-anchor="middle" x="12" xml:space="preserve" y="14.66667">abcd</text>
|
||||
<line fill="none" id="svg_1" stroke="#ff7f00" stroke-width="2" x1="11.75" x2="11.75" y1="4.38542" y2="18.05208"/>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
|
||||
<g id="anchor_end">
|
||||
<svg width="24" height="24" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg">
|
||||
<!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit-->
|
||||
<g class="layer">
|
||||
<title>Layer 1</title>
|
||||
<text fill="#000000" font-family="serif" font-size="9" id="svg_2" stroke="#000000" stroke-width="0" text-anchor="middle" x="12" xml:space="preserve" y="14.66667">abcd</text>
|
||||
<line fill="none" id="svg_1" stroke="#ff7f00" stroke-width="2" x1="21.46429" x2="21.46429" y1="4.95685" y2="18.62351"/>
|
||||
</g>
|
||||
</svg>
|
||||
</g>
|
||||
|
||||
<g id="linecap_butt">
|
||||
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:se="http://svg-edit.googlecode.com" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
|
||||
|
|
Before Width: | Height: | Size: 67 KiB After Width: | Height: | Size: 69 KiB |
|
@ -1159,9 +1159,12 @@ editor.init = () => {
|
|||
'#tool_ungroup': 'ungroup',
|
||||
'#tool_unlink_use': 'unlink_use',
|
||||
|
||||
'#tool_alignleft, #tool_posleft, #tool_text_anchor_start': 'align_left',
|
||||
'#tool_aligncenter, #tool_poscenter, #tool_text_anchor_middle': 'align_center',
|
||||
'#tool_alignright, #tool_posright, #tool_text_anchor_end': 'align_right',
|
||||
'#tool_alignleft, #tool_posleft': 'align_left',
|
||||
'#tool_text_anchor_start': 'anchor_start',
|
||||
'#tool_text_anchor_middle': 'anchor_middle',
|
||||
'#tool_text_anchor_end': 'anchor_end',
|
||||
'#tool_aligncenter, #tool_poscenter': 'align_center',
|
||||
'#tool_alignright, #tool_posright': 'align_right',
|
||||
'#tool_aligntop, #tool_postop': 'align_top',
|
||||
'#tool_alignmiddle, #tool_posmiddle': 'align_middle',
|
||||
'#tool_alignbottom, #tool_posbottom': 'align_bottom',
|
||||
|
@ -4280,6 +4283,7 @@ editor.init = () => {
|
|||
|
||||
/**
|
||||
*
|
||||
* @param {string} value "start","end" or "middle"
|
||||
* @returns {false}
|
||||
*/
|
||||
const clickTextAnchor = function (value) {
|
||||
|
|
Loading…
Reference in New Issue