svghmi/geometry.ysl2
branchsvghmi
changeset 3199 1582753e409b
parent 3165 2db69e2c5673
child 3625 bb1eff4091ab
--- a/svghmi/geometry.ysl2	Tue Mar 23 14:09:55 2021 +0100
+++ b/svghmi/geometry.ysl2	Thu Mar 25 10:13:12 2021 +0100
@@ -5,7 +5,9 @@
 // This retrieves geometry obtained through "inkscape -S"
 // already parsed by python and presented as a list of
 // <bbox x="0" y="0" w="42" h="42">
-const "geometry", "ns:GetSVGGeometry()";
+const "all_geometry", "ns:GetSVGGeometry()";
+const "defs", "//svg:defs/descendant-or-self::svg:*";
+const "geometry", "$all_geometry[not(@Id = $defs/@id)]";
 
 // Debug data
 emit "debug:geometry" {