fontlabapp.studios.component_studio.locations · declarations 001
Back to fontlabapp.studios.component_studio.locations
RowKey
module-attribute
RowKey
component_targets
component_targets(glyph: Any, layer: Any, selected_only: bool) -> list[tuple[Any, str]]
Resolve selection by position and base name; never substitute a sibling.
current_coordinates
current_coordinates(package: Any, shape: Any, master: str) -> dict[str, float]
Read a component's explicit coordinates or named source-layer position.
flLocation supports key reads: the native mapping returns None for an absent key, a float for a scalar and a tuple for an anisotropic value. Do not iterate it or reinterpret an anisotropic position as a scalar.
encode_location
encode_location(package: Any, values: dict[str, float]) -> str
Encode native # syntax in declared-axis order, within design bounds.
The native builder replaces # with : before decodeMasterPosition parses comma-separated shortName=value pairs. Use design units, not user units.
location_plan
location_plan(package: Any, glyphs: list[Any], masters: list[str], values: dict[str, dict[str, float]], facts: AutoFacts, *, reset: bool = False, name: str = '', selected_only: bool = True, row_values: dict[RowKey, dict[str, float]] | None = None, changed: set[RowKey] | None = None, observed: dict[RowKey, str] | None = None, row_errors: dict[RowKey, str] | None = None) -> Plan
Preview each eligible edit or kept occurrence; a refusal stays local.
writer
module-attribute
writer