Geometry · function

measureText

Width of a string in cells, spacing included, excluding the trailing gap.

Explained in Hello world, Meshes and geometry.

function measureText(text: string): number
import { measureText } from '@driftengine/core';

Parameters

ParameterTypeDescription
textstring