Skip to main content

Module wisp_canvas_host

Module wisp_canvas_host 

Source
Expand description

WispCanvasHost + EditorDropZoneCanvas (M-UI.17 / AUT-137).

Editor canvas region. The Leptos component renders a host that picks one of three backends:

  • CssFallback — dotted drop-zone over the checkered editor canvas (SSR-stable, used in the mdBook screenshot).
  • WispAsset { asset_path } — a deterministic Wisp-generated PNG committed under _docs/book/src/assets/ui/. Loaded via <img>.
  • WispRuntimeUnavailable — banner explaining that runtime Wisp embedding in CSR isn’t wired yet.

The component never touches wgpu directly; it just renders the backend the parent picked.

Structs§

DropZoneActionView
One drop-zone action card.
EditorDropZoneCanvasProps
Props for the EditorDropZoneCanvas component.
EditorDropZoneView
Drop-zone view-model.
RecentClipView
One entry in the recent-clip strip.
WispCanvasHostProps
Props for the WispCanvasHost component.

Enums§

CanvasBackendView
Which canvas backend to render.

Functions§

EditorDropZoneCanvas
Required Props
WispCanvasHost
Required Props