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): numberimport { measureText } from '@driftengine/core';Parameters
| Parameter | Type | Description |
|---|---|---|
text | string |