LLS refactor

This commit is contained in:
Insality
2025-03-07 21:09:01 +02:00
parent 3bb8705444
commit be03a5bd50
18 changed files with 244 additions and 169 deletions

View File

@@ -44,7 +44,7 @@ local CORNER_PIVOTS = {
---@field fit_size vector3
---@field min_size_x number|nil
---@field min_size_y number|nil
---@field on_size_changed event @function on_size_changed(size)
---@field on_size_changed event fun(self: druid.container, size: vector3)
---@field _parent_container druid.container
---@field _containers table
---@field _draggable_corners table
@@ -244,7 +244,7 @@ function M:add_container(node_or_container, mode, on_resize_callback)
local node = node_or_container
-- Check it's a container components instead of node
if type(node_or_container) == "table" and node_or_container._component then
if type(node_or_container) == "table" and node_or_container.add_container then
node = node_or_container.node
container = node_or_container
mode = mode or container.mode

View File

@@ -148,8 +148,6 @@ function M:set_max_size(max_size)
end
---@private
function M:_check_steps(from, to, exactly)
if not self.steps then