Extends Item
A PlacedSymbol represents a symbol which has been placed in an Illustrator document.
Constructors
Creates a new PlacedSymbol Item.
Sample code:
var symbol = document.symbols['Rocket']; var placedSymbol = new PlacedSymbol(symbol, new Point(100, 100));
- Parameters:
- symbol: Symbol — the symbol to place
- pt: Point — the center point of the placed symbol — optional
- Returns:
- PlacedSymbol
Creates a new PlacedSymbol Item.
Sample code:
var symbol = document.symbols['Rocket']; var matrix = new Matrix().translate(100, 100).rotate(45); var placedSymbol = new PlacedSymbol(symbol, matrix);
- Returns:
- PlacedSymbol
Creates a new PlacedSymbol item from the provided item by converting it to a Symbol behind and placing it in the same spot as the original item. The original item is then removed.
- Parameters:
- item: Item — the item to create a symbol out of
- Returns:
- PlacedSymbol
Properties
Inheritance
- Item
-
- name
- position
- style
- selected
- fullySelected
- locked
- visible
- clipMask
- targeted
- blendMode
- opacity
- isolated
- knockout
- alphaIsShape
- data
- document
- layer
- parent
- children
- firstChild
- lastChild
- nextSibling
- previousSibling
- index
- bounds
- strokeBounds
- controlBounds
- strokeColor
- strokeWidth
- strokeCap
- strokeJoin
- dashOffset
- dashArray
- miterLimit
- strokeOverprint
- fillColor
- fillOverprint
- windingRule
- resolution
- rasterize(items[, type[, resolution, antialiasing[, width, height]]])
- remove()
- removeChildren()
- copyTo(document)
- copyTo(item)
- clone()
- getKnockout(inherited)
- reverseChildren()
- hitTest(point[, request[, tolerance]])
- hitTest(point, tolerance)
- expand([flags[, steps]])
- rasterize([type[, resolution[, antialiasing[, width, height]]]])
- hasChildren()
- isEditable()
- isValid()
- appendTop(item)
- appendBottom(item)
- moveAbove(item)
- moveBelow(item)
- isAbove(item)
- isBelow(item)
- isParent(item)
- isChild(item)
- isDescendant(item)
- isAncestor(item)
- isGroupedWith(item)
- scale(sx, sy[, center])
- scale(scale[, center])
- translate(t)
- rotate(angle[, center])
- shear(shx, shy)
- transform(matrix[, flags])