vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
407 B

  1. 'use strict';
  2. import ShapeBase from '../util/ShapeBase'
  3. class Square extends ShapeBase {
  4. constructor(options, body, labelModule) {
  5. super(options, body, labelModule)
  6. }
  7. draw(ctx, x, y, selected, hover, values) {
  8. this._drawShape(ctx, 'square', 2, x, y, selected, hover, values);
  9. }
  10. distanceToBorder(ctx, angle) {
  11. return this._distanceToBorder(ctx,angle);
  12. }
  13. }
  14. export default Square;