Skip to content

Latest commit

 

History

History
95 lines (65 loc) · 2.63 KB

CHANGELOG.md

File metadata and controls

95 lines (65 loc) · 2.63 KB
  • 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 and unpkg

  • 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
        }
      }
    }
}


  • 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 and fillShape