feat(core): Added new debug event type and debug system
This commit is contained in:
parent
b360359cf6
commit
03da84b824
52 changed files with 860 additions and 398 deletions
packages/core/src
|
@ -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}`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue