Home Reference Source
import LongPressConnector from './ui/elements/longpressconnector.js'
public class | source

LongPressConnector

Extends:

cables-shared-client~Events → LongPressConnector

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private

_canceled: boolean

private

_delay: number

private
private
private
private

_glOp: *

private
private
private

_longPress: boolean

private
private
private
private
private

_startX: number

private

_startY: number

Method Summary

Public Methods
public

finish(mouseEvent: *, op2: *)

public
public

getStartOp(): *

public

glRender(glpatch: *, cgl: *, resX: *, resY: *, scrollX: *, scrollY: *, zoom: *, mouseX: *, mouseY: *)

public

isActive(): *

public
public

longPressStart(op: *, e: *, options: *)

Private Methods
private

_longpressmove(e: *): *

private
private

Public Constructors

public constructor() source

Private Members

private _canceled: boolean source

private _delay: number source

private _enabled: * source

private _glLineDrawer: * source

private _glLineIdx: * source

private _glOp: * source

private _listenerDown: * source

private _listenerUp: * source

private _longPress: boolean source

private _longPressOp: * source

private _longPressStartTime: number source

private _longPressTimeout: * source

private _quickAddOpStart: * source

private _startX: number source

private _startY: number source

Public Methods

public finish(mouseEvent: *, op2: *) source

Params:

NameTypeAttributeDescription
mouseEvent *
op2 *

public getParamPanelHtml(): * source

Return:

*

public getStartOp(): * source

Return:

*

public glRender(glpatch: *, cgl: *, resX: *, resY: *, scrollX: *, scrollY: *, zoom: *, mouseX: *, mouseY: *) source

Params:

NameTypeAttributeDescription
glpatch *
cgl *
resX *
resY *
scrollX *
scrollY *
zoom *
mouseX *
mouseY *

public isActive(): * source

Return:

*

public longPressCancel() source

public longPressStart(op: *, e: *, options: *) source

Params:

NameTypeAttributeDescription
op *
e *
options *

Private Methods

private _longpressmove(e: *): * source

Params:

NameTypeAttributeDescription
e *

Return:

*

private _longpressup() source

private _removelisteners() source