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

Function triggerPointerEvent

test/interactions/pointerInteractionTests.ts:39–42  ·  view source on GitHub ↗
(p: Plottable.Point, mode: TestMethods.InteractionMode, target: SimpleSelection<void>)

Source from the content-addressed store, hash-verified

37 }
38
39 function triggerPointerEvent(p: Plottable.Point, mode: TestMethods.InteractionMode, target: SimpleSelection<void>) {
40 const type = mode === TestMethods.InteractionMode.Mouse ? TestMethods.InteractionType.Move : TestMethods.InteractionType.Start;
41 TestMethods.triggerFakeInteractionEvent(mode, type, target, p.x, p.y);
42 }
43
44 [TestMethods.InteractionMode.Mouse, TestMethods.InteractionMode.Touch].forEach((mode) => {
45 describe(`Listening to ${MODE_NAME[mode]} events`, () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected