Diagram - RulerSettingsModel

18 Nov 20261 minute to read

Interface for a class RulerSettings

Properties

dynamicGrid boolean

Updates the gridlines relative to the ruler ticks.

horizontalRuler DiagramRulerModel

Defines the appearance of horizontal ruler

measurementUnit MeasurementUnit

Defines the measurement unit of both the horizontal and vertical rulers.
Physical units convert at a fixed 96 diagram units per inch. Model coordinates and event arguments stay in diagram units.

  • Pixel - Diagram units.
  • Point - Points (1 pt = 96 / 72 diagram units).
  • Centimeter - Centimeters.
  • Millimeter - Millimeters.
  • Inch - Inches.

showRulers boolean

Enables or disables both horizontal and vertical ruler.

verticalRuler DiagramRulerModel

Defines the appearance of vertical ruler