Skip to content

LineFactoryHandler

Line Factory Handler

Extends

Constructors

new LineFactoryHandler()

new LineFactoryHandler(id, options?): LineFactoryHandler

Parameters

id: string

options?: Partial<HandlerOptions>

Returns

LineFactoryHandler

Inherited from

Handler.constructor

Source

editor.ts:1428

Properties

closed

closed: boolean = false

Source

handlers/line-handler.ts:17


dragPoint

dragPoint: number[]

Source

handlers/line-handler.ts:15


dragStartPoint

dragStartPoint: number[]

Source

handlers/line-handler.ts:14


dragging

dragging: boolean = false

Source

handlers/line-handler.ts:13


draggingMoved

draggingMoved: boolean = false

Source

handlers/line-handler.ts:18


id

id: string

Inherited from

Handler.id

Source

editor.ts:1425


multiPointMode

multiPointMode: boolean = false

Source

handlers/line-handler.ts:19


options

options: HandlerOptions

Inherited from

Handler.options

Source

editor.ts:1426


points

points: number[][] = []

Source

handlers/line-handler.ts:16


shape

shape: null | Line = null

Source

handlers/line-handler.ts:20

Methods

activate()

activate(editor): void

Activate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.activate

Source

editor.ts:1454


complete()

complete(editor): void

Trigger when the handler action is complete

Parameters

editor: Editor

Returns

void

Inherited from

Handler.complete

Source

editor.ts:1445


deactivate()

deactivate(editor): void

Deactivate the handler

Parameters

editor: Editor

Returns

void

Inherited from

Handler.deactivate

Source

editor.ts:1462


drawSelection()

drawSelection(editor): void

Draw ghost for the selected shape

Parameters

editor: Editor

Returns

void

Inherited from

Handler.drawSelection

Source

editor.ts:1507


finalize()

finalize(editor, e?): void

Parameters

editor: Editor

e?: CanvasPointerEvent

Returns

void

Source

handlers/line-handler.ts:56


initialize()

initialize(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/line-handler.ts:33


keyDown()

keyDown(editor, e): boolean

keyDown

Parameters

editor: Editor

e: KeyboardEvent

Returns

boolean

Overrides

Handler.keyDown

Source

handlers/line-handler.ts:132


keyUp()

keyUp(editor, e): void

keyUp

Parameters

editor: Editor

e: KeyboardEvent

Returns

void

Inherited from

Handler.keyUp

Source

editor.ts:1502


onActivate()

onActivate(editor): void

Triggered when activated

Parameters

editor: Editor

Returns

void

Overrides

Handler.onActivate

Source

handlers/line-handler.ts:150


onDeactivate()

onDeactivate(editor): void

Triggered when deactivate

Parameters

editor: Editor

Returns

void

Overrides

Handler.onDeactivate

Source

handlers/line-handler.ts:155


pointerDown()

pointerDown(editor, e): void

pointerDown

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerDown

Source

handlers/line-handler.ts:72


pointerMove()

pointerMove(editor, e): void

pointerMove

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerMove

Source

handlers/line-handler.ts:99


pointerUp()

pointerUp(editor, e): void

pointerUp

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Overrides

Handler.pointerUp

Source

handlers/line-handler.ts:119


reset()

reset(): void

Reset the states of handler

Returns

void

Overrides

Handler.reset

Source

handlers/line-handler.ts:22


update()

update(editor, e): void

Parameters

editor: Editor

e: CanvasPointerEvent

Returns

void

Source

handlers/line-handler.ts:45