diff -r ea4a61b4a325 -r 2db69e2c5673 svghmi/geometry.ysl2 --- a/svghmi/geometry.ysl2 Thu Feb 25 11:22:10 2021 +0100 +++ b/svghmi/geometry.ysl2 Fri Feb 26 10:00:14 2021 +0100 @@ -131,12 +131,13 @@ } } +const "groups", "/svg:svg | //svg:g"; + // return overlapping geometry for a given element // all intersercting element are returned // except groups, that must be contained to be counted in def "func:overlapping_geometry" { param "elt"; - const "groups", "/svg:svg | //svg:g"; const "g", "$geometry[@Id = $elt/@id]"; const "candidates", "$geometry[@Id != $elt/@id]"; result """$candidates[(@Id = $groups/@id and (func:intersect($g, .) = 9)) or