Files
sfhorizont/docs/design/source/README.md
T

11 lines
785 B
Markdown
Raw Normal View History

2026-10-24 13:20:55 +02:00
# Design source files
One file per screen, exported from the design canvas. They are HTML with a small template layer, **not** runnable app code:
- `{{ path }}`: value from the `renderVals()` method of the `Component` class at the bottom of each file.
- `<sc-for list="{{items}}" as="item">`: repeat. `<sc-if value="{{flag}}">`: conditional.
- `onClick="{{handler}}"`: event binding. `data-props` on the script tag: design-time tweak defaults (e.g. accent colour).
- `<a href="Other.dc.html">`: navigation between screens in the prototype.
Use them for exact sizes, spacing, colours and copy. The PNGs in `../screens` show the rendered result. `renderVals()` contains the sample data and the small chart geometry (profile and panorama paths) that the real app computes in the core.