1
0
Fork 0

feat(core): Added new debug event type and debug system

This commit is contained in:
Joost De Cock 2020-07-18 16:48:29 +02:00
parent b360359cf6
commit 03da84b824
52 changed files with 860 additions and 398 deletions
packages/core/src

View file

@ -6,6 +6,13 @@ export function capitalize(string) {
return string.charAt(0).toUpperCase() + string.slice(1)
}
/** Checks for a valid coordinate value **/
export function isCoord(value) {
return value === value // NaN does not equal itself
? typeof value === 'number'
: false
}
/** Returns internal hook name for a macro */
export function macroName(name) {
return `_macro_${name}`