
166
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
dom.setQuadrangle()
Availability
Fireworks 3.
Usage
dom.setQuadrangle(
pTopLeft, pTopRight, pBottomRight, pBottomLeft, options
)
Arguments
pTopLeft
,
pTopRight
,
pBottomRight
,
and
pBottomLeft
Relative coordinates of a quadrangle expressed as
percentages of an arbitrary square. These are not specific
x, y
coordinates.
options
Acceptable values are
"transformAttributes"
,
"autoTrimImages"
, and
"autoTrimImages
transformAttributes"
.
Returns
Nothing.
Description
Creates a bounding quadrangle based on percentages of an arbitrary square, and then transforms the selection within
the bounding quadrangle. The effect is the same as performing a transform operation within Fireworks, and then
replaying the Transform step from the History panel while other items are selected.
Example
The following command performs the transform operation on the selection within the specified points:
fw.getDocumentDOM().setQuadrangle({x:-0.300884962, y:0.207964599}, {x:1, y:0.207964599},
{x:1, y:0.792035401}, {x:-0.300884962, y:0.792035401}, "autoTrimImages transformAttributes");
dom.setRectRoundness()
Availability
Fireworks 4; modified in Fireworks 10.
Usage
dom.setRectRoundness(
roundness
,
mode
)
Arguments
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).
mode
String that specifies the mode of corner roundness of the rectangle as either a percentage value or or exact pixel
value.
Returns
Nothing.
Description
Modifies the corner roundness of all the selected rectangle primitives.
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...