A trap preset.
Go to Property Listing | Method Listing
duplicate, remove, insertLabel, extractLabel, toSource, getElements, toSpecifier, addEventListener, removeEventListener
Application, Boolean, Document, EndJoin, EventListeners, Events, Number, Object, String, TrapEndTypes, TrapImagePlacementTypes,
|
Property |
Type |
Access |
Description |
|---|---|---|---|
|
blackColorThreshold |
Number (range 0 - 100) |
read/write |
The minimum amount (as a percentage) of black ink required before the black width setting is applied. (Range: 0 to 100) |
|
blackDensity |
Number (range 0 - 10) |
read/write |
The neutral density value at or above which an ink is considered black. (Range: .001 to 10) |
|
blackWidth |
read/write |
The black width. (Range depends on unit. For points: 0.0 to 8.0; picas: 0p0 to 0p8; inches: 0 to 0.1111; mm: 0 to 2.822; cm: 0 to .2822; ciceros: 0c0 to 0c7.507) |
|
|
colorReduction |
Number (range 0 - 100) |
read/write |
The degree (as a percentage) to which components from abutting colors are used to reduce the trap color. (Range: 0 to 100) Note: 0% makes a trap whose neutral density is equal to the neutral density of the darker color. |
|
defaultTrapWidth |
read/write |
The default width for trapping all colors except those involving solid black. (Range depends on unit. For points: 0.0 to 8.0; picas: 0p0 to 0p8; inches: 0 to 0.1111; mm: 0 to 2.822; cm: 0 to .2822; ciceros: 0c0 to 0c7.507) |
|
|
eventListeners |
readonly |
A collection of event listeners. |
|
|
events |
readonly |
A collection of events. |
|
|
id |
readonly |
The unique ID of the TrapPreset. |
|
|
imagePlacement |
TrapImagePlacementTypes.CENTER_EDGES TrapImagePlacementTypes.CHOKE TrapImagePlacementTypes.IMAGE_NEUTRAL_DENSITY TrapImagePlacementTypes.IMAGES_OVER_SPREAD |
read/write |
The trap placement between vector objects and bitmap images. |
|
imagesToImages |
read/write |
If true, turns on trapping along the boundary of overlapping or abutting bitmap images. |
|
|
index |
readonly |
The index of the TrapPreset within its containing object. |
|
|
internalImages |
read/write |
If true, turns on trapping among colors within individual bitmap images. |
|
|
isValid |
readonly |
Returns true if the object specifier resolves to valid objects. |
|
|
label |
read/write |
A property that can be set to any string. |
|
|
name |
read/write |
The name of the TrapPreset. |
|
|
objectsToImages |
read/write |
If true, ensures that vector objects overlap bitmap images. |
|
|
oneBitImages |
read/write |
If true, ensures that one-bit images trap to abutting objects. |
|
|
parent |
readonly |
The parent of the TrapPreset (a Application or Document). |
|
|
properties |
read/write |
A property that allows setting of several properties at the same time. |
|
|
slidingTrapThreshold |
Number (range 0 - 100) |
read/write |
The difference (as a percentage) between the neutral densities of abutting colors at which the trap is moved from the darker side of a color edge toward the centerline. (Range: 0 to 100) |
|
stepThreshold |
Number (range 1 - 100) |
read/write |
The amount (as a percentage) that components of abutting colors must vary before a trap is created. (Range: 1 to 100) |
|
trapEnd |
TrapEndTypes.MITER_TRAP_ENDS TrapEndTypes.OVERLAP_TRAP_ENDS |
read/write |
The shape to use at the intersection of three-way traps. |
|
trapJoin |
EndJoin.MITER_END_JOIN EndJoin.ROUND_END_JOIN EndJoin.BEVEL_END_JOIN |
read/write |
The join type of the trap preset. |
EventListener addEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Adds an event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The event type. |
|
|
handler |
Varies |
The event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
TrapPreset duplicate ()
Duplicates the TrapPreset.
String extractLabel (key:String)
Gets the label value associated with the specified key.
|
Parameter |
Type |
Description |
|---|---|---|
|
key |
The key. |
TrapPreset getElements ()
Resolves the object specifier, creating an array of object references.
undefined insertLabel (key:String, value:String)
Sets the label to the value associated with the specified key.
undefined remove (replacingWith:TrapPreset)
Deletes the trap preset.
|
Parameter |
Type |
Description |
|---|---|---|
|
replacingWith |
The trap preset to apply in place of the deleted preset. |
Boolean removeEventListener (eventType:String, handler:Varies, [captures:Boolean=Boolean])
Removes the event listener.
|
Parameter |
Type |
Description |
|---|---|---|
|
eventType |
The registered event type. |
|
|
handler |
Varies |
The registered event handler. Can accept: File or JavaScript Function. |
|
captures |
This parameter is obsolete. (Optional) (default: false) |
String toSource ()
Generates a string which, if executed, will return the TrapPreset.
String toSpecifier ()
Retrieves the object specifier.