chore: Further tweaks to pattern events
This commit is contained in:
parent
53e8274624
commit
4ac64e05cb
11 changed files with 2558 additions and 955 deletions
|
@ -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')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue