# DOMRenderer

Inheritance DOMRenderer Renderer Module hilo/renderer/DOMRenderer Requires hilo/core/Class, hilo/core/Hilo, hilo/renderer/Renderer, hilo/view/Drawable Source DOMRenderer.js
DomRenderer The DomRenderer, all the visual object is drawing using dom element.The stage will create different renderer depend on the canvas and renderType properties, developer need not use this class directly.

### Properties

Show Inherited Properties

| Property | Defined
--- | --- | ---
| canvas:Object The canvas of renderer. | Renderer
| renderType:String The render type of renderer, readonly. | Renderer
| stage:Object The stage of renderer, readonly. | Renderer

### Methods

Show Inherited Methods

| Method | Defined
--- | --- | ---
| DOMRenderer(properties:Object) Constructor | DOMRenderer
| clear(x:Number, y:Number, width:Number, height:Number) Clear the given region of canvas. | Renderer
| draw(target:View) Draw the visual object. | Renderer
| endDraw(target:View) The handling method after draw the visual object. | Renderer
| hide() Hide the visual object. | Renderer
| remove(target:View) Remove the visual object from canvas. | Renderer
| resize(width:Number, height:Number) Resize the renderer's canvas. | Renderer
| startDraw(target:View) Prepare for draw visual object. | Renderer
| transform() Transfrom the visual object. | Renderer

### Constructor

DOMRenderer(properties:Object)

parameters
properties:Object — The properties to create a renderer, contains all writeable props of this class.