Public declaration syntax from forge-py/src/forge/identity/glyph.py Original source SHA-256: 7cad42cfd1a68b4c9950fb95b197548b076d113e813ce03f41e209216619ecff Function bodies and constant values are omitted. This is not the complete implementation. Source line 24 class GlyphEntityKind(Enum) Source line 47 def parse_kind(s: str) -> GlyphEntityKind | None Source line 65 def as_str(self) -> str Source line 73 def as_u8(self) -> int Source line 89 def from_u8(v: int) -> GlyphEntityKind | None Source line 109 class GlyphColor() Source line 124 def to_hex(self) -> str Source line 137 def rgb(r: int, g: int, b: int) -> GlyphColor Source line 150 def to_dict(self) -> dict[str, int] Source line 159 def from_dict(data: dict[str, int]) -> GlyphColor Source line 172 class GlyphPalette() Source line 189 class GlyphDescriptor() Source line 211 def to_dict(self) -> dict[str, Any] Source line 223 def from_dict(data: dict[str, Any]) -> GlyphDescriptor Source line 238 def to_json(self) -> str Source line 247 def from_json(data: str) -> GlyphDescriptor Source line 259 class GlyphRenderTarget(Enum) Source line 270 class GlyphRenderFormat(Enum) Source line 281 class GlyphRenderOptions() Source line 298 class GlyphRenderResult() Source line 313 def svg_data(self) -> str | None Source line 334 def derive_palette(did: str, kind: GlyphEntityKind) -> GlyphPalette