Skip to content

Commit c6cb1ac

Browse files
committed
Improve documentation formatting for Image and Tree elements
1 parent 83c27d8 commit c6cb1ac

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/elements/Image.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ local tHex = require("libraries/colorHex")
44
---@configDescription An element that displays an image in bimg format
55
---@configDefault false
66

7-
--- This is the Image element class which can be used to display bimg formatted images.
8-
--- Bimg is a universal ComputerCraft image format.
9-
--- See: https://github.com/SkyTheCodeMaster/bimg
7+
--- 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
108
---@class Image : VisualElement
119
local Image = setmetatable({}, VisualElement)
1210
Image.__index = Image

src/elements/Tree.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ local function flattenTree(nodes, expandedNodes, level, result)
1717
end
1818

1919
--- This is the tree class. It provides a hierarchical view of nodes that can be expanded and collapsed, with support for selection and scrolling.
20-
---run [[
20+
--- @run [[
2121
--- local basaltg = require("basalt")
2222
--- local main = basalt.getMainFrame()
2323
---

0 commit comments

Comments
 (0)