LivePanels.Toolkit.Integration.Render (livepanels v0.1.0)

Copy Markdown View Source

Canvas render-loop helpers for integration code.

The ordinary render path is canvas_runtime/1 plus item declarations and id-less :item renderers. Use this module only when an application intentionally takes over frame rendering, item ordering, DOM ids, z-index, or vector item rendering.

Summary

Functions

Returns the stable DOM id for one canvas item frame.

Renders one canonical canvas item frame.

Returns the canonical attrs for one canvas item frame.

Returns the canonical inline style for one canvas item frame.

Returns the CSS z-index value for one canvas item.

Orders canvas items for stable application rendering.

Renders one committed vector item as a canonical world SVG item.

Renders one committed vector item.

Functions

canvas_item_dom_id(canvas_id, item_id)

Returns the stable DOM id for one canvas item frame.

canvas_item_frame(assigns)

Renders one canonical canvas item frame.

canvas_item_frame_attrs(item, view, client_id, opts \\ [])

Returns the canonical attrs for one canvas item frame.

canvas_item_style(item, opts \\ [])

Returns the canonical inline style for one canvas item frame.

canvas_item_z_index(item)

Returns the CSS z-index value for one canvas item.

items_for_render(items, z_order \\ [])

Orders canvas items for stable application rendering.

svg_vector_item(assigns)

Renders one committed vector item as a canonical world SVG item.

vector_item(assigns)

Renders one committed vector item.