dom.addNewRectangle()
Availability
Fireworks 3.
Usage
dom.addNewRectangle(boundingRectangle, roundness)
Arguments
boundingRectangle
added (see
"Rectangle data type" on page
A floating-point value between 0 and 1 that specifies the "roundness" to use for the
roundness
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);
See also
dom.addNewRectanglePrimitive()
dom.addNewRectanglePrimitive()
Availability
Fireworks 4.
Usage
dom.addNewRectanglePrimitive(boundingRectangle, roundness)
Arguments
boundingRectangle
primitive is added (see
A floating-point value between 0 and 1 that specifies the "roundness" to use for the
roundness
corners (0 is no roundness, and 1 is 100% roundness).
Returns
Nothing.
114
Chapter 5: Fireworks JavaScript API
A rectangle that specifies the bounds within which the new rectangle is
11).
A rectangle that specifies the bounds within which the new rectangle
"Rectangle data type" on page
11).
Need help?
Do you have a question about the FIREWORKS MX 2004-EXTENDING FIREWORKS and is the answer not in the manual?
Questions and answers