Improve documentation formatting for Image and Tree elements

This commit is contained in:
Robert Jelic
2025-10-30 08:43:12 +01:00
parent 83c27d824f
commit c6cb1ac670
2 changed files with 2 additions and 4 deletions

View File

@@ -4,9 +4,7 @@ local tHex = require("libraries/colorHex")
---@configDescription An element that displays an image in bimg format ---@configDescription An element that displays an image in bimg format
---@configDefault false ---@configDefault false
--- This is the Image element class which can be used to display bimg formatted images. --- This is the Image element class which can be used to display bimg formatted images. Bimg is a universal ComputerCraft image format. See: https://github.com/SkyTheCodeMaster/bimg
--- Bimg is a universal ComputerCraft image format.
--- See: https://github.com/SkyTheCodeMaster/bimg
---@class Image : VisualElement ---@class Image : VisualElement
local Image = setmetatable({}, VisualElement) local Image = setmetatable({}, VisualElement)
Image.__index = Image Image.__index = Image

View File

@@ -17,7 +17,7 @@ local function flattenTree(nodes, expandedNodes, level, result)
end end
--- This is the tree class. It provides a hierarchical view of nodes that can be expanded and collapsed, with support for selection and scrolling. --- This is the tree class. It provides a hierarchical view of nodes that can be expanded and collapsed, with support for selection and scrolling.
---run [[ --- @run [[
--- local basaltg = require("basalt") --- local basaltg = require("basalt")
--- local main = basalt.getMainFrame() --- local main = basalt.getMainFrame()
--- ---