PageItem
A page item object.
Superclass of CompoundPathItem, GraphItem, GroupItem, LegacyTextItem, MeshItem, NonNativeItem, PathItem, PlacedItem, PluginItem, RasterItem, SymbolItem, and TextFrameItem
QuickLinks
Hierarchy
Properties
Property | Type | Access | Description |
---|---|---|---|
URL | string | r/w | The value of the Adobe URL tag assigned to this artwork item. |
artworkKnockout | KnockoutState: KnockoutState.Unknown KnockoutState.DISABLED KnockoutState.ENABLED KnockoutState.INHERITED |
r/w | Is the artwork used to create a knockout. |
blendingMode | BlendModes: BlendModes.NORMAL BlendModes.MULTIPLY BlendModes.SCREEN BlendModes.OVERLAY BlendModes.SOFTLIGHT BlendModes.HARDLIGHT BlendModes.COLORDODGE BlendModes.COLORBURN BlendModes.DARKEN BlendModes.LIGHTEN BlendModes.DIFFERENCE BlendModes.EXCLUSION BlendModes.HUE BlendModes.SATURATIONBLEND BlendModes.COLORBLEND BlendModes.LUMINOSITY |
r/w | The mode used when compositing an object. |
controlBounds | Rect | readonly | The bounds of the artwork including stroke width and controls. |
editable | bool | readonly | Can the art item be modified. |
geometricBounds | Rect | readonly | The bounds of the artwork excluding stroke width. |
height | number (range: 0.0 - 16348.0) | r/w | The height of the art item. |
hidden | bool | r/w | Is this artwork item hidden? |
isIsolated | bool | r/w | Is the artwork isolated. |
layer | Layer | readonly | The layer to which this artwork belongs. |
left | number | r/w | The left position of the art item. |
locked | bool | r/w | Is this artwork item locked? |
name | string | r/w | The item's name. |
note | string | r/w | The note assigned to this artwork item. |
opacity | number (range: 0.0 - 100.0) | r/w | The object's opacity (between 0.0 and 100.0) |
parent | Object | readonly | The object's container. |
pixelAligned | bool | r/w | Is this artwork item aligned to Pixel Grid? |
position | Point | r/w | The position of the top left corner of the art item. |
selected | bool | r/w | Is this artwork item selected? |
sliced | bool | r/w | Is the art item sliced (default: false) |
tags | Tags | readonly | The collection of tags associated with this page item. |
top | number | r/w | The top position of the art item. |
typename | string | readonly | The class name of the object. |
visibilityVariable | any | r/w | The visibility variable bound to this page item. |
visibleBounds | Rect | readonly | The visible bounds of the artwork including stroke width. |
width | number (range: 0.0 - 16348.0) | r/w | The width of the art item. |
wrapInside | bool | r/w | Should the text frame object be wrapped inside this object? |
wrapOffset | number | r/w | Use this offset when wrapping text around this object. |
wrapped | bool | r/w | Wrap text frame objects around this object (text frame must be above the object) |
zOrderPosition | int | readonly | The drawing order of the art within it's group or layer. |
Methods
Instances
void bringInPerspective (positionX:
number, positionY:
number, perspectiveGridPlane:
PerspectiveGridPlaneType)
Place art object(s)in perspective grid at spedified perspective plane and coordinate.
Parameter | Type | Description |
---|---|---|
positionX | number | Position towards X direction of specified or active perspective grid plane. |
positionY | number | Position towards Y direction of specified or active perspective grid plane. |
perspectiveGridPlane | PerspectiveGridPlaneType: PerspectiveGridPlaneType.NOPLANE PerspectiveGridPlaneType.LEFTPLANE PerspectiveGridPlaneType.RIGHTPLANE PerspectiveGridPlaneType.FLOORPLANE | Type of perspective grid plane. |
PageItem duplicate (relativeObject:
Object, insertionLocation:
ElementPlacement)
Duplicate this object.
Parameter | Type | Description |
---|---|---|
relativeObject | Object | |
insertionLocation | ElementPlacement |
PageItem move (relativeObject:
Object, insertionLocation:
ElementPlacement)
Move the object.
Parameter | Type | Description |
---|---|---|
relativeObject | Object | |
insertionLocation | ElementPlacement |
void remove ()
Deletes this object.
void removeAll ()
Deletes all elements.
void resize (scaleX:
number, scaleY:
number[, changePositions:
bool=true][, changeFillPatterns:
bool=true][, changeFillGradients:
bool=true][, changeStrokePattern:
bool=true][, changeLineWidths:
number=100.0][, scaleAbout:
Transformation=Transformation.CENTER])
Scale art object(s)
Parameter | Type | Description |
---|---|---|
scaleX | number | Horizontal scaling factor expressed as a percentage (100 = 100%) |
scaleY | number | Vertical scaling factor expressed as a percentage (100 = 100%) |
changePositions | bool | Are art object positions and orientations effected? (default: true) (Optional) |
changeFillPatterns | bool | Are the fill patterns assigned to paths to be transformed? (default: true) (Optional) |
changeFillGradients | bool | Are the fill gradients assigned to paths to be transformed? (default: true) (Optional) |
changeStrokePattern | bool | Are the stroke patterns assigned to paths to be transformed? (default: true) (Optional) |
changeLineWidths | number | The amount line widths are to be scaled (expressed as a percentage) (default: 100.0) (Optional) |
scaleAbout | Transformation: Transformation.DOCUMENTORIGIN Transformation.TOPLEFT Transformation.LEFT Transformation.BOTTOMLEFT Transformation.TOP Transformation.CENTER Transformation.BOTTOM Transformation.TOPRIGHT Transformation.RIGHT Transformation.BOTTOMRIGHT | The point on the art item's bounding box to which the scale is applied. (default: Transformation.CENTER) (Optional) |
void rotate (angle:
number[, changePositions:
bool=true][, changeFillPatterns:
bool=true][, changeFillGradients:
bool=true][, changeStrokePattern:
bool=true][, rotateAbout:
Transformation=Transformation.CENTER])
Rotate art object(s)
Parameter | Type | Description |
---|---|---|
angle | number | Angle of rotation (in degrees). Rotation is performed counter-clock wise. |
changePositions | bool | Are art object positions and orientations effected? (default: true) (Optional) |
changeFillPatterns | bool | Are the fill patterns assigned to paths to be transformed? (default: true) (Optional) |
changeFillGradients | bool | Are the fill gradients assigned to paths to be transformed? (default: true) (Optional) |
changeStrokePattern | bool | Are the stroke patterns assigned to paths to be transformed? (default: true) (Optional) |
rotateAbout | Transformation: Transformation.DOCUMENTORIGIN Transformation.TOPLEFT Transformation.LEFT Transformation.BOTTOMLEFT Transformation.TOP Transformation.CENTER Transformation.BOTTOM Transformation.TOPRIGHT Transformation.RIGHT Transformation.BOTTOMRIGHT | The point on the art item's bounding box to which the rotation is applied. (default: Transformation.CENTER) (Optional) |
void transform (transformationMatrix:
Matrix[, changePositions:
bool=true][, changeFillPatterns:
bool=true][, changeFillGradients:
bool=true][, changeStrokePattern:
bool=true][, changeLineWidths:
number=100.0][, transformAbout:
Transformation=Transformation.CENTER])
Transform art object(s) using a transformation matrix.
Parameter | Type | Description |
---|---|---|
transformationMatrix | Matrix | The transformation matrix to be applied to the objects. |
changePositions | bool | Are art object positions and orientations effected? (default: true) (Optional) |
changeFillPatterns | bool | Are the fill patterns assigned to paths to be transformed? (default: true) (Optional) |
changeFillGradients | bool | Are the fill gradients assigned to paths to be transformed? (default: true) (Optional) |
changeStrokePattern | bool | Are the stroke patterns assigned to paths to be transformed? (default: true) (Optional) |
changeLineWidths | number | The amount line widths are to be scaled (expressed as a percentage) (default: 100.0) (Optional) |
transformAbout | Transformation: Transformation.DOCUMENTORIGIN Transformation.TOPLEFT Transformation.LEFT Transformation.BOTTOMLEFT Transformation.TOP Transformation.CENTER Transformation.BOTTOM Transformation.TOPRIGHT Transformation.RIGHT Transformation.BOTTOMRIGHT | The point on the art item's bounding box to which scale and rotation operations apply. (default: Transformation.CENTER) (Optional) |
void translate ([deltaX:
number=0.0][, deltaY:
number=0.0][, transformObjects:
bool=true][, transformFillPatterns:
bool=true][, transformFillGradients:
bool=true][, transformStrokePattern:
bool=true])
Reposition art object(s)
Parameter | Type | Description |
---|---|---|
deltaX | number | Horizontal transformation. (default: 0.0) (Optional) |
deltaY | number | Vertical transformation. (default: 0.0) (Optional) |
transformObjects | bool | Are art object positions and orientations affected? (default: true) (Optional) |
transformFillPatterns | bool | Are the fill patterns assigned to paths to be transformed? (default: true) (Optional) |
transformFillGradients | bool | Are the fill gradients assigned to paths to be transformed? (default: true) (Optional) |
transformStrokePattern | bool | Are the stroke patterns assigned to paths to be transformed? (default: true) (Optional) |
void zOrder (zOrderCmd:
ZOrderMethod)
Arranges the art relative to other art in the group or layer.
Parameter | Type | Description |
---|---|---|
zOrderCmd | ZOrderMethod: ZOrderMethod.BRINGTOFRONT ZOrderMethod.BRINGFORWARD ZOrderMethod.SENDBACKWARD ZOrderMethod.SENDTOBACK | How to arrange the art. |
Element of
TracingObject.sourceArt
Used in:
Symbol Symbols.add (sourceArt: PageItem[, registrationPoint: SymbolRegistrationPoint=SymbolRegistrationPoint.SYMBOLCENTERPOINT])
Return
PageItem Document.rasterize (sourceArt: any[, clipBounds: Rect][, options: RasterizeOptions])
PageItem PageItem.duplicate (relativeObject: Object, insertionLocation: ElementPlacement)
PageItem PageItem.move (relativeObject: Object, insertionLocation: ElementPlacement)
PageItem PageItems.getByName (name: string)
PageItem TracingObject.releaseTracing ()
Jongware, 27-Jun-2010 v3.0.3d | Contents :: Index |