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 |
getSelectedPoints(): * |
|
public |
|
|
public |
|
|
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 _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:
Name | Type | Attribute | Description |
object | * | ||
aggregator | * |
public configureSelectorEvents() source
public end(event: *) source
Params:
Name | Type | Attribute | Description |
event | * |
public hitCheck(shape1: *, shape2: *): boolean source
Params:
Name | Type | Attribute | Description |
shape1 | * | ||
shape2 | * |
public move(event: *) source
Params:
Name | Type | Attribute | Description |
event | * |
public removeObject(object: *) source
Params:
Name | Type | Attribute | Description |
object | * |
public reverse(r1: *, r2: *): {"x1": *, "y1": *, "x2": *, "y2": *} source
Params:
Name | Type | Attribute | Description |
r1 | * | ||
r2 | * |
Return:
{"x1": *, "y1": *, "x2": *, "y2": *} |
public setObject(object: *) source
Params:
Name | Type | Attribute | Description |
object | * |
public start(event: *) source
Params:
Name | Type | Attribute | Description |
event | * |
public startDragSelector(posIn: *) source
Params:
Name | Type | Attribute | Description |
posIn | * |
public style(object: *, selectorRect: *, aggregator: *) source
Params:
Name | Type | Attribute | Description |
object | * | ||
selectorRect | * | ||
aggregator | * |
public updateDragSelector(posIn: *) source
Params:
Name | Type | Attribute | Description |
posIn | * |