Replies: 3 comments 9 replies
-
Yeah, makes a lot of sense, we did build a calendar object extending Group and it's quite heavy. I could imagine if the layout was handled with native html Grid or Flexbox |
Beta Was this translation helpful? Give feedback.
-
@ShaMan123 sounds perfect, but how will it work? each object will be represented by a proxy div with the same size? wont it be heavy? |
Beta Was this translation helpful? Give feedback.
-
Why not using the CSS layout engine built in https://github.com/niklasvh/html2canvas then? I think the latency from a JS-made CSS engine is smaller compared to updating the DOM, then reading the values. In the full HTML case you need for the wait all the CSS rendering phases and you also trigger them: https://cabulous.medium.com/how-does-browser-work-in-2019-part-iii-rendering-phase-i-850c8935958f. Like continuously triggering the CSS layouting can be expensive, that's why for instance CSS animations use properties like |
Beta Was this translation helpful? Give feedback.
-
Currently Group layout is too complicated.
I just saw something that made me think - what if we borrow the concept behind
hiddenTextarea
and let the browser do all the hard work?What if we use the DOM to layout the objects in a group using a div for each group containing divs for each object.
Then the dev can use css properties to layout the objects and we measure the output and apply it back to the group.
This has 2 great advantages:
Beta Was this translation helpful? Give feedback.
All reactions