This page describes all of the usable variables and functions inside of ComponentHandler.js, which handles most logic functions.
LogicDisplay()A constructor to initialize LogicDisplay, which defines LogicDisplay.components = []
const ld = new LogicDisplay()
console.log(ld)
/**************
LogicDisplay {components: Array(0)}
**************/
init()A deprecated function. Nothing special :)
addComponent()Adds a component into the components variable
→ Usage
new LogicDisplay().addComponent(component: Component)
customSyntax()Allows you to experiment with syntaxes that interface directly with LogicDisplay.components. Syntaxes start with \\ and followed by the syntax in this order: \\{index}.{property}.
→ Usage
new LogicDisplay().customSyntax(command: string)
exportJSON()Exports the component JSON as a string, ready to be sent as a project file.