GraphReFlyTS

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

ParameterTypeDescription
scopestringScope prefix.
localstringLocal name.

Returns

The scoped name, or local when already scoped.

Example

scopedName("layout", "text");

Source

packages/ts/src/solutions/reactive-layout/measurements.ts