leafer-draw 
Web 版 | Worker 版 | Node 版 | 小程序版 
leafer-draw 仅提供绘图功能(支持导出),减少了 App 、查找元素、事件交互等功能代码。
如果您需事件交互功能,请使用 leafer-ui。
安装 
在 Web 环境中运行。
sh
npm install leafer-drawsh
pnpm add leafer-drawsh
yarn add leafer-drawsh
bun add leafer-draw浏览器 
html
<script src="https://unpkg.com/leafer-draw@1.0.0-rc.27/dist/web.min.js"></script>
<script>
  const { Leafer } = LeaferUI
  // ...
</script>html
<script src="https://unpkg.com/leafer-draw@1.0.0-rc.27/dist/web.js"></script>
<script>
  const { Leafer } = LeaferUI
  // ...
</script>html
<script type="module">
  import { Leafer } from 'https://unpkg.com/leafer-draw@1.0.0-rc.27/dist/web.module.min.js'
  // ...
</script>html
<script type="module">
  import { Leafer } from 'https://unpkg.com/leafer-draw@1.0.0-rc.27/dist/web.module.js'
  // ...
</script>https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm
使用 
使用方式、全局变量和 leafer-ui 一致, 只需改下包名,即可运行官网示例代码。