class
                Graphics
Draw on an HTML5 canvas.
This class wraps an HTML5 Canvas and 2D rendering context in a slightly higher-level API, while also allowing to register hit regions.
- Properties
 - canvas, ctx, height, hitCanvas, hitCtx, width
 - Methods
 - constructor, addHitRegion, clearHitCanvas, copy, createChild, fillCanvas, fillEllipse, fillPath, fillRect, fillText, measureText, resize, strokeEllipse, strokePath, strokeRect
 
Properties
- canvasget
 - Type:
 - 
                    
HTMLCanvasElement 
- ctxget
 Native draw context for the HTML5 Canvas.
Can be used to draw directly without using any convenience API.
- Type:
 - 
                    
CanvasRenderingContext2D 
- heightget
 Returns the CSS height.
- Type:
 - 
                    
number 
- hitCanvasget
 Manages hit regions which connects DOM interactions to the Canvas.
- Type:
 - 
                    
HitCanvas 
- hitCtxget
 Draw context matching the hit canvas.
- Type:
 - 
                    
CanvasRenderingContext2D 
- widthget
 Returns the CSS width.
- Type:
 - 
                    
number 
Methods
- constructor(canvas, hitCanvas?)
 - Parameters:
 - 
                            
- 
                                        
HTMLCanvasElementcanvas - 
                                        
HitCanvashitCanvas 
 - 
                                        
 
- addHitRegion(region)
 - Parameters:
 - 
                                
- 
                                            
HitRegionSpecificationregion 
 - 
                                            
 - Return type:
 HitRegionBuilder
- clearHitCanvas()
 - Return type:
 void
- copy(g, dx, dy)
 - Parameters:
 - 
                                
- 
                                            
Graphicsg - 
                                            
numberdx - 
                                            
numberdy 
 - 
                                            
 - Return type:
 void
- createChild(width, height)
 - Parameters:
 - 
                                
- 
                                            
numberwidth - 
                                            
numberheight 
 - 
                                            
 - Return type:
 Graphics
- fillCanvas(fill)
 - Parameters:
 - 
                                
- 
                                            
FillStylefill 
 - 
                                            
 - Return type:
 void
- fillEllipse(fill)
 - Parameters:
 - 
                                
- 
                                            
EllipseFillfill 
 - 
                                            
 - Return type:
 void
- fillPath(fill)
 - Parameters:
 - 
                                
- 
                                            
PathFillfill 
 - 
                                            
 - Return type:
 void
- fillRect(fill)
 - Parameters:
 - 
                                
- 
                                            
RectFillfill 
 - 
                                            
 - Return type:
 void
- fillText(fill)
 - Parameters:
 - 
                                
- 
                                            
TextFillfill 
 - 
                                            
 - Return type:
 void
- measureText(text, font)
 - Parameters:
 - 
                                
- 
                                            
stringtext - 
                                            
stringfont 
 - 
                                            
 - Return type:
 TextMetrics
- resize(width, height)
 - Parameters:
 - 
                                
- 
                                            
numberwidth - 
                                            
numberheight 
 - 
                                            
 - Return type:
 void
- strokeEllipse(stroke)
 - Parameters:
 - 
                                
- 
                                            
EllipseStrokestroke 
 - 
                                            
 - Return type:
 void
- strokePath(stroke)
 - Parameters:
 - 
                                
- 
                                            
PathStrokestroke 
 - 
                                            
 - Return type:
 void
- strokeRect(stroke)
 - Parameters:
 - 
                                
- 
                                            
RectStrokestroke 
 - 
                                            
 - Return type:
 void