Home Reference Source Repository
public class | source

Selector

You can directly use an instance of this class. selector

Constructor Summary

Public Constructor
public

Member Summary

Private Members
private

_layer: *

private
private

_selectorPosNow: {"x": *, "y": *}

private

_selectorPosStart: {"x": *, "y": *}

private
private

_stage: *

Method Summary

Public Methods
public
public
public

clear()

public

clearAggregator(object: *, aggregator: *)

public
public

end(event: *)

public
public
public
public
public
public

hitCheck(shape1: *, shape2: *): boolean

public

move(event: *)

public

removeObject(object: *)

public

reverse(r1: *, r2: *): {"x1": *, "y1": *, "x2": *, "y2": *}

public

setObject(object: *)

public

start(event: *)

public

startDragSelector(posIn: *)

public

style(object: *, selectorRect: *, aggregator: *)

public

updateDragSelector(posIn: *)

Public Constructors

public constructor() source

Private Members

private _layer: * source

private _mode: string source

private _selectorPosNow: {"x": *, "y": *} source

private _selectorPosStart: {"x": *, "y": *} source

private _selectorRect: * source

private _stage: * source

Public Methods

public addToLayer() source

public bootstrap() source

public clear() source

public clearAggregator(object: *, aggregator: *) source

Params:

NameTypeAttributeDescription
object *
aggregator *

public configureSelectorEvents() source

public end(event: *) source

Params:

NameTypeAttributeDescription
event *

public getSelectedAggregators(): * source

Return:

*

public getSelectedKonvaObjects(): * source

Return:

*

public getSelectedKonvaPoints(): * source

Return:

*

public getSelectedPoints(): * source

Return:

*

public getSelectedPointsAggregators(): * source

Return:

*

public hitCheck(shape1: *, shape2: *): boolean source

Params:

NameTypeAttributeDescription
shape1 *
shape2 *

Return:

boolean

public move(event: *) source

Params:

NameTypeAttributeDescription
event *

public removeObject(object: *) source

Params:

NameTypeAttributeDescription
object *

public reverse(r1: *, r2: *): {"x1": *, "y1": *, "x2": *, "y2": *} source

Params:

NameTypeAttributeDescription
r1 *
r2 *

Return:

{"x1": *, "y1": *, "x2": *, "y2": *}

public setObject(object: *) source

Params:

NameTypeAttributeDescription
object *

public start(event: *) source

Params:

NameTypeAttributeDescription
event *

public startDragSelector(posIn: *) source

Params:

NameTypeAttributeDescription
posIn *

public style(object: *, selectorRect: *, aggregator: *) source

Params:

NameTypeAttributeDescription
object *
selectorRect *
aggregator *

public updateDragSelector(posIn: *) source

Params:

NameTypeAttributeDescription
posIn *