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

Function onEvent

test/components/dragBoxLayerTests.ts:28–40  ·  view source on GitHub ↗
(event: string, callback: (bound: { topLeft: Plottable.Point, bottomRight: Plottable.Point }) => void)

Source from the content-addressed store, hash-verified

26 });
27
28 function onEvent(event: string, callback: (bound: { topLeft: Plottable.Point, bottomRight: Plottable.Point }) => void) {
29 switch (event) {
30 case "dragStart":
31 dbl.onDragStart(callback);
32 break;
33 case "drag":
34 dbl.onDragStart(callback);
35 break;
36 case "dragEnd":
37 dbl.onDragEnd(callback);
38 break;
39 }
40 }
41
42 function offEvent(event: string, callback: (bound: { topLeft: Plottable.Point, bottomRight: Plottable.Point }) => void) {
43 switch (event) {

Callers 1

Calls 2

onDragStartMethod · 0.45
onDragEndMethod · 0.45

Tested by

no test coverage detected