svghmi/geometry.ysl2
branchsvghmi
changeset 2939 4296ab974d4d
parent 2904 92d115d8828d
child 2940 034b6ce4f885
equal deleted inserted replaced
2938:1379cd5c69dd 2939:4296ab974d4d
     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 reflect:geometry;
    10 debug:geometry;
    11 
    11 
    12 // Debug data
    12 // Debug data
    13 template "reflect:geometry", mode="debug" {
    13 template "debug:geometry", mode="debug" {
    14     | ID, x, y, w, h
    14     | ID, x, y, w, h
    15     foreach "$geometry"
    15     foreach "$geometry"
    16         |  «@Id» «@x» «@y» «@w» «@h»
    16         |  «@Id» «@x» «@y» «@w» «@h»
    17 }
    17 }
    18 
    18