0.0.2 • Published 1 year ago

peintre v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Peintre2

一个开箱即用的可配置的轻量级Vue3画板组件。支持多图层、多工具、选择变形图形

特性

  1. 多图层 √
  2. 可切换画笔颜色、大小 √
  3. 图形工具 √
  4. 图层拖拽摆放 √
  5. 拖拽画布 √
  6. 撤销、重做操作 √
  7. 保存图形 √
  8. 选择、变形图形 √
  9. 两种工具栏样式可选 √

Live Demo

Demo

Installation

With npm

npm i peintre
pnpm add peintre

Usage

import Painter from "peintre"
import 'peintre/dist/style.css'

<Painter mode="side" :width="800" :height="600" :maxLine="100" :minLine="1"/>

Props

AttributeDescriptionTypeDefault
widthcanvas widthnumber800
heightcanvas heightnumber600
maxLinemax context line widthnumber100
minLinemin context line widthnumber1
modemode of tool bar'side''float''side'
0.0.1

1 year ago

0.0.2

1 year ago

0.3.0

3 years ago

0.3.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago