- Linting (ESLint): Use two spaces for indent

- Update links in commented out copyright section of editor, link in screencast, and within SVG file comments (created with SVG-edit should refer to current URL)
master
Brett Zamir 2018-05-18 14:05:52 +08:00
parent 86f0ec0fa2
commit f21d41a231
8 changed files with 22 additions and 22 deletions

View File

@ -9,7 +9,7 @@
}, },
"rules": { "rules": {
"semi": [2, "always"], "semi": [2, "always"],
"indent": ["error", "tab", {"outerIIFEBody": 0}], "indent": ["error", 2, {"outerIIFEBody": 0}],
"no-tabs": 0, "no-tabs": 0,
"object-property-newline": 0, "object-property-newline": 0,
"one-var": 0, "one-var": 0,

View File

@ -2,7 +2,7 @@
<g id="tool_eyedropper"> <g id="tool_eyedropper">
<svg viewBox="0 0 320 320" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg viewBox="0 0 320 320" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<defs> <defs>
<radialGradient id="eyedropper_svg_6" cx="0.5" cy="0.5" r="0.5"> <radialGradient id="eyedropper_svg_6" cx="0.5" cy="0.5" r="0.5">
<stop offset="0" stop-color="#ffffff" stop-opacity="1"/> <stop offset="0" stop-color="#ffffff" stop-opacity="1"/>
@ -29,6 +29,6 @@
</g> </g>
</svg> </svg>
</g> </g>
<g id="svg_eof"/> <g id="svg_eof"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -1,15 +1,15 @@
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<!-- <!--
Sample icons file. This file looks like an SVG file with groups as its Sample icons file. This file looks like an SVG file with groups as its
children. Each group element has an ID that must match the ID of the button given children. Each group element has an ID that must match the ID of the button given
in the extension. The SVG inside the group makes up the actual icon, and in the extension. The SVG inside the group makes up the actual icon, and
needs use a viewBox instead of width/height for it to scale properly. needs use a viewBox instead of width/height for it to scale properly.
Multiple icons can be included, each within their own group. Multiple icons can be included, each within their own group.
--> -->
<g id="hello_world"> <g id="hello_world">
<svg width="102" height="102" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <svg width="102" height="102" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<g> <g>
<title>Layer 1</title> <title>Layer 1</title>
<rect ry="30" rx="30" x="2.5" y="2.5" width="97" height="97" id="svg_3" fill="#008000" stroke="#000000" stroke-width="5"/> <rect ry="30" rx="30" x="2.5" y="2.5" width="97" height="97" id="svg_3" fill="#008000" stroke="#000000" stroke-width="5"/>
@ -18,4 +18,4 @@
</g> </g>
</svg> </svg>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<g id="nomarker"> <g id="nomarker">
<svg viewBox="-60 -60 120 120" xmlns="http://www.w3.org/2000/svg"> <svg viewBox="-60 -60 120 120" xmlns="http://www.w3.org/2000/svg">
<path stroke-width="10" stroke="#ff7f00" fill="#ff7f00" d="m-50,0l100,0"/> <path stroke-width="10" stroke="#ff7f00" fill="#ff7f00" d="m-50,0l100,0"/>
@ -87,7 +87,7 @@
</g> </g>
<g id="textmarker"> <g id="textmarker">
<svg viewBox="-60 -60 120 120" xmlns="http://www.w3.org/2000/svg"> <svg viewBox="-60 -60 120 120" xmlns="http://www.w3.org/2000/svg">
<text xml:space="preserve" text-anchor="middle" font-family="serif" font-size="120" y="40" x="0" stroke-width="0" stroke="#ff7f00" fill="#ff7f00">T</text> <text xml:space="preserve" text-anchor="middle" font-family="serif" font-size="120" y="40" x="0" stroke-width="0" stroke="#ff7f00" fill="#ff7f00">T</text>
</svg> </svg>
</g> </g>
<g id="mkr_markers_off"> <g id="mkr_markers_off">

Before

Width:  |  Height:  |  Size: 5.3 KiB

After

Width:  |  Height:  |  Size: 5.3 KiB

View File

@ -1,5 +1,5 @@
<svg xmlns="http://www.w3.org/2000/svg"> <svg xmlns="http://www.w3.org/2000/svg">
<!-- All images created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- All images created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<g id="logo"> <g id="logo">
<svg viewBox="0 0 478 472" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"> <svg viewBox="0 0 478 472" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
@ -721,7 +721,7 @@
<g id="blur"> <g id="blur">
<svg width="300" height="300" xmlns="http://www.w3.org/2000/svg"> <svg width="300" height="300" xmlns="http://www.w3.org/2000/svg">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<defs> <defs>
<filter id="svg_4_blur" x="-50%" y="-50%" width="200%" height="200%"> <filter id="svg_4_blur" x="-50%" y="-50%" width="200%" height="200%">
<feGaussianBlur stdDeviation="25"/> <feGaussianBlur stdDeviation="25"/>
@ -814,7 +814,7 @@
<g id="linecap_butt"> <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"> <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 - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<defs> <defs>
<linearGradient id="svg_8" x1="0.8" y1="1" x2="0.2" y2="1"> <linearGradient id="svg_8" x1="0.8" y1="1" x2="0.2" y2="1">
<stop offset="0" stop-color="#000000" stop-opacity="1"/> <stop offset="0" stop-color="#000000" stop-opacity="1"/>
@ -831,7 +831,7 @@
<g id="linecap_square"> <g id="linecap_square">
<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"> <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 - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<defs> <defs>
<linearGradient id="svg_8" x1="0.8" y1="1" x2="0.2" y2="1"> <linearGradient id="svg_8" x1="0.8" y1="1" x2="0.2" y2="1">
<stop offset="0" stop-color="#000000" stop-opacity="1"/> <stop offset="0" stop-color="#000000" stop-opacity="1"/>
@ -848,7 +848,7 @@
<g id="linecap_round"> <g id="linecap_round">
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:se="http://svg-edit.googlecode.com"> <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:se="http://svg-edit.googlecode.com">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<defs> <defs>
<linearGradient y2="1" x2="0.2" y1="1" x1="0.8" id="svg_8"> <linearGradient y2="1" x2="0.2" y1="1" x1="0.8" id="svg_8">
<stop stop-opacity="1" stop-color="#000000" offset="0"/> <stop stop-opacity="1" stop-color="#000000" offset="0"/>
@ -865,7 +865,7 @@
<g id="linejoin_miter"> <g id="linejoin_miter">
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:se="http://svg-edit.googlecode.com"> <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:se="http://svg-edit.googlecode.com">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<defs> <defs>
<linearGradient y2="1" x2="0.2" y1="1" x1="0.8" id="svg_8"> <linearGradient y2="1" x2="0.2" y1="1" x1="0.8" id="svg_8">
<stop stop-opacity="1" stop-color="#000000" offset="0"/> <stop stop-opacity="1" stop-color="#000000" offset="0"/>
@ -882,7 +882,7 @@
<g id="linejoin_bevel"> <g id="linejoin_bevel">
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:se="http://svg-edit.googlecode.com"> <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:se="http://svg-edit.googlecode.com">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<defs> <defs>
<linearGradient y2="1" x2="0.2" y1="1" x1="0.8" id="svg_8"> <linearGradient y2="1" x2="0.2" y1="1" x1="0.8" id="svg_8">
<stop stop-opacity="1" stop-color="#000000" offset="0"/> <stop stop-opacity="1" stop-color="#000000" offset="0"/>
@ -899,7 +899,7 @@
<g id="linejoin_round"> <g id="linejoin_round">
<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:se="http://svg-edit.googlecode.com"> <svg width="100" height="100" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:se="http://svg-edit.googlecode.com">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<defs> <defs>
<linearGradient y2="1" x2="0.2" y1="1" x1="0.8" id="svg_8"> <linearGradient y2="1" x2="0.2" y1="1" x1="0.8" id="svg_8">
<stop stop-opacity="1" stop-color="#000000" offset="0"/> <stop stop-opacity="1" stop-color="#000000" offset="0"/>

View File

@ -579,7 +579,7 @@
<div id="tools_bottom_3"> <div id="tools_bottom_3">
<div id="palette_holder"><div id="palette" title="Click to change fill color, shift-click to change stroke color"></div></div> <div id="palette_holder"><div id="palette" title="Click to change fill color, shift-click to change stroke color"></div></div>
</div> </div>
<!-- <div id="copyright"><span id="copyrightLabel">Powered by</span> <a href="http://svg-edit.googlecode.com/" target="_blank">SVG-edit v2.6-beta</a></div> --> <!-- <div id="copyright"><span id="copyrightLabel">Powered by</span> <a href="https://github.com/SVG-Edit/svgedit" target="_blank">SVG-edit v2.6-beta</a></div> -->
</div> </div>
<div id="option_lists" class="dropdown"> <div id="option_lists" class="dropdown">

View File

@ -1,6 +1,6 @@
<?xml version="1.0" standalone="no"?> <?xml version="1.0" standalone="no"?>
<svg width="800" height="600" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"> <svg width="800" height="600" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg">
<!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> <!-- Created with SVG-edit - https://github.com/SVG-Edit/svgedit -->
<defs> <defs>
<linearGradient y2="1" x2="1" y1="0" x1="0" id="svg_10"> <linearGradient y2="1" x2="1" y1="0" x1="0" id="svg_10">
<stop stop-opacity="1" stop-color="#ff00ff" offset="0"/> <stop stop-opacity="1" stop-color="#ff00ff" offset="0"/>
@ -194,4 +194,4 @@
</a> </a>
</g> </g>
</g> </g>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

View File

@ -264,7 +264,7 @@ svgEditor.addExtension("Hello World", function () {
<h2>Resources</h2> <h2>Resources</h2>
</header> </header>
<ul class="bulleted"> <ul class="bulleted">
<li><a href="http://svg-edit.googlecode.com">http://svg-edit.googlecode.com/</a> (demos, downloads, source, wiki, issue tracker)</li> <li><a href="https://github.com/SVG-Edit/svgedit">https://github.com/SVG-Edit/svgedit</a> (demos, downloads, source, wiki, issue tracker)</li>
<li>#svg-edit on irc.freenode.net</li> <li>#svg-edit on irc.freenode.net</li>
<li><a href="https://groups.google.com/group/svg-edit">https://groups.google.com/group/svg-edit</a></li> <li><a href="https://groups.google.com/group/svg-edit">https://groups.google.com/group/svg-edit</a></li>
<li><a href="https://en.wikipedia.org/wiki/SVG-edit">https://en.wikipedia.org/wiki/SVG-edit</a></li> <li><a href="https://en.wikipedia.org/wiki/SVG-edit">https://en.wikipedia.org/wiki/SVG-edit</a></li>