Search
Preparing search index...
The search index is not available
SavageDOM
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
Context
Class Context
Hierarchy
Context
Index
Constructors
constructor
Properties
_defs
_root
_window
DEFAULT_
WINDOW
_CONTEXT_
SUBJECT
Accessors
mouse
Position
root
window
contexts
Methods
add
Child
add
Def
calculate
Local
Point
circle
clip
Path
ellipse
foreign
Object
group
image
After
Load
line
linear
Gradient
load
marker
mask
path
pattern
polygon
polyline
radial
Gradient
rect
text
Constructors
constructor
new
Context
(
)
:
Context
new
Context
(
id
:
string
, window
?:
Window
)
:
Context
new
Context
(
el
:
SVGSVGElement
, window
?:
Window
)
:
Context
Returns
Context
Parameters
id:
string
Optional
window:
Window
Returns
Context
Parameters
el:
SVGSVGElement
Optional
window:
Window
Returns
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
mouse
Position
get
mousePosition
(
)
:
Observable
<
ResolvedPointEvent
>
Returns
Observable
<
ResolvedPointEvent
>
root
get
root
(
)
:
SVGSVGElement
Returns
SVGSVGElement
window
get
window
(
)
:
Window
Returns
Window
Static
contexts
get
contexts
(
)
:
Observable
<
Context
>
Returns
Observable
<
Context
>
Methods
add
Child
add
Child
(
el
:
SVGElement
|
Element
<
SVGElement
>
)
:
void
Parameters
el:
SVGElement
|
Element
<
SVGElement
>
Returns
void
add
Def
add
Def
(
def
:
SVGElement
|
Element
<
SVGElement
>
)
:
void
Parameters
def:
SVGElement
|
Element
<
SVGElement
>
Returns
void
calculate
Local
Point
calculate
Local
Point<ELEMENT>
(
elementNode
:
ELEMENT
, action
:
MouseEvent
|
Touch
)
:
DOMPoint
Type parameters
ELEMENT
:
SVGGraphicsElement
Parameters
elementNode:
ELEMENT
action:
MouseEvent
|
Touch
Returns
DOMPoint
circle
circle
(
...
args
:
ElementConstructorArgumentsType
<
Circle
>
)
:
Circle
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Circle
>
Returns
Circle
clip
Path
clip
Path
(
...
args
:
ElementConstructorArgumentsType
<
ClipPath
>
)
:
ClipPath
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
ClipPath
>
Returns
ClipPath
ellipse
ellipse
(
...
args
:
ElementConstructorArgumentsType
<
Ellipse
>
)
:
Ellipse
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Ellipse
>
Returns
Ellipse
foreign
Object
foreign
Object
(
...
args
:
ElementConstructorArgumentsType
<
ForeignObject
>
)
:
ForeignObject
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
ForeignObject
>
Returns
ForeignObject
group
group
(
...
args
:
ElementConstructorArgumentsType
<
Group
>
)
:
Group
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Group
>
Returns
Group
image
After
Load
image
After
Load
(
...
args
:
ElementArgumentsType
<
afterLoad
>
)
:
Promise
<
Image
>
Parameters
Rest
...
args:
ElementArgumentsType
<
afterLoad
>
Returns
Promise
<
Image
>
line
line
(
...
args
:
ElementConstructorArgumentsType
<
Line
>
)
:
Line
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Line
>
Returns
Line
linear
Gradient
linear
Gradient
(
...
args
:
ElementConstructorArgumentsType
<
LinearGradient
>
)
:
LinearGradient
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
LinearGradient
>
Returns
LinearGradient
load
load
(
url
:
string
)
:
Promise
<
ExternalSVG
>
Parameters
url:
string
Returns
Promise
<
ExternalSVG
>
marker
marker
(
...
args
:
ElementConstructorArgumentsType
<
Marker
>
)
:
Marker
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Marker
>
Returns
Marker
mask
mask
(
...
args
:
ElementConstructorArgumentsType
<
Mask
>
)
:
Mask
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Mask
>
Returns
Mask
path
path
(
...
args
:
ElementConstructorArgumentsType
<
Path
>
)
:
Path
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Path
>
Returns
Path
pattern
pattern
(
...
args
:
ElementConstructorArgumentsType
<
Pattern
>
)
:
Pattern
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Pattern
>
Returns
Pattern
polygon
polygon
(
...
args
:
ElementConstructorArgumentsType
<
Polygon
>
)
:
Polygon
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Polygon
>
Returns
Polygon
polyline
polyline
(
...
args
:
ElementConstructorArgumentsType
<
Polyline
>
)
:
Polyline
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Polyline
>
Returns
Polyline
radial
Gradient
radial
Gradient
(
...
args
:
ElementConstructorArgumentsType
<
RadialGradient
>
)
:
RadialGradient
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
RadialGradient
>
Returns
RadialGradient
rect
rect
(
...
args
:
ElementConstructorArgumentsType
<
Rect
>
)
:
Rect
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Rect
>
Returns
Rect
text
text
(
...
args
:
ElementConstructorArgumentsType
<
Text
>
)
:
Text
Parameters
Rest
...
args:
ElementConstructorArgumentsType
<
Text
>
Returns
Text
Globals
Context
constructor
_defs
_root
_window
DEFAULT_
WINDOW
_CONTEXT_
SUBJECT
mouse
Position
root
window
contexts
add
Child
add
Def
calculate
Local
Point
circle
clip
Path
ellipse
foreign
Object
group
image
After
Load
line
linear
Gradient
load
marker
mask
path
pattern
polygon
polyline
radial
Gradient
rect
text
Generated using
TypeDoc