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.
See the dojox/gfx/shape reference documentation for more information.
a container of shapes, which can be used as a foundation for renderer-specific groups, or as a way to logically group shapes (e.g, to propagate matricies)
Returns the shape that matches the specified id.
Parameter | Type | Description |
---|---|---|
id | String | The unique identifier for this Shape. |
Removes the specified shape from the registry.
Parameter | Type | Description |
---|---|---|
s | dojox/gfx/shape.Shape | The shape to unregister. |
recurse | Boolean |
Optional
|
Wraps the callback to allow for tests and event normalization before it gets invoked. This is where 'fixTarget' is invoked.
Parameter | Type | Description |
---|---|---|
gfxElement | Object | The GFX object that triggers the action (ex.: dojox/gfx.Surface and dojox/gfx/shape.Shape). A new event property 'gfxTarget' is added to the event to reference this object. for easy manipulation of GFX objects by the event handlers. |
fixFunction | Function | The function that implements the logic to set the 'gfxTarget' property to the event. It should be 'dojox/gfx.fixTarget' for most of the cases |
scope | Object | Optional. The scope to be used when invoking 'method'. If omitted, a global scope is used. |
method | Function | String | The original callback to be invoked. |
Register the specified shape into the graphics registry.
Parameter | Type | Description |
---|---|---|
s | dojox/gfx/shape.Shape | The shape to register. |
The unique id associated with this shape.