Skip to content
View leaferjs's full-sized avatar

Block or report leaferjs

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
leaferjs/README.md

LeaferJS

一款好用的 Canvas 渲染引擎,革新的体验。可用于高效绘图 、UI 交互(小游戏、互动应用、组态)、图形编辑,前端开发必备~

能让你拥有瞬间创建 100 万个图形的超强能力,免费开源、易学易用、场景丰富。

运行

LeaferJS 完全依赖于子仓库 leaferleafer-uileafer-inleafer-drawleafer-gameleafer-editor , 提供运行官网示例代码、自定义打包的能力。

复制以下命令并运行:

git clone  https://github.com/leaferjs/LeaferJS.git --recurse-submodules

cd LeaferJS

npm install
npm run start

将在本地创建一个 LeaferJS 项目,并自动下载 leaferleafer-uileafer-inleafer-drawleafer-gameleafer-editor 子仓库代码到 src 目录。

安装启动完成后,可在浏览器中访问:https://localhost:10101

复制 官网 示例代码到 index.ts 中,可以实时查看运行效果。

更新

git pull --recurse-submodules

打包

npm run core # 打包核心代码,环境打包的依赖项

npm run web # 仅打包web环境代码

npm run all # 打包所有环境的代码

npm run dts # 为所有包生成d.ts文件

npm run clear # 清空所有打包内容

License

LeaferJS 是采用 MIT 许可的开源项目,可以永久免费使用。

Popular repositories Loading

  1. leafer-ui leafer-ui Public

    一款好用的 Canvas 引擎,革新的开发体验,用于高效绘图 、UI 交互、图形编辑。A user-friendly Canvas engine with a revolutionary development experience, for efficient drawing, UI interactions, and graphic editing.

    TypeScript 2.5k 89

  2. leafer leafer Public

    Leafer 是核心代码库。

    TypeScript 234 19

  3. LeaferJS LeaferJS Public

    绚丽多彩的 HTML5 Canvas 2D 图形渲染引擎, 可结合 AI 绘图、生成界面。能让你拥有瞬间创建 100 万个图形的超强能力,免费开源、易学易用、场景丰富。

    JavaScript 208 17

  4. leafer-in leafer-in Public

    leafer-in 是 leafer 的官方增强功能插件中心

    TypeScript 13 3

  5. leafer-x leafer-x Public

    leafer-x 是 leafer 的第三方插件与上层应用中心,收录可用于生产环境的优秀插件和应用,并可作为插件开发模版。

    JavaScript 9 4

  6. leafer-draw leafer-draw Public

    leafer-draw 是 leafer-ui 的轻量版,体积小巧,移除了交互功能,仅提供绘制元素的功能,适用于绘制海报、插图、播放动画等场景。

    TypeScript 7 2