customized-fabric 1.1.8 → 1.2.0

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.
@@ -6,4 +6,5 @@ export interface IClipartOptions extends fabric.IGroupOptions {
6
6
  clipartUrl?: string;
7
7
  clipartFile?: File;
8
8
  hideStroke?: boolean;
9
+ isAdditional?: boolean;
9
10
  }
@@ -5,6 +5,7 @@ export interface IImagePlaceholderOptions extends fabric.IGroupOptions {
5
5
  layerId: number;
6
6
  imageFile?: File;
7
7
  hideStroke?: boolean;
8
+ isAdditional?: boolean;
8
9
  image?: {
9
10
  url: string;
10
11
  data: {
@@ -18,4 +18,5 @@ export interface ITextInputOptions extends fabric.IGroupOptions {
18
18
  };
19
19
  fontUrl?: string;
20
20
  hideStroke?: boolean;
21
+ isAdditional?: boolean;
21
22
  }
@@ -7,7 +7,7 @@ export declare const isFontLoaded: (name: string) => boolean;
7
7
  export declare const loadImageFromFile: (image: File) => Promise<fabric.Image>;
8
8
  export declare const loadImageFromUrl: (url: string) => Promise<fabric.Image>;
9
9
  export declare const lockObject: (object: fabric.Object | any, locked: boolean, selectable?: boolean) => void;
10
- export declare const lockAllObjects: (canvas: fabric.Canvas, locked: boolean) => void;
10
+ export declare const lockAllObjects: (canvas: fabric.Canvas, locked: boolean, selectable?: boolean) => void;
11
11
  export declare const getObject: (object: any, options?: {
12
12
  isOriginal?: boolean;
13
13
  }) => Clipart | ImagePlaceholder | TextInput | undefined;
@@ -92,9 +92,9 @@ const lockObject = (object, locked, selectable) => {
92
92
  });
93
93
  };
94
94
  exports.lockObject = lockObject;
95
- const lockAllObjects = (canvas, locked) => {
95
+ const lockAllObjects = (canvas, locked, selectable) => {
96
96
  canvas._objects.map((object) => {
97
- (0, exports.lockObject)(object, locked);
97
+ (0, exports.lockObject)(object, locked, selectable);
98
98
  });
99
99
  };
100
100
  exports.lockAllObjects = lockAllObjects;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "1.1.8",
3
+ "version": "1.2.0",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",