144
Fireworks JavaScript API
Returns
Nothing.
Description
Adds a new oval fitting into the specified bounding rectangle. The oval uses the document’s
current default path attributes and is added on the current frame and layer.
Example
The following command adds a new oval within the specified coordinates:
fw.getDocumentDOM().addNewOval({left:72, top:79, right:236, bottom:228});
dom.addNewRectangle()
Availability
Fireworks 3.
Usage
dom.addNewRectangle(
boundingRectangle
,
roundness
)
Arguments
boundingRectangle
A rectangle that specifies the bounds within which the new rectangle
is added (see
“Rectangle data type” on page 12
).
roundness
A floating-point value between 0 and 1 that specifies the roundness to use for
the corners (0 is no roundness, 1 is 100% roundness).
Returns
Nothing.
Description
Adds a new rectangle or rounded rectangle fitting into the specified bounds. The rectangle
uses the document’s current default path attributes and is added on the current frame and
layer.
Example
The following command adds a new rectangle with no round corners within the
specified coordinates:
fw.getDocumentDOM().addNewRectangle({left:0, top:0, right:100, bottom:100},
0);
Summary of Contents for FIREWORKS 8-EXTENDING FIREWORKS
Page 1: ...Extending Fireworks ...
Page 4: ...4 Contents ...
Page 358: ...358 Fireworks JavaScript API ...
Page 372: ...372 Index ...