its necessary to calculate the boundingbox of the line-object.
If you draw something on the whiteboard the object is relative drawn to the ORIGIN of the whiteboard.
In order to select the object later on I need to know the *virtual box* the boundingbox of the object.
Example:
Initial ULine (Origin): x1=400,y1=400, x2:500,y2:500
=> Bounding Box: x:400,y:400,width:100,height:100
ULine-Object: x1:0,y1:0, x2:100, y2:100
minx/miny is necessary to calc the shift of the object to its actual position.
Sebastian
2011/6/27 Guillaume
<guigui...@gmail.com>
Ok, its at the beginning of the method endUline, you have :
"Get Bounds of that object"
var minx = this.width+2;
var miny = this.height+2;
and after :
" this.currentlayer = new lz.drawViewNew(this,{
name:tempName,x:minx-1-(this.currentulinelineWidth,
y:miny-1-(this.currentulinelineWidth),
width:(width+this.currentlinelineWidth),
height:(width+this.currentlinelineWidth),
opacity:this.currentulineOpacity}); "
I don't know if theses variables are responsible of the shifting of the Uline or maybe the update of variables x1,y1,x2,y2.
This is my question.
Any idea about that ?
Thanks
--
You received this message because you are subscribed to the Google Groups "OpenMeetings User" group.
To view this discussion on the web visit https://groups.google.com/d/msg/openmeetings-user/-/g5F_MWuqn-0J.
To post to this group, send email to openmeet...@googlegroups.com.
To unsubscribe from this group, send email to openmeetings-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openmeetings-user?hl=en.
--
Sebastian Wagner
http://www.webbase-design.dehttp://openmeetings.googlecode.com
http://www.wagner-sebastian.comseba....@gmail.com