瀏覽代碼

Fix 'use' transform with x and y

yomboprime 4 年之前
父節點
當前提交
84de9e9413

+ 4 - 3
examples/jsm/loaders/SVGLoader.js

@@ -1097,7 +1097,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 
 		function getNodeTransform( node ) {
 
-			if ( ! ( node.hasAttribute( 'transform' ) || node.nodeName === 'use' ) ) {
+			if ( ! ( node.hasAttribute( 'transform' ) || ( node.nodeName == 'use' && ( node.hasAttribute( 'x' ) || node.hasAttribute( 'y' ) ) ) ) ) {
 
 				return null;
 
@@ -1123,7 +1123,7 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 			var transform = new Matrix3();
 			var currentTransform = tempTransform0;
 
-			if ( node.nodeName === 'use' ) {
+			if ( node.nodeName == 'use' && ( node.hasAttribute( 'x' ) || node.hasAttribute( 'y' ) ) ) {
 
 				var tx = parseFloatWithUnits( node.getAttribute( 'x' ) );
 				var ty = parseFloatWithUnits( node.getAttribute( 'y' ) );
@@ -1131,7 +1131,8 @@ SVGLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
 				transform.translate( tx, ty );
 
 			}
-			else {
+
+			if ( node.hasAttribute( 'transform' ) ) {
 
 				var transformsTexts = node.getAttribute( 'transform' ).split( ')' );
 

+ 3 - 0
examples/models/svg/tests/testDefs/Svg-defs-license.txt

@@ -1,3 +1,6 @@
 File: Svg-defs.svg
 Link: https://commons.wikimedia.org/wiki/File:Svg-defs.svg
 License: CC-BY-SA 2.5
+License link: https://creativecommons.org/licenses/by-sa/3.0/deed.en
+
+The file Svg-defs2.svg is a derived work of the same file.

+ 73 - 0
examples/models/svg/tests/testDefs/Svg-defs2.svg

@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created by User:Pietn for Wikipedia -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="105"
+   height="85"
+   version="1.1"
+   id="svg11"
+   sodipodi:docname="Svg-defs2.svg"
+   inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)">
+  <metadata
+     id="metadata15">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1489"
+     inkscape:window-height="909"
+     id="namedview13"
+     showgrid="false"
+     inkscape:zoom="2.7764706"
+     inkscape:cx="52.5"
+     inkscape:cy="42.5"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="svg11" />
+  <title
+     id="title2">...</title>
+  <defs
+     id="defs5">
+    <circle
+       r="30"
+       id="schijf" />
+  </defs>
+  <use
+     x="35"
+     y="35"
+     xlink:href="#schijf"
+     fill="darkorchid"
+     id="use7" />
+  <use
+     x="70"
+     y="50"
+     xlink:href="#schijf"
+     id="use9"
+     transform="matrix(1,0,0,1.2221045,0,-17.768362)"
+     style="fill:#ff4500"
+     width="100%"
+     height="100%" />
+</svg>

+ 5 - 0
examples/models/svg/tests/testDefs/Wave-defs-license.txt

@@ -0,0 +1,5 @@
+File: Wave-defs.svg
+Original file name: Växelförlopp-defs.svg
+Link: https://commons.wikimedia.org/wiki/File:V%C3%A4xelf%C3%B6rlopp-defs.svg
+License: This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
+License link: https://creativecommons.org/licenses/by-sa/3.0/deed.en

+ 376 - 0
examples/models/svg/tests/testDefs/Wave-defs.svg

@@ -0,0 +1,376 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:xlink="http://www.w3.org/1999/xlink"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   viewBox="0 0 628.11623 317.00101"
+   id="svg3116"
+   version="1.1"
+   inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)"
+   width="100%"
+   height="100%"
+   sodipodi:docname="Växelförlopp-defs.svg">
+  <metadata
+     id="metadata3245">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="1920"
+     inkscape:window-height="1015"
+     id="namedview3243"
+     showgrid="false"
+     showborder="true"
+     inkscape:zoom="1.4142136"
+     inkscape:cx="188.61071"
+     inkscape:cy="124.42179"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg3116"
+     fit-margin-top="4"
+     fit-margin-right="4"
+     fit-margin-bottom="4"
+     fit-margin-left="4"
+     inkscape:showpageshadow="false">
+    <inkscape:grid
+       type="xygrid"
+       id="grid3247"
+       empspacing="5"
+       visible="true"
+       enabled="true"
+       snapvisiblegridlinesonly="true" />
+  </sodipodi:namedview>
+  <title
+     id="title3118">gnuplot</title>
+  <desc
+     id="desc3120">Produced by GNUPLOT 4.4 patchlevel 4 </desc>
+  <defs
+     id="defs3122">
+    <circle
+       id="gpDot"
+       r="0.5"
+       cx="0"
+       cy="0"
+       sodipodi:cx="0"
+       sodipodi:cy="0"
+       sodipodi:rx="0.5"
+       sodipodi:ry="0.5"
+       style="stroke-width:0.5" />
+    <path
+       id="gpPt0"
+       d="M -1,0 H 1 M 0,-1 v 2"
+       inkscape:connector-curvature="0"
+       style="stroke:currentColor;stroke-width:0.333" />
+    <path
+       id="gpPt1"
+       d="M -1,-1 1,1 M 1,-1 -1,1"
+       inkscape:connector-curvature="0"
+       style="stroke:currentColor;stroke-width:0.333" />
+    <path
+       id="gpPt2"
+       d="M -1,0 1,0 M 0,-1 0,1 m -1,-2 2,2 m -2,0 2,-2"
+       inkscape:connector-curvature="0"
+       style="stroke:currentColor;stroke-width:0.333" />
+    <rect
+       id="gpPt3"
+       x="-1"
+       y="-1"
+       width="2"
+       height="2"
+       style="stroke:currentColor;stroke-width:0.333" />
+    <rect
+       id="gpPt4"
+       x="-1"
+       y="-1"
+       width="2"
+       height="2"
+       style="fill:currentColor;stroke:currentColor;stroke-width:0.333" />
+    <circle
+       id="gpPt5"
+       cx="0"
+       cy="0"
+       r="1"
+       sodipodi:cx="0"
+       sodipodi:cy="0"
+       sodipodi:rx="1"
+       sodipodi:ry="1"
+       style="stroke:currentColor;stroke-width:0.333" />
+    <use
+       xlink:href="#gpPt5"
+       id="gpPt6"
+       style="fill:currentColor;stroke:none"
+       x="0"
+       y="0"
+       width="576"
+       height="432" />
+    <path
+       id="gpPt7"
+       d="m 0,-1.33 -1.33,2 2.66,0 z"
+       inkscape:connector-curvature="0"
+       style="stroke:currentColor;stroke-width:0.333" />
+    <use
+       xlink:href="#gpPt7"
+       id="gpPt8"
+       style="fill:currentColor;stroke:none"
+       x="0"
+       y="0"
+       width="576"
+       height="432" />
+    <use
+       xlink:href="#gpPt7"
+       id="gpPt9"
+       transform="scale(-1,-1)"
+       style="stroke:currentColor"
+       x="0"
+       y="0"
+       width="576"
+       height="432" />
+    <use
+       xlink:href="#gpPt9"
+       id="gpPt10"
+       style="fill:currentColor;stroke:none"
+       x="0"
+       y="0"
+       width="576"
+       height="432" />
+    <use
+       xlink:href="#gpPt3"
+       id="gpPt11"
+       transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)"
+       style="stroke:currentColor"
+       x="0"
+       y="0"
+       width="576"
+       height="432" />
+    <use
+       xlink:href="#gpPt11"
+       id="gpPt12"
+       style="fill:currentColor;stroke:none"
+       x="0"
+       y="0"
+       width="576"
+       height="432" />
+  </defs>
+  <g
+     style="color:#ffffff;fill:none;stroke:currentColor;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter"
+     id="g3138"
+     transform="translate(2.5000001,89.716315)" />
+  <g
+     style="color:#ffffff;fill:none;stroke:currentColor;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:miter"
+     id="g3140"
+     transform="translate(2.5000001,89.716315)" />
+  <g
+     id="Plot_1"
+     transform="matrix(1,0,0,0.56762703,2.5000001,73.286142)"
+     style="stroke:#b80000;stroke-width:3.98189425;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none">
+    <title
+       id="title3235">Plot_1</title>
+    <g
+       style="color:#ff0000;fill:none;stroke:#b80000;stroke-width:3.98189425;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+       id="g3237">
+      <path
+         d="m 36.4,209.6 5.2,-19.8 5.3,-19.6 5.2,-19.2 5.2,-18.6 5.2,-17.8 5.3,-16.9 5.2,-15.8 5.2,-14.5 5.2,-13.1 5.3,-11.6 5.2,-9.8 5.2,-8.1 5.3,-6.3 5.2,-4.3 5.2,-2.4 5.2,-0.4 5.3,1.6 5.2,3.5 5.2,5.5 5.2,7.3 5.3,9.1 5.2,10.9 5.2,12.4 5.2,14 5.3,15.2 5.2,16.5 5.2,17.5 5.3,18.3 5.2,19 5.2,19.5 5.2,19.7 5.3,19.8 5.2,19.7 5.2,19.4 5.2,18.9 5.3,18.2 5.2,17.3 5.2,16.3 5.3,15.1 5.2,13.7 5.2,12.2 5.2,10.5 5.3,8.9 5.2,7 5.2,5.1 5.2,3.2 5.3,1.3 5.2,-0.8 5.2,-2.7 5.3,-4.6 5.2,-6.6 5.2,-8.4 5.2,-10.2 5.3,-11.8 5.2,-13.3 5.2,-14.7 5.2,-16 5.3,-17.1 5.2,-18 5.2,-18.7 5.2,-19.3 5.3,-19.7 5.2,-19.8 5.2,-19.8 5.3,-19.5 5.2,-19.1 5.2,-18.6 5.2,-17.7 5.3,-16.7 5.2,-15.6 5.2,-14.2 5.2,-12.9 5.3,-11.2 5.2,-9.6 5.2,-7.8 5.3,-5.9 5.2,-4.1 5.2,-2 5.2,-0.1 5.3,1.9 5.2,3.9 5.2,5.8 5.2,7.6 5.3,9.4 5.2,11.2 5.2,12.7 5.2,14.2 5.3,15.4 5.2,16.7 5.2,17.6 5.3,18.5 5.2,19 5.2,19.6 5.2,19.7"
+         id="path3239"
+         inkscape:connector-curvature="0"
+         style="stroke:#b80000;stroke-width:3.98189425;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+    </g>
+  </g>
+  <g
+     style="color:#000000;fill:none;stroke:currentColor;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:miter"
+     id="g3241"
+     transform="translate(2.5000001,89.716315)" />
+  <path
+     style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 4.5,191.35257 603.20489,0"
+     id="path3249"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 90.5,21.013787 0,291.487223"
+     id="path3251"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 39.744321,180.68269 0,95.82678"
+     id="path3251-1"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 90.996796,4.5 -5.178606,19.191291 9.74797,0 z"
+     id="path3040"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 623.61623,191.31068 -19.19129,-5.17859 0,9.74796 z"
+     id="path3040-7"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 39.053287,267.31094 46.528424,0"
+     id="path3249-4"
+     inkscape:connector-curvature="0" />
+  <g
+     aria-label="a"
+     style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:0%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman,';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none"
+     id="text4259">
+    <path
+       d="m 75.32386,36.027878 q 2.40625,0 3.53125,0.984375 1.140625,0.984375 1.140625,3.015625 v 9.921875 l 1.828125,0.390625 v 0.703125 h -4.03125 l -0.296875,-1.46875 q -1.78125,1.78125 -4.546875,1.78125 -3.765625,0 -3.765625,-4.375 0,-1.46875 0.5625,-2.421875 0.578125,-0.96875 1.828125,-1.46875 1.25,-0.515625 3.625,-0.5625 l 2.203125,-0.0625 v -2.296875 q 0,-1.515625 -0.5625,-2.234375 -0.546875,-0.71875 -1.703125,-0.71875 -1.5625,0 -2.859375,0.734375 l -0.53125,1.828125 h -0.875 v -3.203125 q 2.53125,-0.546875 4.453125,-0.546875 z m 2.078125,7.53125 -2.046875,0.0625 q -2.09375,0.07813 -2.84375,0.8125 -0.734375,0.734375 -0.734375,2.453125 0,2.75 2.234375,2.75 1.0625,0 1.828125,-0.234375 0.78125,-0.25 1.5625,-0.625 z"
+       style="font-size:32px;line-height:1.25"
+       id="path883" />
+  </g>
+  <g
+     aria-label="t"
+     style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:0%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman,';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none"
+     id="text4263">
+    <path
+       d="m 592.25952,220.38332 q -1.5,0 -2.25,-0.89063 -0.73437,-0.89062 -0.73437,-2.5 v -10.29687 h -1.92188 v -0.70313 l 1.95313,-0.60937 1.57812,-3.32813 h 0.98438 v 3.32813 h 3.35937 v 1.3125 h -3.35937 v 10.01562 q 0,1.01563 0.45312,1.53125 0.46875,0.51563 1.21875,0.51563 0.90625,0 2.20313,-0.25 v 1.01562 q -0.54688,0.375 -1.57813,0.60938 -1.03125,0.25 -1.90625,0.25 z"
+       style="font-size:32px;line-height:1.25"
+       id="path874" />
+  </g>
+  <text
+     xml:space="preserve"
+     style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:0%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman,';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none"
+     x="118.99285"
+     y="379.33615"
+     id="text4267"><tspan
+       sodipodi:role="line"
+       id="tspan4269"
+       x="122.99285"
+       y="379.33615"
+       style="font-size:32px;line-height:1.25"> </tspan></text>
+  <g
+     id="g4283"
+     transform="translate(27.248737,-77.666985)">
+    <g
+       aria-label="α"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:0%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman,';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none"
+       id="text4271">
+      <path
+         d="m 45.800953,301.89633 v 0.70313 h -3.3125 q -0.578125,-1.84375 -1.03125,-4.28125 h -0.09375 q -1.125,2.14062 -1.84375,2.96875 -0.71875,0.8125 -1.59375,1.21875 -0.875,0.40625 -2.015625,0.40625 -2.34375,0 -3.625,-1.92188 -1.265625,-1.92187 -1.265625,-5.46875 0,-3.78125 1.59375,-5.89062 1.609375,-2.125 4.515625,-2.125 2,0 3.171875,1 1.171875,1 1.90625,3.3125 h 0.09375 l 1.09375,-3.90625 h 2.453125 v 0.625 q -0.359375,0.5625 -0.84375,1.67187 -0.484375,1.10938 -1.890625,4.84375 0.890625,3.84375 1.9375,6.60938 z m -4.6875,-6.53125 q -0.40625,-3.53125 -1.296875,-5.0625 -0.890625,-1.54687 -2.453125,-1.54687 -3.515625,0 -3.515625,6.76562 0,2.875 0.734375,4.375 0.734375,1.48438 1.953125,1.48438 0.9375,0 1.671875,-0.59375 0.75,-0.59375 1.359375,-1.6875 0.625,-1.09375 1.546875,-3.73438 z"
+         style="font-size:32px;line-height:1.25"
+         id="path886" />
+    </g>
+    <g
+       aria-label="ω"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:0%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman,';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none"
+       id="text4275">
+      <path
+         d="m 43.929783,326.47379 q 0,-5.8125 -4.109375,-7.4375 v -1.03125 q 3.28125,0.54687 5.109375,2.78125 1.828125,2.21875 1.828125,5.64062 0,3.23438 -1.359375,5.0625 -1.359375,1.82813 -3.8125,1.82813 -2.859375,0 -4,-2.9375 h -0.125 q -1.140625,2.9375 -4.015625,2.9375 -2.4375,0 -3.84375,-1.82813 -1.40625,-1.82812 -1.40625,-5.0625 0,-3.45312 1.828125,-5.67187 1.84375,-2.21875 5.109375,-2.75 v 1.03125 q -2,0.78125 -3.0625,2.67187 -1.046875,1.875 -1.046875,4.76563 0,2.40625 0.828125,3.82812 0.84375,1.42188 2.3125,1.42188 0.9375,0 1.6875,-0.90625 0.765625,-0.90625 1,-2.4375 l -0.140625,-0.84375 q -0.421875,-2.39063 -0.421875,-3.21875 v -0.8125 h 2.59375 v 0.8125 q 0,0.85937 -0.59375,4.0625 0.265625,1.5625 0.953125,2.42187 0.6875,0.84375 1.625,0.84375 1.46875,0 2.265625,-1.35937 0.796875,-1.375 0.796875,-3.8125 z"
+         style="font-size:32px;line-height:1.25"
+         id="path889" />
+    </g>
+    <g
+       aria-label="_"
+       style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:0%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman,';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none"
+       id="text4279">
+      <path
+         d="m 29.226662,308.84576 v -1.59375 h 16.5 v 1.59375 z"
+         style="font-size:32px;line-height:1.25"
+         id="path892" />
+    </g>
+  </g>
+  <path
+     style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 89.811578,267.30411 -15.544945,-4.19466 0,7.89585 z"
+     id="path3040-7-0"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 39.982359,266.81064 15.54495,4.19466 0,-7.89585 z"
+     id="path3040-7-0-9"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:none;stroke:#000000;stroke-width:0.99999988px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 123.06711,54.572308 323.47118,0"
+     id="path3249-4-4"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 448.88124,54.565468 -15.54495,-4.19466 0,7.89585 z"
+     id="path3040-7-0-8"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 123.05202,54.071998 15.54495,4.19466 0,-7.89585 z"
+     id="path3040-7-0-9-8"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 122.00105,50.805281 0,48.240103"
+     id="path3251-1-2"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 449.39148,47.169244 0,48.240103"
+     id="path3251-1-2-4"
+     inkscape:connector-curvature="0" />
+  <g
+     aria-label="T"
+     style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:0%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman,';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none"
+     id="text4387">
+    <path
+       d="m 277.17743,46.641064 v -0.828125 l 3.32812,-0.421875 V 27.031689 h -0.79687 q -3.95313,0 -5.40625,0.3125 l -0.42188,3.265625 h -1.04687 v -4.921875 h 18.4375 v 4.921875 h -1.0625 l -0.42188,-3.265625 q -0.46875,-0.109375 -2.04687,-0.1875 -1.57813,-0.09375 -3.45313,-0.09375 h -0.76562 v 18.328125 l 3.32812,0.421875 v 0.828125 z"
+       style="font-size:32px;line-height:1.25"
+       id="path880" />
+  </g>
+  <path
+     style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 555.38413,89.149943 0,87.873667"
+     id="path3249-4-5"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 555.39097,190.06542 4.19466,-15.54494 -7.89585,0 z"
+     id="path3040-7-0-5"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 555.88444,80.236195 -4.19466,15.54495 7.89585,0 z"
+     id="path3040-7-0-9-1"
+     inkscape:connector-curvature="0" />
+  <path
+     style="fill:none;stroke:#000000;stroke-width:0.99999988px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+     d="m 430.49146,79.06747 132.14053,0"
+     id="path3249-4-4-7"
+     inkscape:connector-curvature="0" />
+  <text
+     xml:space="preserve"
+     style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;line-height:0%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman, Bold';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none"
+     x="543.37781"
+     y="129.51469"
+     id="text4441"><tspan
+       sodipodi:role="line"
+       id="tspan4443"
+       x="543.37781"
+       y="129.51469"
+       style="font-size:24px;line-height:1.25">^</tspan></text>
+  <g
+     aria-label="a"
+     style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:0%;font-family:'Times New Roman';-inkscape-font-specification:'Times New Roman,';text-align:center;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none"
+     id="text4445">
+    <path
+       d="m 543.54187,126.27724 q 2.40625,0 3.53125,0.98437 1.14063,0.98438 1.14063,3.01563 v 9.92187 l 1.82812,0.39063 v 0.70312 h -4.03125 l -0.29687,-1.46875 q -1.78125,1.78125 -4.54688,1.78125 -3.76562,0 -3.76562,-4.375 0,-1.46875 0.5625,-2.42187 0.57812,-0.96875 1.82812,-1.46875 1.25,-0.51563 3.625,-0.5625 l 2.20313,-0.0625 v -2.29688 q 0,-1.51562 -0.5625,-2.23437 -0.54688,-0.71875 -1.70313,-0.71875 -1.5625,0 -2.85937,0.73437 l -0.53125,1.82813 h -0.875 v -3.20313 q 2.53125,-0.54687 4.45312,-0.54687 z m 2.07813,7.53125 -2.04688,0.0625 q -2.09375,0.0781 -2.84375,0.8125 -0.73437,0.73437 -0.73437,2.45312 0,2.75 2.23437,2.75 1.0625,0 1.82813,-0.23437 0.78125,-0.25 1.5625,-0.625 z"
+       style="font-size:32px;line-height:1.25"
+       id="path877" />
+  </g>
+</svg>

+ 0 - 262
examples/models/svg/tests/testDefs/latexSample.svg

@@ -1,262 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<!-- This file was generated by dvisvgm 2.6.3 -->
-
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:xlink="http://www.w3.org/1999/xlink"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   version="1.1"
-   width="83.275349pt"
-   height="9.005688pt"
-   viewBox="130.227832 -6.861476 83.275349 9.005688"
-   id="svg46"
-   sodipodi:docname="latexSample.svg"
-   inkscape:version="0.92.5 (2060ec1f9f, 2020-04-08)">
-  <metadata
-     id="metadata50">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <sodipodi:namedview
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1"
-     objecttolerance="10"
-     gridtolerance="10"
-     guidetolerance="10"
-     inkscape:pageopacity="0"
-     inkscape:pageshadow="2"
-     inkscape:window-width="1920"
-     inkscape:window-height="1015"
-     id="namedview48"
-     showgrid="false"
-     inkscape:zoom="13.113124"
-     inkscape:cx="36.099529"
-     inkscape:cy="3.9609572"
-     inkscape:window-x="0"
-     inkscape:window-y="0"
-     inkscape:window-maximized="1"
-     inkscape:current-layer="svg46" />
-  <defs
-     id="defs13">
-    <path
-       id="g0-65"
-       d="M0.313823 -0.258032V-0.006974H1.862017V-0.258032C1.673724 -0.258032 1.366874 -0.334745 1.366874 -0.585803C1.366874 -0.760149 1.499377 -0.969365 1.562142 -1.150685C1.652802 -1.366874 1.687671 -1.590037 1.827148 -1.590037H3.724035C3.744956 -1.499377 3.793773 -1.408717 3.828643 -1.318057C3.898381 -1.12279 3.982067 -0.927522 4.05878 -0.732254L4.128518 -0.54396C4.142466 -0.509091 4.14944 -0.481196 4.14944 -0.446326C4.14944 -0.265006 3.835616 -0.258032 3.633375 -0.258032H3.591532V-0.006974H4.442341L4.581818 -0.034869H5.300125L5.558157 -0.006974V-0.258032H5.348941C5.188543 -0.258032 5.028144 -0.265006 4.937484 -0.348692C4.839851 -0.439352 4.811955 -0.564882 4.763138 -0.683437C4.2401 -2.015442 3.717061 -3.354421 3.187049 -4.686426C3.138232 -4.811955 3.11731 -4.979328 2.93599 -4.979328S2.733748 -4.811955 2.684932 -4.6934C2.196762 -3.417186 1.638854 -2.147945 1.17858 -0.857783C0.99726 -0.355666 0.697385 -0.265006 0.313823 -0.258032ZM1.834122 -1.841096L2.726775 -4.100623L3.619427 -1.841096H1.834122Z" />
-    <path
-       id="g1-69"
-       d="M0.328767 -6.784558V-6.475716C0.458281 -6.475716 0.587796 -6.485679 0.707347 -6.485679C1.066002 -6.485679 1.354919 -6.435866 1.354919 -6.03736V-0.747198C1.354919 -0.368618 1.026152 -0.308842 0.687422 -0.308842C0.557908 -0.308842 0.438356 -0.318804 0.328767 -0.318804V-0.009963H6.067248L6.485679 -2.580324H6.236613C6.087173 -1.673724 5.967621 -0.67746 4.881694 -0.398506C4.572852 -0.328767 4.254047 -0.318804 3.935243 -0.318804H2.660025C2.460772 -0.318804 2.241594 -0.33873 2.241594 -0.637609V-3.377335H3.158157C3.506849 -3.377335 3.895392 -3.347447 4.084682 -3.038605C4.204234 -2.82939 4.214197 -2.560399 4.214197 -2.311333V-2.211706H4.463263V-4.851806H4.214197V-4.752179C4.214197 -4.214197 4.094645 -3.785803 3.506849 -3.706102C3.317559 -3.686177 3.128269 -3.686177 2.938979 -3.686177H2.241594V-6.127024C2.241594 -6.465753 2.450809 -6.475716 2.660025 -6.475716H3.855542C4.443337 -6.475716 5.17061 -6.475716 5.559153 -5.947696C5.858032 -5.549191 5.907846 -5.021171 5.967621 -4.542964H6.216687L5.937733 -6.784558H0.328767Z" />
-    <path
-       id="g1-76"
-       d="M0.328767 -6.814446V-6.505604C0.458281 -6.505604 0.587796 -6.515567 0.707347 -6.515567C1.066002 -6.515567 1.354919 -6.465753 1.354919 -6.067248V-0.747198C1.354919 -0.368618 1.026152 -0.308842 0.687422 -0.308842C0.557908 -0.308842 0.438356 -0.318804 0.328767 -0.318804V-0.009963H5.519303L5.798257 -2.580324H5.549191C5.469489 -1.77335 5.339975 -0.617684 4.194271 -0.398506C3.905355 -0.318804 3.616438 -0.318804 3.327522 -0.318804H2.590286C2.391034 -0.33873 2.241594 -0.388543 2.241594 -0.657534V-6.067248C2.241594 -6.465753 2.600249 -6.515567 2.929016 -6.515567C3.038605 -6.515567 3.138232 -6.505604 3.227895 -6.505604H3.516812V-6.814446H0.328767Z" />
-    <path
-       id="g1-84"
-       d="M0.547945 -6.75467L0.358655 -4.513076H0.607721C0.647572 -5.031133 0.67746 -5.738481 0.986301 -6.07721C1.325031 -6.425903 1.892902 -6.455791 2.351183 -6.455791H2.600249C2.86924 -6.455791 3.148194 -6.455791 3.148194 -6.117061V-0.767123C3.148194 -0.368618 2.749689 -0.308842 2.391034 -0.308842C2.261519 -0.308842 2.132005 -0.318804 2.032379 -0.318804H1.703611V-0.009963H5.479452V-0.318804H4.801993C4.41345 -0.318804 4.034869 -0.358655 4.034869 -0.767123V-6.117061C4.034869 -6.405978 4.204234 -6.455791 4.582814 -6.455791H4.83188C5.290162 -6.455791 5.858032 -6.425903 6.196762 -6.07721C6.505604 -5.738481 6.535492 -5.031133 6.575342 -4.513076H6.824408L6.635118 -6.75467H0.547945Z" />
-    <path
-       id="g1-88"
-       d="M0.368618 -6.814446V-6.505604H0.607721C1.046077 -6.505604 1.275218 -6.445828 1.514321 -6.097136L3.247821 -3.486924C3.267746 -3.457036 3.297634 -3.427148 3.297634 -3.387298C3.297634 -3.317559 3.178082 -3.20797 3.138232 -3.118306C2.709838 -2.500623 2.30137 -1.882939 1.872976 -1.255293C1.703611 -1.016189 1.564134 -0.767123 1.315068 -0.597758C1.006227 -0.388543 0.607721 -0.318804 0.239103 -0.318804V-0.009963H2.610212V-0.318804C2.34122 -0.318804 2.002491 -0.458281 2.002491 -0.777086C2.002491 -0.926526 2.102117 -1.026152 2.181818 -1.145704C2.6401 -1.793275 3.068493 -2.450809 3.506849 -3.108344C3.636364 -2.879203 3.795766 -2.660025 3.945205 -2.440847C4.194271 -2.052304 4.4533 -1.673724 4.712329 -1.285181L5.021171 -0.816936C5.061021 -0.757161 5.13076 -0.67746 5.13076 -0.607721C5.100872 -0.408468 4.702366 -0.318804 4.483188 -0.318804V-0.009963H7.232877V-0.318804H6.963885C6.505604 -0.318804 6.286426 -0.408468 6.047323 -0.787049C5.449564 -1.713574 4.782067 -2.620174 4.204234 -3.566625C4.134496 -3.656289 4.084682 -3.765878 4.004981 -3.845579V-3.855542C4.064757 -3.92528 4.11457 -4.004981 4.164384 -4.07472L4.403487 -4.433375C4.652553 -4.801993 4.901619 -5.160648 5.150685 -5.529265C5.32005 -5.788294 5.479452 -6.057285 5.748443 -6.236613C6.057285 -6.445828 6.445828 -6.505604 6.814446 -6.505604V-6.814446H4.433375V-6.505604C4.692403 -6.505604 5.051059 -6.356164 5.051059 -6.047323C5.051059 -5.867995 4.811955 -5.579078 4.662516 -5.379826C4.483188 -5.100872 4.293898 -4.83188 4.104608 -4.552927C4.004981 -4.41345 3.92528 -4.26401 3.815691 -4.134496C3.536737 -4.652553 3.138232 -5.160648 2.809465 -5.668742C2.699875 -5.828144 2.470735 -6.097136 2.470735 -6.216687C2.500623 -6.41594 2.899128 -6.505604 3.118306 -6.505604V-6.814446H0.368618Z" />
-    <path
-       id="g1-101"
-       d="M1.115816 -2.311333H3.985056C4.094645 -2.311333 4.144458 -2.381071 4.144458 -2.49066C4.144458 -3.5467 3.496887 -4.463263 2.381071 -4.463263C1.155666 -4.463263 0.278954 -3.377335 0.278954 -2.191781C0.278954 -1.275218 0.787049 -0.458281 1.663761 -0.059776C1.892902 0.039851 2.161893 0.099626 2.410959 0.099626H2.440847C3.20797 0.099626 3.845579 -0.328767 4.11457 -1.09589C4.124533 -1.125778 4.124533 -1.165629 4.124533 -1.195517C4.124533 -1.265255 4.084682 -1.315068 4.014944 -1.315068C3.865504 -1.315068 3.805729 -0.986301 3.745953 -0.876712C3.496887 -0.438356 3.01868 -0.14944 2.500623 -0.14944C2.132005 -0.14944 1.8132 -0.358655 1.544209 -0.627646C1.145704 -1.085928 1.115816 -1.733499 1.115816 -2.311333ZM1.125778 -2.520548C1.125778 -3.287671 1.534247 -4.244085 2.351183 -4.244085H2.400996C3.377335 -4.154421 3.367372 -3.118306 3.466999 -2.520548H1.125778Z" />
-    <path
-       id="g1-104"
-       d="M0.318804 -6.814446V-6.505604H0.468244C0.836862 -6.505604 1.09589 -6.465753 1.09589 -5.987547V-0.956413C1.09589 -0.886675 1.105853 -0.816936 1.105853 -0.737235C1.105853 -0.358655 0.836862 -0.318804 0.557908 -0.318804H0.318804V-0.009963H2.570361V-0.318804H2.311333C2.032379 -0.318804 1.793275 -0.358655 1.793275 -0.727273V-2.550436C1.793275 -3.267746 2.161893 -4.184309 3.148194 -4.184309C3.785803 -4.184309 3.845579 -3.496887 3.845579 -3.068493V-0.687422C3.845579 -0.348692 3.556663 -0.318804 3.247821 -0.318804H3.068493V-0.009963H5.32005V-0.318804H5.070984C4.801993 -0.318804 4.542964 -0.358655 4.542964 -0.697385V-2.879203C4.542964 -3.20797 4.533001 -3.536737 4.383562 -3.835616C4.144458 -4.273973 3.646326 -4.403487 3.188045 -4.403487C2.610212 -4.403487 1.96264 -4.014944 1.77335 -3.457036L1.763387 -6.924035L0.318804 -6.814446Z" />
-    <path
-       id="g1-105"
-       d="M0.368618 -4.293898V-3.985056H0.557908C0.846824 -3.985056 1.105853 -3.945205 1.105853 -3.486924V-0.727273C1.105853 -0.37858 0.926526 -0.318804 0.328767 -0.318804V-0.009963H2.470735V-0.318804H2.271482C2.012453 -0.318804 1.77335 -0.348692 1.77335 -0.667497V-4.403487L0.368618 -4.293898ZM1.205479 -6.665006C0.956413 -6.635118 0.757161 -6.41594 0.757161 -6.146949C0.757161 -5.858032 1.006227 -5.618929 1.285181 -5.618929C1.554172 -5.618929 1.8132 -5.838107 1.8132 -6.146949C1.8132 -6.435866 1.564134 -6.674969 1.285181 -6.674969C1.255293 -6.674969 1.235367 -6.665006 1.205479 -6.665006Z" />
-    <path
-       id="g1-109"
-       d="M0.318804 -4.293898V-3.985056H0.468244C0.797011 -3.985056 1.09589 -3.955168 1.09589 -3.486924V-0.737235C1.09589 -0.328767 0.816936 -0.318804 0.37858 -0.318804H0.318804V-0.009963H2.570361V-0.318804H2.311333C2.032379 -0.318804 1.793275 -0.358655 1.793275 -0.727273V-2.550436C1.793275 -3.277709 2.191781 -4.184309 3.148194 -4.184309C3.785803 -4.184309 3.855542 -3.526775 3.855542 -3.068493V-0.697385C3.855542 -0.33873 3.556663 -0.318804 3.227895 -0.318804H3.078456V-0.009963H5.330012V-0.318804H5.070984C4.79203 -0.318804 4.552927 -0.358655 4.552927 -0.727273V-2.550436C4.552927 -3.277709 4.951432 -4.184309 5.907846 -4.184309C6.545455 -4.184309 6.615193 -3.526775 6.615193 -3.068493V-0.697385C6.615193 -0.33873 6.316314 -0.318804 5.987547 -0.318804H5.838107V-0.009963H8.089664V-0.318804H7.880448C7.581569 -0.318804 7.312578 -0.348692 7.312578 -0.697385V-2.948941C7.312578 -3.317559 7.292653 -3.646326 7.053549 -3.985056C6.794521 -4.313823 6.366127 -4.403487 5.967621 -4.403487C5.32005 -4.403487 4.79203 -4.024907 4.523039 -3.447073C4.333748 -4.154421 3.88543 -4.403487 3.198007 -4.403487C2.560399 -4.403487 1.952677 -4.004981 1.743462 -3.387298L1.733499 -4.403487L0.318804 -4.293898Z" />
-    <path
-       id="g1-111"
-       d="M2.34122 -4.463263C1.085928 -4.333748 0.278954 -3.277709 0.278954 -2.122042C0.278954 -0.996264 1.165629 0.099626 2.49066 0.099626C3.686177 0.099626 4.692403 -0.876712 4.692403 -2.132005C4.692403 -3.317559 3.795766 -4.473225 2.470735 -4.473225C2.430884 -4.473225 2.381071 -4.463263 2.34122 -4.463263ZM1.115816 -1.892902V-2.331258C1.115816 -3.088418 1.354919 -4.244085 2.480697 -4.244085C3.287671 -4.244085 3.745953 -3.566625 3.835616 -2.809465C3.855542 -2.590286 3.855542 -2.381071 3.855542 -2.161893C3.855542 -1.514321 3.785803 -0.707347 3.148194 -0.33873C2.948941 -0.209215 2.729763 -0.14944 2.500623 -0.14944C1.77335 -0.14944 1.265255 -0.71731 1.155666 -1.494396C1.135741 -1.62391 1.135741 -1.763387 1.115816 -1.892902Z" />
-    <path
-       id="g1-115"
-       d="M1.753425 -4.463263C1.384807 -4.423412 0.996264 -4.353674 0.707347 -4.104608C0.468244 -3.895392 0.328767 -3.556663 0.328767 -3.237858C0.328767 -1.534247 3.098381 -2.500623 3.098381 -1.006227C3.098381 -0.398506 2.550436 -0.119552 2.002491 -0.119552C1.24533 -0.119552 0.737235 -0.657534 0.597758 -1.514321C0.577833 -1.603985 0.56787 -1.693649 0.448319 -1.693649C0.368618 -1.693649 0.328767 -1.633873 0.328767 -1.564134V0.009963C0.33873 0.059776 0.368618 0.089664 0.418431 0.099626H0.438356C0.597758 0.099626 0.757161 -0.268991 0.876712 -0.298879H0.886675C0.966376 -0.298879 1.235367 -0.049813 1.444583 0.019925C1.613948 0.079701 1.793275 0.099626 1.972603 0.099626C2.799502 0.099626 3.58655 -0.33873 3.58655 -1.255293C3.58655 -1.912827 3.108344 -2.450809 2.450809 -2.620174C1.833126 -2.789539 0.816936 -2.789539 0.816936 -3.516812C0.816936 -4.124533 1.484433 -4.273973 1.92279 -4.273973C2.410959 -4.273973 3.088418 -4.004981 3.088418 -3.148194C3.088418 -3.058531 3.098381 -2.978829 3.20797 -2.978829C3.307597 -2.978829 3.347447 -3.058531 3.347447 -3.158157C3.347447 -3.20797 3.337484 -3.257783 3.337484 -3.297634V-4.323786C3.337484 -4.383562 3.307597 -4.463263 3.227895 -4.463263C3.068493 -4.463263 2.968867 -4.214197 2.859278 -4.214197H2.849315C2.769614 -4.214197 2.610212 -4.343711 2.49066 -4.383562C2.311333 -4.443337 2.11208 -4.473225 1.92279 -4.473225C1.863014 -4.473225 1.8132 -4.463263 1.753425 -4.463263Z" />
-  </defs>
-  <use
-     height="100%"
-     width="100%"
-     id="use15"
-     xlink:href="#g1-84"
-     y="0"
-     x="130.22783" />
-  <use
-     height="100%"
-     width="100%"
-     id="use17"
-     xlink:href="#g1-104"
-     y="0"
-     x="137.42131" />
-  <use
-     height="100%"
-     width="100%"
-     id="use19"
-     xlink:href="#g1-105"
-     y="0"
-     x="142.95476" />
-  <use
-     height="100%"
-     width="100%"
-     id="use21"
-     xlink:href="#g1-115"
-     y="0"
-     x="145.7215" />
-  <use
-     height="100%"
-     width="100%"
-     id="use23"
-     xlink:href="#g1-105"
-     y="0"
-     x="152.97031" />
-  <use
-     height="100%"
-     width="100%"
-     id="use25"
-     xlink:href="#g1-115"
-     y="0"
-     x="155.73703" />
-  <use
-     height="100%"
-     width="100%"
-     id="use27"
-     xlink:href="#g1-115"
-     y="0"
-     x="162.98586" />
-  <use
-     height="100%"
-     width="100%"
-     id="use29"
-     xlink:href="#g1-111"
-     y="0"
-     x="166.9146" />
-  <use
-     height="100%"
-     width="100%"
-     id="use31"
-     xlink:href="#g1-109"
-     y="0"
-     x="171.8947" />
-  <use
-     height="100%"
-     width="100%"
-     id="use33"
-     xlink:href="#g1-101"
-     y="0"
-     x="180.19487" />
-  <use
-     height="100%"
-     width="100%"
-     id="use35"
-     xlink:href="#g1-76"
-     y="0"
-     x="187.9417" />
-  <use
-     height="100%"
-     width="100%"
-     id="use37"
-     xlink:href="#g0-65"
-     y="-2.0584431"
-     x="190.58116" />
-  <use
-     height="100%"
-     width="100%"
-     id="use39"
-     xlink:href="#g1-84"
-     y="0"
-     x="194.96648" />
-  <use
-     height="100%"
-     width="100%"
-     id="use41"
-     xlink:href="#g1-69"
-     y="2.1442111"
-     x="200.49957" />
-  <use
-     height="100%"
-     width="100%"
-     id="use43"
-     xlink:href="#g1-88"
-     y="0"
-     x="206.03302" />
-  <use
-     x="162.98586"
-     y="0"
-     xlink:href="#g1-115"
-     id="use875"
-     width="100%"
-     height="100%" />
-  <use
-     height="100%"
-     width="100%"
-     id="use877"
-     xlink:href="#g1-115"
-     y="0"
-     x="162.98586" />
-  <use
-     x="155.73703"
-     y="0"
-     xlink:href="#g1-115"
-     id="use879"
-     width="100%"
-     height="100%" />
-  <use
-     height="100%"
-     width="100%"
-     id="use881"
-     xlink:href="#g1-115"
-     y="0"
-     x="155.73703" />
-  <use
-     x="166.9146"
-     y="0"
-     xlink:href="#g1-111"
-     id="use883"
-     width="100%"
-     height="100%" />
-  <use
-     height="100%"
-     width="100%"
-     id="use885"
-     xlink:href="#g1-111"
-     y="0"
-     x="166.9146" />
-  <use
-     x="166.9146"
-     y="0"
-     xlink:href="#g1-111"
-     id="use887"
-     width="100%"
-     height="100%" />
-  <use
-     height="100%"
-     width="100%"
-     id="use889"
-     xlink:href="#g1-111"
-     y="0"
-     x="166.9146" />
-  <use
-     x="166.9146"
-     y="0"
-     xlink:href="#g1-111"
-     id="use891"
-     width="100%"
-     height="100%" />
-  <use
-     height="100%"
-     width="100%"
-     id="use893"
-     xlink:href="#g1-111"
-     y="0"
-     x="166.9146" />
-</svg>

+ 3 - 2
examples/webgl_loader_svg.html

@@ -101,8 +101,9 @@
 					"Test 7": 'models/svg/tests/7.svg',
 					"Test 8": 'models/svg/tests/8.svg',
 					"Units": 'models/svg/tests/units.svg',
-					"Latex": 'models/svg/tests/testDefs/latexSample.svg',
-					"Svg-defs": 'models/svg/tests/testDefs/Svg-defs.svg'
+					"Svg-defs": 'models/svg/tests/testDefs/Svg-defs.svg',
+					"Svg-defs2": 'models/svg/tests/testDefs/Svg-defs2.svg',
+					"Svg-defs3": 'models/svg/tests/testDefs/Wave-defs.svg'
 
 
 				} ).name( 'SVG File' ).onChange( update );