Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Context

Hierarchy

  • Context

Index

Constructors

constructor

  • new Context(): Context
  • new Context(id: string, window?: Window): Context
  • new Context(el: SVGSVGElement, window?: Window): Context

Properties

Private _defs

_defs: Element<SVGDefsElement>

Private _root

_root: SVGSVGElement

Private _window

_window: Window

Static DEFAULT_WINDOW

DEFAULT_WINDOW: Window = window

Static Private _CONTEXT_SUBJECT

_CONTEXT_SUBJECT: ReplaySubject<Context> = new ReplaySubject<Context>(1)

Accessors

mousePosition

root

  • get root(): SVGSVGElement

window

  • get window(): Window

Static contexts

  • get contexts(): Observable<Context>

Methods

addChild

  • addChild(el: SVGElement | Element<SVGElement>): void

addDef

  • addDef(def: SVGElement | Element<SVGElement>): void

calculateLocalPoint

  • calculateLocalPoint<ELEMENT>(elementNode: ELEMENT, action: MouseEvent | Touch): DOMPoint
  • Type parameters

    • ELEMENT: SVGGraphicsElement

    Parameters

    • elementNode: ELEMENT
    • action: MouseEvent | Touch

    Returns DOMPoint

circle

clipPath

ellipse

foreignObject

group

imageAfterLoad

line

linearGradient

load

marker

mask

path

pattern

polygon

polyline

radialGradient

rect

text

Generated using TypeDoc