progress moving away from 'squares' field to layer tree

This commit is contained in:
2025-08-09 09:32:34 +01:00
parent 34c29bcbba
commit 58439d8df8
5 changed files with 92 additions and 16 deletions

View File

@@ -1069,6 +1069,66 @@ struct
}
end
fun layerTree (app: app_type, layerTree, arrowX, arrowY) : app_type =
let
val
{ mode
, mouseX
, mouseY
, xClickPoints
, yClickPoints
, windowWidth
, windowHeight
, squares
, arrowX = _
, arrowY = _
, canvasWidth
, canvasHeight
, showGraph
, openFilePath
, fileBrowser
, fileBrowserIdx
, r
, g
, b
, a
, layer
, layerTree = _
, modalNum
, undo
, redo
} = app
in
{ mode = mode
, mouseX = mouseX
, mouseY = mouseY
, squares = squares
, arrowX = arrowX
, arrowY = arrowY
, canvasWidth = canvasWidth
, canvasHeight = canvasHeight
, windowWidth = windowWidth
, windowHeight = windowHeight
, xClickPoints = xClickPoints
, yClickPoints = yClickPoints
, showGraph = showGraph
, openFilePath = openFilePath
, fileBrowser = fileBrowser
, fileBrowserIdx = fileBrowserIdx
, r = r
, g = g
, b = b
, a = a
, layer = layer
, layerTree = layerTree
, modalNum = modalNum
, undo = undo
, redo = redo
}
end
fun canvasWidth (app: app_type, newCanvasWidth) =
let
val