Expand description
Default HTMLDrawable implementations for
cotis_defaults::render_commands types.
These impls map layout output to CSS on shared DOM host elements (cotis-{id}).
Multiple drawables with the same command id accumulate styles on one node via
HTMLCanvas::ensure_command_element.
ยงSupported commands
| Command | DOM host | Key CSS |
|---|---|---|
Rectangle | cotis-{id}, tag from ExtraHTMLData | position:absolute, background-color, border-radius |
Border | same | per-side border-*: Npx solid |
Text | same | font-family: font{id}, color, flex, white-space: pre-wrap |
Image | same | background-image: url(...), background-size: 100% 100% |
ClipStart / ClipEnd | clip container stack | overflow: hidden, rounded clip |
RenderTList | (recursive) | dispatches Type / List variants |