Eulergraph
Preparing search index...
services/DrawService/DrawService
DrawService
Class DrawService
Hierarchy (
View Summary
)
Service
DrawService
Index
Constructors
constructor
Properties
dimension
Type
euler
Engine
fantom
Cell
fill
Style
hatch
interactive
line
Style
paint
Color
Accessors
current
Angle
current
Line
Length
figure
is
Drawing
Methods
add
Shape
clear
Points
create
Free
Draw
Line
disable
Interactive
dispose
draw
Bezier
Ghost
draw
Figure
Ghost
finish
Create
init
Draw
is
Free
Draw
is
Paint
Cell
make
Interactive
paint
Cell
Path
reload
Fantom
stop
Draw
subscribe
unsubscribe
Constructors
constructor
new
DrawService
(
eulerEngine
:
EulerGraph
)
:
DrawService
Parameters
eulerEngine
:
EulerGraph
Returns
DrawService
Properties
dimension
Type
dimensionType
:
LinearDimensionType
= "parallel"
Readonly
euler
Engine
eulerEngine
:
EulerGraph
fantom
Cell
fantomCell
:
CellParametric
|
LineParametric
|
null
= null
fill
Style
fillStyle
:
FillStyle
= "color"
hatch
hatch
:
HatchFill
= ...
interactive
interactive
:
boolean
= true
line
Style
lineStyle
:
{
curveType
:
CurveType
;
dashes
?:
number
[]
}
= ...
paint
Color
paintColor
:
string
= "#000000"
Accessors
current
Angle
get
currentAngle
()
:
number
Returns
number
set
currentAngle
(
angle
:
number
)
:
void
Parameters
angle
:
number
Returns
void
current
Line
Length
get
currentLineLength
()
:
number
Returns
number
set
currentLineLength
(
length
:
number
)
:
void
Parameters
length
:
number
Returns
void
figure
get
figure
()
:
|
"polyline"
|
"ellipse"
|
"line"
|
"triangle"
|
"rectangle"
|
"parallelogramm"
|
"regularPolygon"
|
"linearDimension"
|
"calloutLine"
|
"spline"
|
"bezier"
|
"paintShape"
|
null
Returns
|
"polyline"
|
"ellipse"
|
"line"
|
"triangle"
|
"rectangle"
|
"parallelogramm"
|
"regularPolygon"
|
"linearDimension"
|
"calloutLine"
|
"spline"
|
"bezier"
|
"paintShape"
|
null
set
figure
(
figure
:
|
"polyline"
|
"ellipse"
|
"line"
|
"triangle"
|
"rectangle"
|
"parallelogramm"
|
"regularPolygon"
|
"linearDimension"
|
"calloutLine"
|
"spline"
|
"bezier"
|
"paintShape"
|
null
,
)
:
void
Parameters
figure
:
|
"polyline"
|
"ellipse"
|
"line"
|
"triangle"
|
"rectangle"
|
"parallelogramm"
|
"regularPolygon"
|
"linearDimension"
|
"calloutLine"
|
"spline"
|
"bezier"
|
"paintShape"
|
null
Returns
void
is
Drawing
get
isDrawing
()
:
boolean
Returns
boolean
Methods
add
Shape
addShape
()
:
void
Returns
void
clear
Points
clearPoints
()
:
void
Returns
void
create
Free
Draw
Line
createFreeDrawLine
(
freeDrawPoints
:
Point
[]
,
type
:
"polyline"
|
"line"
|
"spline"
|
"bezier"
,
)
:
void
Parameters
freeDrawPoints
:
Point
[]
type
:
"polyline"
|
"line"
|
"spline"
|
"bezier"
Returns
void
disable
Interactive
disableInteractive
()
:
void
Returns
void
dispose
dispose
()
:
void
Returns
void
draw
Bezier
Ghost
drawBezierGhost
(
x
:
number
,
y
:
number
)
:
void
Parameters
x
:
number
y
:
number
Returns
void
draw
Figure
Ghost
drawFigureGhost
(
x
:
number
,
y
:
number
,
canvasPoint
:
Point
)
:
void
Parameters
x
:
number
y
:
number
canvasPoint
:
Point
Returns
void
finish
Create
finishCreate
()
:
void
Returns
void
init
Draw
initDraw
()
:
void
Returns
void
is
Free
Draw
isFreeDraw
()
:
boolean
Returns
boolean
is
Paint
Cell
isPaintCell
()
:
boolean
Returns
boolean
make
Interactive
makeInteractive
()
:
void
Returns
void
paint
Cell
Path
paintCellPath
(
cells
:
GraphicElement
[]
,
point
:
PointLike
,
ctx
:
CanvasRenderingContext2D
,
)
:
void
Parameters
cells
:
GraphicElement
[]
point
:
PointLike
ctx
:
CanvasRenderingContext2D
Returns
void
reload
Fantom
reloadFantom
()
:
void
Returns
void
stop
Draw
stopDraw
()
:
void
Returns
void
subscribe
subscribe
()
:
void
Returns
void
unsubscribe
unsubscribe
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
dimension
Type
euler
Engine
fantom
Cell
fill
Style
hatch
interactive
line
Style
paint
Color
Accessors
current
Angle
current
Line
Length
figure
is
Drawing
Methods
add
Shape
clear
Points
create
Free
Draw
Line
disable
Interactive
dispose
draw
Bezier
Ghost
draw
Figure
Ghost
finish
Create
init
Draw
is
Free
Draw
is
Paint
Cell
make
Interactive
paint
Cell
Path
reload
Fantom
stop
Draw
subscribe
unsubscribe
Eulergraph
Loading...