jsketcher/web/app/sketcher/shapes/primitives.js
2016-12-07 00:37:21 -08:00

17 lines
No EOL
322 B
JavaScript

import * as draw_utils from './draw-utils'
import {Shape} from './shape'
export class Point extends Shape {
constructor(x, y, rad) {
super();
this.x = x;
this.y = y;
this.rad = rad;
this.style = null;
}
draw(ctx, scale) {
draw_utils.DrawPoint(ctx, this.x, this.y, this.rad, scale);
}
}