Adobe InDesign CS6 Server (8.0) Object Model JS: DropShadowSetting

InDesign Server CS6

Class

DropShadowSetting

 

Drop shadow settings. Base Class: Preference

Superclass of FindChangeDropShadowSetting

QuickLinks

addEventListener, getElements, removeEventListener, toSource, toSpecifier

Hierarchy

ContentTransparencySetting | FillTransparencySetting | StrokeTransparencySetting | TransparencySetting
Preference
DropShadowSetting
FindChangeDropShadowSetting
Event | EventListener | MutationEvent

Properties

PropertyTypeAccessDescription
anglenumber (range: -180 - 180) r/wThe angle at which the shadow is thrown
blendModeBlendMode:
BlendMode.NORMAL
BlendMode.MULTIPLY
BlendMode.SCREEN
BlendMode.OVERLAY
BlendMode.SOFT_LIGHT
BlendMode.HARD_LIGHT
BlendMode.COLOR_DODGE
BlendMode.COLOR_BURN
BlendMode.DARKEN
BlendMode.LIGHTEN
BlendMode.DIFFERENCE
BlendMode.EXCLUSION
BlendMode.HUE
BlendMode.SATURATION
BlendMode.COLOR
BlendMode.LUMINOSITY
r/wThe blending mode for the drop shadow effect.
distanceMeasurement Unit (Number or String) (range: 0 - 1000) r/wThe distance between the item and its shadow
effectColorSwatch r/wThe color applied to the drop shadow, specified as a swatch (color, gradient, tint, or mixed ink), or as an array of color values. The color mode dictates the array values: for RGB, specify three values, each in the range 0 to 255, in the format [R,G,B]; for CMYK, specify four values, each as a percentage and each in the range 0 to 100, in the format [C,M,Y,K]; for LAB, specify three values in the format [L,A,B], with L in the range 0 to 100 and A and B in the range -128 to 127.
eventListenersEventListeners EventListener readonlyA collection of event listeners.
eventsEvents Event readonlyA collection of events.
honorOtherEffectsbool r/wIf true, the drop shadow will take into account other non-shadow effects.
isValidbool readonlyReturns true if the object specifier resolves to valid objects.
knockedOutbool r/wIf true, the layer will knock out the drop shadow.
modeShadowMode:
ShadowMode.NONE
ShadowMode.DROP
r/wThe shadow mode.
noisenumber (range: 0 - 100) r/wThe amount (as a percentage) of noise applied to the shadow. (Range: 0 to 100)
opacitynumber (range: 0 - 100) r/wThe opacity of the drop shadow (as a percentage). (Range: 0 to 100)
parentContentTransparencySetting
FillTransparencySetting
StrokeTransparencySetting
TransparencySetting
readonlyThe parent of the DropShadowSetting (a TransparencySetting, StrokeTransparencySetting, FillTransparencySetting or ContentTransparencySetting).
propertiesObject r/wA property that allows setting of several properties at the same time.
sizeMeasurement Unit (Number or String) (range: 0 - 144) r/wThe radius (in pixels) of the blur applied to the drop shadow. (Range depends on the unit type. For points: 0 to 144; for picas: 0p0 to 12p0; for inches: 0 to 2; for mm: 0 to 50.08; for cm: 0 to 5.08; for ciceros: 0c0 to 11c3.128.)
spreadnumber (range: 0 - 100) r/wThe amount (as a percentage of the blur width) to spread the footprint of the drop shadow and reduce the radius of the blur. (Range: 0 to 100)
useGlobalLightbool r/wIf true, uses the global light angle.
xOffsetMeasurement Unit (Number or String) (range: -1000 - 1000) r/wThe horizontal offset of the drop shadow. Range depends on the unit type. For points: -1000 to 1000; for picas: -83p4 to 83p4; for inches: -13.8889 to 13.8889; for mm: -352.778 to 352.778; for cm: -35.277 to 35.277; for ciceros: -78c2.389 to 78c2.389.
yOffsetMeasurement Unit (Number or String) (range: -1000 - 1000) r/wThe vertical offset of the drop shadow. (Range depends on the unit type. For points: -1000 to 1000; for picas: -83p4 to 83p4; for inches: -13.8889 to 13.8889; for mm: -352.778 to 352.778; for cm: -35.277 to 35.277; for ciceros: -78c2.389 to 78c2.389)

Methods

Instances

EventListener addEventListener (eventType: string, handler: varies[, captures: bool=false])
Adds an event listener.

ParameterTypeDescription
eventTypestringThe event type.
handlerFile
JavaScript Function
The event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

Array of DropShadowSetting getElements ()
Resolves the object specifier, creating an array of object references.

bool removeEventListener (eventType: string, handler: varies[, captures: bool=false])
Removes the event listener.

ParameterTypeDescription
eventTypestringThe registered event type.
handlerFile
JavaScript Function
The registered event handler. Can accept: File or JavaScript Function.
capturesboolThis parameter is obsolete. (Optional) (default: false)

string toSource ()
Generates a string which, if executed, will return the DropShadowSetting.

string toSpecifier ()
Retrieves the object specifier.

Element of

ContentTransparencySetting.dropShadowSettings

FillTransparencySetting.dropShadowSettings

StrokeTransparencySetting.dropShadowSettings

TransparencySetting.dropShadowSettings

Return

Array of DropShadowSetting DropShadowSetting.getElements ()

Jongware, 28-Apr-2012 v3.0.3iContents :: Index