ocanvas icon indicating copy to clipboard operation
ocanvas copied to clipboard

Make it possible to get dimensions of all display-objects

Open yckart opened this issue 11 years ago • 4 comments

Sometimes it is needed to get the actual width and/or height of an arc or pylogon but it seems, that the dimension are always 0.

yckart avatar Apr 15 '13 09:04 yckart

Objects like arc and polygon don't really have a width/height, but their bounding boxes have. I have actually started work on getting bounding boxes for all objects, so then you could get the bounding box for an object, and then get width/height of that.

koggdal avatar Apr 15 '13 09:04 koggdal

Yeh, ok, good to know! A bit of documentation about using bounding boxes and how to handle them would be nice...

yckart avatar Apr 15 '13 13:04 yckart

Yeah well since it's not implemented yet, I can't really have documentation for it :)

koggdal avatar Apr 15 '13 13:04 koggdal

Hrr hrr :) Ok I stay tuned!

yckart avatar Apr 15 '13 13:04 yckart