ngx-easy-image-drawing 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +13 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,9 +14,9 @@ npm install ngx-easy-image-drawing
14
14
 
15
15
  1. Import
16
16
 
17
- import { EasyImageDrawing } from 'ngx-easy-image-drawing';
18
-
19
17
  ```typescript
18
+ import { EasyImageDrawing } from "ngx-easy-image-drawing";
19
+
20
20
  @NgModule({
21
21
  imports: [NgxEasyImageDrawingModule],
22
22
  })
@@ -26,7 +26,16 @@ export class AppModule {}
26
26
  2. Use it in your template
27
27
 
28
28
  ```html
29
- <app-image-drawing [height]="canvasHeight" [width]="canvasWidth" [src]="uploadImageFilePreview" [showCancelButton]="false" forceSizeExport="true" outputMimeType="uploadImageFile.type" outputQuality="1" (savedImage)="onSaveDrawImage($event)"> </app-image-drawing>
29
+ <easy-image-drawing
30
+ [height]="canvasHeight"
31
+ [width]="canvasWidth"
32
+ [src]="uploadImageFilePreview"
33
+ [showCancelButton]="false"
34
+ forceSizeExport="true"
35
+ outputMimeType="uploadImageFile.type"
36
+ outputQuality="1"
37
+ (savedImage)="handleSavedImage($event)">
38
+ </easy-image-drawing>
30
39
  ```
31
40
 
32
41
  ## Options
@@ -51,7 +60,7 @@ import { Component } from "@angular/core";
51
60
 
52
61
  @Component({
53
62
  selector: "app-my-component",
54
- template: ` <app-image-drawing [height]="300" [width]="400" [src]="imageUrl" (savedImage)="handleSavedImage($event)"></app-image-drawing> `,
63
+ template: ` <easy-image-drawing [height]="300" [width]="400" [src]="imageUrl" (savedImage)="handleSavedImage($event)"></easy-image-drawing> `,
55
64
  })
56
65
  export class MyComponent {
57
66
  // You can use uploaded url from input html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-easy-image-drawing",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.1.0",
6
6
  "@angular/core": "^18.1.0"