Reincharts
Preparing search index...
packages/series/src
StraightLine
Class StraightLine
Hierarchy
Component
<
StraightLineProps
>
StraightLine
Index
Constructors
constructor
Properties
default
Props
Methods
draw
On
Canvas
get
Line
Coordinates
render
Constructors
constructor
new
StraightLine
(
props
:
StraightLineProps
)
:
StraightLine
Parameters
props
:
StraightLineProps
Returns
StraightLine
new
StraightLine
(
props
:
StraightLineProps
,
context
:
any
)
:
StraightLine
Parameters
props
:
StraightLineProps
context
:
any
value of the parent
Context
specified in
contextType
.
Returns
StraightLine
Properties
Static
default
Props
defaultProps
:
{
lineDash
:
string
;
lineWidth
:
number
;
strokeStyle
:
string
;
type
:
string
;
}
= ...
Methods
Private
Readonly
draw
On
Canvas
drawOnCanvas
(
ctx
:
CanvasRenderingContext2D
,
moreProps
:
any
)
:
void
Parameters
ctx
:
CanvasRenderingContext2D
moreProps
:
any
Returns
void
Private
Readonly
get
Line
Coordinates
getLineCoordinates
(
type
:
undefined
|
"horizontal"
|
"vertical"
,
xScale
:
|
ScaleContinuousNumeric
<
number
,
number
,
never
>
|
ScaleTime
<
number
,
number
,
never
>
,
yScale
:
ScaleContinuousNumeric
<
number
,
number
>
,
xValue
:
undefined
|
number
,
yValue
:
undefined
|
number
,
width
:
number
,
height
:
number
,
)
:
{
x1
:
number
;
x2
:
number
;
y1
:
number
;
y2
:
number
}
Parameters
type
:
undefined
|
"horizontal"
|
"vertical"
xScale
:
ScaleContinuousNumeric
<
number
,
number
,
never
>
|
ScaleTime
<
number
,
number
,
never
>
yScale
:
ScaleContinuousNumeric
<
number
,
number
>
xValue
:
undefined
|
number
yValue
:
undefined
|
number
width
:
number
height
:
number
Returns
{
x1
:
number
;
x2
:
number
;
y1
:
number
;
y2
:
number
}
render
render
()
:
Element
Returns
Element
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
default
Props
Methods
draw
On
Canvas
get
Line
Coordinates
render
Reincharts
Loading...
value of the parent Context specified in
contextType
.