Raw.MaskCoords

Raw.MaskCoords

Position on a photo where a mask should be placed when attaching stickers to media

maskCoords#aed6dbb2 n:int x:double y:double zoom:double = MaskCoords;
export namespace Raw {
  export class MaskCoords {
    constructor(params: { n: number; x: number; y: number; zoom: number }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0xaed6dbb2

Property

  • n : number

    Part of the face, relative to which the mask should be placed

  • x : number

    Shift by x-axis measured in widths of the mask scaled to the face size, from left to right. (for example, -1.0 will place the mask just to the left of the default mask position)

  • y : number

    Shift by y-axis measured in widths of the mask scaled to the face size, from left to right. (for example, -1.0 will place the mask just below the default mask position)

  • zoom : number

    Mask scaling coefficient. (for example, 2.0 means a doubled size)