Class VMLShape
VMLShape is a fallback class for Shape. It creates a graphic object with editable properties when
SVG is not available.
Properties
type
- string
Indicates the type of shape.
Methods
private
void
_addBorder
(
)
Adds a border to the shape node.
private
void
_addFill
(
)
Adds a fill to the shape node.
private
void
_draw
(
)
Draws the graphic.
private
void
_initialize
(
)
Initializes the graphic instance.
private
void
_setProps
(
cfg
)
Updates properties for the shape.
- Parameters:
-
cfg
<Object>
Properties to update.
void
addClass
(
className
)
Adds a class to the shape's node.
- Parameters:
-
className
<String>
Name of the class to add.
void
setPosition
(
,
)
Positions the parent node of the shape.
- Parameters:
-
,
<Number>
x The x-coordinate
-
,
<Number>
y The y-coordinate
void
toggleVisible
(
val
)
Sets the visibility of a shape.
- Parameters:
-
val
<Boolean>
indicates whether or not the shape is visible.
void
update
(
cfg
)
Updates the properties of the shape instance.
- Parameters:
-
cfg
<Object>
Object literal containing properties to update.