Re: SWF Graphics api emulation -WIP

2020-01-28 Thread Alex Harui
Mainly for the record, the only other implementation that came to mind (and I rejected) was to track marked things. Something like: /** add a child */ public function addElement(element:IUIBase); /** add an internal child */ public function addInternalElement(element:IUIBase,

Re: SWF Graphics api emulation -WIP

2020-01-28 Thread Greg Dove
@Alex - yeah, I was just curious if there could be a sneaky way to keep it to the single level. If not, then so be it. That was only for the UIGraphicsBase class, which I was pretty much using like 'flash.display.Shape' for testing. Anyhow, the Graphics emulation can be used with anything that

Re: SWF Graphics api emulation -WIP

2020-01-28 Thread Greg Dove
Hi Carlos, What I added is intended mainly useful for emulation purposes, either for easier migration of code that uses that approach in Flex, or the convenience of a familiar api in certain circumstances. It provides a close approximation of (most of) the swf drawing api, but it may only be

Re: SWF Graphics api emulation -WIP

2020-01-28 Thread Alex Harui
On 1/28/20, 1:01 AM, "Carlos Rovira" wrote: Hi again :), I still didn't see the code, but was imagining how I'd like to use this feature. Some thoughts: 1.- Could be possible to have it as a bead for UIBase components a side of the UIGraphicBase that

Re: SWF Graphics api emulation -WIP

2020-01-28 Thread Carlos Rovira
Hi again :), I still didn't see the code, but was imagining how I'd like to use this feature. Some thoughts: 1.- Could be possible to have it as a bead for UIBase components a side of the UIGraphicBase that could still be convenient for some cases? <-- This could be a custom bead

Re: SWF Graphics api emulation -WIP

2020-01-28 Thread Carlos Rovira
Hi Greg, very cool! :) Hope to play with it very soon :) Do you plan to add your "graphics browser example" to examples? Thanks for working on this! :) Carlos El mar., 28 ene. 2020 a las 3:28, Greg Dove () escribió: > FYI, I just pushed the WIP on that. > > to use it in code, there is a

Re: SWF Graphics api emulation -WIP

2020-01-27 Thread Greg Dove
FYI, I just pushed the WIP on that. to use it in code, there is a UIGraphicsBase target. I'm still not happy with that, so it could change over time. At the moment the svg 'child' in javascript that is used as the 'rendered output' participates in the child element count for that class. Ideally

Re: SWF Graphics api emulation -WIP

2020-01-20 Thread Greg Dove
Thanks for checking that, Carlos. I think it should be quick to add this to Royale after I am back from vacation. On Mon, 20 Jan 2020, 01:21 Carlos Rovira, wrote: > Hi Greg, > > awesome work! Hope you can get ANT working soon. Although I think is not > required and you can get to that at a

Re: SWF Graphics api emulation -WIP

2020-01-19 Thread Carlos Rovira
Hi Greg, awesome work! Hope you can get ANT working soon. Although I think is not required and you can get to that at a later time when you have the time. I think the most important thing is not break maven/ant builds and not affect current code. Saving that, I think is safe to commit the work,

Re: SWF Graphics api emulation -WIP

2020-01-18 Thread Greg Dove
Just quickly, to add to the list at the bottom of the last email another thing you can do is download the rendered svg. It should open in Inkscape or Illustrator. I have been mainly using Inkscape to check that, I think it is more accurate in terms of conforming with svg spec. On Sun, Jan

SWF Graphics api emulation -WIP

2020-01-18 Thread Greg Dove
Just a quick update on where I am at with the above. I was hoping to get the the current code for this in before I go on vacation for the next week, but I won't be able to do that (I need to work through the build side of things, I have only got maven working so far). I have been focused recently