torchcell.database.browser_style.NodeRule

class NodeRule(*, label: str, fill: Annotated[str, _PydanticGeneralMetadata(pattern='^#[0-9A-F]{6}$')], border: Annotated[str, _PydanticGeneralMetadata(pattern='^#[0-9A-F]{6}$')], text: Annotated[str, _PydanticGeneralMetadata(pattern='^#[0-9A-F]{6}$')] = '#000000', diameter_px: int = 50, caption: str = '{id}')[source]

Bases: BaseModel

One node.<Label> {...} block.

render() → str[source]

The GRASS block for this label.

model_config: ClassVar[ConfigDict] = {}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].