mcpiroman
10/16/2021, 7:51 PMexample from cutter▾
Box
or `Layout`and Modifier.offset
elements? Or maybe a skika canvas? Would that support efficiently offscreen content?
Or maybe I should ask in #compose?Waqas Tahir
10/18/2021, 11:50 AMmcpiroman
10/18/2021, 1:07 PMWaqas Tahir
10/18/2021, 1:12 PMmcpiroman
10/18/2021, 1:13 PMWaqas Tahir
10/18/2021, 1:14 PMWaqas Tahir
10/18/2021, 1:20 PMWaqas Tahir
10/18/2021, 1:21 PMWaqas Tahir
10/18/2021, 1:21 PMmcpiroman
10/18/2021, 1:22 PMmcpiroman
10/18/2021, 1:22 PMWaqas Tahir
10/18/2021, 1:23 PMmcpiroman
10/18/2021, 1:26 PMolonho
10/18/2021, 1:47 PMWaqas Tahir
10/18/2021, 1:49 PMjim
10/18/2021, 2:42 PMYeah, to check rect of every node at every mouse move does not seem super smoothYou wouldn't need to check every node. There are algorithms that can do a smarter job. My favorite for general purpose checking is quadtree decomposition. I bet there are even simpler/faster algorithms when everything is known to be a rectangle and there is only a single viewport of interest. At first glance, I might consider keeping a sorted list of edges in each axis and a viewport contains everything with edges between the two viewport edges plus anything that encapsulates the viewport (probably needs to be tracked separately as another list). Same algorithm and data structure could apply for mouse intersection detection too. Anyway, point is that this is an easy thing to optimize as needed.
mcpiroman
10/18/2021, 2:54 PM