[PyX-devel] [PATCH 2/2] example for deco.insert()

2012-05-29 Thread Michael J Gruber
From: Michael J Gruber Signed-off-by: Michael J Gruber --- examples/drawing2/INDEX | 1 + examples/drawing2/canvasdeco.py | 17 + examples/drawing2/canvasdeco.txt | 11 +++ 3 files changed, 29 insertions(+) create mode 100644 examples/drawing2/canvasdeco.py

[PyX-devel] [PATCH 1/2] deco: introduce decoration by a canvas

2012-05-29 Thread Michael J Gruber
From: Michael J Gruber deco.insert() inserts a canvas as a decoration. This allows arbitrary decorations which are constructed out of a fixed canvas which is then inserted (and, possibly, rotated absolutely or relatively) at the specified position on the path. --- As a next step one could reimple

[PyX-devel] [PATCH] deco.arrow: fix arrows at pos=0

2012-05-29 Thread Michael J Gruber
The arrowhead needs a piece of size "size" of the path for its construction. Therefore, only (arclen-size) of the path is available as positions for a head without extending the path. So, change pos=0 to mean a position at arclenpos=size, and introduce the necessary additional path exclusions for