This commit is contained in:
NoryiE
2025-10-27 16:47:11 +00:00
parent 44c80f074f
commit f798a698b3

View File

@@ -68,9 +68,7 @@ Extends: `BaseElement`
|[VisualElement:setFocused](#visualelement-setfocused-focused-internal)|VisualElement|Sets focus state| |[VisualElement:setFocused](#visualelement-setfocused-focused-internal)|VisualElement|Sets focus state|
|[VisualElement:isFocused](#visualelement-isfocused)|boolean|Checks if element is focused| |[VisualElement:isFocused](#visualelement-isfocused)|boolean|Checks if element is focused|
|[VisualElement:isFocused](#visualelement-isfocused)|boolean|Checks if element is focused| |[VisualElement:isFocused](#visualelement-isfocused)|boolean|Checks if element is focused|
|[VisualElement:addBorder](#visualelement-addborder-colororoptions)|VisualElement|Adds or updates a drawable character border around the element using the canvas plugin. |[VisualElement:addBorder](#visualelement-addborder-colororoptions-sideoptions)|VisualElement|Adds or updates a drawable character border around the element using the canvas plugin. The border will automatically adapt to size/background changes because the command reads current properties each render.|
The border will automatically adapt to size/background changes because the command
reads current properties each render.|
|[VisualElement:removeBorder](#visualelement-removeborder)|VisualElement|Removes the previously added border (if any)| |[VisualElement:removeBorder](#visualelement-removeborder)|VisualElement|Removes the previously added border (if any)|
|[VisualElement:calculatePosition](#visualelement-calculateposition)|number, number|Calculates the position of the element| |[VisualElement:calculatePosition](#visualelement-calculateposition)|number, number|Calculates the position of the element|
|[VisualElement:getAbsolutePosition](#visualelement-getabsoluteposition-x-y)|number, number|Returns the absolute position of the element| |[VisualElement:getAbsolutePosition](#visualelement-getabsoluteposition-x-y)|number, number|Returns the absolute position of the element|
@@ -424,14 +422,13 @@ Gets whether this element is focused
### Returns ### Returns
* `boolean` isFocused * `boolean` isFocused
## VisualElement:addBorder(colorOrOptions) ## VisualElement:addBorder(colorOrOptions, sideOptions?)
Adds or updates a drawable character border around the element using the canvas plugin. Adds or updates a drawable character border around the element using the canvas plugin. The border will automatically adapt to size/background changes because the command reads current properties each render.
The border will automatically adapt to size/background changes because the command
reads current properties each render.
### Parameters ### Parameters
* `colorOrOptions` `any` Border color or options table * `colorOrOptions` `any` Border color or options table
* `sideOptions` *(optional)* `table` Side options table (if color is provided as first argument)
### Returns ### Returns
* `VisualElement` self * `VisualElement` self