← 返回
未分类

LeaferJS — Canvas 2D Engine

LeaferJS — Canvas 2D Engine. Lightweight and high-performance Canvas 2D graphics engine, supporting multiple platforms such as Web, Worker, Node.js, and Mini...
LeaferJS — Canvas 2D 引擎。轻量高性能的 Canvas 2D 图形引擎,支持 Web、Worker、Node.js、小程序等多平台。
openlark openlark 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 182
下载
💾 0
安装
1
版本
#latest

概述

LeaferJS — Canvas 2D Engine

Use Cases

Suitable for UI rendering, graphic editing, data visualization, game development, and other scenarios.

Quick Start

npm install leafer-ui                         # ~70KB min+gzip
npm install leafer                             # 98KB + all plugins
npm install @leafer-ui/worker                  # Web Worker
npm install @leafer-ui/node skia-canvas        # Node.js
npm install @leafer-ui/miniapp                 # Mini-program (≥v3.6.0)

CDN:

(Global variable LeaferUI, Image/PointerEvent aliases MyImage/MyPointerEvent)

import { Leafer, Rect } from 'leafer-ui'
const leafer = new Leafer({ view: window })
leafer.add(new Rect({ x: 100, y: 100, width: 100, height: 100, fill: '#32cd79' }))

Reference Index

FileCoverage
----------------
references/quick-start.mdEngine creation / configuration / viewport / framework integration (Vue/React/Nuxt/Next/SSR)
references/elements.mdAll graphic elements + styles + export + remove/destroy + performance + animation
references/groups.mdGroup/Box/Frame/App layers, editor
references/events.mdEvents / PointerEvent / lifecycle / debugging / engine config
references/install.mdMulti-platform installation + FAQ + version management

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-31 13:55

安全检测

腾讯云安全 (Keen)

队列中

腾讯云安全 (Sanbu)

队列中

🔗 相关推荐

content-creation

Toutiao Graphic Publisher

openlark
通过浏览器自动化在头条发布图文内容,支持智能排版、自动生成热门标签等功能。
★ 2 📥 1,009
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,846
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 680 📥 328,644