PointerTarget
Defined in: src/modules/input/pointer-provider.ts:76
Structural target interface: any object exposing DOM event-target
semantics plus getBoundingClientRect. Real consumers pass an
HTMLElement (canvas, div, etc.). Tests can pass a minimal stub.
Extends
Section titled “Extends”EventTarget
Properties
Section titled “Properties”getBoundingClientRect
Section titled “getBoundingClientRect”getBoundingClientRect: () =>
object
Defined in: src/modules/input/pointer-provider.ts:77
Returns
Section titled “Returns”object
height
Section titled “height”
readonlyheight:number
readonlyleft:number
readonlytop:number
readonlywidth:number
Methods
Section titled “Methods”addEventListener()
Section titled “addEventListener()”addEventListener(
type,callback,options?):void
Defined in: node_modules/typescript/lib/lib.dom.d.ts:11569
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Parameters
Section titled “Parameters”string
callback
Section titled “callback”EventListenerOrEventListenerObject | null
options?
Section titled “options?”boolean | AddEventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”EventTarget.addEventListener
dispatchEvent()
Section titled “dispatchEvent()”dispatchEvent(
event):boolean
Defined in: node_modules/typescript/lib/lib.dom.d.ts:11575
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Parameters
Section titled “Parameters”Event
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”EventTarget.dispatchEvent
removeEventListener()
Section titled “removeEventListener()”removeEventListener(
type,callback,options?):void
Defined in: node_modules/typescript/lib/lib.dom.d.ts:11581
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Parameters
Section titled “Parameters”string
callback
Section titled “callback”EventListenerOrEventListenerObject | null
options?
Section titled “options?”boolean | EventListenerOptions
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”EventTarget.removeEventListener