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.
 
 
 

23 lines
495 B

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