Link Search Menu Expand Document

Events

events.ts#L30

Type alias EventCallback

events.ts#L28

Type alias ScreenEvent

events.ts#L29

Type alias ScrollEvent

events.ts#L587

bindEvent ($el: ElementView, event: string, fn: EventCallback, options: EventListenerOptions): void

Name Type Default Description
$el ElementView    
event string    
fn EventCallback    
options EventListenerOptions    
events.ts#L63

canvasPointerPosition (event: ScreenEvent, $canvas: CanvasView): Point

Gets the pointer position from an event triggered on an <canvas> element, in the coordinate system of the <canvas> element.

Name Type Default Description
event ScreenEvent    
$canvas CanvasView    
events.ts#L76

getEventTarget (event: ScreenEvent): ElementView

Get the target element for an event, including for touch/pointer events that started on a different element.

Name Type Default Description
event ScreenEvent    
events.ts#L339

hover ($el: ElementView, options: HoverEventOptions): void

Name Type Default Description
$el ElementView    
options HoverEventOptions    
events.ts#L248

pointerOver ($el: ElementView, fns: OverEventOptions): void

Name Type Default Description
$el ElementView    
fns OverEventOptions    
events.ts#L37

pointerPosition (e: any): Point

Gets the pointer position from an event.

Name Type Default Description
e any    
events.ts#L140

slide ($el: ElementView, fns: SlideEventOptions): void

Name Type Default Description
$el ElementView    
fns SlideEventOptions    
events.ts#L54

svgPointerPosn (event: ScreenEvent, $svg: SVGParentView): Point

Gets the pointer position from an event triggered on an <svg> element, in the coordinate system of the <svg> element.

Name Type Default Description
event ScreenEvent    
$svg SVGParentView    
events.ts#L600

unbindEvent ($el: ElementView, event: string, fn: EventCallback): void

Name Type Default Description
$el ElementView    
event string    
fn EventCallback    

Copyright © 2021 Mathigon.org