Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
svgjs
Parent
Interface Parent
Hierarchy
Parent
Element
ElementStatic
Index
Methods
add
children
circle
ellipse
group
image
line
path
polygon
polyline
put
rect
text
use
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
Filter
FilterComponentTransfer
FilterSource
Library
LinkedHTMLElement
Mask
Parent
add
children
circle
ellipse
group
image
line
path
polygon
polyline
put
rect
text
use
RBox
Text
Transform
Viewbox