Joffrey
09/06/2023, 10:33 PMOleksandr Karpovich [JB]
09/07/2023, 2:21 PMJoffrey
09/07/2023, 2:23 PMI think this can be achieved by setting an absolute position to html subtree managed by React.Do you mean having the React HTML rendered on top of the Compose canvas (out of the component tree), and then create a gap in the canvas, and align the react HTML on top of the gap?
Oleksandr Karpovich [JB]
09/07/2023, 2:24 PMJoffrey
09/07/2023, 2:25 PMJoffrey
09/07/2023, 2:27 PMOleksandr Karpovich [JB]
09/07/2023, 2:27 PMOleksandr Karpovich [JB]
09/07/2023, 2:29 PMbut at the same time another Compose component be drawn on top of the HTML oneI think it’s not likely we’ll implement this at all. we won’t be able to draw on top of html embedded into canvas. So there can be 2 layers: -----html absolute x,y-- ------------- canvas where compose renders to --------------- _ Theoretically: -canvas2-- -----html. ---- --- ------canvas1----------- But it would require a lot of changes in compose. Not sure if it’s needed
Joffrey
09/07/2023, 2:29 PMOleksandr Karpovich [JB]
09/07/2023, 2:33 PMJoffrey
09/07/2023, 3:21 PMBut we still target firefox, safari, etc..Ah, right, we can't forget this part 😄