Skip to Content

ui.kernel(渲染 / 运行时 / 状态 / Overlay)

ui.kernel 是 Fizzy 的运行时核心,负责渲染时序、事件分发与状态刷新。

主要子系统

  • Render:UiRenderPhaseUiRenderLayerUiRenderTaskQueue
  • Runtime:UiRuntimeUiMainThreadScheduler
  • 响应式状态:StateKernelmutableSignalcomputedSignaleffectbatchflush
  • Overlay/Layers:OverlayLayerStackOverlayLayerKey、布局引擎、focus/capture 状态
  • Modal:ModalSpecModalOverlayModalManager
  • Notification toast:NotificationSpecNotificationOverlayNotificationManager

适用场景

  • 需要明确渲染层级(例如 tooltip、overlay、debug 叠层)
  • 需要在 UI 层做响应式状态联动
  • 需要 modal / 通知系统的统一管理
Last updated on