Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
svgjs
ElementStatic
Interface ElementStatic
Hierarchy
Parent
ElementStatic
Index
Construct signatures
constructor
Methods
add
children
circle
ellipse
group
image
line
path
polygon
polyline
put
rect
text
use
Construct signatures
constructor
(
node
:
any
)
:
Element
Parameters
node:
any
Returns
Element
Methods
public
add
(
element
:
Element
, i
?:
number
)
:
Element
Parameters
element:
Element
i?:
number
optional
Returns
Element
public
children
(
)
:
Element
[]
Returns
Element
[]
public
circle
(
diameter
:
number
)
:
Element
Parameters
diameter:
number
Returns
Element
public
ellipse
(
w
:
number
, h
:
number
)
:
Element
Parameters
w:
number
h:
number
Returns
Element
public
group
(
)
:
Element
Returns
Element
public
image
(
url
:
string
, w
?:
number
, h
?:
number
)
:
Element
Parameters
url:
string
w?:
number
optional
h?:
number
optional
Returns
Element
public
line
(
x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
)
:
Element
Parameters
x1:
number
y1:
number
x2:
number
y2:
number
Returns
Element
public
path
(
data
:
string
)
:
Element
Parameters
data:
string
Returns
Element
public
polygon
(
data
:
string
)
:
Element
Parameters
data:
string
Returns
Element
public
polygon
(
points
:
Array<number[]>
)
:
Element
Parameters
points:
Array<number[]>
Returns
Element
public
polyline
(
data
:
string
)
:
Element
Parameters
data:
string
Returns
Element
public
polyline
(
points
:
Array<number[]>
)
:
Element
Parameters
points:
Array<number[]>
Returns
Element
public
put
(
element
:
Element
, i
?:
number
)
:
Element
Parameters
element:
Element
i?:
number
optional
Returns
Element
public
rect
(
w
:
number
, h
:
number
)
:
Element
Parameters
w:
number
h:
number
Returns
Element
public
text
(
text
:
string
)
:
Element
Parameters
text:
string
Returns
Element
public
text
(
adder
:
(element: svgjs.Element) => void
)
:
Element
Parameters
adder:
(element: svgjs.Element) => void
Returns
Element
public
use
(
element
:
Element
)
:
Element
Parameters
element:
Element
Returns
Element
Globals
svgjs
Animation
Attributes
BBox
Defs
Doc
Element
ElementStatic
constructor
add
children
circle
ellipse
group
image
line
path
polygon
polyline
put
rect
text
use
Filter
FilterComponentTransfer
FilterSource
Library
LinkedHTMLElement
Mask
Parent
RBox
Text
Transform
Viewbox