v0.1.0-alpha
官网Home
components/canvasevents
实验与能力验证Labs · 56 / 64

CanvasEvents

ui.events

画布级事件:滚动、缩放手势、拖拽与剪贴板图片往返。Canvas-level events: scroll, magnify, drag and a clipboard PNG round-trip.

BEHAVIOR CONTRACT

原始事件 payload 直达节点,不经过组件抽象。Raw event payloads reach the node without a component in between.

RECORDED INTERACTION

Harness 在画布上滚动,事件日志实时更新。The harness scrolls the canvas; the event log updates live.

在 GitHub 查看源码View source on GitHubexamples/storybook/stories.zig:4111

这是 Storybook 中该 story 的原样代码(zenit 5f9add5+wip 2026-09-30)。其中 W 即 ui.widgets,col / row / label 是 Storybook 内的布局小工具。The story's verbatim source from the Storybook (zenit 5f9add5+wip 2026-09-30). W is ui.widgets; col / row / label are small Storybook layout helpers.

zenit · 双授权Dual-licensed开源项目可按 GPL-3.0-only 免费使用;闭源或商业产品需要商业授权。Free for open-source projects under GPL-3.0-only; closed-source or commercial products need a commercial license.可联系作者:Contact the author: zongyi.xzy#gmail.com(# 换成 @) (replace # with @)zenit 5f9add5+wip 2026-09-30