MCPcopy
hub / github.com/palantir/plottable / constructor

Method constructor

src/components/dragBoxLayer.ts:55–66  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

_setUpCallbacksMethod · 0.95
addClassMethod · 0.80
attachToMethod · 0.45

Tested by

no test coverage detected