API Reference
scopedName()
Build a scoped measurement name.
Import
import { scopedName } from "@graphrefly/ts/solutions/reactive-layout";
Signature
function scopedName(
scope: string,
local: string,
): string
Parameters
| Parameter | Type | Description |
|---|---|---|
scope | string | Scope prefix. |
local | string | Local name. |
Returns
The scoped name, or local when already scoped.
Example
scopedName("layout", "text");
Source
packages/ts/src/solutions/reactive-layout/measurements.ts