0.3.1 • Published 1 year ago

peintre v0.3.1

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

Peintre

A lightweight configurable Vue3 canvas painter component.

Feature

  1. Multi Layer √
  2. Change Tool Color&Size √
  3. Rectangle、Circle,etc Tool √
  4. Pressure Support √
  5. Mobile Touch Support √
  6. Switch Layer with Dragging √
  7. Change Tool Size with Scroll Event √
  8. Redo Support √

Live Demo

Demo

Installation

With npm

npm i -S peintre

Usage

import {Painter} from "peintre"

<Painter :pressure="false" :width="800" :height="600" :maxLine="500" :minLine="1"></Painter>

Props

AttributeDescriptionTypeDefault
widthcanvas widthnumber800
heightcanvas heightnumber600
maxLinemax context linewidthnumber500
minLinemin context linewidthnumber1
pressurewhether support pressure or notbooleanfalse
langLanguagestring"zh" | "en"

DevelopmentBlog(zh-CN)

Peintre DevelopmentBlog

0.3.0

2 years ago

0.3.1

1 year ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.4

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago