* Constructs a DragBoxLayer. * * A DragBoxLayer is a SelectionBoxLayer with a built-in Drag Interaction. * A drag gesture will set the Bounds of the box. * If resizing is enabled using resizable(true), the edges of box can be repositioned. * * @constructor
()
| 53 | * @constructor |
| 54 | */ |
| 55 | constructor() { |
| 56 | super(); |
| 57 | this.addClass("drag-box-layer"); |
| 58 | |
| 59 | this._dragInteraction = new Interactions.Drag(); |
| 60 | this._setUpCallbacks(); |
| 61 | this._dragInteraction.attachTo(this); |
| 62 | |
| 63 | this._dragStartCallbacks = new Utils.CallbackSet<DragBoxCallback>(); |
| 64 | this._dragCallbacks = new Utils.CallbackSet<DragBoxCallback>(); |
| 65 | this._dragEndCallbacks = new Utils.CallbackSet<DragBoxCallback>(); |
| 66 | } |
| 67 | |
| 68 | private _setUpCallbacks() { |
| 69 | let resizingEdges: _EdgeIndicator; |
nothing calls this directly
no test coverage detected