Bringing points stuff up to spec
This commit is contained in:
parent
0ab5a246e5
commit
a5e686b059
11 changed files with 474 additions and 108 deletions
|
@ -1,7 +1,7 @@
|
|||
const m = require('makerjs')
|
||||
const u = require('./utils')
|
||||
|
||||
class Point {
|
||||
module.exports = class Point {
|
||||
constructor(x=0, y=0, r=0, meta={}) {
|
||||
if (Array.isArray(x)) {
|
||||
this.x = x[0]
|
||||
|
@ -67,5 +67,3 @@ class Point {
|
|||
return this.position(rect)
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Point
|
Loading…
Add table
Add a link
Reference in a new issue