dojox/gfx/_gfxBidiSupport (version 1.10)

See the dojox/gfx/_gfxBidiSupport reference documentation for more information.

Property Summary

Method Summary

Properties

_base
Defined by: dojox/gfx/_base
_gfxBidiSupport
_svgFontCache
Defined by: dojox/gfx/VectorText
_vectorFontCache
Defined by: dojox/gfx/VectorText
arc
Defined by: dojox/gfx/arc

This module contains the core graphics Arc functions.

bezierutils
Defined by: dojox/gfx/bezierutils
canvas
Defined by: dojox/gfx/canvas

This the graphics rendering bridge for W3C Canvas compliant browsers. Since Canvas is an immediate mode graphics api, with no object graph or eventing capabilities, use of this module alone will only add in drawing support. The additional module, canvasWithEvents extends this module with additional support for handling events on Canvas. By default, the support for events is now included however, if only drawing capabilities are needed, canvas event module can be disabled using the dojoConfig option, canvasEvents:true|false. The id of the Canvas renderer is 'canvas'. This id can be used when switch Dojo's graphics context between renderer implementations. See dojox/gfx/_base.switchRenderer API.

canvas_attach
canvasext
Defined by: dojox/gfx/canvasext
canvasWithEvents

This the graphics rendering bridge for W3C Canvas compliant browsers which extends the basic canvas drawing renderer bridge to add additional support for graphics events on Shapes. Since Canvas is an immediate mode graphics api, with no object graph or eventing capabilities, use of the canvas module alone will only add in drawing support. This additional module, canvasWithEvents extends this module with additional support for handling events on Canvas. By default, the support for events is now included however, if only drawing capabilities are needed, canvas event module can be disabled using the dojoConfig option, canvasEvents:true|false.

cm_in_pt
Defined by: dojox/gfx/_base

points per centimeter (constant)

defaultCircle
Defined by: dojox/gfx/_base

An object defining the default Circle prototype.

defaultEllipse
Defined by: dojox/gfx/_base

Defines the default Ellipse prototype.

defaultFont
Defined by: dojox/gfx/_base

An object specifying the default properties for a Font used in text operations.

defaultImage
Defined by: dojox/gfx/_base

Defines the default Image prototype.

defaultLine
Defined by: dojox/gfx/_base

An object defining the default Line prototype.

defaultLinearGradient
Defined by: dojox/gfx/_base

An object defining the default stylistic properties used for Linear Gradient fills. Linear gradients are drawn along a virtual line, which results in appearance of a rotated pattern in a given direction/orientation.

defaultPath
Defined by: dojox/gfx/_base

Defines the default Path prototype object.

defaultPattern
Defined by: dojox/gfx/_base

An object specifying the default properties for a Pattern using in fill operations.

defaultPolyline
Defined by: dojox/gfx/_base

Defines the default PolyLine prototype.

defaultRadialGradient
Defined by: dojox/gfx/_base

An object specifying the default properties for RadialGradients using in fills patterns.

defaultRect
Defined by: dojox/gfx/_base

Defines the default Rect prototype.

defaultStroke
Defined by: dojox/gfx/_base

A stroke defines stylistic properties that are used when drawing a path. This object defines the default Stroke prototype.

defaultText
Defined by: dojox/gfx/_base

Defines the default Text prototype.

defaultTextPath
Defined by: dojox/gfx/_base

Defines the default TextPath prototype.

defaultVectorFont
Defined by: dojox/gfx/VectorText
defaultVectorText
Defined by: dojox/gfx/VectorText
Fill
Defined by: dojox/gfx/_base

Defines how to fill a shape. Four types of fills can be used: solid, linear gradient, radial gradient and pattern. See dojox/gfx.LinearGradient, dojox/gfx.RadialGradient and dojox/gfx.Pattern respectively for more information about the properties supported by each type.

Font
Defined by: dojox/gfx/_base

An object specifying the properties for a Font used in text operations.

fx
Defined by: dojox/gfx/fx
getDefault
Defined by: dojox/gfx/_base
gradient
Defined by: dojox/gfx/gradient
gradutils
Defined by: dojox/gfx/gradutils
LinearGradient
Defined by: dojox/gfx/_base

An object defining the default stylistic properties used for Linear Gradient fills. Linear gradients are drawn along a virtual line, which results in appearance of a rotated pattern in a given direction/orientation.

matrix
Defined by: dojox/gfx/matrix
mm_in_pt
Defined by: dojox/gfx/_base

points per millimeter (constant)

move
Defined by: dojox/gfx/move
path
Defined by: dojox/gfx/path

This module contains the core graphics Path API. Path command format follows the W3C SVG 1.0 Path api.

pathSvgRegExp
Defined by: dojox/gfx/_base
pathVmlRegExp
Defined by: dojox/gfx/_base

a constant regular expression used to split a SVG/VML path into primitive components

Pattern
Defined by: dojox/gfx/_base

An object specifying the default properties for a Pattern using in fill operations.

RadialGradient
Defined by: dojox/gfx/_base

Specifies the properties for RadialGradients using in fills patterns.

renderer
Defined by: dojox/gfx/_base

Either the string name of a renderer (eg. 'canvas', 'svg, ...) or the renderer object to switch to.

shape
Defined by: dojox/gfx/shape

This module contains the core graphics Shape API. Different graphics renderer implementation modules (svg, canvas, vml, silverlight, etc.) extend this basic api to provide renderer-specific implementations for each shape.

silverlight
Defined by: dojox/gfx/silverlight

This the graphics rendering bridge for the Microsoft Silverlight plugin. Silverlight is a faster implementation on IE6-8 than the default 2d graphics, VML

silverlight_attach
Stroke
Defined by: dojox/gfx/_base

A stroke defines stylistic properties that are used when drawing a path.

svg
Defined by: dojox/gfx/svg

This the graphics rendering bridge for browsers compliant with W3C SVG1.0. This is the preferred renderer to use for interactive and accessible graphics.

svgext
Defined by: dojox/gfx/svgext
utils
Defined by: dojox/gfx/utils
vectorFontFitting
Defined by: dojox/gfx/VectorText
VectorText
Defined by: dojox/gfx/VectorText
vml
Defined by: dojox/gfx/vml

This the default graphics rendering bridge for IE6-7. This renderer is very slow. For best performance on IE6-8, use Silverlight plugin. IE9+ defaults to the standard W3C SVG renderer.

Methods

__MoveableCtorArgs()
Defined by dojox/gfx/Moveable
_addClass(node,classStr)
Defined by dojox/gfx/_base

Adds the specified classes to the end of the class list on the passed node.

Parameter Type Description
node DomNode
classStr String
_hasClass(node,classStr)
Defined by dojox/gfx/_base

Returns whether or not the specified classes are a portion of the class list currently applied to the node.

Parameter Type Description
node DomNode
classStr String
_removeClass(node,classStr)
Defined by dojox/gfx/_base

Removes classes from node.

Parameter Type Description
node DomNode
classStr String
Circle()
Defined by dojox/gfx/shape
createSurface(parentNode,width,height)
Defined by dojox/gfx/_base

creates a surface

Parameter Type Description
parentNode Node

a parent node

width String | Number

width of surface, e.g., "100px" or 100

height String | Number

height of surface, e.g., "100px" or 100

newly created surface

decompose(matrix)
Defined by dojox/gfx/decompose

Decompose a 2D matrix into translation, scaling, and rotation components.

This function decompose a matrix into four logical components: translation, rotation, scaling, and one more rotation using SVD. The components should be applied in following order:

[translate, rotate(angle2), scale, rotate(angle1)]
Parameter Type Description
matrix dojox/gfx/matrix.Matrix2D

a 2D matrix-like object

Ellipse()
Defined by dojox/gfx/shape
equalSources(a,b)

compares event sources, returns true if they are equal

Parameter Type Description
a undefined
b undefined
fixTarget()
Defined by dojox/gfx/_base
formatNumber(x,addSpace)
Defined by dojox/gfx/_base

converts a number to a string using a fixed notation

Parameter Type Description
x Number

number to be converted

addSpace Boolean

whether to add a space before a positive number

Returns:String | undefined

the formatted value

getVectorFont(url)
Parameter Type Description
url String
Returns:undefined | instance
Group()
Defined by dojox/gfx/shape
Line()
Defined by dojox/gfx/shape
makeFontString(font)
Defined by dojox/gfx/_base

converts a font object to a CSS font string

Parameter Type Description
font Object

font object (see dojox/gfx.defaultFont)

Returns:string
makeParameters(defaults,update)
Defined by dojox/gfx/_base

copies the original object, and all copied properties from the 'update' object

Parameter Type Description
defaults Object

the object to be cloned before updating

update Object

the object, which properties are to be cloned during updating

Returns:Object | undefined | object

new object with new and default properties

Matrix2D(arg)
Defined by dojox/gfx/matrix

a 2D matrix object

Normalizes a 2D matrix-like object. If arrays is passed, all objects of the array are normalized and multiplied sequentially.

Parameter Type Description
arg Object

a 2D matrix-like object, a number, or an array of such objects

Moveable()
Defined by dojox/gfx/Moveable
Mover()
Defined by dojox/gfx/Mover
normalizeColor(color)
Defined by dojox/gfx/_base

converts any legal color representation to normalized dojo/Color object

Parameter Type Description
color dojo/Color | Array | string | Object

A color representation.

Returns:instance
normalizedLength(len)
Defined by dojox/gfx/_base

converts any length value to pixels

Parameter Type Description
len String

a length, e.g., '12pc'

Returns:Number | number | undefined

pixels

normalizeParameters(existed,update)
Defined by dojox/gfx/_base

updates an existing object with properties from an 'update' object

Parameter Type Description
existed Object

the target object to be updated

update Object

the 'update' object, whose properties will be used to update the existed object

Returns:Object

the target object to be updated

Path()
Defined by dojox/gfx/path
Point()
Defined by dojox/gfx/shape
Polyline()
Defined by dojox/gfx/shape
pt2px(len)
Defined by dojox/gfx/_base

converts points to pixels

Parameter Type Description
len Number

a value in points

Returns:number
px2pt(len)
Defined by dojox/gfx/_base

converts pixels to points

Parameter Type Description
len Number

a value in pixels

Returns:number
px_in_pt()
Defined by dojox/gfx/_base

returns the current number of pixels per point.

Returns:number
Rect()
Defined by dojox/gfx/shape
Rectangle()
Defined by dojox/gfx/shape
splitFontString(str)
Defined by dojox/gfx/_base

converts a CSS font string to a font object

Converts a CSS font string to a gfx font object. The CSS font string components should follow the W3C specified order (see http://www.w3.org/TR/CSS2/fonts.html#font-shorthand): style, variant, weight, size, optional line height (will be ignored), and family. Note that the Font.size attribute is limited to numeric CSS length.

Parameter Type Description
str String

a CSS font string.

Returns:Object | undefined

object in dojox/gfx.defaultFont format

Surface()
Defined by dojox/gfx/shape
switchTo(renderer)
Defined by dojox/gfx/_base

switch the graphics implementation to the specified renderer.

Parameter Type Description
renderer String | Object

Either the string name of a renderer (eg. 'canvas', 'svg, ...) or the renderer object to switch to.

Text()
Defined by dojox/gfx/shape
TextPath()
Defined by dojox/gfx/path
VectorFont()
Error in the documentation? Can’t find what you are looking for? Let us know!