MCPcopy Index your code
hub / github.com/tinyplex/tinybase / getCanvasOffset

Function getCanvasOffset

test/e2e/demos/drawing.test.ts:15–19  ·  view source on GitHub ↗
(page: Page)

Source from the content-addressed store, hash-verified

13afterAll(stopServer);
14
15const getCanvasOffset = async (page: Page) => {
16 const {x = 0, y = 0} =
17 (await (await expectedFramedElement(page, '#canvas')).boundingBox()) ?? {};
18 return {x, y};
19};
20
21test('drawing', async ({page}) => {
22 let offset;

Callers 1

drawing.test.tsFile · 0.85

Calls 1

expectedFramedElementFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…