ImageLayer
Represents an image.
Hierarchy
ImageLayer
Constructors
constructor
newImageLayer(parent: any): ImageLayer
Properties
anchor
anchor: Property = new Property(this, PropertyType.ANCHOR)
autoOrient
autoOrient: boolean = false
blendMode
blendMode: BlendMode = BlendMode.NORMAL
classNames
classNames: string[] = []
effects
effects: any
height
height: number = 0
id
id: string = ""
inPoint
inPoint: number = 0
Optional index
index: undefined | number
is3D
is3D: boolean = false
name
name: string = ""
opacity
opacity: Property = new Property(this, PropertyType.OPACITY)
Optional orientation
outPoint
outPoint: number = 0
Protected parent
parent: any
position
position: Property = new Property(this, PropertyType.POSITION)
refId
refId: string
Optional rotation
Optional rotationX
Optional rotationY
Optional rotationZ
scale
scale: Property = new Property(this, PropertyType.SCALE)
startTime
startTime: number = 0
timeStretch
timeStretch: number = 1
Readonly type
type: IMAGE = LayerType.IMAGE
width
width: number = 0
Accessors
colors
get colors(): string[]
Returns string[]
Array of colors.
totalFrames
get totalFrames(): number
Returns number
Number of frames.
Methods
fromJSON
fromJSON(json: Record<string, any>): ImageLayer
toJSON
toJSON(): Record<string, any>
Returns Record<string, any>
JSON object
Last updated