Search results

Ruler API in React DocumentEditor API component

Properties

arrangeTick

Function | string

Sets the segment width of the ruler.

Defaults to null

interval

number

Defines the unique interval of the ruler.

Defaults to 6

length

number

Defines the length of the ruler.

Defaults to 400

markerColor

string

Defines the color of the marker.

Defaults to ‘red’

orientation

RulerOrientation

Defines the orientation of the ruler.

Defaults to ‘Horizontal’

segmentWidth

number

Sets the segment width of the ruler.

Defaults to 36

thickness

number

Defines the thickness of the ruler.

Defaults to 15

tickAlignment

TickAlignment

Defines the alignment of the tick in the ruler.

Defaults to ‘RightOrBottom’

Methods

destroy

To destroy the ruler

Returns void