Class: VisualEditor

VisualEditor(options)

An editor that works by being overlayed on top of visuals in a pane. Note that the VisualEditor only works in terms and x and y. It does not have any sense of time since it does not have a time scale.

Constructor

new VisualEditor(options)

Create a visual editor.
Parameters:
Name Type Description
options Object Configuration options.
Author:
  • Lawrence Fyfe
Source:

Methods

clear()

Clear this VisualEditor by setting all of the callbacks to null.
Source:

draw()

Draw this VisualEditor.
Source:

drawEditBox(startX, endX, startY, endY)

Draw the edit box.
Parameters:
Name Type Description
startX number Start x.
endX number End x.
startY number Start y.
endY number End y.
Source:

erase()

Erase this VisualEditor.
Source:

eraseEditBox()

Erase the edit box.
Source:

initialize(parentElement, width, height)

Initialize this VisualEditor.
Parameters:
Name Type Description
parentElement Element The parent element.
width number The parent width.
height number The parent height.
Source:

setVisual(visual)

Set the specified visual to be edited by this editor, calling setEditor() for the visual to set relevant callbacks.
Parameters:
Name Type Description
visual object Configuration options.
Source: