Skip to content

Supported APIs & Methods (Canvas)

Ally edited this page Dec 24, 2013 · 1 revision

General

  • clearRect
  • drawImage
  • transform
  • scale
  • rotate
  • translate
  • globalAlpha
  • save
  • restore
  • getContext

Fonts

  • font - all fonts have to be included as files.
  • textAlign
  • fillText
  • strokeText

Data

  • createElement('canvas') - Multiple Canvas For Pre-rendering.
  • createImageData
  • getImageData
  • putImageData

Style

  • fillStyle
  • fill
  • fillRect
  • strokeStyle
  • stroke
  • strokeRect
  • lineWidth
  • beginPath
  • moveTo
  • lineTo
  • clip - NO, crashes.
  • toDataURL

Drawing

  • measureText
  • textBaseline
  • quadraticCurveTo
  • bezierCurveTo - NO, does arc instead.
  • arc
  • arcTo
  • setTransform

Gradient & Other

  • miterLimit
  • lineCap
  • lineJoin
  • createLinearGradient - No
  • createRadialGradient - No
  • addColorStop - No
  • globalCompositeOperation
  • createPattern - No

Path

  • closePath
  • isPointInPath - No

Shadow

  • shadowColor - No
  • shadowBlur - No
  • shadowOffsetX - No
  • shadowOffsetY - No