scaleFactor strangeness

Monte Goulding monte at
Wed Oct 14 04:21:41 EDT 2015

> On 14 Oct 2015, at 5:57 pm, Mark Waddingham <mark at> wrote:
> The first is that all co-ordinates from a script point of view in the engine are integers, rather than floating point. This becomes important when you are starting to talk about transformations - for example scaling down an object of width 9 by a factor of 2 means the object's width is 4.5. So in this scenario the rect of an object within a scaled group would be inaccurate with how things are currently.
> The second is that the current script's co-ordinate model is such that all co-ordinates are relative to the top-left of the current card rather than the owning group.

Don’t both of these issues disappear if you create a stack view object instead of group scalefactor? Given a stack which already has a scaleFactor? Object rects remain relative to the stack whether the stack is presented as a window or in a view. From the perspective of the stack with the window it would just have a single view object which has a stackName and a rect.. perhaps some other stuff like visible etc...



More information about the use-livecode mailing list