Raw.MediaAreaCoordinates

Raw.MediaAreaCoordinates

Coordinates and size of a clicable rectangular area on top of a story.

mediaAreaCoordinates#cfc9e002 flags:# x:double y:double w:double h:double rotation:double radius:flags.0?double = MediaAreaCoordinates;
export namespace Raw {
  export class MediaAreaCoordinates {
    constructor(params: {
      x: number;
      y: number;
      w: number;
      h: number;
      rotation: number;
      radius?: number;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xcfc9e002

Property

  • x : number

    The abscissa of the rectangle’s center, as a percentage of the media width (0-100).

  • y : number

    The ordinate of the rectangle’s center, as a percentage of the media height (0-100).

  • w : number

    The width of the rectangle, as a percentage of the media width (0-100).

  • h : number

    The height of the rectangle, as a percentage of the media height (0-100).

  • rotation : number

    Clockwise rotation angle of the rectangle, in degrees (0-360).

  • radius : number or undefined