You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by OmPrakash Muppirala <bi...@gmail.com> on 2015/06/17 22:19:31 UTC
[FlexJS] JS.swc does not seem to have any SVG* element defintions
Michael,
I thought that you had added these definitions in JS.swc. At least I
remember seeing a screenshot with all the SVG related classes. Any chance
you can take a look and see what's happening?
Now that I have everything working on Flash Builder, I want to build a
couple of really cool demo apps.
Thanks,
Om
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Alex Harui <ah...@adobe.com>.
On 6/17/15, 3:22 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com> wrote:
>
>>
>>
>> On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com>
>>wrote:
>>
>> >Ah this is a nasty file to deal with, it's generated from IDL and has
>> >10,000 lines with massive interfaces that have to have their prototypes
>> >transformed to get/set.
>>
>> I’m not sure I understand the part about prototype transformation. I
>>only
>> saw one get/set pair that could be a property. Lots of .setXXX calls
>>take
>> multiple parameters. Does it make it easier if you don’t have to do the
>> transformation?
>>
>>
>Alex, if you have a SVGFoo.prototype.fooBar and SVGFooable defines fooBar,
>the actual class needs to be get/set not var because the class declares
>implements SVGFooable.
>
>Catch my dirft? I do this already with all existing interfaces. It's just
>SVG is a mess and has a huge amount of interfaces.
And this is why Om and I think you can do it ;-)
-Alex
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Michael Schmalle <te...@gmail.com>.
On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>
> >Ah this is a nasty file to deal with, it's generated from IDL and has
> >10,000 lines with massive interfaces that have to have their prototypes
> >transformed to get/set.
>
> I’m not sure I understand the part about prototype transformation. I only
> saw one get/set pair that could be a property. Lots of .setXXX calls take
> multiple parameters. Does it make it easier if you don’t have to do the
> transformation?
>
>
Alex, if you have a SVGFoo.prototype.fooBar and SVGFooable defines fooBar,
the actual class needs to be get/set not var because the class declares
implements SVGFooable.
Catch my dirft? I do this already with all existing interfaces. It's just
SVG is a mess and has a huge amount of interfaces.
Mike
> If you can get this file to convert to AS even procedurally, I’ll find a
> way to get it into the build and JS.swc.
>
> >
> >Who thinks I can do this? Haha
>
> If there is anyone who can do it, it would be you ;-)
>
> -Alex
>
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Alex Harui <ah...@adobe.com>.
Awesome! I’ll add svg.js to the build script.
On 6/18/15, 4:14 AM, "Michael Schmalle" <te...@gmail.com> wrote:
>HAHA!
>
>I got the SWC to compile all SVG with only adding these excludes;
>
>config.addExclude("SVGStylable", "className");
>config.addExclude("SVGStylable", "style");
>config.addExclude("SVGLocatable", "farthestViewportElement");
>config.addExclude("SVGLocatable", "nearestViewportElement");
>
>The all 200+ errors boiled down to just these conflicts, that is what I
>get
>for trying to code after ripping out a bathtub and sheetrock. :)
>
>So ALEX, the only thing we need now to have this included in the JS.swc is
>getting it locally to compile, I don't know the rules, so this is in your
>court.
>
>Mike
>
>
>
>
>
>On Thu, Jun 18, 2015 at 6:01 AM, Michael Schmalle
><teotigraphixllc@gmail.com
>> wrote:
>
>> @Om code completion stopping has to be a FB things, really nothing to do
>> with the SWC am pretty sure.
>>
>> @Fred The thing that is missing is properties on an interface in SVG.
>>
>> So the properties problem. There are conflicts with SVG super classes
>> where say Element.style is defined as CSSStyleDeclaration and SVGElement
>> implements SVGStylable and overloads it's type.
>>
>> As we all know we can't do this, so the only option to clear this up is
>> for me to go through the massive interface conflicts and add the
>>interface
>> properties as excluded in the compile.
>>
>> @Alex, we still need this file locally during compile, you have a
>>solution
>> for that?
>>
>> Mike
>>
>>
>>
>>
>>
>> On Wed, Jun 17, 2015 at 10:00 PM, Frédéric THOMAS
>><webdoublefx@hotmail.com
>> > wrote:
>>
>>> That's funny, I was playing with JS.swc and wanted to start doing
>>>things
>>> with svg too but didn't find any of its classes, so, I was about to use
>>> CanvasRenderingContext2D but seen our components are done using svg, I
>>> returned on my email to ask about svg in JS.swc and realized it wasn't
>>> updated, refreshed and seen your very great example Om.
>>>
>>> I won't do better, at least for tonight, will anyway test quickly your
>>> new JS.swc version Mike.
>>>
>>> Thanks,
>>> Frédéric THOMAS
>>>
>>>
>>> ----------------------------------------
>>> > From: aharui@adobe.com
>>> > To: dev@flex.apache.org
>>> > Subject: Re: [FlexJS] JS.swc does not seem to have any SVG* element
>>> defintions
>>> > Date: Thu, 18 Jun 2015 00:40:24 +0000
>>> >
>>> > Sweet!
>>> >
>>> > On 6/17/15, 5:31 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>>> wrote:
>>> >
>>> >>It works for the most part! At some point, the code completion
>>>stopped
>>> >>working. I am not able to get it back now.
>>> >>
>>> >>But, the good news, here is an interactive US built completely in
>>> >>ActionScript3!
>>> >>
>>> >>Working demo: http://bigosmallm.github.io/flexjs/mapexample/
>>> >>AS3 code: https://gist.github.com/bigosmallm/824147f7c439c584a09b
>>> >>JS code: Who cares? ;-)
>>> >>
>>> >>I will spend some more time building something nicer over the next
>>>day
>>> or
>>> >>so.
>>> >>
>>> >>Thanks,
>>> >>Om
>>> >>
>>> >>On Wed, Jun 17, 2015 at 3:53 PM, OmPrakash Muppirala
>>> >><bi...@gmail.com>
>>> >>wrote:
>>> >>
>>> >>> On Wed, Jun 17, 2015 at 3:20 PM, Michael Schmalle <
>>> >>> teotigraphixllc@gmail.com> wrote:
>>> >>>
>>> >>>> Well I got it to compile on one condition. I had to turn on the
>>>emit
>>> >>>>props
>>> >>>> and methods for the interfaces.
>>> >>>>
>>> >>>> The actual classes themselves have all the definitions. There are
>>> major
>>> >>>> conflicts with the SVG* interfaces and some base stuff.
>>> >>>>
>>> >>>> Example; Element.style is CSSStyleDeclaration, in SVG it
>>>redeclares
>>> >>>>this
>>> >>>> on
>>> >>>> SVGStylable as a different type.
>>> >>>>
>>> >>>> So Om, I compiled the SWC and just put it on my server for you to
>>> try,
>>> >>>> before I commit anything, you need to see if it works the way you
>>> need.
>>> >>>>
>>> >>>> http://www.teotigraphix.com/assets/JS.swc
>>> >>>>
>>> >>>>
>>> >>> Great! I am on it.
>>> >>>
>>> >>> Thanks,
>>> >>> Om
>>> >>>
>>> >>>
>>> >>>> Mike
>>> >>>>
>>> >>>>
>>> >>>> On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com>
>>> wrote:
>>> >>>>
>>> >>>>>
>>> >>>>>
>>> >>>>> On 6/17/15, 2:47 PM, "Michael Schmalle"
>>><te...@gmail.com>
>>> >>>> wrote:
>>> >>>>>
>>> >>>>>>Ah this is a nasty file to deal with, it's generated from IDL and
>>> >>>>has
>>> >>>>>>10,000 lines with massive interfaces that have to have their
>>> >>>>prototypes
>>> >>>>>>transformed to get/set.
>>> >>>>>
>>> >>>>> I’m not sure I understand the part about prototype
>>>transformation. I
>>> >>>> only
>>> >>>>> saw one get/set pair that could be a property. Lots of .setXXX
>>>calls
>>> >>>> take
>>> >>>>> multiple parameters. Does it make it easier if you don’t have to
>>>do
>>> >>>>the
>>> >>>>> transformation?
>>> >>>>>
>>> >>>>> If you can get this file to convert to AS even procedurally, I’ll
>>> >>>>find a
>>> >>>>> way to get it into the build and JS.swc.
>>> >>>>>
>>> >>>>>>
>>> >>>>>>Who thinks I can do this? Haha
>>> >>>>>
>>> >>>>> If there is anyone who can do it, it would be you ;-)
>>> >>>>>
>>> >>>>> -Alex
>>> >>>>>
>>> >>>>>
>>> >>>>
>>> >>>
>>> >>>
>>> >
>>>
>>>
>>
>>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Michael Schmalle <te...@gmail.com>.
HAHA!
I got the SWC to compile all SVG with only adding these excludes;
config.addExclude("SVGStylable", "className");
config.addExclude("SVGStylable", "style");
config.addExclude("SVGLocatable", "farthestViewportElement");
config.addExclude("SVGLocatable", "nearestViewportElement");
The all 200+ errors boiled down to just these conflicts, that is what I get
for trying to code after ripping out a bathtub and sheetrock. :)
So ALEX, the only thing we need now to have this included in the JS.swc is
getting it locally to compile, I don't know the rules, so this is in your
court.
Mike
On Thu, Jun 18, 2015 at 6:01 AM, Michael Schmalle <teotigraphixllc@gmail.com
> wrote:
> @Om code completion stopping has to be a FB things, really nothing to do
> with the SWC am pretty sure.
>
> @Fred The thing that is missing is properties on an interface in SVG.
>
> So the properties problem. There are conflicts with SVG super classes
> where say Element.style is defined as CSSStyleDeclaration and SVGElement
> implements SVGStylable and overloads it's type.
>
> As we all know we can't do this, so the only option to clear this up is
> for me to go through the massive interface conflicts and add the interface
> properties as excluded in the compile.
>
> @Alex, we still need this file locally during compile, you have a solution
> for that?
>
> Mike
>
>
>
>
>
> On Wed, Jun 17, 2015 at 10:00 PM, Frédéric THOMAS <webdoublefx@hotmail.com
> > wrote:
>
>> That's funny, I was playing with JS.swc and wanted to start doing things
>> with svg too but didn't find any of its classes, so, I was about to use
>> CanvasRenderingContext2D but seen our components are done using svg, I
>> returned on my email to ask about svg in JS.swc and realized it wasn't
>> updated, refreshed and seen your very great example Om.
>>
>> I won't do better, at least for tonight, will anyway test quickly your
>> new JS.swc version Mike.
>>
>> Thanks,
>> Frédéric THOMAS
>>
>>
>> ----------------------------------------
>> > From: aharui@adobe.com
>> > To: dev@flex.apache.org
>> > Subject: Re: [FlexJS] JS.swc does not seem to have any SVG* element
>> defintions
>> > Date: Thu, 18 Jun 2015 00:40:24 +0000
>> >
>> > Sweet!
>> >
>> > On 6/17/15, 5:31 PM, "OmPrakash Muppirala" <bi...@gmail.com>
>> wrote:
>> >
>> >>It works for the most part! At some point, the code completion stopped
>> >>working. I am not able to get it back now.
>> >>
>> >>But, the good news, here is an interactive US built completely in
>> >>ActionScript3!
>> >>
>> >>Working demo: http://bigosmallm.github.io/flexjs/mapexample/
>> >>AS3 code: https://gist.github.com/bigosmallm/824147f7c439c584a09b
>> >>JS code: Who cares? ;-)
>> >>
>> >>I will spend some more time building something nicer over the next day
>> or
>> >>so.
>> >>
>> >>Thanks,
>> >>Om
>> >>
>> >>On Wed, Jun 17, 2015 at 3:53 PM, OmPrakash Muppirala
>> >><bi...@gmail.com>
>> >>wrote:
>> >>
>> >>> On Wed, Jun 17, 2015 at 3:20 PM, Michael Schmalle <
>> >>> teotigraphixllc@gmail.com> wrote:
>> >>>
>> >>>> Well I got it to compile on one condition. I had to turn on the emit
>> >>>>props
>> >>>> and methods for the interfaces.
>> >>>>
>> >>>> The actual classes themselves have all the definitions. There are
>> major
>> >>>> conflicts with the SVG* interfaces and some base stuff.
>> >>>>
>> >>>> Example; Element.style is CSSStyleDeclaration, in SVG it redeclares
>> >>>>this
>> >>>> on
>> >>>> SVGStylable as a different type.
>> >>>>
>> >>>> So Om, I compiled the SWC and just put it on my server for you to
>> try,
>> >>>> before I commit anything, you need to see if it works the way you
>> need.
>> >>>>
>> >>>> http://www.teotigraphix.com/assets/JS.swc
>> >>>>
>> >>>>
>> >>> Great! I am on it.
>> >>>
>> >>> Thanks,
>> >>> Om
>> >>>
>> >>>
>> >>>> Mike
>> >>>>
>> >>>>
>> >>>> On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com>
>> wrote:
>> >>>>
>> >>>>>
>> >>>>>
>> >>>>> On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com>
>> >>>> wrote:
>> >>>>>
>> >>>>>>Ah this is a nasty file to deal with, it's generated from IDL and
>> >>>>has
>> >>>>>>10,000 lines with massive interfaces that have to have their
>> >>>>prototypes
>> >>>>>>transformed to get/set.
>> >>>>>
>> >>>>> I’m not sure I understand the part about prototype transformation. I
>> >>>> only
>> >>>>> saw one get/set pair that could be a property. Lots of .setXXX calls
>> >>>> take
>> >>>>> multiple parameters. Does it make it easier if you don’t have to do
>> >>>>the
>> >>>>> transformation?
>> >>>>>
>> >>>>> If you can get this file to convert to AS even procedurally, I’ll
>> >>>>find a
>> >>>>> way to get it into the build and JS.swc.
>> >>>>>
>> >>>>>>
>> >>>>>>Who thinks I can do this? Haha
>> >>>>>
>> >>>>> If there is anyone who can do it, it would be you ;-)
>> >>>>>
>> >>>>> -Alex
>> >>>>>
>> >>>>>
>> >>>>
>> >>>
>> >>>
>> >
>>
>>
>
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Thu, Jun 18, 2015 at 3:01 AM, Michael Schmalle <teotigraphixllc@gmail.com
> wrote:
> @Om code completion stopping has to be a FB things, really nothing to do
> with the SWC am pretty sure.
>
Just figured out why code completion stopped working. I saw that jsc.bat
was using the JS.swc from the
"%FLEX_HOME%\js\libs\temp\externals\bin\JS.swc", so I removed it from my
local libs folder. That stopped the code completion.
Once I added it back, everything looks good now.
Thanks,
Om
>
> @Fred The thing that is missing is properties on an interface in SVG.
>
> So the properties problem. There are conflicts with SVG super classes where
> say Element.style is defined as CSSStyleDeclaration and SVGElement
> implements SVGStylable and overloads it's type.
>
> As we all know we can't do this, so the only option to clear this up is for
> me to go through the massive interface conflicts and add the interface
> properties as excluded in the compile.
>
> @Alex, we still need this file locally during compile, you have a solution
> for that?
>
> Mike
>
>
>
>
>
> On Wed, Jun 17, 2015 at 10:00 PM, Frédéric THOMAS <webdoublefx@hotmail.com
> >
> wrote:
>
> > That's funny, I was playing with JS.swc and wanted to start doing things
> > with svg too but didn't find any of its classes, so, I was about to use
> > CanvasRenderingContext2D but seen our components are done using svg, I
> > returned on my email to ask about svg in JS.swc and realized it wasn't
> > updated, refreshed and seen your very great example Om.
> >
> > I won't do better, at least for tonight, will anyway test quickly your
> new
> > JS.swc version Mike.
> >
> > Thanks,
> > Frédéric THOMAS
> >
> >
> > ----------------------------------------
> > > From: aharui@adobe.com
> > > To: dev@flex.apache.org
> > > Subject: Re: [FlexJS] JS.swc does not seem to have any SVG* element
> > defintions
> > > Date: Thu, 18 Jun 2015 00:40:24 +0000
> > >
> > > Sweet!
> > >
> > > On 6/17/15, 5:31 PM, "OmPrakash Muppirala" <bi...@gmail.com>
> wrote:
> > >
> > >>It works for the most part! At some point, the code completion stopped
> > >>working. I am not able to get it back now.
> > >>
> > >>But, the good news, here is an interactive US built completely in
> > >>ActionScript3!
> > >>
> > >>Working demo: http://bigosmallm.github.io/flexjs/mapexample/
> > >>AS3 code: https://gist.github.com/bigosmallm/824147f7c439c584a09b
> > >>JS code: Who cares? ;-)
> > >>
> > >>I will spend some more time building something nicer over the next day
> or
> > >>so.
> > >>
> > >>Thanks,
> > >>Om
> > >>
> > >>On Wed, Jun 17, 2015 at 3:53 PM, OmPrakash Muppirala
> > >><bi...@gmail.com>
> > >>wrote:
> > >>
> > >>> On Wed, Jun 17, 2015 at 3:20 PM, Michael Schmalle <
> > >>> teotigraphixllc@gmail.com> wrote:
> > >>>
> > >>>> Well I got it to compile on one condition. I had to turn on the emit
> > >>>>props
> > >>>> and methods for the interfaces.
> > >>>>
> > >>>> The actual classes themselves have all the definitions. There are
> > major
> > >>>> conflicts with the SVG* interfaces and some base stuff.
> > >>>>
> > >>>> Example; Element.style is CSSStyleDeclaration, in SVG it redeclares
> > >>>>this
> > >>>> on
> > >>>> SVGStylable as a different type.
> > >>>>
> > >>>> So Om, I compiled the SWC and just put it on my server for you to
> try,
> > >>>> before I commit anything, you need to see if it works the way you
> > need.
> > >>>>
> > >>>> http://www.teotigraphix.com/assets/JS.swc
> > >>>>
> > >>>>
> > >>> Great! I am on it.
> > >>>
> > >>> Thanks,
> > >>> Om
> > >>>
> > >>>
> > >>>> Mike
> > >>>>
> > >>>>
> > >>>> On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com>
> wrote:
> > >>>>
> > >>>>>
> > >>>>>
> > >>>>> On 6/17/15, 2:47 PM, "Michael Schmalle" <teotigraphixllc@gmail.com
> >
> > >>>> wrote:
> > >>>>>
> > >>>>>>Ah this is a nasty file to deal with, it's generated from IDL and
> > >>>>has
> > >>>>>>10,000 lines with massive interfaces that have to have their
> > >>>>prototypes
> > >>>>>>transformed to get/set.
> > >>>>>
> > >>>>> I’m not sure I understand the part about prototype transformation.
> I
> > >>>> only
> > >>>>> saw one get/set pair that could be a property. Lots of .setXXX
> calls
> > >>>> take
> > >>>>> multiple parameters. Does it make it easier if you don’t have to do
> > >>>>the
> > >>>>> transformation?
> > >>>>>
> > >>>>> If you can get this file to convert to AS even procedurally, I’ll
> > >>>>find a
> > >>>>> way to get it into the build and JS.swc.
> > >>>>>
> > >>>>>>
> > >>>>>>Who thinks I can do this? Haha
> > >>>>>
> > >>>>> If there is anyone who can do it, it would be you ;-)
> > >>>>>
> > >>>>> -Alex
> > >>>>>
> > >>>>>
> > >>>>
> > >>>
> > >>>
> > >
> >
> >
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Michael Schmalle <te...@gmail.com>.
@Om code completion stopping has to be a FB things, really nothing to do
with the SWC am pretty sure.
@Fred The thing that is missing is properties on an interface in SVG.
So the properties problem. There are conflicts with SVG super classes where
say Element.style is defined as CSSStyleDeclaration and SVGElement
implements SVGStylable and overloads it's type.
As we all know we can't do this, so the only option to clear this up is for
me to go through the massive interface conflicts and add the interface
properties as excluded in the compile.
@Alex, we still need this file locally during compile, you have a solution
for that?
Mike
On Wed, Jun 17, 2015 at 10:00 PM, Frédéric THOMAS <we...@hotmail.com>
wrote:
> That's funny, I was playing with JS.swc and wanted to start doing things
> with svg too but didn't find any of its classes, so, I was about to use
> CanvasRenderingContext2D but seen our components are done using svg, I
> returned on my email to ask about svg in JS.swc and realized it wasn't
> updated, refreshed and seen your very great example Om.
>
> I won't do better, at least for tonight, will anyway test quickly your new
> JS.swc version Mike.
>
> Thanks,
> Frédéric THOMAS
>
>
> ----------------------------------------
> > From: aharui@adobe.com
> > To: dev@flex.apache.org
> > Subject: Re: [FlexJS] JS.swc does not seem to have any SVG* element
> defintions
> > Date: Thu, 18 Jun 2015 00:40:24 +0000
> >
> > Sweet!
> >
> > On 6/17/15, 5:31 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
> >
> >>It works for the most part! At some point, the code completion stopped
> >>working. I am not able to get it back now.
> >>
> >>But, the good news, here is an interactive US built completely in
> >>ActionScript3!
> >>
> >>Working demo: http://bigosmallm.github.io/flexjs/mapexample/
> >>AS3 code: https://gist.github.com/bigosmallm/824147f7c439c584a09b
> >>JS code: Who cares? ;-)
> >>
> >>I will spend some more time building something nicer over the next day or
> >>so.
> >>
> >>Thanks,
> >>Om
> >>
> >>On Wed, Jun 17, 2015 at 3:53 PM, OmPrakash Muppirala
> >><bi...@gmail.com>
> >>wrote:
> >>
> >>> On Wed, Jun 17, 2015 at 3:20 PM, Michael Schmalle <
> >>> teotigraphixllc@gmail.com> wrote:
> >>>
> >>>> Well I got it to compile on one condition. I had to turn on the emit
> >>>>props
> >>>> and methods for the interfaces.
> >>>>
> >>>> The actual classes themselves have all the definitions. There are
> major
> >>>> conflicts with the SVG* interfaces and some base stuff.
> >>>>
> >>>> Example; Element.style is CSSStyleDeclaration, in SVG it redeclares
> >>>>this
> >>>> on
> >>>> SVGStylable as a different type.
> >>>>
> >>>> So Om, I compiled the SWC and just put it on my server for you to try,
> >>>> before I commit anything, you need to see if it works the way you
> need.
> >>>>
> >>>> http://www.teotigraphix.com/assets/JS.swc
> >>>>
> >>>>
> >>> Great! I am on it.
> >>>
> >>> Thanks,
> >>> Om
> >>>
> >>>
> >>>> Mike
> >>>>
> >>>>
> >>>> On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com> wrote:
> >>>>
> >>>>>
> >>>>>
> >>>>> On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com>
> >>>> wrote:
> >>>>>
> >>>>>>Ah this is a nasty file to deal with, it's generated from IDL and
> >>>>has
> >>>>>>10,000 lines with massive interfaces that have to have their
> >>>>prototypes
> >>>>>>transformed to get/set.
> >>>>>
> >>>>> I’m not sure I understand the part about prototype transformation. I
> >>>> only
> >>>>> saw one get/set pair that could be a property. Lots of .setXXX calls
> >>>> take
> >>>>> multiple parameters. Does it make it easier if you don’t have to do
> >>>>the
> >>>>> transformation?
> >>>>>
> >>>>> If you can get this file to convert to AS even procedurally, I’ll
> >>>>find a
> >>>>> way to get it into the build and JS.swc.
> >>>>>
> >>>>>>
> >>>>>>Who thinks I can do this? Haha
> >>>>>
> >>>>> If there is anyone who can do it, it would be you ;-)
> >>>>>
> >>>>> -Alex
> >>>>>
> >>>>>
> >>>>
> >>>
> >>>
> >
>
>
RE: [FlexJS] JS.swc does not seem to have any SVG* element
defintions
Posted by Frédéric THOMAS <we...@hotmail.com>.
That's funny, I was playing with JS.swc and wanted to start doing things with svg too but didn't find any of its classes, so, I was about to use CanvasRenderingContext2D but seen our components are done using svg, I returned on my email to ask about svg in JS.swc and realized it wasn't updated, refreshed and seen your very great example Om.
I won't do better, at least for tonight, will anyway test quickly your new JS.swc version Mike.
Thanks,
Frédéric THOMAS
----------------------------------------
> From: aharui@adobe.com
> To: dev@flex.apache.org
> Subject: Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
> Date: Thu, 18 Jun 2015 00:40:24 +0000
>
> Sweet!
>
> On 6/17/15, 5:31 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>
>>It works for the most part! At some point, the code completion stopped
>>working. I am not able to get it back now.
>>
>>But, the good news, here is an interactive US built completely in
>>ActionScript3!
>>
>>Working demo: http://bigosmallm.github.io/flexjs/mapexample/
>>AS3 code: https://gist.github.com/bigosmallm/824147f7c439c584a09b
>>JS code: Who cares? ;-)
>>
>>I will spend some more time building something nicer over the next day or
>>so.
>>
>>Thanks,
>>Om
>>
>>On Wed, Jun 17, 2015 at 3:53 PM, OmPrakash Muppirala
>><bi...@gmail.com>
>>wrote:
>>
>>> On Wed, Jun 17, 2015 at 3:20 PM, Michael Schmalle <
>>> teotigraphixllc@gmail.com> wrote:
>>>
>>>> Well I got it to compile on one condition. I had to turn on the emit
>>>>props
>>>> and methods for the interfaces.
>>>>
>>>> The actual classes themselves have all the definitions. There are major
>>>> conflicts with the SVG* interfaces and some base stuff.
>>>>
>>>> Example; Element.style is CSSStyleDeclaration, in SVG it redeclares
>>>>this
>>>> on
>>>> SVGStylable as a different type.
>>>>
>>>> So Om, I compiled the SWC and just put it on my server for you to try,
>>>> before I commit anything, you need to see if it works the way you need.
>>>>
>>>> http://www.teotigraphix.com/assets/JS.swc
>>>>
>>>>
>>> Great! I am on it.
>>>
>>> Thanks,
>>> Om
>>>
>>>
>>>> Mike
>>>>
>>>>
>>>> On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com> wrote:
>>>>
>>>>>
>>>>>
>>>>> On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com>
>>>> wrote:
>>>>>
>>>>>>Ah this is a nasty file to deal with, it's generated from IDL and
>>>>has
>>>>>>10,000 lines with massive interfaces that have to have their
>>>>prototypes
>>>>>>transformed to get/set.
>>>>>
>>>>> I’m not sure I understand the part about prototype transformation. I
>>>> only
>>>>> saw one get/set pair that could be a property. Lots of .setXXX calls
>>>> take
>>>>> multiple parameters. Does it make it easier if you don’t have to do
>>>>the
>>>>> transformation?
>>>>>
>>>>> If you can get this file to convert to AS even procedurally, I’ll
>>>>find a
>>>>> way to get it into the build and JS.swc.
>>>>>
>>>>>>
>>>>>>Who thinks I can do this? Haha
>>>>>
>>>>> If there is anyone who can do it, it would be you ;-)
>>>>>
>>>>> -Alex
>>>>>
>>>>>
>>>>
>>>
>>>
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Alex Harui <ah...@adobe.com>.
Sweet!
On 6/17/15, 5:31 PM, "OmPrakash Muppirala" <bi...@gmail.com> wrote:
>It works for the most part! At some point, the code completion stopped
>working. I am not able to get it back now.
>
>But, the good news, here is an interactive US built completely in
>ActionScript3!
>
>Working demo: http://bigosmallm.github.io/flexjs/mapexample/
>AS3 code: https://gist.github.com/bigosmallm/824147f7c439c584a09b
>JS code: Who cares? ;-)
>
>I will spend some more time building something nicer over the next day or
>so.
>
>Thanks,
>Om
>
>On Wed, Jun 17, 2015 at 3:53 PM, OmPrakash Muppirala
><bi...@gmail.com>
>wrote:
>
>> On Wed, Jun 17, 2015 at 3:20 PM, Michael Schmalle <
>> teotigraphixllc@gmail.com> wrote:
>>
>>> Well I got it to compile on one condition. I had to turn on the emit
>>>props
>>> and methods for the interfaces.
>>>
>>> The actual classes themselves have all the definitions. There are major
>>> conflicts with the SVG* interfaces and some base stuff.
>>>
>>> Example; Element.style is CSSStyleDeclaration, in SVG it redeclares
>>>this
>>> on
>>> SVGStylable as a different type.
>>>
>>> So Om, I compiled the SWC and just put it on my server for you to try,
>>> before I commit anything, you need to see if it works the way you need.
>>>
>>> http://www.teotigraphix.com/assets/JS.swc
>>>
>>>
>> Great! I am on it.
>>
>> Thanks,
>> Om
>>
>>
>>> Mike
>>>
>>>
>>> On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com> wrote:
>>>
>>> >
>>> >
>>> > On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com>
>>> wrote:
>>> >
>>> > >Ah this is a nasty file to deal with, it's generated from IDL and
>>>has
>>> > >10,000 lines with massive interfaces that have to have their
>>>prototypes
>>> > >transformed to get/set.
>>> >
>>> > I’m not sure I understand the part about prototype transformation. I
>>> only
>>> > saw one get/set pair that could be a property. Lots of .setXXX calls
>>> take
>>> > multiple parameters. Does it make it easier if you don’t have to do
>>>the
>>> > transformation?
>>> >
>>> > If you can get this file to convert to AS even procedurally, I’ll
>>>find a
>>> > way to get it into the build and JS.swc.
>>> >
>>> > >
>>> > >Who thinks I can do this? Haha
>>> >
>>> > If there is anyone who can do it, it would be you ;-)
>>> >
>>> > -Alex
>>> >
>>> >
>>>
>>
>>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by OmPrakash Muppirala <bi...@gmail.com>.
It works for the most part! At some point, the code completion stopped
working. I am not able to get it back now.
But, the good news, here is an interactive US built completely in
ActionScript3!
Working demo: http://bigosmallm.github.io/flexjs/mapexample/
AS3 code: https://gist.github.com/bigosmallm/824147f7c439c584a09b
JS code: Who cares? ;-)
I will spend some more time building something nicer over the next day or
so.
Thanks,
Om
On Wed, Jun 17, 2015 at 3:53 PM, OmPrakash Muppirala <bi...@gmail.com>
wrote:
> On Wed, Jun 17, 2015 at 3:20 PM, Michael Schmalle <
> teotigraphixllc@gmail.com> wrote:
>
>> Well I got it to compile on one condition. I had to turn on the emit props
>> and methods for the interfaces.
>>
>> The actual classes themselves have all the definitions. There are major
>> conflicts with the SVG* interfaces and some base stuff.
>>
>> Example; Element.style is CSSStyleDeclaration, in SVG it redeclares this
>> on
>> SVGStylable as a different type.
>>
>> So Om, I compiled the SWC and just put it on my server for you to try,
>> before I commit anything, you need to see if it works the way you need.
>>
>> http://www.teotigraphix.com/assets/JS.swc
>>
>>
> Great! I am on it.
>
> Thanks,
> Om
>
>
>> Mike
>>
>>
>> On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com> wrote:
>>
>> >
>> >
>> > On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com>
>> wrote:
>> >
>> > >Ah this is a nasty file to deal with, it's generated from IDL and has
>> > >10,000 lines with massive interfaces that have to have their prototypes
>> > >transformed to get/set.
>> >
>> > I’m not sure I understand the part about prototype transformation. I
>> only
>> > saw one get/set pair that could be a property. Lots of .setXXX calls
>> take
>> > multiple parameters. Does it make it easier if you don’t have to do the
>> > transformation?
>> >
>> > If you can get this file to convert to AS even procedurally, I’ll find a
>> > way to get it into the build and JS.swc.
>> >
>> > >
>> > >Who thinks I can do this? Haha
>> >
>> > If there is anyone who can do it, it would be you ;-)
>> >
>> > -Alex
>> >
>> >
>>
>
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Wed, Jun 17, 2015 at 3:20 PM, Michael Schmalle <teotigraphixllc@gmail.com
> wrote:
> Well I got it to compile on one condition. I had to turn on the emit props
> and methods for the interfaces.
>
> The actual classes themselves have all the definitions. There are major
> conflicts with the SVG* interfaces and some base stuff.
>
> Example; Element.style is CSSStyleDeclaration, in SVG it redeclares this on
> SVGStylable as a different type.
>
> So Om, I compiled the SWC and just put it on my server for you to try,
> before I commit anything, you need to see if it works the way you need.
>
> http://www.teotigraphix.com/assets/JS.swc
>
>
Great! I am on it.
Thanks,
Om
> Mike
>
>
> On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com> wrote:
>
> >
> >
> > On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com>
> wrote:
> >
> > >Ah this is a nasty file to deal with, it's generated from IDL and has
> > >10,000 lines with massive interfaces that have to have their prototypes
> > >transformed to get/set.
> >
> > I’m not sure I understand the part about prototype transformation. I
> only
> > saw one get/set pair that could be a property. Lots of .setXXX calls
> take
> > multiple parameters. Does it make it easier if you don’t have to do the
> > transformation?
> >
> > If you can get this file to convert to AS even procedurally, I’ll find a
> > way to get it into the build and JS.swc.
> >
> > >
> > >Who thinks I can do this? Haha
> >
> > If there is anyone who can do it, it would be you ;-)
> >
> > -Alex
> >
> >
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Michael Schmalle <te...@gmail.com>.
Well I got it to compile on one condition. I had to turn on the emit props
and methods for the interfaces.
The actual classes themselves have all the definitions. There are major
conflicts with the SVG* interfaces and some base stuff.
Example; Element.style is CSSStyleDeclaration, in SVG it redeclares this on
SVGStylable as a different type.
So Om, I compiled the SWC and just put it on my server for you to try,
before I commit anything, you need to see if it works the way you need.
http://www.teotigraphix.com/assets/JS.swc
Mike
On Wed, Jun 17, 2015 at 6:16 PM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>
> >Ah this is a nasty file to deal with, it's generated from IDL and has
> >10,000 lines with massive interfaces that have to have their prototypes
> >transformed to get/set.
>
> I’m not sure I understand the part about prototype transformation. I only
> saw one get/set pair that could be a property. Lots of .setXXX calls take
> multiple parameters. Does it make it easier if you don’t have to do the
> transformation?
>
> If you can get this file to convert to AS even procedurally, I’ll find a
> way to get it into the build and JS.swc.
>
> >
> >Who thinks I can do this? Haha
>
> If there is anyone who can do it, it would be you ;-)
>
> -Alex
>
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Alex Harui <ah...@adobe.com>.
On 6/17/15, 2:47 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>Ah this is a nasty file to deal with, it's generated from IDL and has
>10,000 lines with massive interfaces that have to have their prototypes
>transformed to get/set.
I’m not sure I understand the part about prototype transformation. I only
saw one get/set pair that could be a property. Lots of .setXXX calls take
multiple parameters. Does it make it easier if you don’t have to do the
transformation?
If you can get this file to convert to AS even procedurally, I’ll find a
way to get it into the build and JS.swc.
>
>Who thinks I can do this? Haha
If there is anyone who can do it, it would be you ;-)
-Alex
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by OmPrakash Muppirala <bi...@gmail.com>.
On Wed, Jun 17, 2015 at 2:47 PM, Michael Schmalle <teotigraphixllc@gmail.com
> wrote:
> Ah this is a nasty file to deal with, it's generated from IDL and has
> 10,000 lines with massive interfaces that have to have their prototypes
> transformed to get/set.
>
> Who thinks I can do this? haha
>
> Mike
>
Dude, I have been refreshing my gmail waiting for you to send out an
update. Of course you can do this!
Om
>
> On Wed, Jun 17, 2015 at 5:30 PM, Michael Schmalle <
> teotigraphixllc@gmail.com
> > wrote:
>
> > Yeah I am using it but it has to be available for compiler just like the
> > other ones are.
> >
> > Mike
> >
> > On Wed, Jun 17, 2015 at 5:24 PM, Alex Harui <ah...@adobe.com> wrote:
> >
> >>
> >>
> >> On 6/17/15, 1:41 PM, "Michael Schmalle" <te...@gmail.com>
> >> wrote:
> >>
> >> >I needed to ask about what we are going to do about that because the
> file
> >> >svg. is not part of the closure-compiler project, it's external.
> >>
> >> I think you can use this one.
> >> https://closureidl.googlecode.com/files/svg.js
> >>
> >> -Alex
> >>
> >>
> >
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Michael Schmalle <te...@gmail.com>.
Ah this is a nasty file to deal with, it's generated from IDL and has
10,000 lines with massive interfaces that have to have their prototypes
transformed to get/set.
Who thinks I can do this? haha
Mike
On Wed, Jun 17, 2015 at 5:30 PM, Michael Schmalle <teotigraphixllc@gmail.com
> wrote:
> Yeah I am using it but it has to be available for compiler just like the
> other ones are.
>
> Mike
>
> On Wed, Jun 17, 2015 at 5:24 PM, Alex Harui <ah...@adobe.com> wrote:
>
>>
>>
>> On 6/17/15, 1:41 PM, "Michael Schmalle" <te...@gmail.com>
>> wrote:
>>
>> >I needed to ask about what we are going to do about that because the file
>> >svg. is not part of the closure-compiler project, it's external.
>>
>> I think you can use this one.
>> https://closureidl.googlecode.com/files/svg.js
>>
>> -Alex
>>
>>
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Michael Schmalle <te...@gmail.com>.
Yeah I am using it but it has to be available for compiler just like the
other ones are.
Mike
On Wed, Jun 17, 2015 at 5:24 PM, Alex Harui <ah...@adobe.com> wrote:
>
>
> On 6/17/15, 1:41 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>
> >I needed to ask about what we are going to do about that because the file
> >svg. is not part of the closure-compiler project, it's external.
>
> I think you can use this one.
> https://closureidl.googlecode.com/files/svg.js
>
> -Alex
>
>
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Alex Harui <ah...@adobe.com>.
On 6/17/15, 1:41 PM, "Michael Schmalle" <te...@gmail.com> wrote:
>I needed to ask about what we are going to do about that because the file
>svg. is not part of the closure-compiler project, it's external.
I think you can use this one.
https://closureidl.googlecode.com/files/svg.js
-Alex
Re: [FlexJS] JS.swc does not seem to have any SVG* element defintions
Posted by Michael Schmalle <te...@gmail.com>.
Nope, they had a lot of interfaces and when I initially showed you that I
had totally hacked a bunch of stuff.
All the while, I went back and refactored everything and wrote unit tests
from the ground up using the closure compiler's parser and AST.
The funny thing is I knew you were going to ask about them.
I needed to ask about what we are going to do about that because the file
svg. is not part of the closure-compiler project, it's external.
I got a couple hours right now so I will see what blows up when I parse it
with my new code I wrote. I will let you know, but what is really important
is we need to have the file to parse so the definitions can be added to0
the SWC.
BTW it's fine to always call me Mike, haha.
Mike
On Wed, Jun 17, 2015 at 4:19 PM, OmPrakash Muppirala <bi...@gmail.com>
wrote:
> Michael,
>
> I thought that you had added these definitions in JS.swc. At least I
> remember seeing a screenshot with all the SVG related classes. Any chance
> you can take a look and see what's happening?
>
> Now that I have everything working on Flash Builder, I want to build a
> couple of really cool demo apps.
>
> Thanks,
> Om
>