Triangle

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

Provides a tool to draw triangles.


Enabling the Plugin

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

Configuration

pluginsConfig: {
    'Triangle': {
        centeringMode: 'normal'
    }
}
  • centeringMode:
    • Defines the centering method when drawing a triangle:
      • 'normal': The top left corner of the rectangular box around the triangle will be placed at the position of the first mouse click. The triangle will be resized from that point.
      • 'from_center': The top left corner of the rectangular box around the triangle will be placed at the position of the first mouse click. The triangle 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.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.