Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/gfx/canvas.js

  • Provides:

    • dojox.gfx.canvas
  • Requires:

    • dojox.gfx._base in common
    • dojox.gfx.shape in common
    • dojox.gfx.path in common
    • dojox.gfx.arc in common
    • dojox.gfx.decompose in common
  • dojox.gfx.canvas.Group

    • type
      Function
    • chains:
      • Container: (prototype)
      • dojox.gfx.shape.Creator: (prototype)
      • Creator: (prototype)
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.canvas.Shape: (call)
    • summary
      a group shape (Canvas), which can be used
      to logically group shapes (e.g, to propagate matricies)
  • dojox.gfx.canvas.Surface

    • type
      Function
    • chains:
      • Container: (prototype)
      • dojox.gfx.shape.Creator: (prototype)
      • Creator: (prototype)
      • dojox.gfx.shape.Surface: (prototype)
      • dojox.gfx.shape.Surface: (call)
    • summary
      a surface object to be used for drawings (Canvas)
  • dojox.gfx.canvas.Shape

    • type
      Function
    • chains:
      • dojox.gfx.shape.Shape: (prototype)
      • dojox.gfx.shape.Shape: (call)
  • dojox.gfx.canvas.Shape._render

    • parameters:
      • ctx: (typeof Object)
    • summary
      render the shape
    • type
      Function
  • dojox.gfx.canvas.Shape._renderTransform

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.Shape.canvasTransform

  • dojox.gfx.canvas.Shape._renderShape

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.Shape._renderFill

    • parameters:
      • ctx: (typeof Object)
      • apply: (typeof Boolean)
    • type
      Function
  • dojox.gfx.canvas.Shape.fillStyle

  • dojox.gfx.canvas.Shape.fillStyle.width

  • dojox.gfx.canvas.Shape.fillStyle.height

  • dojox.gfx.canvas.Shape.canvasFillImage.width

  • dojox.gfx.canvas.Shape.canvasFillImage.height

  • dojox.gfx.canvas.Shape.canvasFill

    • type
      Object
  • dojox.gfx.canvas.Shape._renderStroke

    • parameters:
      • ctx: (typeof Object)
      • apply: (typeof Boolean)
    • type
      Function
  • dojox.gfx.canvas.Shape.strokeStyle

  • dojox.gfx.canvas.Shape.getEventSource

    • type
      Function
  • dojox.gfx.canvas.Shape.connect

    • type
      Function
  • dojox.gfx.canvas.Shape.disconnect

    • type
      Function
  • dojox.gfx.canvas.Group.constructor

    • constructor - constructor
    • type
      Function
  • dojox.gfx.canvas.Group._render

    • parameters:
      • ctx: (typeof Object)
    • summary
      render the group
    • type
      Function
  • dojox.gfx.canvas.Rect

    • type
      Function
    • chains:
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.shape.Rect.prototype: (prototype)
      • dojox.gfx.canvas.Shape: (call)
      • dojox.gfx.shape.Rect: (call)
    • summary
      a rectangle shape (Canvas)
  • dojox.gfx.canvas.Rect._renderShape

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.Rect.shape

  • dojox.gfx.canvas.Rect.shape.x

  • dojox.gfx.canvas.Rect.shape.y

  • dojox.gfx.canvas.Ellipse

    • type
      Function
    • chains:
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.shape.Ellipse.prototype: (prototype)
      • dojox.gfx.canvas.Shape: (call)
      • dojox.gfx.shape.Ellipse: (call)
    • summary
      an ellipse shape (Canvas)
  • dojox.gfx.canvas.Ellipse.setShape

    • type
      Function
  • dojox.gfx.canvas.Ellipse.shape

  • dojox.gfx.canvas.Ellipse.canvasEllipse

  • dojox.gfx.canvas.Ellipse._renderShape

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.Circle

    • type
      Function
    • chains:
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.shape.Circle.prototype: (prototype)
      • dojox.gfx.canvas.Shape: (call)
      • dojox.gfx.shape.Circle: (call)
    • summary
      a circle shape (Canvas)
  • dojox.gfx.canvas.Circle._renderShape

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.Circle.shape

  • dojox.gfx.canvas.Line

    • type
      Function
    • chains:
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.shape.Line.prototype: (prototype)
      • dojox.gfx.canvas.Shape: (call)
      • dojox.gfx.shape.Line: (call)
    • summary
      a line shape (Canvas)
  • dojox.gfx.canvas.Line._renderShape

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.Line.shape

  • dojox.gfx.canvas.Polyline

    • type
      Function
    • chains:
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.shape.Polyline.prototype: (prototype)
      • dojox.gfx.canvas.Shape: (call)
      • dojox.gfx.shape.Polyline: (call)
    • summary
      a polyline/polygon shape (Canvas)
  • dojox.gfx.canvas.Polyline.setShape

    • type
      Function
  • dojox.gfx.canvas.Polyline.shape.points

  • dojox.gfx.canvas.Polyline.shape.points.0

  • dojox.gfx.canvas.Polyline.canvasPolyline

  • dojox.gfx.canvas.Polyline._renderShape

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.Image

    • type
      Function
    • chains:
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.shape.Image.prototype: (prototype)
      • dojox.gfx.canvas.Shape: (call)
      • dojox.gfx.shape.Image: (call)
    • summary
      an image shape (Canvas)
  • dojox.gfx.canvas.Image.setShape

    • type
      Function
  • dojox.gfx.canvas.Image.canvasImage

  • dojox.gfx.canvas.Image._renderShape

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.Image.shape

  • dojox.gfx.canvas.Text

    • type
      Function
    • chains:
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.shape.Text.prototype: (prototype)
      • dojox.gfx.canvas.Shape: (call)
      • dojox.gfx.shape.Text: (call)
  • dojox.gfx.canvas.Text._setFont

    • type
      Function
  • dojox.gfx.canvas.Text.canvasFont

    • type
      Object
  • dojox.gfx.canvas.Text.getTextWidth

    • summary
      get the text width in pixels
    • type
      Function
  • dojox.gfx.canvas.Text.shape

  • dojox.gfx.canvas.Text._render

    • parameters:
      • ctx: (typeof Object)
    • summary
      render the shape
      ctx : Object: the drawing context.
    • type
      Function
  • dojox.gfx.canvas.Text._renderShape

    • parameters:
      • ctx
    • summary
      a text shape (Canvas)
      ctx : Object: the drawing context.
    • type
      Function
  • dojox.gfx.canvas.Path

    • type
      Function
    • chains:
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.path.Path.prototype: (prototype)
      • dojox.gfx.canvas.Shape: (call)
      • dojox.gfx.path.Path: (call)
    • summary
      a path shape (Canvas)
  • dojox.gfx.canvas.Path.constructor

    • constructor - constructor
    • type
      Function
  • dojox.gfx.canvas.Path.setShape

    • type
      Function
  • dojox.gfx.canvas.Path.canvasPath

    • type
      Array
  • dojox.gfx.canvas.Path._updateWithSegment

    • parameters:
      • segment
    • type
      Function
  • dojox.gfx.canvas.Path.last

  • dojox.gfx.canvas.Path._renderShape

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.Path._moveToA

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path.last.x

  • dojox.gfx.canvas.Path.last.y

  • dojox.gfx.canvas.Path.lastControl

    • type
      Object
  • dojox.gfx.canvas.Path._moveToR

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._lineToA

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._lineToR

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._hLineToA

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._hLineToR

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._vLineToA

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._vLineToR

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._curveToA

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path.lastControl.x

    • type
      String
  • dojox.gfx.canvas.Path.lastControl.y

    • type
      String
  • dojox.gfx.canvas.Path.lastControl.type

    • type
      String
  • dojox.gfx.canvas.Path._curveToR

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._smoothCurveToA

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._smoothCurveToR

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._qCurveToA

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._qCurveToR

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._qSmoothCurveToA

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._qSmoothCurveToR

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._arcTo

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.Path._closePath

    • parameters:
      • result
      • action
      • args
    • type
      Function
  • dojox.gfx.canvas.TextPath

    • type
      Function
    • chains:
      • dojox.gfx.canvas.Shape: (prototype)
      • dojox.gfx.path.TextPath.prototype: (prototype)
      • dojox.gfx.canvas.Shape: (call)
      • dojox.gfx.path.TextPath: (call)
    • summary
      a text shape (Canvas)
  • dojox.gfx.canvas.TextPath._renderShape

    • parameters:
      • ctx: (typeof Object)
    • type
      Function
  • dojox.gfx.canvas.TextPath.shape

  • dojox.gfx.canvas.TextPath._setText

    • type
      Function
  • dojox.gfx.canvas.TextPath._setFont

    • type
      Function
  • dojox.gfx.canvas.Surface.constructor

    • constructor - constructor
    • type
      Function
  • dojox.gfx.canvas.Surface.setDimensions

    • parameters:
      • width: (typeof String:)
        width of surface, e.g., "100px"
      • height: (typeof String:)
        height of surface, e.g., "100px"
    • returns
      self
    • summary
      sets the width and height of the rawNode
    • type
      Function
  • dojox.gfx.canvas.Surface.width

    • type
      Object
  • dojox.gfx.canvas.Surface.height

    • type
      Object
  • dojox.gfx.canvas.Surface.rawNode.width

  • dojox.gfx.canvas.Surface.rawNode.height

  • dojox.gfx.canvas.Surface.setDimensions.width

    • type
      String:
    • summary
      width of surface, e.g., "100px"
  • dojox.gfx.canvas.Surface.setDimensions.height

    • type
      String:
    • summary
      height of surface, e.g., "100px"
  • dojox.gfx.canvas.Surface.getDimensions

    • returns
      Object
    • summary
      returns an object with properties "width" and "height"
    • type
      Function
  • dojox.gfx.canvas.Surface._render

    • summary
      render the all shapes
    • type
      Function
  • dojox.gfx.canvas.Surface.makeDirty

    • summary
      internal method, which is called when we may need to redraw
    • type
      Function
  • dojox.gfx.canvas.Surface.pendingRender

    • type
      Object
  • dojox.gfx.canvas.Surface.downloadImage

    • parameters:
      • img: (typeof Image:)
        the image object
      • url: (typeof String:)
        the url of the image
    • summary
      internal method, which starts an image download and renders, when it is ready
    • type
      Function
  • dojox.gfx.canvas.Surface.onImageLoad

    • type
      Function
  • dojox.gfx.canvas.Surface.getEventSource

    • type
      Function
  • dojox.gfx.canvas.Surface.connect

    • type
      Function
  • dojox.gfx.canvas.Surface.disconnect

    • type
      Function
  • dojox.gfx.canvas.Surface.pendingImageCount

    • type
      Number
  • dojo

    • alias - dojo
  • dojox.gfx

    • alias - dojox.gfx
  • dojox.gfx.shape

    • alias - dojox.gfx.shape
  • dojox.gfx.arc

    • alias - dojox.gfx.arc
  • dojox.gfx.canvas

    • alias - dojox.gfx.canvas
  • dojox.gfx.matrix

    • alias - dojox.gfx.matrix
  • dojox.gfx.matrix.multiplyPoint

    • alias - dojox.gfx.matrix.multiplyPoint
  • Math.PI

    • alias - Math.PI
  • dojox.gfx.canvas.createSurface

    • parameters:
      • parentNode: (typeof Node:)
        a parent node
      • width: (typeof String:)
        width of surface, e.g., "100px"
      • height: (typeof String:)
        height of surface, e.g., "100px"
    • returns
      dojox.gfx.Surface
    • summary
      creates a surface (Canvas)
    • type
      Function
  • dojox.gfx.shape.Container

    • alias - dojox.gfx.shape.Container
  • dojox

    • type
      Object