Proxy object for methods related to AutoFit relations with different target objects and the current object as source
Go to Property Listing | Method Listing
add, addEventListener, count, exist, get, getElements, isActive, item, list, removeEventListener, resetAllToDefaults, toSource, toSpecifier
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
A collection of event listeners. |
||
readonly |
A collection of events. |
||
readonly |
Returns true if the object specifier resolves to valid objects. |
||
readonly |
The parent of the AutofitTargetRelations (a AutofitPageItemSettings). |
||
read/write |
A property that allows setting of several properties at the same time. |
AutofitRelation add (sourceAnchor:AnchorPoint, targetObject:Varies PageItem Graphic, targetAnchor:AnchorPoint, withProperties:Object)
Add a relation from an anchor point of this object to an anchor point of some target object
Parameter |
Type |
Description |
---|---|---|
sourceAnchor |
The anchor point of this object to link from |
|
targetObject |
The page item to link to. Can accept: PageItem or Graphic. |
|
targetAnchor |
The anchor point of the other object to link to |
|
withProperties |
Initial values for properties of the new AutofitTargetRelations (Optional) |
EventListener addEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Adds an event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The event type. |
|
handler |
JavaScriptFunction |
The event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
Number count (targetObject:Varies PageItem Graphic, sourceAnchor:AnchorPoint, targetAnchor:AnchorPoint)
Get the number of AutoFit relations from this object to other objects. Could be limited by the given parameters
Parameter |
Type |
Description |
---|---|---|
targetObject |
The page item to link to. Can accept: PageItem or Graphic. (Optional) |
|
sourceAnchor |
The anchor point of this object to link from (Optional) |
|
targetAnchor |
The anchor point of the other object to link to (Optional) |
Boolean exist (targetObject:Varies PageItem Graphic, sourceAnchor:AnchorPoint, targetAnchor:AnchorPoint)
Test whether at least one AutoFit relation exists from this object to other objects. Could be limited by the given parameters
Parameter |
Type |
Description |
---|---|---|
targetObject |
The page item to link to. Can accept: PageItem or Graphic. (Optional) |
|
sourceAnchor |
The anchor point of this object to link from (Optional) |
|
targetAnchor |
The anchor point of the other object to link to (Optional) |
AutofitRelation get (sourceAnchor:AnchorPoint, targetObject:Varies PageItem Graphic, targetAnchor:AnchorPoint)
Get the relation from an anchor point of this object to an anchor point of some target object
Parameter |
Type |
Description |
---|---|---|
sourceAnchor |
The anchor point of this object to link from |
|
targetObject |
The page item to link to. Can accept: PageItem or Graphic. |
|
targetAnchor |
The anchor point of the other object to link to |
AutofitTargetRelations getElements ()
Resolves the object specifier, creating an array of object references.
Boolean isActive ()
Test whether AutofitTargetRelations is active in terms of AutoFit
AutofitRelation item (index:Number)
Get the nth relation from AutofitTargetRelations
Parameter |
Type |
Description |
---|---|---|
index |
The index into the list of AutofitTargetRelations |
AutofitRelation list (targetObject:Varies PageItem Graphic, sourceAnchor:AnchorPoint, targetAnchor:AnchorPoint)
Get the list of AutoFit relations from this object to other objects. Could be limited by the given parameters
Parameter |
Type |
Description |
---|---|---|
targetObject |
The page item to link to. Can accept: PageItem or Graphic. (Optional) |
|
sourceAnchor |
The anchor point of this object to link from (Optional) |
|
targetAnchor |
The anchor point of the other object to link to (Optional) |
Boolean removeEventListener (eventType:String, handler:Varies File JavaScriptFunction, [captures:Boolean=Boolean])
Removes the event listener.
Parameter |
Type |
Description |
---|---|---|
eventType |
The registered event type. |
|
handler |
JavaScriptFunction |
The registered event handler. Can accept: File or JavaScript Function. |
captures |
This parameter is obsolete. (Optional) (default: false) |
undefined resetAllToDefaults ()
Reset the AutoFit specific data of AutofitTargetRelations to the default values
String toSource ()
Generates a string which, if executed, will return the AutofitTargetRelations.
String toSpecifier ()
Retrieves the object specifier.
AutofitPageItemSettings.targetRelations
Event.parent
EventListener.parent
MutationEvent.parent