mirror of
https://github.com/Quodatum/graphxq.git
synced 2025-04-11 11:42:24 +01:00
dotml
This commit is contained in:
parent
63c8f5d0a9
commit
32b10ad30b
11 changed files with 230 additions and 37 deletions
|
@ -65,8 +65,8 @@ $(document).ready(function(){
|
|||
|
||||
function getsvg(dl){
|
||||
var f=$("#dotForm").serializeArray()
|
||||
var d=$("#frm-defaults").serializeArray()
|
||||
console.log("#frm-default",d)
|
||||
//var d=$("#frm-defaults").serializeArray()
|
||||
//console.log("#frm-default",d)
|
||||
// if(dl)f.push({"name":"dl","value":1})
|
||||
$.ajax({
|
||||
type:"POST",
|
||||
|
@ -79,7 +79,7 @@ function getsvg(dl){
|
|||
var data = oParser.parseFromString(str, "text/xml");
|
||||
// http://stackoverflow.com/questions/3346106/accessing-a-dom-object-defined-in-an-external-svg-file
|
||||
var n = document.importNode(data.documentElement,true);
|
||||
$("#cuthere").empty().append(n);
|
||||
$("#gInsertSVG").empty().append(n);
|
||||
$("#svgsrc").empty().text(str);
|
||||
},
|
||||
error:function(jqXHR, textStatus, errorThrown){
|
||||
|
|
|
@ -10,9 +10,11 @@ import module namespace xslt="http://basex.org/modules/xslt";
|
|||
|
||||
(:~
|
||||
: @return graphviz dot string
|
||||
: note xslt:transform can not return output text so result is wrapped
|
||||
:)
|
||||
declare function generate($dotml) as xs:string
|
||||
declare function generate($dotml) as xs:string
|
||||
{
|
||||
xslt:transform($dotml, fn:resolve-uri( "dotml/dotml2dot.xsl"))
|
||||
let $d:=xslt:transform($dotml, fn:resolve-uri( "dotml/dotml2dot.xsl"))
|
||||
return $d/fn:string()
|
||||
};
|
||||
|
||||
|
|
|
@ -126,9 +126,10 @@ declare
|
|||
function api-dotml($dotml ) as node()
|
||||
{
|
||||
let $dotml:=fn:parse-xml($dotml)
|
||||
let $y:=fn:trace($dotml,"ff")
|
||||
let $x:=dotml:generate($dotml)
|
||||
(: let $svg:=dot2svg($x) :)
|
||||
return $x
|
||||
let $svg:=dot2svg($x)
|
||||
return $svg
|
||||
|
||||
};
|
||||
|
||||
|
@ -161,7 +162,7 @@ declare %private function dot2svg($dot as xs:string) as node(){
|
|||
:)
|
||||
declare function render($template as xs:string,$locals){
|
||||
let $sidebar:=<div>
|
||||
<a href="/graphxq/viewbox/viewBox.svg">viewbox work</a>
|
||||
|
||||
<ul>
|
||||
<div>Samples:</div>
|
||||
<li> <a href="dot?src=samples/dot/process.gv">process</a></li>
|
||||
|
|
BIN
src/graphxq/talk/BaseX-user-group-talk.odp
Normal file
BIN
src/graphxq/talk/BaseX-user-group-talk.odp
Normal file
Binary file not shown.
174
src/graphxq/talk/page.ep
Normal file
174
src/graphxq/talk/page.ep
Normal file
|
@ -0,0 +1,174 @@
|
|||
<?xml version="1.0"?>
|
||||
<Document xmlns="http://www.evolus.vn/Namespace/Pencil"><Properties/><Pages><Page><Properties><Property name="name">Untitled Page</Property><Property name="id">1358783953667_81</Property><Property name="width">581</Property><Property name="height">439</Property><Property name="dimBackground"/><Property name="transparentBackground"/><Property name="backgroundColor">#ffffff</Property></Properties><Content><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.BasicWebElements:pane" id="d827d7bf0d8c41b78ca7d3407bdadc73" transform="matrix(1,0,0,1,57,37)"><p:metadata><p:property name="radius"><![CDATA[15.600000000000001,0]]></p:property><p:property name="textPadding"><![CDATA[0,12.166666666666668]]></p:property><p:property name="fillColor"><![CDATA[#EEEEEEFF]]></p:property><p:property name="shadowStyle"><![CDATA[0|0|3]]></p:property><p:property name="shadowColor"><![CDATA[#00000000]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[0|]]></p:property><p:property name="textContent"><![CDATA[]]></p:property><p:property name="textFont"><![CDATA["Liberation Sans",Arial,sans-serif|normal|normal|13px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property><p:property name="box"><![CDATA[312,365]]></p:property><p:property name="cornerStyle"><![CDATA[none]]></p:property><p:property name="customStyle"><![CDATA[]]></p:property></p:metadata>
|
||||
<foreignObject x="-3" y="-3" width="318" height="371" p:name="htmlObject" id="f7135618af854ad48370d0c75b27459e" style="font-family: "Liberation Sans",Arial,sans-serif; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1; color: rgb(0, 0, 0); opacity: 1;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="-moz-box-sizing: border-box; overflow: hidden; box-shadow: none; width: 312px; height: 365px; padding: 12.1667px; background-color: rgb(238, 238, 238); border-radius: 0px 0px 0px 0px; border: medium none; margin-left: 3px; margin-top: 3px;" p:name="div" id="5a969e08e8e44e51842655416e16d476"><div xmlns="http://www.w3.org/1999/xhtml"></div></div>
|
||||
</foreignObject>
|
||||
</g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.Common:SVGImage" id="27906cb8f8204daeadb03f89f921d63b" transform="matrix(1,0,0,1,311,24)"><p:metadata><p:property name="box"><![CDATA[123,58]]></p:property><p:property name="originalDim"><![CDATA[400,400]]></p:property><p:property name="svgXML"><![CDATA[<g xmlns="http://www.w3.org/2000/svg" p:ImageSource="OpenClipart.org" xmlns:p="http://www.evolus.vn/Namespace/Pencil">
|
||||
<metadata id="7c14b73f95c148b09f5f63932f5d52da"/>
|
||||
<defs id="69ce74ed8fa440e881533ba6d488c441">
|
||||
<filter inkscape:collect="always" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="15a2a84d0fc04afbaf19b2775c0286d5">
|
||||
<feGaussianBlur inkscape:collect="always" stdDeviation="6.5873096" id="422efcd17e654d4798edaf897840c9f0"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="f5ab759150c54e9b8ef6a0055b735797" inkscape:zoom="0.7725" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:cx="455.92232" inkscape:cy="200" inkscape:window-width="731" inkscape:window-height="717" inkscape:window-x="73" inkscape:window-y="30" showgrid="false" inkscape:current-layer="svg548"/>
|
||||
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="138ad23522464ed7b1ff54c0c0b87588" d="M 38.89603,44.767884 C 38.89603,44.767884 488.14423,43.505884 486.88223,43.505884 C 485.62023,43.505884 485.62023,319.86898 485.62023,319.86898 L 296.33023,319.86898 L 71.70583,473.82498 L 220.61423,321.13098 L 38.89603,323.65498 L 38.89603,44.767884 z" style="fill:#000000;fill-opacity:0.49803922000000000;fill-rule:evenodd;stroke:none;stroke-width:2.50000000000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;filter:url(#15a2a84d0fc04afbaf19b2775c0286d5)"/>
|
||||
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="a71be20aa0fc4521bc743e08b9c9a3d4" d="M 22.7148,31.8229 C 22.7148,31.8229 471.963,30.5609 470.701,30.5609 C 469.439,30.5609 469.439,306.924 469.439,306.924 L 280.149,306.924 L 55.5246,460.88 L 204.433,308.186 L 22.7148,310.71 L 22.7148,31.8229 z" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"/>
|
||||
<metadata id="07f611dc288b4b3ea3ec906a1a295edf">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<cc:Work xmlns:cc="http://creativecommons.org/ns#" rdf:about="">
|
||||
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Clipart by Nicu Buculei - segmented</dc:title>
|
||||
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<cc:Agent>
|
||||
<dc:title>Nicu Buculei</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:rights>
|
||||
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
|
||||
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format>
|
||||
</cc:Work>
|
||||
<cc:License xmlns:cc="http://creativecommons.org/ns#" rdf:about="http://web.resource.org/cc/PublicDomain">
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
|
||||
</cc:License>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</g>]]></p:property></p:metadata>
|
||||
<g p:name="container" id="26796a97e65d4ea3a0cd1fabd295f354" transform="scale(0.3075,0.145)"><g xmlns="http://www.w3.org/2000/svg" p:ImageSource="OpenClipart.org" xmlns:p="http://www.evolus.vn/Namespace/Pencil">
|
||||
<metadata id="7c14b73f95c148b09f5f63932f5d52da"/>
|
||||
<defs id="69ce74ed8fa440e881533ba6d488c441">
|
||||
<filter inkscape:collect="always" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="15a2a84d0fc04afbaf19b2775c0286d5">
|
||||
<feGaussianBlur inkscape:collect="always" stdDeviation="6.5873096" id="422efcd17e654d4798edaf897840c9f0"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="f5ab759150c54e9b8ef6a0055b735797" inkscape:zoom="0.7725" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:cx="455.92232" inkscape:cy="200" inkscape:window-width="731" inkscape:window-height="717" inkscape:window-x="73" inkscape:window-y="30" showgrid="false" inkscape:current-layer="svg548"/>
|
||||
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="138ad23522464ed7b1ff54c0c0b87588" d="M 38.89603,44.767884 C 38.89603,44.767884 488.14423,43.505884 486.88223,43.505884 C 485.62023,43.505884 485.62023,319.86898 485.62023,319.86898 L 296.33023,319.86898 L 71.70583,473.82498 L 220.61423,321.13098 L 38.89603,323.65498 L 38.89603,44.767884 z" style="fill:#000000;fill-opacity:0.49803922000000000;fill-rule:evenodd;stroke:none;stroke-width:2.50000000000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;filter:url(#15a2a84d0fc04afbaf19b2775c0286d5)"/>
|
||||
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="a71be20aa0fc4521bc743e08b9c9a3d4" d="M 22.7148,31.8229 C 22.7148,31.8229 471.963,30.5609 470.701,30.5609 C 469.439,30.5609 469.439,306.924 469.439,306.924 L 280.149,306.924 L 55.5246,460.88 L 204.433,308.186 L 22.7148,310.71 L 22.7148,31.8229 z" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"/>
|
||||
<metadata id="07f611dc288b4b3ea3ec906a1a295edf">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<cc:Work xmlns:cc="http://creativecommons.org/ns#" rdf:about="">
|
||||
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Clipart by Nicu Buculei - segmented</dc:title>
|
||||
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<cc:Agent>
|
||||
<dc:title>Nicu Buculei</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:rights>
|
||||
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
|
||||
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format>
|
||||
</cc:Work>
|
||||
<cc:License xmlns:cc="http://creativecommons.org/ns#" rdf:about="http://web.resource.org/cc/PublicDomain">
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
|
||||
</cc:License>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</g></g>
|
||||
</g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.Sketchy.GUI:combobox" id="f4c493959a0849b982ddca089ef3b622" transform="matrix(1,0,0,1,66,45)"><p:metadata><p:property name="box"><![CDATA[100,25]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="fillColor"><![CDATA[#CCCCCCFF]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[1|]]></p:property><p:property name="textContent"><![CDATA[Menu1]]></p:property><p:property name="textFont"><![CDATA[Comic Sans MS|normal|normal|12px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[0,1]]></p:property></p:metadata>
|
||||
<g p:name="rect" id="16fc4dd0c3504df69cdc07d2e371104b" style="fill: rgb(204, 204, 204); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
|
||||
<path style="stroke-linejoin: round;" p:name="line1" id="b65b71de22c545688c915c56d497c47f" d="M 0 0 C 25 0 50 0 75 0 C 75 8 75 17 75 25 C 50 25 25 25 0 25 C 0 17 0 8 0 0 z"/>
|
||||
</g>
|
||||
<g p:name="fillrect" id="385554d06f7440389fe84789f61dde17" style="fill: rgb(163, 163, 163); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
|
||||
<path style="stroke-linejoin: round;" p:name="line2" id="fda55a5b34b84f489e13ae85edd7ec4f" d="M 75 0 C 83 0 92 0 100 0 C 100 8 100 17 100 25 C 92 25 83 25 75 25 C 75 17 75 8 75 0 z"/>
|
||||
</g>
|
||||
<path d="M 83.15 10 C 86 10 89 10 91.85 10 C 90 12 89 15 87.5 17.5 C 86 15 85 13 83.15 10 z" style="fill:black;stroke-linejoin: round;" p:name="triangle" id="ff11ed5a762b44a79359a672b1f24054"/>
|
||||
<text p:name="text" id="3eabd78a2ee84fcb90552399af89291e" style="font-family: Comic Sans MS; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1;" transform="translate(7,17)">Menu1</text>
|
||||
</g><g xmlns="http://www.w3.org/2000/svg" p:type="Group" xmlns:p="http://www.evolus.vn/Namespace/Pencil" transform="matrix(1,0,0,1,148,96)" id="8c0ca2ff46064c448164cba2ec537c39" p:sizing-gow="257" p:sizing-goh="266"><g p:type="Shape" p:def="Evolus.BasicWebElements:pane" id="cfe7bf8f6ef34acfa36a7b520991305e" transform="matrix(1,0,0,1,3,3)" p:sizing-ox="0" p:sizing-oy="0" p:sizing-ow="251" p:sizing-oh="260"><p:metadata><p:property name="radius"><![CDATA[12.55,0]]></p:property><p:property name="textPadding"><![CDATA[0,8.666666666666668]]></p:property><p:property name="fillColor"><![CDATA[#EEEEEEFF]]></p:property><p:property name="shadowStyle"><![CDATA[0|0|3]]></p:property><p:property name="shadowColor"><![CDATA[#00000000]]></p:property><p:property name="strokeColor"><![CDATA[#003300FF]]></p:property><p:property name="strokeStyle"><![CDATA[2|1,3]]></p:property><p:property name="textContent"><![CDATA[]]></p:property><p:property name="textFont"><![CDATA[Arial|normal|normal|13px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property><p:property name="box"><![CDATA[251,260]]></p:property><p:property name="cornerStyle"><![CDATA[none]]></p:property><p:property name="customStyle"><![CDATA[]]></p:property></p:metadata>
|
||||
<foreignObject x="-3" y="-3" width="257" height="266" p:name="htmlObject" id="c7a0ed73373645b48e359f82c8e97ce5" style="font-family: Arial; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1; color: rgb(0, 0, 0); opacity: 1;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" style="-moz-box-sizing: border-box; overflow: hidden; box-shadow: none; width: 251px; height: 260px; padding: 8.66667px; background-color: rgb(238, 238, 238); border-radius: 0px 0px 0px 0px; border: 2px solid rgb(0, 51, 0); margin-left: 3px; margin-top: 3px;" p:name="div" id="ed2969745dfa45dfa26f0ac73c7f5723"><div xmlns="http://www.w3.org/1999/xhtml"></div></div>
|
||||
</foreignObject>
|
||||
</g><g p:type="Shape" p:def="Evolus.BasicWebElements:breadCrumb" id="03c8a1957b8a4ced866094eac1c4ce54" transform="matrix(1,0,0,1,11,10)" p:sizing-ox="11" p:sizing-oy="10" p:sizing-ow="152" p:sizing-oh="16"><p:metadata><p:property name="textContent"><![CDATA[Home > Products > Pencil]]></p:property><p:property name="textColor"><![CDATA[#0000FFFF]]></p:property><p:property name="textFont"><![CDATA["Liberation Sans",Arial,sans-serif|normal|normal|13px|none]]></p:property><p:property name="customStyle"><![CDATA[]]></p:property><p:property name="homeColor"><![CDATA[#0000FFFF]]></p:property><p:property name="homeCustomStyle"><![CDATA[]]></p:property><p:property name="sepColor"><![CDATA[#00000080]]></p:property><p:property name="spaceSize"><![CDATA[0.5]]></p:property><p:property name="sepCustomStyle"><![CDATA[]]></p:property><p:property name="endColor"><![CDATA[#000000FF]]></p:property><p:property name="endCustomStyle"><![CDATA[]]></p:property></p:metadata>
|
||||
|
||||
<foreignObject x="0" y="0" width="152" height="16" p:name="htmlObject" id="6abfcb75f0944d33904bb0f1a1e384c2">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" p:name="textDiv" id="bb33123c5c034a79b0995534215a2b52" style="display: inline-block; white-space: nowrap; color: rgb(0, 0, 255); opacity: 1; font-family: "Liberation Sans",Arial,sans-serif; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none;"><div xmlns="http://www.w3.org/1999/xhtml"><span style="color: rgba(0, 0, 255, 1); text-decoration: none;;">Home</span><span style="color: rgba(0, 0, 0, 0.5); margin: 0px 0.5ex; ">></span><span style="text-decoration: none;;">Products</span><span style="color: rgba(0, 0, 0, 0.5); margin: 0px 0.5ex; ">></span><span style="color: rgba(0, 0, 0, 1); ;">Pencil</span></div></div>
|
||||
</foreignObject>
|
||||
</g><g p:type="Shape" p:def="Evolus.Sketchy.GUI:button" id="dd297b768e644e208a345f0dff9938cb" transform="matrix(1,0,0,1,70,209)" p:sizing-ox="70" p:sizing-oy="209" p:sizing-ow="90" p:sizing-oh="25"><p:metadata><p:property name="box"><![CDATA[90,25]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="default"><![CDATA[false]]></p:property><p:property name="fillColor"><![CDATA[#CCCCCCFF]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[1|]]></p:property><p:property name="textContent"><![CDATA[Save]]></p:property><p:property name="textFont"><![CDATA[Comic Sans MS|normal|normal|12px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property></p:metadata>
|
||||
<g p:name="rect" id="50713dea1d354cdeb79fa325e94b4a97" style="fill: rgb(204, 204, 204); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
|
||||
<path style="stroke-linejoin: round;" p:name="line1" id="2cc3d1b84b42480daa1cd0f2fa284ee8" d="M 0 0 C 30 0 60 0 90 0 C 90 8 90 17 90 25 C 60 26 30 26 0 25 C 0 17 0 8 0 0 z"/>
|
||||
</g>
|
||||
<text p:name="text" id="9f8603911538417e9ad4d16a920b1609" style="font-family: Comic Sans MS; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1;" transform="translate(32,17)">Save</text>
|
||||
</g><g p:type="Shape" p:def="Evolus.Sketchy.GUI:box" id="859fdba6dfa842748af58e0e2b260592" transform="matrix(1,0,0,1,33,70)" p:sizing-ox="33.5" p:sizing-oy="70.5" p:sizing-ow="200" p:sizing-oh="83"><p:metadata><p:property name="box"><![CDATA[200,83]]></p:property><p:property name="textPadding"><![CDATA[10,5.533333333333333]]></p:property><p:property name="fillColor"><![CDATA[#FFFFFFFF]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[1|]]></p:property><p:property name="textContent"><![CDATA[]]></p:property><p:property name="textFont"><![CDATA['Comic Sans MS'|normal|normal|12px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[1,1]]></p:property></p:metadata>
|
||||
<path style="stroke-linejoin: round; fill: rgb(255, 255, 255); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;" p:name="line1" id="6752e071a1324b0db5008d10c60ec643" transform="translate(0.5,0.5)" d="M 0 0 C 67 1 133 1 200 0 C 199 28 199 55 200 83 C 133 82 67 82 0 83 C 0 55 0 28 0 0 z"/>
|
||||
<text p:name="text" id="c80c39a45ebc4e2396c60af1c84b5732" style="font-family: 'Comic Sans MS'; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1;" transform="translate(100,42)"/>
|
||||
</g><g p:type="Shape" p:def="Evolus.Sketchy.GUI:combobox" id="de01cde5fe054bb1b690d5a217eb000a" transform="matrix(1,0,0,1,93,169)" p:sizing-ox="93" p:sizing-oy="169" p:sizing-ow="132" p:sizing-oh="26"><p:metadata><p:property name="box"><![CDATA[132,26]]></p:property><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="fillColor"><![CDATA[#FFFFFFFF]]></p:property><p:property name="strokeColor"><![CDATA[#000000FF]]></p:property><p:property name="strokeStyle"><![CDATA[1|]]></p:property><p:property name="textContent"><![CDATA[some list]]></p:property><p:property name="textFont"><![CDATA[Comic Sans MS|normal|normal|12px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textAlign"><![CDATA[0,1]]></p:property></p:metadata>
|
||||
<g p:name="rect" id="3fc0dda2563f4cd69f47786a2f482cae" style="fill: rgb(255, 255, 255); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
|
||||
<path style="stroke-linejoin: round;" p:name="line1" id="ddfc0caa5791484d9038e020ce195579" d="M 0 0 C 35 0 71 0 106 0 C 106 9 106 17 106 26 C 71 25 35 25 0 26 C 0 17 0 9 0 0 z"/>
|
||||
</g>
|
||||
<g p:name="fillrect" id="988680800d934319bf16675f4c48e8ad" style="fill: rgb(204, 204, 204); fill-opacity: 1; stroke: rgb(0, 0, 0); stroke-opacity: 1; stroke-width: 1;">
|
||||
<path style="stroke-linejoin: round;" p:name="line2" id="46fad27fb585444db75efc4708e35e46" d="M 106 0 C 115 0 123 0 132 0 C 132 9 132 17 132 26 C 123 26 115 26 106 26 C 106 17 106 9 106 0 z"/>
|
||||
</g>
|
||||
<path d="M 114.476 10.4 C 117 10 121 10 123.524 10.4 C 122 13 121 16 119 18.2 C 117 16 116 13 114.476 10.4 z" style="fill:black;stroke-linejoin: round;" p:name="triangle" id="dc62a27b574246b0bee324ce2f8b1cc4"/>
|
||||
<text p:name="text" id="ef1e4aa202e14f89b043156192083e2c" style="font-family: Comic Sans MS; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none; fill: rgb(0, 0, 0); fill-opacity: 1;" transform="translate(7,18)">some list</text>
|
||||
</g><g p:type="Shape" p:def="Evolus.Common:PlainTextV2" p:sc="Label" id="27dfd93da5db4aa1ae26e39c061ee913" transform="matrix(1,0,0,1,37,183)" p:sizing-ox="36" p:sizing-oy="170" p:sizing-ow="32" p:sizing-oh="17"><p:metadata><p:property name="disabled"><![CDATA[false]]></p:property><p:property name="width"><![CDATA[100,0]]></p:property><p:property name="fixedWidth"><![CDATA[false]]></p:property><p:property name="label"><![CDATA[Label]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="textFont"><![CDATA['Comic Sans MS'|normal|normal|12px|none]]></p:property><p:property name="textAlign"><![CDATA[0,0]]></p:property></p:metadata>
|
||||
<rect x="0" y="0" style="fill: none; stroke: none; visibility: hidden; display: none;" p:name="bgRect" id="82ce8ac6428e44d6bfeff94bbb0fc45c" width="0" height="0"/>
|
||||
<text xml:space="preserve" p:name="text" id="996d4d1553934f1a9cbba085166eff4a" style="fill: rgb(0, 0, 0); fill-opacity: 1; font-family: 'Comic Sans MS'; font-size: 12px; font-weight: normal; font-style: normal; text-decoration: none;"><tspan x="0" y="0">Label</tspan></text>
|
||||
</g><g p:type="Shape" p:def="Evolus.Common:RichTextBoxV2" p:sc="HTML Texts" id="69d2200c45364851a7c11f5c1acf98d8" transform="matrix(1,0,0,1,34,41)" p:sizing-ox="34" p:sizing-oy="41" p:sizing-ow="69" p:sizing-oh="16"><p:metadata><p:property name="width"><![CDATA[200,0]]></p:property><p:property name="fixedWidth"><![CDATA[false]]></p:property><p:property name="textContent"><![CDATA[HTML Texts]]></p:property><p:property name="textFont"><![CDATA["Liberation Sans",Arial,sans-serif|normal|normal|13px|none]]></p:property><p:property name="textColor"><![CDATA[#000000FF]]></p:property><p:property name="customStyle"><![CDATA[
|
||||
]]></p:property></p:metadata>
|
||||
|
||||
<foreignObject x="0" y="0" width="69" height="16" p:name="htmlObject" id="f8b306c8c6e54f35a3d3a180348109bc" style="color: rgb(0, 0, 0); opacity: 1; font-family: "Liberation Sans",Arial,sans-serif; font-size: 13px; font-weight: normal; font-style: normal; text-decoration: none;">
|
||||
<div xmlns="http://www.w3.org/1999/xhtml" p:name="textDiv" id="1176e7d1130a40bc957e95b95abcdfc7" style="display: inline-block; white-space: nowrap; text-decoration: none;"><div xmlns="http://www.w3.org/1999/xhtml">HTML Texts</div></div>
|
||||
</foreignObject>
|
||||
</g></g><g xmlns="http://www.w3.org/2000/svg" p:type="Shape" xmlns:p="http://www.evolus.vn/Namespace/Pencil" p:def="Evolus.Common:SVGImage" id="7668948211e04966b97560296dda45d3" transform="matrix(1,0,0,1,371,144)"><p:metadata><p:property name="box"><![CDATA[123,67]]></p:property><p:property name="originalDim"><![CDATA[400,400]]></p:property><p:property name="svgXML"><![CDATA[<g xmlns="http://www.w3.org/2000/svg" p:ImageSource="OpenClipart.org" xmlns:p="http://www.evolus.vn/Namespace/Pencil">
|
||||
<metadata id="7c14b73f95c148b09f5f63932f5d52da"/>
|
||||
<defs id="69ce74ed8fa440e881533ba6d488c441">
|
||||
<filter inkscape:collect="always" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="15a2a84d0fc04afbaf19b2775c0286d5">
|
||||
<feGaussianBlur inkscape:collect="always" stdDeviation="6.5873096" id="422efcd17e654d4798edaf897840c9f0"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="f5ab759150c54e9b8ef6a0055b735797" inkscape:zoom="0.7725" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:cx="455.92232" inkscape:cy="200" inkscape:window-width="731" inkscape:window-height="717" inkscape:window-x="73" inkscape:window-y="30" showgrid="false" inkscape:current-layer="svg548"/>
|
||||
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="138ad23522464ed7b1ff54c0c0b87588" d="M 38.89603,44.767884 C 38.89603,44.767884 488.14423,43.505884 486.88223,43.505884 C 485.62023,43.505884 485.62023,319.86898 485.62023,319.86898 L 296.33023,319.86898 L 71.70583,473.82498 L 220.61423,321.13098 L 38.89603,323.65498 L 38.89603,44.767884 z" style="fill:#000000;fill-opacity:0.49803922000000000;fill-rule:evenodd;stroke:none;stroke-width:2.50000000000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;filter:url(#15a2a84d0fc04afbaf19b2775c0286d5)"/>
|
||||
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="a71be20aa0fc4521bc743e08b9c9a3d4" d="M 22.7148,31.8229 C 22.7148,31.8229 471.963,30.5609 470.701,30.5609 C 469.439,30.5609 469.439,306.924 469.439,306.924 L 280.149,306.924 L 55.5246,460.88 L 204.433,308.186 L 22.7148,310.71 L 22.7148,31.8229 z" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"/>
|
||||
<metadata id="07f611dc288b4b3ea3ec906a1a295edf">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<cc:Work xmlns:cc="http://creativecommons.org/ns#" rdf:about="">
|
||||
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Clipart by Nicu Buculei - segmented</dc:title>
|
||||
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<cc:Agent>
|
||||
<dc:title>Nicu Buculei</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:rights>
|
||||
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
|
||||
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format>
|
||||
</cc:Work>
|
||||
<cc:License xmlns:cc="http://creativecommons.org/ns#" rdf:about="http://web.resource.org/cc/PublicDomain">
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
|
||||
</cc:License>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</g>]]></p:property></p:metadata>
|
||||
<g p:name="container" id="a69ed2e3db3d4e488a0a02cce53a797f" transform="scale(0.3075,0.1675)"><g xmlns="http://www.w3.org/2000/svg" p:ImageSource="OpenClipart.org" xmlns:p="http://www.evolus.vn/Namespace/Pencil">
|
||||
<metadata id="7c14b73f95c148b09f5f63932f5d52da"/>
|
||||
<defs id="69ce74ed8fa440e881533ba6d488c441">
|
||||
<filter inkscape:collect="always" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" id="15a2a84d0fc04afbaf19b2775c0286d5">
|
||||
<feGaussianBlur inkscape:collect="always" stdDeviation="6.5873096" id="422efcd17e654d4798edaf897840c9f0"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<sodipodi:namedview xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="f5ab759150c54e9b8ef6a0055b735797" inkscape:zoom="0.7725" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:cx="455.92232" inkscape:cy="200" inkscape:window-width="731" inkscape:window-height="717" inkscape:window-x="73" inkscape:window-y="30" showgrid="false" inkscape:current-layer="svg548"/>
|
||||
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="138ad23522464ed7b1ff54c0c0b87588" d="M 38.89603,44.767884 C 38.89603,44.767884 488.14423,43.505884 486.88223,43.505884 C 485.62023,43.505884 485.62023,319.86898 485.62023,319.86898 L 296.33023,319.86898 L 71.70583,473.82498 L 220.61423,321.13098 L 38.89603,323.65498 L 38.89603,44.767884 z" style="fill:#000000;fill-opacity:0.49803922000000000;fill-rule:evenodd;stroke:none;stroke-width:2.50000000000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1;filter:url(#15a2a84d0fc04afbaf19b2775c0286d5)"/>
|
||||
<path sodipodi:nodetypes="cccccccc" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" id="a71be20aa0fc4521bc743e08b9c9a3d4" d="M 22.7148,31.8229 C 22.7148,31.8229 471.963,30.5609 470.701,30.5609 C 469.439,30.5609 469.439,306.924 469.439,306.924 L 280.149,306.924 L 55.5246,460.88 L 204.433,308.186 L 22.7148,310.71 L 22.7148,31.8229 z" style="fill:#ffffff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:10;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:none;stroke-opacity:1"/>
|
||||
<metadata id="07f611dc288b4b3ea3ec906a1a295edf">
|
||||
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||||
<cc:Work xmlns:cc="http://creativecommons.org/ns#" rdf:about="">
|
||||
<dc:title xmlns:dc="http://purl.org/dc/elements/1.1/">Clipart by Nicu Buculei - segmented</dc:title>
|
||||
<dc:rights xmlns:dc="http://purl.org/dc/elements/1.1/">
|
||||
<cc:Agent>
|
||||
<dc:title>Nicu Buculei</dc:title>
|
||||
</cc:Agent>
|
||||
</dc:rights>
|
||||
<dc:type xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:resource="http://purl.org/dc/dcmitype/StillImage"/>
|
||||
<cc:license rdf:resource="http://web.resource.org/cc/PublicDomain"/>
|
||||
<dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format>
|
||||
</cc:Work>
|
||||
<cc:License xmlns:cc="http://creativecommons.org/ns#" rdf:about="http://web.resource.org/cc/PublicDomain">
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction"/>
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution"/>
|
||||
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks"/>
|
||||
</cc:License>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
</g></g>
|
||||
</g></Content></Page></Pages></Document>
|
|
@ -1,5 +1,5 @@
|
|||
<div>
|
||||
<div class="page-header">
|
||||
<div >
|
||||
<h1>About GraphXQ</h1>
|
||||
<p>
|
||||
This application provides a web interface to <a href="http://www.graphviz.org/">Graphviz</a>.
|
||||
|
@ -10,19 +10,24 @@
|
|||
href="http://docs.basex.org/wiki/RESTXQ" target="_blank">RestXQ</a>
|
||||
is used to map XQuery annotations to web server behavior.
|
||||
</p>
|
||||
<p>The client side targets modern browsers. It was tested against Firefox 15 and Chrome 21.
|
||||
</p>
|
||||
<p>
|
||||
This application includes DOTML developed by Martin Loetzsch
|
||||
This application includes DOTML developed by Martin Loetzsch
|
||||
(<a href="http://www.martin-loetzsch.de/DOTML" target="_blank">http://www.martin-loetzsch.de/DOTML</a>).
|
||||
DotML is a XML based syntax for the input language of the 'Dot' graph drawing tool from the AT&T GraphViz suite. It can be transformed to the native syntax of the 'Dot' tool using XSLT.
|
||||
</p>
|
||||
<p>The client side targets modern browsers. It was tested against Firefox 15 and Chrome 21.
|
||||
</p>
|
||||
<p>Client libraries are loaded from CDN where possible. In particular
|
||||
<a href="http://cdnjs.com" target="_blank">cdnjs.com</a> is used.
|
||||
Twitter <a href="http://twitter.github.com/bootstrap/index.html"
|
||||
|
||||
<p>Twitter <a href="http://twitter.github.com/bootstrap/index.html"
|
||||
target="_blank">Bootstrap</a> is used for the client side styling.
|
||||
</p>
|
||||
|
||||
<p>Client libraries are loaded from CDN where possible. In particular
|
||||
<a href="http://cdnjs.com" target="_blank">cdnjs.com</a> is used.</p>
|
||||
<h2>Bugs</h2>
|
||||
<p>The SVG pan and zoom has problems, especially in Firefox. In part this maybe due
|
||||
to firefox bugs</p>
|
||||
<p>For reference this shows how the SVG <a href="/graphxq/viewbox/viewBox.svg">viewbox</a>
|
||||
works.</p>
|
||||
</div>
|
||||
<ul class="quick-links">
|
||||
<!--
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<div>
|
||||
<h1>About GraphXQ API</h1>
|
||||
<p>
|
||||
POST or GET <div>restxq/svg?dot=..</div>
|
||||
POST or GET <code>restxq/graphxq/api/dotml?dot=..</code>
|
||||
</p>
|
||||
|
||||
</div>
|
|
@ -1,12 +1,12 @@
|
|||
<div class="row-fluid" style="height:20em">
|
||||
<div class="span6">
|
||||
<div class="row-fluid" >
|
||||
<div class="span6 extend">
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="active"><a href="#tab-dot" data-toggle="tab">Dot</a></li>
|
||||
<li><a href="#tab-defaults" data-toggle="tab">Defaults</a></li>
|
||||
<li><a href="#tab-xml" data-toggle="tab">Raw XML</a></li>
|
||||
</ul>
|
||||
<div class="tab-content extend">
|
||||
<div class="tab-content" style="overflow:hidden;">
|
||||
<div class="tab-pane active " id="tab-dot" >
|
||||
|
||||
<form id="dotForm" action= "svg" method="post" target="_new" class="well " >
|
||||
|
@ -14,7 +14,7 @@
|
|||
<input type="text" name="title" placeholder="title" class="input-small" />"
|
||||
</label>
|
||||
<span style="margin-right:-5px;padding-right:2px;">{{</span>
|
||||
<textarea id="dot" name="dot" rows="100" style="width:90%;height:100%;overflow:scroll"
|
||||
<textarea id="dot" name="dot" rows="100" style="width:90%;overflow:scroll"
|
||||
>{$dot}</textarea><span style="margin-right:-5px;">}}</span>
|
||||
<label class="checkbox">
|
||||
<input name="dl" type="checkbox"/> Download
|
||||
|
@ -63,7 +63,7 @@
|
|||
<div id="svgdiv" class="extend" style="width:100%;height:30em;border: 1px solid #E3E3E3;min-height:20em;">{$svgwidget}</div>
|
||||
|
||||
</div>
|
||||
<script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){{
|
||||
getsvg(false)
|
||||
|
|
|
@ -1,22 +1,28 @@
|
|||
<div>
|
||||
<div class="row-fluid" style="height:1em">
|
||||
ffdfd gffff gfgffgf
|
||||
</div>
|
||||
<div class="row-fluid" style="height:20em">
|
||||
<div class="span5">
|
||||
<form method="post" action="api/dotml" style="background-color:#EEEEEE;padding:8px;">
|
||||
|
||||
<div> <button type="submit">Redraw</button></div>
|
||||
<textarea name="dotml" rows="12" cols="80">
|
||||
<graph file-name="graphs/decorate">
|
||||
<graph xmlns="http://www.martin-loetzsch.de/DOTML"
|
||||
bgcolor="#80FF80" >
|
||||
|
||||
<node id="a"/>
|
||||
<node id="b"/>
|
||||
<node id="c"/>
|
||||
<edge from="a" to="c" decorate="false" label="decorate='false'"/>
|
||||
<edge from="b" to="c" decorate="true" label="decorate='true'"/>
|
||||
<node id="a" />
|
||||
<node id="b"/>
|
||||
<node id="c"/>
|
||||
<edge from="a" to="c" decorate="false" label="decorate='false'"/>
|
||||
<edge from="b" to="c" decorate="true" label="decorate='true'"/>
|
||||
</graph>
|
||||
</textarea>
|
||||
|
||||
<button type="submit">Redraw</button>
|
||||
|
||||
</form >
|
||||
</div>
|
||||
<div class="span5">
|
||||
<div style="width:100%;height:100%;border:5px solid red;">?</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -19,6 +19,7 @@
|
|||
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.8.1/jquery.min.js" type="text/javascript"></script>
|
||||
<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.2/bootstrap.min.js" type="text/javascript"></script>
|
||||
<script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="/graphxq/app.js" type="text/javascript"></script>
|
||||
<script type="text/javascript"><![CDATA[
|
||||
var _gaq = _gaq || [];
|
||||
|
@ -81,11 +82,12 @@
|
|||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<form class="pull-right navbar-search" action="search">
|
||||
<input type="text" class="search-query span3" placeholder="Search"
|
||||
name="q" />
|
||||
<div class="icon-search"></div>
|
||||
</form>
|
||||
<div class="btn-group pull-right">
|
||||
<a href="##" rel="tooltip" title="Make the Directories side dominant" class="btn btn-mini" data-action="dirDom" data-placement="left"><i class="icon icon-indent-left"></i></a>
|
||||
<a href="##" rel="tooltip" title="Make both sides equal" class="btn btn-mini" data-placement="left" data-action="equality"><i class="icon icon-resize-horizontal"></i></a>
|
||||
<a href="##" rel="tooltip" title="Make the Documents side dominant" class="btn btn-mini" data-placement="left" data-action="fileDom"><i class="icon icon-indent-right"></i></a>
|
||||
</div>
|
||||
|
||||
<div class="btn-group pull-right" style="margin-top:0px">
|
||||
{$usermenu}
|
||||
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
onload="init(evt)" width="100%" height="100%" viewBox="0 0 400 400"
|
||||
version="1.1" preserveAspectRatio="xMinYMin meet">
|
||||
<!-- svg frame supporting dynamic svg load
|
||||
provides pan and zoom functionality -->
|
||||
<script type="text/ecmascript"><![CDATA[
|
||||
var svgns = "http://www.w3.org/2000/svg";
|
||||
var svgRoot;
|
||||
|
@ -8,6 +10,7 @@
|
|||
var inPan=false;
|
||||
var stateOrigin; //start of pan
|
||||
var fitScale=zoomScale=1;
|
||||
var cuthere; //node where svg is loaded
|
||||
|
||||
function init(e) {
|
||||
svgRoot = e.target;
|
||||
|
@ -65,7 +68,7 @@
|
|||
window.addEventListener('DOMMouseScroll', onMouseWheel, false); // Others
|
||||
|
||||
|
||||
var cuthere=document.getElementById("cuthere");
|
||||
cuthere=document.getElementById("gInsertSVG");
|
||||
cuthere.addEventListener ( 'DOMNodeInserted', onNodeInsert, false );
|
||||
};
|
||||
|
||||
|
@ -164,7 +167,7 @@
|
|||
}
|
||||
]]></script>
|
||||
<rect x="0" y="0" width="100%" height="100%" fill="none" stroke-width="1" stroke="none"/>
|
||||
<g id="cuthere" />
|
||||
<g id="gInsertSVG" />
|
||||
|
||||
<rect x="0" y="0" width="100%" height="100%" fill="transparent" />
|
||||
<g id="hud" transform="translate(10,10)">
|
||||
|
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.5 KiB |
Loading…
Add table
Reference in a new issue