Document functions
215
Arguments
delta
A point that specifies the
x-,y
-coordinate values by which the mask is moved (see
“Point data type” on page 12
). For example, passing
({
x
:
1
,
y
:
2})
moves the mask 1 pixel to
the right and 2 pixels down.
Returns
Nothing.
Description
Moves the current pixel mask by the specified amount. If there is no pixel selection, an
exception is thrown.
dom.moveSelectionTo()
Availability
Fireworks 3.
Usage
dom.moveSelectionTo(
location
,
bMakeCopy
,
doSubSel
)
Arguments
location
A point that specifies the
x-,y
-coordinate values of the location to which the
selection is moved or copied (see
“Point data type” on page 12
).
bMakeCopy
Specifies copying instead of moving the selection.
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 or copies the selection to the specified location.
Example
The following command copies only the selected parts of a path to the specified coordinates:
fw.getDocumentDOM().moveSelectionTo({x:163, y:0}, true, true);
Содержание FIREWORKS 8-EXTENDING FIREWORKS
Страница 1: ...Extending Fireworks ...
Страница 4: ...4 Contents ...
Страница 358: ...358 Fireworks JavaScript API ...
Страница 372: ...372 Index ...