mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-07 17:04:58 +01:00
17 lines
No EOL
322 B
JavaScript
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);
|
|
}
|
|
} |