Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>MaskCoords_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class MaskCoords_
extends _MaskCoords_
import { MaskCoords_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

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

Constructors

new
MaskCoords_(params: { n: number; x: number; y: number; zoom: number; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
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)

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc