iDraw.js
iDraw.js是一个基于纯Canvas的JavaScript绘图库,支持绘制文字、矩形、圆形、图片、HTML片段和SVG文件,并提供可视化操控能力。它采用数据驱动方式实现Canvas绘图,适合开发各种可视化应用。
• Copy the embed code to showcase this product on your website
• Share on X to spread the word about this amazing tool
iDraw.js是一个基于纯Canvas的JavaScript绘图库,支持绘制文字、矩形、圆形、图片、HTML片段和SVG文件,并提供可视化操控能力。它采用数据驱动方式实现Canvas绘图,适合开发各种可视化应用。
• Copy the embed code to showcase this product on your website
• Share on X to spread the word about this amazing tool
- 绘制矩形
- 绘制圆形
- 绘制图片
- 绘制HTML片段
- 绘制SVG片段
支持基于Canvas的可视化操作## iDraw.js有哪些特点- 可以绘制文字、矩形、圆形、图片、HTML片段和SVG文件,并且作为绘图元素。- 可以直接在Canvas操控以上绘图元素,不用担心CSS和DOM变化的污染问题。- Canvas操控绘制,并且是所见即所得可以直接导出绘制的图片结果。- 由于可视化操控和图片生成都是基于Canvas,可以尽量减少绘图的浏览器兼容问题。## 原理介绍- 基于数据驱动来绘制Canvas的图画- 基于 requestAnimationFrame 来控制数据变化时候,Canvas的重绘处理- 内置一个前端并发队列来处理 图片、HTML和SVG的图片化转换渲染## 实际使用案例- 一个基于 iDraw.js 实现的UI可视化绘图- @idraw/studio 的实现<img width="1414" alt="snapshot-001" src="https://user-images.githubusercontent.com/8216630/132613269-7e5f60e2-a27f-4f72-a836-d44d55f67c49.png"><img width="1414" alt="snapshot-002" src="https://user-images.githubusercontent.com/8216630/132613273-08fe11a0-1a43-461e-a5fe-2b7844a2a8e3.png"><img width="1414" alt="snapshot-003" src="https://user-images.githubusercontent.com/8216630/132613276-742cded5-2122-400e-a689-74bda095eefa.png"><img width="1414" alt="snapshot-004" src="https://user-images.githubusercontent.com/8216630/132613281-8beec74b-124e-4c05-916d-bedd6b37cca9.png"><img width="1238" alt="snapshot-005" src="https://user-images.githubusercontent.com/8216630/132613282-f35fdb8c-76af-4aa5-974f-681d24874dba.png">## 其他- GitHub地址: https://github.com/idrawjs/- 官方网站: https://idraw.js.org/- Playground API示例: https://idraw.js.org/playground/- 基于iDraw.js的Studio实际案例: https://idraw.js.org/studio/A code-free online store builder to turn views into revenue. Sell digital products, subscriptions, and merch, without fees or hassle.
Convert videos into awesome blog posts.
Fast Image AI instantly transforms your photos into stunning styles like Ghibli, Sketch, and Pixar. Effortlessly control image elements and create amazing effects with just one click.
AI-powered tool that transforms casual photos into professional LinkedIn headshots instantly. No photographer needed—just upload and download.
Crevas unifies Veo 3, Sora 2, Nano Banana and more into one intuitive canvas — so filmmakers can script, prompt, and generate cinematic stories without switching tools or losing consistency.
AI Foto Edit - Text to Image & Image Edit