Re: FlexJS hitTestPoint

2016-07-27 Thread Alex Harui
On 7/27/16, 11:03 PM, "Harbs" wrote: >The other piece of this is stage.getObjectsUnderPoint. > >It would be nice to wrap that as well. The question is where to do that. >HTMLElementWrapper as well? What about getting global objects? There’s no >“stage” is there? IMO, hitTestPoint and getObject

Re: FlexJS hitTestPoint

2016-07-27 Thread Harbs
The other piece of this is stage.getObjectsUnderPoint. It would be nice to wrap that as well. The question is where to do that. HTMLElementWrapper as well? What about getting global objects? There’s no “stage” is there? On Jul 28, 2016, at 8:58 AM, Harbs wrote: > Any suggestions on how to imp

Re: FlexJS hitTestPoint

2016-07-27 Thread Harbs
Any suggestions on how to implement this? Should we just add a hitTestPoint function to HTMLElementWrapper that behaves like the Flash version? I’m not sure what to do about the shape flag. I think the HTML version takes shape into account automatically. On Jul 28, 2016, at 8:46 AM, Alex Harui

Re: FlexJS hitTestPoint

2016-07-27 Thread Alex Harui
On 7/27/16, 10:40 PM, "Harbs" wrote: >I just found this: >http://stackoverflow.com/questions/8813051/determine-which-element-the-mou >se-pointer-is-on-top-of-in-javascript > >Seems pretty straight-forward. That points to [2], which has the following snippet: "If the specified point is outside

Re: FlexJS hitTestPoint

2016-07-27 Thread Harbs
I just found this: http://stackoverflow.com/questions/8813051/determine-which-element-the-mouse-pointer-is-on-top-of-in-javascript Seems pretty straight-forward. On Jul 28, 2016, at 8:38 AM, Alex Harui wrote: > > > On 7/27/16, 10:34 PM, "Harbs" wrote: > >> Is there some equivalent to hitTes

Re: FlexJS hitTestPoint

2016-07-27 Thread Alex Harui
On 7/27/16, 10:34 PM, "Harbs" wrote: >Is there some equivalent to hitTestPoint in FlexJS? > >I need to find an object under a mouse event location. Is there something >already, and if not, any suggestions on how to go about implementing it? AFAIK, we haven't done anything for that. Is there a

FlexJS hitTestPoint

2016-07-27 Thread Harbs
Is there some equivalent to hitTestPoint in FlexJS? I need to find an object under a mouse event location. Is there something already, and if not, any suggestions on how to go about implementing it? Harbs

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-27 Thread Alex Harui
On 7/27/16, 1:27 PM, "Harbs" wrote: >>>The only class which still subclasses Sprite is Application. I don’t >>>know >>> a way around that. >> >> One idea is that, since developer code never instantiates an Application >> (only the framework does) that Application could be an interface. The >>

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-27 Thread Harbs
On Jul 27, 2016, at 10:42 PM, Alex Harui wrote: > > > On 7/27/16, 12:20 PM, "Harbs" wrote: > >> Yes. It was a significant change. You can see what I did on the >> “refactor-sprite” branch. >> >> I spent the whole day on this. I just committed the last change to make >> all the projects comp

Re: AW: [FLEXJS, TYPEDEFS]

2016-07-27 Thread Greg Dove
Lastly Chris, after running through the maven build steps, I then built using 'ant all' inside flex-asjs (which completed fine), then started to follow the maven build sequence again after that. Compiler and typedefs seemed fine, but I got a face-full of rat on the framework build. I added: temp

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-27 Thread Alex Harui
On 7/27/16, 12:20 PM, "Harbs" wrote: >Yes. It was a significant change. You can see what I did on the >“refactor-sprite” branch. > >I spent the whole day on this. I just committed the last change to make >all the projects compile with no errors. (I did not test the examples.) > >I changed 4 bas

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-27 Thread Josh Tynjala
As I understand it, that's why they made it open source. To allow community contributions. - Josh On Wed, Jul 27, 2016 at 11:34 AM, Alex Harui wrote: > > > On 7/27/16, 10:57 AM, "Josh Tynjala" wrote: > > >It's worth mentioning that IntelliJ IDEA doesn't respect [Exclude] > >metadata. > > Thank

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-27 Thread Harbs
Yes. It was a significant change. You can see what I did on the “refactor-sprite” branch. I spent the whole day on this. I just committed the last change to make all the projects compile with no errors. (I did not test the examples.) I changed 4 base classes: HTMLElementWrapper, CSSShape, Butto

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-27 Thread Alex Harui
On 7/27/16, 10:57 AM, "Josh Tynjala" wrote: >It's worth mentioning that IntelliJ IDEA doesn't respect [Exclude] >metadata. Thanks for that. I wonder if other IDEs handle it. IntelliJ made their Flex support open-source, could we fix that if we need to? -Alex

Re: AW: [FLEXJS, TYPEDEFS]

2016-07-27 Thread Greg Dove
Hi Chris, I wasn't suggesting to remove the rat support, I can see for sure how that would be useful, I just didn't know how (yet) I needed to address the issues I had. I just followed the instructions on a fresh setup and the build completed fine for the 3 main parts. I did see this in the comp

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-27 Thread Josh Tynjala
It's worth mentioning that IntelliJ IDEA doesn't respect [Exclude] metadata. - Josh On Wed, Jul 27, 2016 at 10:42 AM, Alex Harui wrote: > > > On 7/27/16, 1:14 AM, "Harbs" wrote: > > >I’m running into lots of issues with the fact that HTMLElementWrapper > >extends Sprite. The underlying problem

Re: [FlexJS] HTMLElementWrapper extending Sprite

2016-07-27 Thread Alex Harui
On 7/27/16, 1:14 AM, "Harbs" wrote: >I’m running into lots of issues with the fact that HTMLElementWrapper >extends Sprite. The underlying problem is because all the native Flash >properties and methods are being exposed to the compiler for all >sub-classed objects. > >For my port this is causi

Re: Changed svg namespace

2016-07-27 Thread Alex Harui
Copy/pasting from several posts... On 7/27/16, 2:09 AM, "Harbs" wrote: >Thinking about this some more, I think an svg should have a different API. > >SVG elements should inherit from UIBase and have the full capabilities >For one, I’m not sure primitives should implement beads. UIBase also >make

[OT] Google splits Angular2 into a TypeScript and Dart framework

2016-07-27 Thread OK
Sorry for the OT, perhaps this is interesting for somebody: I've just notice that Google splits Angular2 into a TypeScript and a pure Dart version including creating a dedicated AngularDart team: http://news.dartlang.org/2016/07/angulardart-is-going-all-dart.html http://angularjs.blogspot.de/2016

Re: Changed svg namespace

2016-07-27 Thread Harbs
Thinking about this some more, I think an svg should have a different API. SVG elements should inherit from UIBase and have the full capabilities For one, I’m not sure primitives should implement beads. UIBase also makes a lot of assumptions based on normal DOM elements. SVG has quite a few attri

Re: Changed svg namespace

2016-07-27 Thread yishayw
I propose to have a single class. It could have a get drawnElement():WrappedHTMLElement which the transform bead, or other clients, would reference when interested in DOM manipulation. The condition would be implemented once there. Again, this is assuming wrapping in doesn't somehow make it a can

Re: Changed svg namespace

2016-07-27 Thread Harbs
How do you propose merging them? Do you mean to have a single class that figures out what markup to use based on what it’s added to? Or do you mean have two separate classes which are determined in MXML? There’s probably going to have to be a lot of conditional code to deal with a single class

Re: Changed svg namespace

2016-07-27 Thread yishayw
Unless Rect and RectComponent have different APIs I would elect to merge them. We don't want to make the client think too much on what s/he should use. If we change IUIBase.addedToParent() to IUIBase.addedToParent(parent:IUIBase) we can probably make the necessary adjustments there. That also work

[FlexJS] HTMLElementWrapper extending Sprite

2016-07-27 Thread Harbs
I’m running into lots of issues with the fact that HTMLElementWrapper extends Sprite. The underlying problem is because all the native Flash properties and methods are being exposed to the compiler for all sub-classed objects. For my port this is causing two issues: 1. It’s hard to find all the

Re: Changed svg namespace

2016-07-27 Thread Harbs
I prefer to make things a little more explicit: would be would be would be would be would do drawRect() on the containing canvas would be and drawRect() would be drawCircle() on the containing canvas would be and drawCircle() I’m not sold on the names. Maybe something like WrappedR