NoteOperator

class Operators.NoteOperator()

Methods

Operators.NoteOperator.addMapping()

inherited

addMapping(button: Button, modifier: KeyModifiers?): void

Adds a button and key modifier mapping for the operator. If no mapping is provided, all combinations are considered valid. All mappings require a mouse button, but a key modifier is optional.

Parameters

button: Button

modifier: KeyModifiers = KeyModifiers.None

Returns: void

Operators.NoteOperator.checkPinInstance()
checkPinInstance(nodeId: number): boolean

Returns true if the nodeId is the id of a note pin instance.

Parameters

nodeId: number

Returns: boolean

Operators.NoteOperator.clearMapping()

inherited

clearMapping(): void

Clears any button and key modifier mappings for the operator.

Returns: void

Operators.NoteOperator.getNoteTextElement()
getNoteTextElement(): NoteTextElement

Returns: NoteTextElement

a NoteTextElement that can be used to configure the NoteText HTML container.
Operators.NoteOperator.setMapping()

inherited

setMapping(button: Button, modifier: KeyModifiers?): void

Sets the button and key modifier mapping for the operator.

Parameters

button: Button

modifier: KeyModifiers = KeyModifiers.None

Returns: void

Operators.NoteOperator.setNoteTextElement()
setNoteTextElement(noteTextElement: NoteTextElement): void

Parameters

noteTextElement: NoteTextElement

Returns: void