Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/graphics
SvgContext
Class SvgContext
Hierarchy
SvgContext
Implements
PaintingContext
Index
Constructors
constructor
Properties
fill
Style
path
Context
path
Flags
path
View
precision
stroke
Style
view
Fill
Flag
Fill
Rule
Flag
Path
Flag
Stroke
Flag
Methods
arc
arc
To
begin
Path
begin
Svg
bezier
Curve
To
close
Path
create
Path
Context
ellipse
fill
finalize
Path
finalize
Svg
get
OrCreate
Path
Context
get
Path
Context
line
To
move
To
next
Path
View
quadratic
Curve
To
rect
set
Path
Flags
set
Path
View
set
Precision
stroke
Constructors
constructor
new
Svg
Context
(
view
:
SvgView
)
:
SvgContext
Parameters
view:
SvgView
Returns
SvgContext
Properties
fill
Style
fill
Style
:
string
|
CanvasGradient
|
CanvasPattern
Readonly
path
Context
path
Context
:
PathContext
Readonly
path
Flags
path
Flags
:
number
Readonly
path
View
path
View
:
null
|
SvgView
Readonly
precision
precision
:
number
stroke
Style
stroke
Style
:
string
|
CanvasGradient
|
CanvasPattern
Readonly
view
view
:
SvgView
Static
Readonly
Fill
Flag
Fill
Flag
:
number
Static
Readonly
Fill
Rule
Flag
Fill
Rule
Flag
:
number
Static
Readonly
Path
Flag
Path
Flag
:
number
Static
Readonly
Stroke
Flag
Stroke
Flag
:
number
Methods
arc
arc
(
cx
:
number
, cy
:
number
, r
:
number
, a0
:
number
, a1
:
number
, ccw
?:
boolean
)
:
void
Parameters
cx:
number
cy:
number
r:
number
a0:
number
a1:
number
Optional
ccw:
boolean
Returns
void
arc
To
arc
To
(
x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
, r
:
number
)
:
void
Parameters
x1:
number
y1:
number
x2:
number
y2:
number
r:
number
Returns
void
begin
Path
begin
Path
(
)
:
void
Returns
void
begin
Svg
begin
Svg
(
)
:
void
Returns
void
bezier
Curve
To
bezier
Curve
To
(
x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
, x
:
number
, y
:
number
)
:
void
Parameters
x1:
number
y1:
number
x2:
number
y2:
number
x:
number
y:
number
Returns
void
close
Path
close
Path
(
)
:
void
Returns
void
Protected
create
Path
Context
create
Path
Context
(
)
:
PathContext
Returns
PathContext
ellipse
ellipse
(
cx
:
number
, cy
:
number
, rx
:
number
, ry
:
number
, phi
:
number
, a0
:
number
, a1
:
number
, ccw
?:
boolean
)
:
void
Parameters
cx:
number
cy:
number
rx:
number
ry:
number
phi:
number
a0:
number
a1:
number
Optional
ccw:
boolean
Returns
void
fill
fill
(
fillRule
?:
PaintingFillRule
)
:
void
Parameters
Optional
fillRule:
PaintingFillRule
Returns
void
finalize
Path
finalize
Path
(
)
:
void
Returns
void
finalize
Svg
finalize
Svg
(
)
:
void
Returns
void
Protected
get
OrCreate
Path
Context
get
OrCreate
Path
Context
(
)
:
PathContext
Returns
PathContext
Protected
get
Path
Context
get
Path
Context
(
)
:
PathContext
Returns
PathContext
line
To
line
To
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
move
To
move
To
(
x
:
number
, y
:
number
)
:
void
Parameters
x:
number
y:
number
Returns
void
next
Path
View
next
Path
View
(
)
:
null
|
SvgView
Returns
null
|
SvgView
quadratic
Curve
To
quadratic
Curve
To
(
x1
:
number
, y1
:
number
, x
:
number
, y
:
number
)
:
void
Parameters
x1:
number
y1:
number
x:
number
y:
number
Returns
void
rect
rect
(
x
:
number
, y
:
number
, w
:
number
, h
:
number
)
:
void
Parameters
x:
number
y:
number
w:
number
h:
number
Returns
void
set
Path
Flags
set
Path
Flags
(
pathFlags
:
number
)
:
void
Parameters
pathFlags:
number
Returns
void
set
Path
View
set
Path
View
(
pathView
:
null
|
SvgView
)
:
void
Parameters
pathView:
null
|
SvgView
Returns
void
set
Precision
set
Precision
(
precision
:
number
)
:
void
Parameters
precision:
number
Returns
void
stroke
stroke
(
)
:
void
Returns
void
Modules
@swim/system
@swim/toolkit
@swim/ui
@swim/model
@swim/style
@swim/theme
@swim/view
@swim/dom
@swim/graphics
@swim/component
@swim/ux
@swim/vis
@swim/maps
Svg
Context
constructor
fill
Style
path
Context
path
Flags
path
View
precision
stroke
Style
view
Fill
Flag
Fill
Rule
Flag
Path
Flag
Stroke
Flag
arc
arc
To
begin
Path
begin
Svg
bezier
Curve
To
close
Path
create
Path
Context
ellipse
fill
finalize
Path
finalize
Svg
get
OrCreate
Path
Context
get
Path
Context
line
To
move
To
next
Path
View
quadratic
Curve
To
rect
set
Path
Flags
set
Path
View
set
Precision
stroke
Generated using
TypeDoc