- 'use strict';
-
- import ShapeBase from '../util/ShapeBase'
-
- class Diamond extends ShapeBase {
- constructor(options, body, labelModule) {
- super(options, body, labelModule)
- }
-
- resize(ctx) {
- this._resizeShape();
- }
-
- draw(ctx, x, y, selected, hover) {
- this._drawShape(ctx, 'diamond', 4, x, y, selected, hover);
- }
-
- distanceToBorder(ctx, angle) {
- return this._distanceToBorder(angle);
- }
- }
-
- export default Diamond;
|