Commit 477f26a3 authored by Tristan Cavelier's avatar Tristan Cavelier

erp5_svg_editor: replace svg-edit by newest method-draw

svg-edit: https://code.google.com/p/svg-edit/
method-draw: https://github.com/duopixel/Method-Draw/tree/eac7ea07c6eabe34a54c9b7b413e4a007c53aa22
parent 8fa7a67e
......@@ -219,7 +219,7 @@
<key> <string>default</string> </key>
<value> <string encoding="cdata"><![CDATA[
<object name="svgframe" id="svgframe" data="jquery/plugin/svg-editor/svg-editor.html?no_save_warning=true" width="1200" height="700"></object>
<object name="svgframe" id="svgframe" data="method-draw/method-draw.html?no_save_warning=true" width="1200" height="700"></object>
]]></string> </value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>method-draw</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts52791603.3</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>browser-not-supported.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!DOCTYPE html>\n
<html>\n
<head>\n
<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />\n
<meta http-equiv="X-UA-Compatible" content="chrome=1"/>\n
<link rel="icon" type="image/png" href="images/logo.png"/>\n
<link rel="stylesheet" href="svg-editor.css" type="text/css"/>\n
<script type="text/javascript" src="jquery.js"></script>\n
<title>Browser does not support SVG | Method Draw</title>\n
</head>\n
<body>\n
\n
<div id="browser-not-supported">\n
<img style="float:left;padding:10px;" src="images/logo.png" width="48" height="48" alt="SVG-edit logo" /><br />\n
<p>Sorry, but your browser does not support SVG. Below is a list of alternate browsers and versions that support SVG and SVG-edit (from <a href="http://caniuse.com/#cats=SVG">caniuse.com</a>).</p>\n
<p>Try the latest version of <a href="http://www.getfirefox.com">Firefox</a>, <a href="http://www.google.com/chrome/">Google Chrome</a>, <a href="http://www.apple.com/safari/download/">Safari</a>, <a href="http://www.opera.com/download/">Opera</a> or <a href="http://windows.microsoft.com/ie9">Internet Explorer</a>.</p>\n
\n
<script type="text/javascript">\n
var viewportHeight =(window.innerHeight ? window.innerHeight : $(window).height()) - 140;\n
document.write(\'<iframe width="100%" height="\'+viewportHeight+\'" src="http://caniuse.com/#cats=SVG"></iframe>\');\n
</script>\n
\n
</div>\n
\n
</body>\n
</html>
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>1341</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>css</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="Folder" module="OFS.Folder"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_objects</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>font-files</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts52793155.71</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>test.html</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
<!DOCTYPE HTML>\n
<html lang="en-En">\n
<head>\n
<meta charset="UTF-8">\n
<title>SVG @font-face Test</title>\n
</head>\n
<body>\n
<h2>@font-face in SVG</h2>\n
\n
<p style="width: 500px"><strong>Problem:</strong> I\'m trying trying to place an images in svg format with custom fonts. It works in <code>svg</code> but not in <code>img</code>. If you open the image in a new tab you will see it rendered with the proper font. The font is served from this same website in this directory.</p>\n
\n
<a href="test_ff.svg">Link to the test.svg</a>\n
\n
<table>\n
<tr><td>\n
<svg width="500" height="200" version="1.1" xmlns = \'http://www.w3.org/2000/svg\' xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 200"> \n
<defs>\n
<style type="text/css">\n
@font-face {\n
font-family: \'Arvo\';\n
font-style: normal;\n
font-weight: normal;\n
src: url(arvo-regular-webfont.woff) format(\'woff\');\n
}\n
</style>\n
</defs>\n
<rect x="0" y="0" height="100" width="500" fill="#eee" />\n
<text x="20" y="50" font-family="Arvo" font-weight="normal" font-size="32">Text using CSS @font-face</text>\n
</svg>\n
</td>\n
<td>\n
<pre>\n
&lt;svg width=&quot;500&quot; height=&quot;200&quot; version=&quot;1.1&quot; xmlns = &#39;http://www.w3.org/2000/svg&#39; xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot; viewBox=&quot;0 0 500 200&quot;&gt; \n
&lt;defs&gt;\n
&lt;style type=&quot;text/css&quot;&gt;\n
@font-face {\n
font-family: &#39;Arvo&#39;;\n
font-style: normal;\n
font-weight: normal;\n
src: url(arvo-regular-webfont.woff) format(&#39;woff&#39;);\n
}\n
&lt;/style&gt;\n
&lt;/defs&gt;\n
&lt;rect x=&quot;0&quot; y=&quot;0&quot; height=&quot;100&quot; width=&quot;500&quot; fill=&quot;#eee&quot; /&gt;\n
&lt;text x=&quot;20&quot; y=&quot;50&quot; font-family=&quot;Arvo&quot; font-weight=&quot;normal&quot; font-size=&quot;32&quot;&gt;Text using CSS @font-face&lt;/text&gt;\n
&lt;/svg&gt;\n
</pre>\n
</td>\n
</tr>\n
<tr>\n
<td><img src="test_ff.svg" width="500" height="200" /></td>\n
<td style="verical-align: top;">\n
<pre>\n
&lt;img src="test_ff.svg" width="500" height="200" /&gt;\n
</pre>\n
</td>\n
</tr>\n
</table> \n
\n
\n
</body>\n
</html>\n
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>2311</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts52793146.2</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>test.svg</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/svg+xml</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
\n
<svg width="300" height="300" version="1.1" xmlns = \'http://www.w3.org/2000/svg\' viewBox="0 0 300 300"> \n
<defs>\n
<style type="text/css">\n
\t\t@font-face {\n
\t\t font-family: Arvo;\n
\t\t src: url(\'arvo-regular-webfont.woff\') format(\'woff\');\n
\t\t font-weight: normal;\n
\t\t font-style: normal;\n
\t\t}\n
</style>\n
</defs>\n
<rect x="0" y="0" height="300" width="300" fill="#eee" />\n
<text x="100" y="100" font-family="Arvo" font-weight="normal" font-size="32">Text using CSS @font-face</text>\n
</svg>
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>511</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="File" module="OFS.Image"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_EtagSupport__etag</string> </key>
<value> <string>ts52793179.98</string> </value>
</item>
<item>
<key> <string>__name__</string> </key>
<value> <string>test_ff.svg</string> </value>
</item>
<item>
<key> <string>content_type</string> </key>
<value> <string>image/svg+xml</string> </value>
</item>
<item>
<key> <string>data</string> </key>
<value> <string encoding="cdata"><![CDATA[
\n
\n
<svg width="500" height="200" version="1.1" xmlns = \'http://www.w3.org/2000/svg\' xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 500 200"> \n
<defs>\n
<style type="text/css">\n
@font-face {\n
font-family: \'Arvo\';\n
font-style: normal;\n
font-weight: normal;\n
src: url(arvo-regular-webfont.woff) format(\'woff\');\n
}\n
</style>\n
</defs>\n
<rect x="0" y="0" height="100" width="500" fill="#eee" />\n
<text x="20" y="50" font-family="Arvo" font-weight="normal" font-size="32">Text using CSS @font-face</text>\n
</svg>
]]></string> </value>
</item>
<item>
<key> <string>precondition</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>size</string> </key>
<value> <int>532</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment