Skip to content

ExtendedMetrics

Unofficial

Font metrics used by MathJax for scaling and positioning math output.

Import:

import type { ExtendedMetrics } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface ExtendedMetrics

Properties

Property Type Description
containerWidth number Width of the container element in pixels.
em number Size of 1em in pixels for the current font.
ex number Size of 1ex in pixels for the current font.
family string CSS font family string.
lineWidth number Available line width for the math output in pixels.
scale number Scale factor for the math output relative to the surrounding text.

Links to this page: