TextWatermarkLayer
Defined in: index.ts:1024
Text options for text watermark
Example
Section titled “Example”text: 'hello world', position: { X: 10, Y: 10, // or // position: Position.center }, style: { color: '#aacc22', fontName: 'Arial', fontSize: 12, shadowStyle: { dx: 10, dy: 10, radius: 10, color: '#aacc22' }, textBackgroundStyle: { paddingX: 10, paddingY: 10, type: TextBackgroundType.stretchX, color: '#aacc22' }, underline: true, skewX: -0.25, strikeThrough: true, textAlign: 'left', italic: true, bold: true, rotate: 45 }Extends
Section titled “Extends”Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:number
Defined in: index.ts:579
Opacity applied to the complete text layer, including its fill, outline, shadow, and background.
Default Value
Section titled “Default Value”1Example
Section titled “Example”alpha: 0.65Inherited from
Section titled “Inherited from”blendMode?
Section titled “blendMode?”
optionalblendMode?:BlendMode
Defined in: index.ts:584
How this text layer is composited with the pixels already on the canvas.
Default Value
Section titled “Default Value”'normal'Inherited from
Section titled “Inherited from”layout?
Section titled “layout?”
optionallayout?:WatermarkLayout
Defined in: index.ts:615
Render this watermark once or repeat it across the image. Tiled layouts
cannot be combined with position or the deprecated positionOptions.
Default Value
Section titled “Default Value”{ type: 'single' }
Inherited from
Section titled “Inherited from”position?
Section titled “position?”
optionalposition?:PositionOptions
Defined in: index.ts:608
text position options
Example
Section titled “Example”position: { X: 10, Y: 10, // or // position: Position.center}Inherited from
Section titled “Inherited from”positionOptions?
Section titled “positionOptions?”
optionalpositionOptions?:PositionOptions
Defined in: index.ts:596
Example
Section titled “Example”positionOptions: { X: 10, Y: 10, // or // position: Position.center}Inherited from
Section titled “Inherited from”style?
Section titled “style?”
optionalstyle?:TextStyle
Defined in: index.ts:646
text style
Example
Section titled “Example”style: { color: '#aacc22', fontName: 'Arial', fontSize: 12, shadowStyle: { dx: 10, dy: 10, radius: 10, color: '#aacc22' }, textBackgroundStyle: { paddingX: 10, paddingY: 10, type: TextBackgroundType.stretchX, color: '#aacc22' }, underline: true, strikeThrough: true, textAlign: 'left', italic: true, // or // skewX: -0.25, bold: true, rotate: 45}Inherited from
Section titled “Inherited from”text:
string
Defined in: index.ts:570
text content
Example
Section titled “Example”text: 'hello world'Inherited from
Section titled “Inherited from”type:
"text"
Defined in: index.ts:1025