This page describes all of the usable variables and functions inside of ComponentHandler.js, which handles most logic functions.

Table of contents

LogicDisplay()

A constructor to initialize LogicDisplay, which defines LogicDisplay.components = []

Usage

const ld = new LogicDisplay()
console.log(ld)
/**************
LogicDisplay {components: Array(0)}
**************/

Internal functions

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.