Re: Layout optimizations

2018-03-26 Thread Alex Harui
Fundamentally, Royale should not force anyone into one way of thinking or the other regarding layout and css or really anything. This is why I'm not in favor of putting any deferred computation in the core. I think the key discovery so far is that LayoutBase was forcing every layout to compute

Re: Setting/binding data in mxml - what am I doing wrong?

2018-03-26 Thread OmPrakash Muppirala
On Mon, Mar 26, 2018 at 12:34 AM, Piotr Zarzycki wrote: > Hi Om, > > Since your base chart class is a actually a List, I'm confused. How is it a List? > your EChart should use > [1] and [2]. However it is possible that you will have to implement your > own Factory

Re: Setting/binding data in mxml - what am I doing wrong?

2018-03-26 Thread Piotr Zarzycki
Om, You are right! I did look into the PieChart and found ChartBase, which extends List, but you are using EChart which is simple UIBase. However still probably should be similar bead factory created which handles creation of each item. Sorry for the confusion. Thanks, Piotr 2018-03-26 9:54

Re: Setting/binding data in mxml - what am I doing wrong?

2018-03-26 Thread Piotr Zarzycki
Hi Om, Since your base chart class is a actually a List, your EChart should use [1] and [2]. However it is possible that you will have to implement your own Factory which is extends the current one. [1] https://goo.gl/afXdPr [2] https://goo.gl/Nz8YbE Thanks, Piotr 2018-03-26 9:16 GMT+02:00

Re: Setting/binding data in mxml - what am I doing wrong?

2018-03-26 Thread OmPrakash Muppirala
So, if I create a echarts.SeriesList class that extends ArrayList - it can handle the addition and updates of Series objects. Is that a better approach? Thanks, Om On Mon, Mar 26, 2018 at 12:47 AM, OmPrakash Muppirala wrote: > > > On Mon, Mar 26, 2018 at 12:34 AM, Piotr

Re: [Jewel] Work In progress screenshots

2018-03-26 Thread Harbs
Whoah! That’s pretty awesome! Harbs > On Mar 26, 2018, at 1:38 AM, Carlos Rovira wrote: > > Hi! > > I was working hard this days and I think is time to share a screen shot > about Jewel actual state. > > I've plan to support 12 colors. The following is the color

Re: Setting/binding data in mxml - what am I doing wrong?

2018-03-26 Thread Alex Harui
DataBinding in Royale attempts to be smarter than Flex. In Flex, there was one DataBinding implementation that evaluated data bindings in many different parts of the lifecycle "just-in-case" something might be missed. In Royale, we are implementing scenario-specific data bindings in order to

Re: Setting/binding data in mxml - what am I doing wrong?

2018-03-26 Thread OmPrakash Muppirala
Okay, I was able to make quite a bit of progress on the ECharts effort. The next thing I am stuck on is on how to listen to changes to items in an ArrayList. This is how the mxml looks like: http://www.google.com; target="_self" /> The databinding on xAxis.data works fine

Re: [Jewel] Work In progress screenshots

2018-03-26 Thread Angelo Lazzari
Really really great work Carlos!!! El lun., 26 mar. 2018 a las 9:23, Yishay Weiss () escribió: > Great job Carlos. Keep it up. > > > > > From: carlos.rov...@gmail.com on behalf of > Carlos Rovira

Re: Setting/binding data in mxml - what am I doing wrong?

2018-03-26 Thread OmPrakash Muppirala
> > Next up is the binding expression itself. Binding to "{series[0].data}" > has several possible interpretations. One is that, once set, the value > never changes. Another is that series could change or new items could > replace what is at 0, or data itself changes. Each requires more and

Re: [Jewel] Work In progress screenshots

2018-03-26 Thread Piotr Zarzycki
Looks great :) Thanks! 2018-03-26 1:39 GMT+02:00 OmPrakash Muppirala : > Looks awesome, Carlos! Looking forward to use this in my apps :-D > > Thanks, > Om > > On Sun, Mar 25, 2018 at 3:38 PM, Carlos Rovira > wrote: > > > Hi! > > > > I was

Re: Layout optimizations

2018-03-26 Thread Harbs
I managed to more or less double the performance on this… > On Mar 26, 2018, at 1:21 PM, Harbs wrote: > > Another interesting study is NumericStepperView. NumericStepperView strand > setter takes 12.6 ms to run on a single component! There are many subsequent > DOM read

Re: Layout optimizations

2018-03-26 Thread Harbs
Another bottleneck I’ve observed is the use of Language.is and Language.as. Each call is pretty cheap, but they all add up — especially calls which use interfaces. > On Mar 26, 2018, at 3:37 PM, Harbs wrote: > > I managed to more or less double the performance on this…

Re: Layout optimizations

2018-03-26 Thread Carlos Rovira
Hi, That's essentialy what I did in Jewel Layouts, but still need works on some things basically this are the actual jewel layouts for horizontal and vertical: .layout.horizontal white-space: nowrap display: block > * display: inline-block !important .layout.vertical

Re: Layout optimizations

2018-03-26 Thread Alex Harui
Harbs, I feel like several independent factors are being mixed together. I think it is better to address them separately. Also, IMO, there are two kinds of layout in Royale. One group of layouts just lets the browser do the layout, like VerticalLayout, HorizontalLayout and the Layouts that use

Re: [Jewel] Work In progress screenshots

2018-03-26 Thread Alex Harui
Looks great! On 3/26/18, 12:08 AM, "Harbs" wrote: >Whoah! That’s pretty awesome! > >Harbs > >> On Mar 26, 2018, at 1:38 AM, Carlos Rovira >>wrote: >> >> Hi! >> >> I was working hard this days and I think is time to share a screen shot >> about

Re: Layout optimizations

2018-03-26 Thread Carlos Rovira
Hi Harbs, maybe I don't understand correctly your question, but for me there's no distinction. If I have a button with a explicit width set up of 500px the surrounding container (normaly a div) will behave accordingly right? So if this is not what you are asking, can you explain a bit more or

Re: Layout optimizations

2018-03-26 Thread Alex Harui
Sorry, I knew I forgot to answer something... Let's make sure we agree on the problem. AIUI, the problem is that if you have: And the div is 200x100 because it had come custom layout that didn't allow for use of just plain percentage or FlexBox, how can the div know if the body changes

Re: Setting/binding data in mxml - what am I doing wrong?

2018-03-26 Thread Alex Harui
In the end, DataBinding is really just a convenient way to generate listeners for change events and handlers that update things. When you look at nested data structures, some kinds of changes are easily detected and others are not. It is useful to understand what kinds of changes could be made.

Re: [Jewel] Work In progress screenshots

2018-03-26 Thread Carlos Rovira
Hi All, thanks for the positive feedback to all! :) I'll continue my journey to complete this UI set, there's still lots of work to do here @Olaf, wanting to see that "try-it-now" and maybe by that time, you'll using Jewel UI Set with Blue/Topaz colors to fit our website ;) Thanks!

Re: Layout optimizations

2018-03-26 Thread Harbs
I’m pretty sure the problem is exactly the opposite. Some content here Some content here Some content here Inner has the size set by the content and outer needs to then be reset to accommodate the content. Currently, outer

Re: Layout optimizations

2018-03-26 Thread Harbs
> On Mar 26, 2018, at 8:18 PM, Alex Harui wrote: > > So given all that, I think the independent issues are: > 1) can we optimize our layouts to use browser layouts more? Possibly, and we should when we can. > 2) can we optimize our layouts to avoid direct interactions

Re: Layout optimizations

2018-03-26 Thread Carlos Rovira
In JewelExample, I have two sliders that resize a button width and height. The resize of the button makes the parent group container resize to respect the button inner width and padding. As well the next column (that has more containers with sub controls, moves to the right or left depending on

Re: Layout optimizations

2018-03-26 Thread Piotr Zarzycki
Reading Harbs and his real world example maybe that approach with saving some values is a big winner for Royale. Instead going with the current Flow of web design let's try and see what happen. Today I had pretty interesting chat with my friend who has deeper knowledge about JS stuff. He said

Re: Layout optimizations

2018-03-26 Thread Carlos Rovira
Hi Harbs, Piotr, see this link [1] and [2] This are only CSS rules to layout content. Here you have all the use cases we could have in a Royale app. things inside things that layouts responsively using percentage widths (see width:75% in examples and how this resizes with the resize of a window,

About some CSS bugs (#35 and #30/#32)

2018-03-26 Thread Carlos Rovira
Hi Alex, I have a huge need to solve compiler but #35 since I don't find any workaround to what I need to do (only bloating the code with more html nodes that do what I need, but I think that's not temporal. I create a branch in compiler with one commit that I think is the way to solve it in

Re: Layout optimizations

2018-03-26 Thread Carlos Rovira
Hi I played with a bit in desktop and mobile. For desktop, I think it seems more responsive, I'm in the same MacBook Pro (2014) than when I tested, but think that I'm talking about an overall feeling from what I remember. In mobile as well seems better, but now I'm on iPhoneX since when I tested

Re: Layout optimizations

2018-03-26 Thread Harbs
Case in point: In my app, I’m using OneFlexibleChildHorizontalLayout which uses flexbox. Great. No need for writing values. Right? Not so fast. I have fit to view functionality in my app which needs to get the size of the flexibleChild which is the container to figure out how much to scale

Re: Layout optimizations

2018-03-26 Thread Harbs
BTW, I’d suggest you try it now: https://marketinginflection.com/printui-demo.php In case you haven’t guessed, my focus during the last week or so has been on performance and I eliminated quite a few bottlenecks both in Royale and in my own