Reincharts
Preparing search index...
packages/interactive/src
Drawing
Class Drawing
Hierarchy
Component
<
DrawingProps
,
DrawingState
>
Drawing
Index
Constructors
constructor
Properties
get
Selection
State
mouse
Moved
save
Node
Type
terminate
default
Props
display
Name
Methods
handle
Drag
Drawing
handle
Drag
Drawing
Complete
handle
Draw
Drawing
handle
End
handle
Start
render
Constructors
constructor
new
Drawing
(
props
:
DrawingProps
)
:
Drawing
Parameters
props
:
DrawingProps
Returns
Drawing
Properties
Private
get
Selection
State
getSelectionState
:
any
Private
mouse
Moved
mouseMoved
:
any
Private
save
Node
Type
saveNodeType
:
any
Private
terminate
terminate
:
any
Static
default
Props
defaultProps
:
{
appearance
:
{
selectedStroke
:
string
;
selectedStrokeWidth
:
number
;
stroke
:
string
;
strokeWidth
:
number
;
tolerance
:
number
;
}
;
currentPositionOpacity
:
number
;
currentPositionRadius
:
number
;
currentPositionStroke
:
string
;
currentPositionStrokeWidth
:
number
;
drawings
:
never
[]
;
enabled
:
boolean
;
hoverText
:
{
bgFill
:
string
;
bgHeight
:
string
;
bgWidth
:
string
;
enable
:
boolean
;
fill
:
string
;
fontFamily
:
string
;
fontSize
:
number
;
text
:
string
;
}
;
onComplete
:
()
=>
void
;
onSelect
:
()
=>
void
;
onStart
:
()
=>
void
;
}
= ...
Static
display
Name
displayName
:
string
= "Drawing"
Methods
Private
Readonly
handle
Drag
Drawing
handleDragDrawing
(
e
:
MouseEvent
,
index
:
undefined
|
number
,
newDrawingValue
:
any
,
)
:
void
Parameters
e
:
MouseEvent
index
:
undefined
|
number
newDrawingValue
:
any
Returns
void
Private
Readonly
handle
Drag
Drawing
Complete
handleDragDrawingComplete
(
e
:
MouseEvent
,
moreProps
:
any
)
:
void
Parameters
e
:
MouseEvent
moreProps
:
any
Returns
void
Private
Readonly
handle
Draw
Drawing
handleDrawDrawing
(
e
:
MouseEvent
,
xyValue
:
any
)
:
void
Parameters
e
:
MouseEvent
xyValue
:
any
Returns
void
Private
Readonly
handle
End
handleEnd
(
e
:
MouseEvent
,
_
:
any
,
moreProps
:
any
)
:
void
Parameters
e
:
MouseEvent
_
:
any
moreProps
:
any
Returns
void
Private
Readonly
handle
Start
handleStart
(
e
:
MouseEvent
,
xyValue
:
any
)
:
void
Parameters
e
:
MouseEvent
xyValue
:
any
Returns
void
render
render
()
:
Element
Returns
Element
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
get
Selection
State
mouse
Moved
save
Node
Type
terminate
default
Props
display
Name
Methods
handle
Drag
Drawing
handle
Drag
Drawing
Complete
handle
Draw
Drawing
handle
End
handle
Start
render
Reincharts
Loading...