Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.TextMetrics
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { TextMetrics } = dom;

The dimensions of a piece of text in the canvas, as created by the CanvasRenderingContext2D.measureText() method.

Properties

readonly
actualBoundingBoxAscent: number

Returns the measurement described below.

readonly
actualBoundingBoxDescent: number

Returns the measurement described below.

readonly
actualBoundingBoxLeft: number

Returns the measurement described below.

readonly
actualBoundingBoxRight: number

Returns the measurement described below.

readonly
alphabeticBaseline: number

Returns the measurement described below.

readonly
emHeightAscent: number

Returns the measurement described below.

readonly
emHeightDescent: number

Returns the measurement described below.

readonly
fontBoundingBoxAscent: number

Returns the measurement described below.

readonly
fontBoundingBoxDescent: number

Returns the measurement described below.

readonly
hangingBaseline: number

Returns the measurement described below.

readonly
ideographicBaseline: number

Returns the measurement described below.

readonly
width: number

Returns the measurement described below.