PostBackground

PostBackground

Represents one of the backgrounds you can use when writing a post

Constructor

new PostBackground()

Source:

Members

(nullable) angle :number

Source:
The angle of the gradient (only present when type == PostBackgroundType.GRADIENT)
Type:
  • number

(nullable) endColor :string

Source:
The end color of the gradient in hex (only present when type == PostBackgroundType.GRADIENT)
Type:
  • string

id :number

Source:
The ID of the background
Type:
  • number

(nullable) imageUrl :string

Source:
The URL of the background image (800 x 400 or 800 x 534) (only present when type == PostBackgroundType.IMAGE)
Type:
  • string

(nullable) previewUrl :string

Source:
The background, represented as a small square image (64 x 64) (only present when type == PostBackgroundType.GRADIENT)
Type:
  • string

(nullable) startColor :string

Source:
The start color of the gradient in hex (only present when type == PostBackgroundType.GRADIENT)
Type:
  • string

textColor :string

Source:
The color of the text in hex
Type:
  • string

type :PostBackgroundType

Source:
The background type (PostBackgroundType.IMAGE || PostBackgroundType.GRADIENT)
Type: