[Drawkit] Changing margins does not shift drawing objects
Graham Cox
graham.cox at bigpond.com
Wed Jul 9 18:41:21 PDT 2008
Turns out this is a bit more involved than it seemed at first. I do
think it should be done this way, but to save time I've done it by
using the "changed margins" notification to shift the objects for now.
I've added a method that will iterate over the objects and apply a
transform to each - applications could use this to perform scaling if
they wanted. I'm using this method to implement the margin shift.
I'll work in a proper solution when there's more time to do it.
cheers, Graham
On 9 Jul 2008, at 10:41 am, Graham Cox wrote:
> I'll need to look into the most efficient way to do this, which I
> think is probably to manipulate the container transform supplied by
> the layer to include this origin. This would avoid the need to
> iterate over the objects and change their position property.
More information about the Drawkit
mailing list