Search
Preparing search index...
The search index is not available
SavageDOM
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
ExternalComponent
Class ExternalComponent<EVENTS>
Type parameters
EVENTS
:
Renderable_Events
Hierarchy
Component
ExternalComponent
Index
Constructors
constructor
Properties
_node
_style
context
easing
loaded
Accessors
bounding
Box
id
node
context
Methods
add
animate
Attribute
clone
clone
Node
copy
Style
From
destroy
flush
get
Attribute
get
Children
get
Event
get
Events
get
Point
Events
hide
link
Dynamic
Attribute
move
To
render
Attribute
reparent
rotate
scale
set
Attribute
set
Attributes
show
to
Pattern
to
String
subscribe
Latest
Context
Constructors
constructor
new
External
Component
(
)
:
ExternalComponent
Returns
ExternalComponent
Properties
Protected
_node
_node
:
SVGGElement
Protected
_style
_style
:
CSSStyleDeclaration
context
context
:
Context
Protected
easing
easing
:
EasingFunction
loaded
loaded
:
Promise
<
any
>
Accessors
bounding
Box
get
boundingBox
(
)
:
Box
Returns
Box
id
get
id
(
)
:
string
Returns
string
node
get
node
(
)
:
SVGGElement
Returns
SVGGElement
Static
context
get
context
(
)
:
Context
set
context
(
ctx
:
Context
)
:
void
Returns
Context
Parameters
ctx:
Context
Returns
void
Methods
add
add
(
el
:
Element
<
SVGElement
>
|
SVGElement
)
:
void
Parameters
el:
Element
<
SVGElement
>
|
SVGElement
Returns
void
animate
Attribute
animate
Attribute<Attr>
(
name
:
Attr
, val
:
ATTRIBUTES[Attr]
, duration
:
number
, easing
:
EasingFunction
)
:
Promise
<
number
>
|
undefined
Type parameters
Attr
:
keyof Group_Attributes
Parameters
name:
Attr
val:
ATTRIBUTES[Attr]
duration:
number
easing:
EasingFunction
Returns
Promise
<
number
>
|
undefined
clone
clone
(
deep
?:
boolean
, id
?:
string
)
:
Element
<
SVGGElement
,
Group_Attributes
,
EVENTS
>
Parameters
Default value
deep:
boolean
= true
Default value
id:
string
= randomShortStringId()
Returns
Element
<
SVGGElement
,
Group_Attributes
,
EVENTS
>
Protected
clone
Node
clone
Node
(
deep
?:
boolean
)
:
SVGGElement
Parameters
Default value
deep:
boolean
= true
Returns
SVGGElement
copy
Style
From
copy
Style
From
(
el
:
Element
<
SVGElement
,
Group_Attributes
,
any
>
)
:
void
copy
Style
From
(
el
:
Element
<
SVGElement
,
Group_Attributes
,
any
>
, includeExclude
:
object
, defaultInclude
:
boolean
)
:
void
Parameters
el:
Element
<
SVGElement
,
Group_Attributes
,
any
>
Returns
void
Parameters
el:
Element
<
SVGElement
,
Group_Attributes
,
any
>
includeExclude:
object
defaultInclude:
boolean
Returns
void
destroy
destroy
(
)
:
void
Returns
void
flush
flush
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Attribute
get
Attribute<Attr>
(
name
:
Attr
)
:
string
|
null
Type parameters
Attr
:
keyof Group_Attributes
Parameters
name:
Attr
Returns
string
|
null
get
Children
get
Children
(
)
:
Element
<
SVGElement
>
[]
Returns
Element
<
SVGElement
>
[]
get
Event
get
Event<EVENT>
(
event
:
EVENT
)
:
Observable
<
EVENTS[EVENT]
>
Type parameters
EVENT
:
keyof EVENTS
Parameters
event:
EVENT
Returns
Observable
<
EVENTS[EVENT]
>
get
Events
get
Events
(
...
events
:
keyof EVENTS
[]
)
:
Observable
<
Event
>
Parameters
Rest
...
events:
keyof EVENTS
[]
Returns
Observable
<
Event
>
get
Point
Events
get
Point
Events<EVENT>
(
...
events
:
EVENT
[]
)
:
Observable
<
ResolvedPointEvent
>
Type parameters
EVENT
:
keyof EVENTS
Parameters
Rest
...
events:
EVENT
[]
Returns
Observable
<
ResolvedPointEvent
>
hide
hide
(
)
:
void
Returns
void
link
Dynamic
Attribute
link
Dynamic
Attribute<Attr>
(
name
:
Attr
, val
:
Observable
<
ATTRIBUTES[Attr]
>
)
:
Subscription
Type parameters
Attr
:
keyof Group_Attributes
Parameters
name:
Attr
val:
Observable
<
ATTRIBUTES[Attr]
>
Returns
Subscription
move
To
move
To
(
x
:
number
, y
:
number
, duration
?:
number
)
:
void
Parameters
x:
number
y:
number
Default value
duration:
number
= 0
Returns
void
render
Attribute
render
Attribute<Attr>
(
name
:
Attr
, val
:
ATTRIBUTES[Attr]
)
:
void
Type parameters
Attr
:
keyof Group_Attributes
Parameters
name:
Attr
val:
ATTRIBUTES[Attr]
Returns
void
reparent
reparent
(
child
:
AbstractRenderable
<
SVGGraphicsElement
>
, duration
:
number
, easing
?:
EasingFunction
)
:
Promise
<
any
>
Parameters
child:
AbstractRenderable
<
SVGGraphicsElement
>
duration:
number
Default value
easing:
EasingFunction
= linear
Returns
Promise
<
any
>
rotate
rotate
(
angle
:
number
, duration
?:
number
)
:
void
Parameters
angle:
number
Default value
duration:
number
= 0
Returns
void
scale
scale
(
x
:
number
, y
?:
number
, duration
?:
number
)
:
void
Parameters
x:
number
Default value
y:
number
= x
Default value
duration:
number
= 0
Returns
void
set
Attribute
set
Attribute<Attr>
(
name
:
Attr
, val
:
ATTRIBUTES[Attr]
)
:
void
Type parameters
Attr
:
keyof Group_Attributes
Parameters
name:
Attr
val:
ATTRIBUTES[Attr]
Returns
void
set
Attributes
set
Attributes
(
attrs
:
Partial
<
Group_Attributes
>
)
:
void
Parameters
attrs:
Partial
<
Group_Attributes
>
Returns
void
show
show
(
)
:
void
Returns
void
to
Pattern
to
Pattern
(
w
:
number
, h
:
number
)
:
Pattern
to
Pattern
(
w
:
number
, h
:
number
, x
:
number
, y
:
number
)
:
Pattern
to
Pattern
(
w
:
number
, h
:
number
, x
:
number
, y
:
number
, view
:
Box
)
:
Pattern
Parameters
w:
number
h:
number
Returns
Pattern
Parameters
w:
number
h:
number
x:
number
y:
number
Returns
Pattern
Parameters
w:
number
h:
number
x:
number
y:
number
view:
Box
Returns
Pattern
to
String
to
String
(
)
:
string
Returns
string
Static
subscribe
Latest
Context
subscribe
Latest
Context
(
)
:
void
Returns
void
Globals
External
Component
constructor
_node
_style
context
easing
loaded
bounding
Box
id
node
context
add
animate
Attribute
clone
clone
Node
copy
Style
From
destroy
flush
get
Attribute
get
Children
get
Event
get
Events
get
Point
Events
hide
link
Dynamic
Attribute
move
To
render
Attribute
reparent
rotate
scale
set
Attribute
set
Attributes
show
to
Pattern
to
String
subscribe
Latest
Context
Generated using
TypeDoc