214
Fireworks JavaScript API
Description
If the selection contains at least one path with at least one Bézier point selected, this function
moves all selected Bézier points on all selected paths by the specified amount.
dom.moveSelectionBy()
Availability
Fireworks 3.
Usage
dom.moveSelectionBy(
delta
,
bMakeCopy
,
doSubSel
)
Arguments
delta
A point that specifies the
x,y
coordinate values by which the selection moved (see
“Point data type” on page 12
). For example, passing
({
x
:
1
,
y
:
2})
moves the selection 1 pixel
to the right and 2 pixels down.
bMakeCopy
The items that are copied instead of moved.
doSubSel
If
doSubSel
is set to
true,
the function moves only the subselected parts of a
path. If the argument is set to
false
, the function moves the whole object.
Returns
Nothing.
Description
Moves the selected items by the specified amount or makes a copy of them and offsets them
from the original by the specified amount.
Example
The following command moves the selected items right by 62 pixels and 84 pixels down:
fw.getDocumentDOM().moveSelectionBy({x:62, y:84}, false, false);
dom.moveSelectionMaskBy()
Availability
Fireworks 4.
Usage
dom.moveSelectionMaskBy(
delta
)
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 ...