128
EXTENDING FIREWORKS
The Document object
Las
t
up
d
a
ted
12/8/2009
dom.scaleSelection()
Availability
Fireworks 3.
Usage
dom.scaleSelection(
xScaleAmount, yScaleAmount, opts
)
Arguments
xScaleAmount
and
yScaleAmount
Float values that specify the amount to scale the selection in the horizontal and
vertical axes. Acceptable values are 0.0 or greater; a value of 1 represents 100%, 2 represents 200%, and so on.
opts
Acceptable values are
"transformAttributes"
,
"autoTrimImages"
, and “
autoTrimImages
transformAttributes
“.
Returns
Nothing.
Description
Scales the selection in the horizontal and vertical axes.
Example
The following command scales the selected items to approximately two-thirds (67%) and automatically trims the
images and transforms the attributes:
fw.getDocumentDOM().scaleSelection(0.67, 0.67, "autoTrimImages transformAttributes");
dom.scalingGridRect()
Availability
Fireworks 9.
Usage
dom.scalingGridRect(
left, top, right, bottom
)
Arguments
bounds
Specifies the bounds of the grid rectangle.
Returns
Nothing.
Description
Sets the positions of the 9-slice scaling guides by specifying the size of the rectangle they surround.
Example
The following command sets the 9-slice scaling grid rectangle to -50, -50, 50, 50:
fw.getDocumentDOM().scalingGridRect({-50, -50, 50, 50});