Bundle
This commit is contained in:
@@ -137,6 +137,7 @@ function Tree:onSelect(callback)
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
---@private
|
||||||
function Tree:mouse_scroll(direction, x, y)
|
function Tree:mouse_scroll(direction, x, y)
|
||||||
if VisualElement.mouse_scroll(self, direction, x, y) then
|
if VisualElement.mouse_scroll(self, direction, x, y) then
|
||||||
local flatNodes = flattenTree(self.get("nodes"), self.get("expandedNodes"))
|
local flatNodes = flattenTree(self.get("nodes"), self.get("expandedNodes"))
|
||||||
@@ -148,6 +149,10 @@ function Tree:mouse_scroll(direction, x, y)
|
|||||||
end
|
end
|
||||||
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()
|
function Tree:getNodeSize()
|
||||||
local width, height = 0, 0
|
local width, height = 0, 0
|
||||||
local flatNodes = flattenTree(self.get("nodes"), self.get("expandedNodes"))
|
local flatNodes = flattenTree(self.get("nodes"), self.get("expandedNodes"))
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ local function bundle()
|
|||||||
|
|
||||||
table.insert(output, string.format(
|
table.insert(output, string.format(
|
||||||
'project["%s"] = function(...) %s end\n',
|
'project["%s"] = function(...) %s end\n',
|
||||||
file.path, minified:gsub("\n", " ")
|
file.path, minified
|
||||||
))
|
))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user