9 lines
186 B
JavaScript
9 lines
186 B
JavaScript
|
class Line {
|
||
|
constructor(x1, y1, x2, y2, style = "#000000") {
|
||
|
this.pos = { x: x1, y: y1 };
|
||
|
this.target = { x: x2, y: y2 };
|
||
|
this.style = style;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = Line;
|