Open GoogleCodeExporter opened 9 years ago
Original comment by steveonjava
on 25 Jun 2008 at 6:35
Comment from Michael:
You might reimplement that leaving the existing methods in place and
creating new methods with the boolean nonRectangularScale parameter.
The existing methods forward to the new ones.
In general boolean flags in methods are kind of icky, but I guess
Piccolo already has some.
Original comment by steveonjava
on 26 Jun 2008 at 9:38
Original comment by steveonjava
on 2 Jul 2008 at 12:28
Original comment by steveonjava
on 3 Jul 2008 at 5:05
As I understand the above code, this would set a different scale on the X and Y
axis.
Then (unless I misunderstood the code) I completely agree that this should be
done in
an extra method, leaving the existing method in place because it dramatically
changes
its behaviour (and would surely break some existing client code).
In addition, I may suggest to add other setScaleX() and setScaleY() methods in
most
components that can be scaled...
At the moment, only setScale(double) is available... sometimes setScale(double,
double) can be used... But having convenience method that only set the scale on
one
particular axis could be fine...
I have written the code already for some nodes, I can provide support/diff to
help
supporting "non isomorphic" scaling.
Original comment by lionel.v...@gmail.com
on 10 Jul 2009 at 3:53
Although I think this does allow for maximum flexibility, I can't help but
wonder if
the payoffs are not worth it. The very concept of node's scale becomes
meaningless if
this change is allowed.
If we make the suggested changes and then set the X scale of a node to 10 and
the y
scale to 1, what should getScale() return? I'm not sure there's a meaningful
response
to the question.
I'd hate to lose such a simple concept at the cost of most flexibility, without
gaining a compelling new use case.
Thoughts?
Original comment by allain.lalonde
on 5 Aug 2009 at 12:54
I vote for moving this to Milestone-2.0
Original comment by heue...@gmail.com
on 9 Oct 2009 at 4:06
Deferring to Milestone-2.0 per email from Steve.
Original comment by heue...@gmail.com
on 27 Oct 2009 at 1:02
Isn't it possible to use a non-rectangular view scale transform via
setViewTransform? Does this break any of the assumptions in Piccolo2D?
Original comment by heue...@gmail.com
on 24 Aug 2010 at 3:01
Yes. Possible. And it does break some things.
The definition of PNode#getScale() just applies the transform to a unit length
and compares the transformed length to the original. So having arbitrary
transforms would break that function.
Original comment by allain.lalonde
on 24 Aug 2010 at 6:29
Reverting back to New status
Original comment by heue...@gmail.com
on 31 Aug 2012 at 8:19
Original comment by heue...@gmail.com
on 31 Aug 2012 at 8:20
Original comment by heue...@gmail.com
on 31 Aug 2012 at 8:22
Original comment by heue...@gmail.com
on 26 Nov 2013 at 11:22
Original issue reported on code.google.com by
steveonjava
on 24 Jun 2008 at 7:54