[Laszlo-dev] scaling the coordinate system of a drawview
Max Carlson
max at openlaszlo.org
Mon Nov 12 12:31:57 PST 2007
Right now, now resizing a view causes it to clip the canvas to the same
size. We might want to add a 'resizable' option to drawview that turns
this behavior off, if only to address this issue:
http://jira.openlaszlo.org/jira/browse/LPP-4836
If you're going to be DHTML-only, you can use the scaling APIs directly:
http://developer.mozilla.org/en/docs/Canvas_tutorial:Transformations#Scaling
<method event="oncontext" args="c">
this.context.scale(0.75,0.75);
...
</method>
It would be great to expose scaling in a cross-runtime way, perhaps via
stretches. Canvas scaling looks a lot like the movieclip scaling APIs...
Henry Minsky wrote:
> Is there a good way to scale the coordinate system of a drawview, so
> that everything appears magnified?
> Is there a general way to set the transformation matrix of the
> drawview? (I'm guessing no, due to DHTML limitations?)
>
>
>
>
>
--
Regards,
Max Carlson
OpenLaszlo.org
More information about the Laszlo-dev
mailing list