From edc96ecf4f431caf0e72a4f164a109f0281e28d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Mon, 30 Aug 2004 17:03:22 +0000 Subject: [PATCH] apply deformers when drawing a path. Note that it is not clear whether we first apply a trafo and then a deformer or vice versa git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@1859 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/canvas.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyx/canvas.py b/pyx/canvas.py index fc16566a..95c0a59f 100644 --- a/pyx/canvas.py +++ b/pyx/canvas.py @@ -30,7 +30,7 @@ with their attributes. """ import sys, cStringIO, time -import attr, base, bbox, deco, unit, prolog, style, trafo, version +import attr, base, bbox, deco, deformer, unit, prolog, style, trafo, version # temporarily needed for pdf fonts import zlib @@ -215,7 +215,10 @@ class _canvas(base.canvasitem): """ attrs = attr.mergeattrs(attrs) - attr.checkattrs(attrs, [deco.deco, style.fillstyle, style.strokestyle, trafo.trafo_pt]) + attr.checkattrs(attrs, [deco.deco, deformer.deformer, style.fillstyle, style.strokestyle, trafo.trafo_pt]) + + for adeformer in attr.getattrs(attrs, [deformer.deformer]): + path = adeformer.deform(path) for t in attr.getattrs(attrs, [trafo.trafo_pt]): path = path.transformed(t) -- 2.11.4.GIT