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
A rectangle that specifies the bounds within which the new rectangle
boundingRectangle
is added (see
"Rectangle data type" on page
12).
A floating-point value between 0 and 1 that specifies the roundness to use for
roundness
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);
144
Fireworks JavaScript API
Need help?
Do you have a question about the FIREWORKS 8-EXTENDING FIREWORKS and is the answer not in the manual?