1
0
Fork 0

chore: Further tweaks to pattern events

This commit is contained in:
Joost De Cock 2020-07-19 13:01:01 +02:00
parent 53e8274624
commit 4ac64e05cb
11 changed files with 2558 additions and 955 deletions

View file

@ -1,8 +1,8 @@
import Attributes from './attributes'
import { round } from './utils'
function Point(x, y, raise = false) {
this.debug = raise ? true : false
function Point(x, y, debug = false) {
this.debug = debug
if (this.debug) {
if (typeof x !== 'number') raise.warning('Called `new Point(x,y)` but `x` is not a number')
if (typeof y !== 'number') raise.warning('Called `new Point(x,y)` but `y` is not a number')