Skip to content

Rectangle

Srdjan Djenader edited this page Nov 30, 2017 · 2 revisions

Provides a tool to draw rectangles.


Enabling the Plugin

plugins: [
    'Rectangle',
    'Color',
    'ShapeBorder'
]

Configuration

pluginsConfig: {
    'Rectangle': {
        centeringMode: 'normal'
    }
}
  • centeringMode:
    • Defines the centering method when drawing a rectangle:
      • 'normal': The rectangle's top left corner will be placed at the position of the first mouse click and will be resized from that point.
      • 'from_center': The rectangle's top left corner will be placed at the position of the first mouse click and will be resized from that point.
  • The Color or ColorHtml5 plugin allows the user to set the color of the shape.
  • The optional ShapeBorder plugin allows the user to set the color and style of the border.
Clone this wiki locally