diff --git a/src/elements/Tree.lua b/src/elements/Tree.lua index 30973fb..100c199 100644 --- a/src/elements/Tree.lua +++ b/src/elements/Tree.lua @@ -137,6 +137,7 @@ function Tree:onSelect(callback) return self end +---@private function Tree:mouse_scroll(direction, x, y) if VisualElement.mouse_scroll(self, direction, x, y) then local flatNodes = flattenTree(self.get("nodes"), self.get("expandedNodes")) @@ -148,6 +149,10 @@ function Tree:mouse_scroll(direction, x, y) end end +--- Gets the size of the tree +--- @shortDescription Gets the size of the tree +--- @return number width The width of the tree +--- @return number height The height of the tree function Tree:getNodeSize() local width, height = 0, 0 local flatNodes = flattenTree(self.get("nodes"), self.get("expandedNodes")) diff --git a/tools/bundler.lua b/tools/bundler.lua index abbafa0..c8ba220 100644 --- a/tools/bundler.lua +++ b/tools/bundler.lua @@ -36,7 +36,7 @@ local function bundle() table.insert(output, string.format( 'project["%s"] = function(...) %s end\n', - file.path, minified:gsub("\n", " ") + file.path, minified )) end