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

Function resetBox

test/components/dragBoxLayerTests.ts:345–356  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

343 let initialBounds: Plottable.Bounds;
344
345 function resetBox() {
346 dbl.bounds({
347 topLeft: { x: 0, y: 0 },
348 bottomRight: { x: 0, y: 0 },
349 });
350 TestMethods.triggerFakeDragSequence(
351 target,
352 { x: DIV_WIDTH / 4, y: DIV_HEIGHT / 4},
353 { x: DIV_WIDTH * 3 / 4, y: DIV_HEIGHT * 3 / 4},
354 );
355 initialBounds = dbl.bounds();
356 }
357
358 beforeEach(() => {
359 div = TestMethods.generateDiv(DIV_WIDTH, DIV_HEIGHT);

Callers 1

Calls 1

boundsMethod · 0.45

Tested by

no test coverage detected