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>MediaAreaCoordinates_

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

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

Constructors

new
MediaAreaCoordinates_(params: { x: number; y: number; w: number; h: number; rotation: number; })

Properties

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

w: number

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

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).

Static Properties

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