- BUG FIX redraw function with wrong stroke type
- BUG FIX typescript type declaration not compatible with
noImplicitAny
- Added new prop additionalImages will accept Array of
watermark
Object to draw either text or insert multiple image on canvas - Remove build for
ssr
andunpkg
- BUG FIX not working on drawing tablet and stylus
- Added new method getAllStrokes() to get all strokes and shapes from canvas.
- Added new prop initialImage to draw all strokes and shapes from previously worked canvas.
See demo to see it in action.
- Added new props canvasId to allow multiple canvas on one page. Thank to mortegro
- BUG FIX missing side when drawing shapes
- BUG FIX add missing return on null background image
- Reworked multiline of text for watermark
example:
export default {
...
data() {
return {
...
watermark: {
type: "Text",
source: `This is\nWatermark
TEXT`,
x: 200,
y: 180,
fontStyle: {
width: 200,
lineHeight: 48,
color: '#FF0000',
font: 'bold 48px roboto',
drawType: 'fill',
textAlign: 'left',
textBaseline: 'top',
rotate: 0
}
}
}
}
- Wrap watermark text to multiline. Thanks to mishahobanov
- Bug Fix Background Image not update after redraw()
- Rename file from .vue to .ts
- Update README.md
- Added default value on Watermark Object
- Bug Fix Redo with Background Color instead of white
- Added Props
saveAs
,strokeType
andfillShape