
269
EXTENDING FIREWORKS
Objects within Fireworks documents
Las
t
up
d
a
ted
12/8/2009
The following table lists a method of the Widget object, along with its parameters.
element.pathattrs.brush.diam
eter
long
A value that specifies the brush diameter for the path attributes
of the primitive (see “
PathAttrs object
” on page
261).
element.pathattrs.fillColor
string
A color string that specifies the fill color for the path attributes
of the primitive (see “
Color string data type
” on page
7 and
“
PathAttrs object
” on page
261).
element.pathattrs.fill.feath
er
long
A value that specifies the fill feather attribute for the path
attributes of the primitive (see “
PathAttrs object
” on page
261).
element.pathattrs.fill.gradi
ent.nodes
object
A GradientNode object (see “
GradientNode object
” on
page
260).
element.pathattrs.fill.gradi
ent.opacityNodes
object
A GradientNode object (see “
GradientNode object
” on
page
260), that identifies the opacity ramp associated with a
gradient.
element.pathattrs.fill.gradi
ent.color
string
A color string that specifies the color at the specified position in
the gradient (see “
Color string data type
” on page
7).
element.pathattrs.fill.gradi
ent.position
integer
A value that specifies a position within the gradient fill.
element.pathattrs.fill.gradi
ent.isOpacityNode
Boolean
If set to
true
, this node is part of the gradient’s opacity ramp.
text.textChars
string
A string containing the text characters.
text.italic
Boolean
Set to
true
for italic text,
false
for normal text.
text.underline
Boolean
Set to
true
for underlined text,
false
for normal text.
text.bold
Boolean
Set to
true
for bold text,
false
for normal text.
text.font
String
The name of the font, such as Arial.
text.fontsize
integer
The size of the font in points, such as 10.
text.alignment
string
Acceptable values are
"left"
,
"center"
,
"right"
,
"justify"
, and
"stretch"
.
Method
Parameter
Definition
GetObjectByName()
elemName
The
elemName
value specifies the element name for the object
as it is specified in the Layers panel. This method returns the
JavaScript type for the specified element name.
For example:
var bound_rect =
Widget.GetObjectByName(elemName);
isWidgetSelected
Boolean
true
if the selected element is a widget.
UpdateWidget
propString
Updates the rich symbol instances.
Property
Data type
Notes
Содержание 65011817 - Fireworks CS4 - Mac
Страница 1: ...Extending ADOBE FIREWORKS CS4...