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.

20 lines
446 B

  1. 'use strict';
  2. import ShapeBase from '../util/ShapeBase'
  3. class Dot 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, 'circle', 2, x, y, selected, hover, values);
  9. }
  10. distanceToBorder(ctx, angle) { // eslint-disable-line no-unused-vars
  11. this.resize(ctx);
  12. return this.options.size;
  13. }
  14. }
  15. export default Dot;