Design-Leinwand — component.design-canvas
Arbeitsflaeche eines visuellen Designers (Website Studio): oben eine Leiste mit Geraeten (Desktop, Tablet, Mobil ...), Zoom (kleiner, groesser, Anpassen, 100 %) und freien Slots start/end fuer Werkzeuge; in der Mitte die Buehne mit Punktraster, darauf der Seitenrahmen (Slot default, z. B. die Leinwa
Beispiele
Standard (Karte auf Punktraster, Geraete und Zoom)
Tablet, 75 %
1.6.0 Bearbeiten auf der Leinwand (selection, inlineEdit, insertPoints, dropTargets) - Klick waehlt, Doppelklick/F2 tippt, + fuegt ein
Flach, nur Buehne (chrome bare)
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
label | string | "Leinwand" |
devices | array | [{"value":"desktop","label":"Desktop","i… |
device | string | "desktop" |
zoom | boolean | true |
zoomLevel | number | 100 |
frame | string: card | flat | "card" |
frameWidth | string: auto | device | "auto" |
background | string: dots | plain | page | "dots" |
status | string | "" |
locks | boolean | false |
collaborative | boolean | false |
selection | boolean | false |
selected | string | "" |
inlineEdit | boolean | false |
insertPoints | boolean | false |
dropTargets | boolean | false |
chrome | string: full | bare | "full" |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Events & Slots
Events: device, zoom, select, text, text-miss, insert, drop
Slot start: akzeptiert ui.*, component.*, layout.*
Slot end: akzeptiert ui.*, component.*, layout.*
Slot default: akzeptiert ui.*, component.*, layout.*, section.*, template.* · Pflicht
Slot path: akzeptiert component.breadcrumb, ui.*, layout.*
Slot prompt: akzeptiert component.prompt-input, ui.*, component.*, layout.*
Slot footer: akzeptiert ui.*, component.*, layout.*
Stellschrauben (Komponenten-Tokens)
| Token | Default |
|---|---|
--design-canvas-bar-background | var(--color-surface-default) |
--design-canvas-stage-background | var(--color-surface-sunken) |
--design-canvas-dot | var(--color-border-default) |
--design-canvas-frame-background | var(--color-surface-default) |
--design-canvas-gutter | var(--size-5) |
--design-canvas-lock-tone | var(--color-action-primary) |
Genutzte Design-Tokens
border.emphasis border.hairline color.action.on-danger color.action.on-primary color.action.primary color.action.primary-active color.border.default color.border.subtle color.series.1 color.series.2 color.series.3 color.series.4 color.series.5 color.series.6 color.series.7 color.series.8 color.status.danger color.surface.default color.surface.overlay color.surface.page color.surface.raised color.surface.sunken color.text.default color.text.muted control.height duration.fast duration.slow easing.standard elevation.overlay elevation.raised focus.ring-color focus.ring-offset focus.ring-width font.family.default leading.tight radius.control radius.full radius.surface size.05 size.1 size.10 size.2 size.3 size.4 size.5 size.8 text.xs weight.medium