Staticapproximateget approximate line height from css font definition currently only supports px and pt
StaticclipStaticdrawdraw one frame of a radial "ajax spinner" activity indicator: segments arranged around a circle, each fading in opacity the further it trails behind the current step
the center x coordinate
the center y coordinate
the number of segments around the circle
uses 'border-color' for the segment underlay and 'line-color' for the fading segments
animation phase; initially should be zero, later pass in the return value when drawing again
the advanced step to pass into the next call
StaticdrawDraws a border using the specified object style configuration
The top left x coordinate
The top left y coordinate
The width of the rectangle
The height of the rectangle
Optionaloutside: booleanOptionalmaxX: numberOptionalmaxY: numberStaticdrawdraw an animated group of outlined candlesticks moving up and down in a staggered wave
does not clear the previous frame itself: the caller is expected to fill the surface with an opaque background color before each call
the center x coordinate
the center y coordinate
width and height of the candle group
uses 'line-color' for the candle outlines
animation phase; a full wave cycle corresponds to an increase by 1
Staticdrawdraw an ellipse
the center x coordinate
the center y coordinate
Staticdrawdraw a simple triangular arrow
The top left x coordinate
The top left y coordinate
Optionalwidth: numberOptionalheight: numberOptionalright: boolean
should the arrow be facing right or left?
StaticdrawStaticdrawdraw line with specified style
Optionalshift: numberStaticdrawDraws a rounded rectangle using the current state of the canvas. If you omit the last three params, it will draw a rectangle outline with a 5 pixel border radius
The top left x coordinate
The top left y coordinate
The width of the rectangle
The height of the rectangle
Optionalradius: number
The corner radius. Defaults to 5;
Optionalfill: boolean
Whether to fill the rectangle. Defaults to false.
Optionalstroke: boolean
Whether to stroke the rectangle. Defaults to true.
Staticdrawdraw a tooltip with originating from the supplied rectangle,
upper left x coordinate
upper left y coordinate
width of rectangle
height of rectangle
optional bounds limiting the area to draw in
StaticdrawStaticdrawdraw a simple triangular arrow
The top left x coordinate
The top left y coordinate
Optionalwidth: numberOptionalheight: numberOptionalup: boolean
should the arrow be facing up or down?
StaticdrawStaticfillOptionalcalculateOnly: booleanStaticlineStaticpixelretrieve pixel ratio zoom level is taken into account on most browsers
a collection of graphics and drawing related utility functions used by the chart classes