Skip to content

Releases: lanxuexing/ngx-canvas

v.0.0.11

11 Feb 13:32
Compare
Choose a tag to compare

Features

  • 🎉 Support draw new steps.
  • 🎉 Support draw progress.
  • 👏 Draw rectangles support four round corners config.
  • 👏 Drafting text supports first line indentation config.

Bug Fixes

  • Drawing a rectangle to set the border color does not work.

BREAKING CHANGES

For better expansion, we refactored the config options and algorithms for the steps. Refer to ReadMe for details

v.0.0.10

31 Jan 04:20
Compare
Choose a tag to compare

Features

  • 🎉 Support draw steps.
  • 👏 Enhance the intelligent prompt of render type.

Bug Fixes

  • Compile errors where the Options configuration item does not exist.

v.0.0.9

17 Jan 09:12
Compare
Choose a tag to compare

Features

  • drawComplete callback extra params

BREAKING CHANGES

For better expansion, we adjusted the callback parameters for canvas drawing completion.

before:

import { Component, OnInit } from '@angular/core';
import { DrawProps } from 'ngx-canvas';

@Component({
  selector: 'app-root',
  template: `
    <ngx-canvas [options]="options" (drawComplete)="drawComplete($event)"></ngx-canvas>
  `,
})
export class AppComponent implements OnInit {
  options: DrawProps;

  ngOnInit(): void {
    this.options = {
      ...
    };
  }

  drawComplete(dataUrl: string): void {
    ...
  }
}

after:

import { Component, OnInit } from '@angular/core';
import { DrawProps } from 'ngx-canvas';

@Component({
  selector: 'app-root',
  template: `
    <ngx-canvas [options]="options" (drawComplete)="drawComplete($event)"></ngx-canvas>
  `,
})
export class AppComponent implements OnInit {
  options: DrawProps;

  ngOnInit(): void {
    this.options = {
      ...,
      extra: 'This is an additional optional any parameter that will be returned unchanged after the drawing is completed.'
    };
  }

  drawComplete(propagate: PropagateProps): void {
     const { dataUrl, canvas, ctx, extra } = propagate;
     ...
  }

}

v0.0.6

11 Jan 16:59
Compare
Choose a tag to compare

BugFixed

  • options debug not working

v.0.0.7

11 Jan 17:14
Compare
Choose a tag to compare

v.0.0.5

11 Jan 12:28
Compare
Choose a tag to compare

Support drawing

  • image
  • text
  • rectangle
  • line