Skip to content

cupertino-files / AxisStyleProperty

Variable: AxisStyleProperty

const AxisStyleProperty: Readonly<Record<string, readonly [number, number]>>

Defined in: src/tsch/appearance.ts:334

Property numbers inside TSCH.Generated.ChartAxisStyleArchive, as [category, value] pairs.

Nearly every axis property exists twice, once for each kind, and an archive populates only its own family: in a real chart the category axis's bag holds fields 1, 3, 5, 12, 14, 16, 18, 20, 22, 24 … and the value axis's holds 2, 4, 13, 15, 17, 19, 21, 25 … — the counterparts, with nothing in common but the shared label-style field 7. So a reader has to know which kind it is holding, and ChartAxisStyle is told by the chart, which keeps value_axis_styles and category_axis_styles in separate fields.

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.