@composy/layout-runtime
v0.0.1
Published
DOM-free CSS Grid style resolvers and runtime for LDesign Layout
Readme
@composy/layout-runtime
DOM runtime for rendering a LayoutDocument with CSS Grid. It owns breakpoint resolution,
responsive resize observation, item shell lifecycle, and renderer cleanup without importing
GridStack or a UI framework.
import { createLayoutRuntime } from '@composy/layout-runtime'
const runtime = createLayoutRuntime({ container, document })
runtime.mount()运行时也可接受 materials。没有提供 renderItem 时,优先创建物料声明的 Web
Component,其次使用 HTML 标签或 html.render;提供 renderItem 时由宿主完全接管渲染。
Use update, setBreakpoint, and destroy to control the runtime lifecycle.
