no you need to calculate the current zoom based on the values:

canvas._drawarea.getDisplayObject()._xscale
and
canvas._drawarea.getDisplayObject().width

Sebastian

2010/10/2 Netbuilder <[email protected]>

>
> Fantastic! it works!
> is there a global var to know the current zoom level (like
> canvas.zoomlevel)?
> Thank you
>
> [email protected] wrote:
> > Hi Filippo,
> >
> > to build the zoom in/out function is very easy.
> >
> > <!--
> >  zoom Whiteboard
> >  z: % of zoom
> >  -->
> > <method name="zoomIt" args="z">
> >  canvas._drawarea.getDisplayObject()._xscale = z;
> >  canvas._drawarea.getDisplayObject()._yscale = z;
> > </method>
> >
> >
> > Sebastian
> >
> $>
>  ¢
> > 2010/10/2 Netbuilder <[email protected]>
> >
> > > Hi again.
> > > Is there a sort of container (ie canvas._layers, ...) that contains
> > > all the object I see in each "this.currentlayer"?
> > >
> > > I'm not yet able to understand where to find the structure of the
> > > project and I feel stupid. I'm sorry, but I have to build the zoom in
> > > and out of the whiteboard objects within 3 days.
> > >
> > > Thank you a lot
> > >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "OpenMeetings User" group.
> > > To post to this group, send email to
> [email protected].
> > > To unsubscribe from this group, send email to
> > > [email protected]<openmeetings-user%[email protected]>
> <openmeetings-user%[email protected]<openmeetings-user%[email protected]>
> >
> > > .
> > > For more options, visit this group at
> > > http://groups.google.com/group/openmeetings-user?hl=en.
> > >
> > >
> >
> >
> > --
> > Sebastian Wagner
> > http://www.webbase-design.de
> > http://openmeetings.googlecode.com
> > http://www.wagner-sebastian.com
> $$> [email protected]¢¢
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<openmeetings-user%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/openmeetings-user?hl=en.
>
>


-- 
Sebastian Wagner
http://www.webbase-design.de
http://openmeetings.googlecode.com
http://www.wagner-sebastian.com
[email protected]

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-user?hl=en.

Reply via email to