Draw a tiny dot marker on the specified context. A great debugging aid.
context
dot x coordinate
dot y coordinate
VexFlow can be used outside of the browser (e.g., Node) where window
may not be defined.
Use instead of instanceof
as a more flexible type guard.
check if this object's CATEGORY matches the provided category.
a string representing a category of VexFlow objects.
defaults to true
, so we walk up the prototype chain to look for a matching CATEGORY
.
If false
, we do not check the superclass or other ancestors.
true if obj
has a static CATEGORY
property that matches category
.
Default log function sends all arguments to console.
Locate the mid point between stave lines. Returns a fractional line if a space.
Convert an arbitrary angle in radians to the equivalent one in the range [0, pi).
Used by various classes (e.g., SVGContext) to provide a unique prefix to element names (or other keys in shared namespaces).
Dump warning to console.
Check that
x
is of typeT
and notundefined
. Ifx
isundefined
, throw a RuntimeError with the optionally provided error code and message.