MCPcopy
hub / github.com/tldraw/tldraw / pointerMoveBy

Method pointerMoveBy

packages/tldraw/src/test/TestEditor.ts:388–396  ·  view source on GitHub ↗

* Move the pointer by the given delta from its current page position.

(
		dx: number,
		dy: number,
		modifiers?: Partial<{ ctrlKey: boolean; shiftKey: boolean; altKey: boolean }>
	)

Source from the content-addressed store, hash-verified

386 * Move the pointer by the given delta from its current page position.
387 */
388 pointerMoveBy(
389 dx: number,
390 dy: number,
391 modifiers?: Partial<{ ctrlKey: boolean; shiftKey: boolean; altKey: boolean }>
392 ): this {
393 const current = this.inputs.getCurrentPagePoint()
394 this.pointerMove(current.x + dx, current.y + dy, modifiers)
395 return this
396 }
397
398 /**
399 * Get the page point of a named selection handle (resize, rotate, crop, etc.)

Calls 2

pointerMoveMethod · 0.95
getCurrentPagePointMethod · 0.80

Tested by

no test coverage detected