svghmi/geometry.ysl2
branchsvghmi
changeset 2940 034b6ce4f885
parent 2939 4296ab974d4d
child 3165 2db69e2c5673
equal deleted inserted replaced
2939:4296ab974d4d 2940:034b6ce4f885
     5 // This retrieves geometry obtained through "inkscape -S"
     5 // This retrieves geometry obtained through "inkscape -S"
     6 // already parsed by python and presented as a list of
     6 // already parsed by python and presented as a list of
     7 // <bbox x="0" y="0" w="42" h="42">
     7 // <bbox x="0" y="0" w="42" h="42">
     8 const "geometry", "ns:GetSVGGeometry()";
     8 const "geometry", "ns:GetSVGGeometry()";
     9 
     9 
    10 debug:geometry;
       
    11 
       
    12 // Debug data
    10 // Debug data
    13 template "debug:geometry", mode="debug" {
    11 emit "debug:geometry" {
    14     | ID, x, y, w, h
    12     | ID, x, y, w, h
    15     foreach "$geometry"
    13     foreach "$geometry"
    16         |  «@Id» «@x» «@y» «@w» «@h»
    14         |  «@Id» «@x» «@y» «@w» «@h»
    17 }
    15 }
    18 
    16