customized-fabric 1.1.6 → 1.1.7

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.
@@ -2,7 +2,7 @@ import { fabric } from "fabric";
2
2
  import { IClipartOptions } from "./interfaces";
3
3
  import { ObjectId } from "../utils/objectId";
4
4
  export declare const toClipartObject: (clipartObject: Clipart) => {
5
- _id: ObjectId | undefined;
5
+ id: ObjectId | undefined;
6
6
  personalizeId: number | undefined;
7
7
  layerId: number | undefined;
8
8
  name: string | undefined;
@@ -122,7 +122,7 @@ const ClipartClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
122
122
  });
123
123
  const toClipartObject = (clipartObject) => {
124
124
  return {
125
- _id: clipartObject._id,
125
+ id: clipartObject._id,
126
126
  personalizeId: clipartObject.layerId,
127
127
  layerId: clipartObject.layerId,
128
128
  name: clipartObject.name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -22,4 +22,4 @@
22
22
  "@types/fabric": "^5.3.3",
23
23
  "typescript": "^5.2.2"
24
24
  }
25
- }
25
+ }