customized-fabric 1.0.4 → 1.0.5

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.
@@ -1,6 +1,6 @@
1
1
  import { fabric } from "fabric";
2
- import { ObjectId } from "@/utils/objectId";
3
2
  import { ClipartObject, IClipartOptions } from "./interfaces";
3
+ import { ObjectId } from "../../utils/objectId";
4
4
  export declare const toClipartObject: (clipartObject: ClipartObject) => {
5
5
  id: ObjectId;
6
6
  personalizeId: number | undefined;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Clipart = exports.toClipartObject = void 0;
4
4
  const fabric_1 = require("fabric");
5
5
  const constants_1 = require("./constants");
6
- const objectId_1 = require("@/utils/objectId");
7
6
  const utils_1 = require("../utils");
7
+ const objectId_1 = require("../../utils/objectId");
8
8
  const ClipartClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
9
9
  initialize: function (options) {
10
10
  this.rectObject = new fabric_1.fabric.Rect({
@@ -1,4 +1,4 @@
1
- import { ObjectId } from "@/utils/objectId";
1
+ import { ObjectId } from "../../utils/objectId";
2
2
  export interface ClipartObject extends fabric.Group {
3
3
  _id: ObjectId;
4
4
  layerId?: number;
@@ -1,6 +1,6 @@
1
1
  import { fabric } from "fabric";
2
- import { ObjectId } from "@/utils/objectId";
3
2
  import { IImagePlaceholderOptions, ImagePlaceholderObject } from "./interfaces";
3
+ import { ObjectId } from "../../utils/objectId";
4
4
  export declare const toImagePlaceholderObject: (imagePlaceholderObject: ImagePlaceholderObject) => {
5
5
  id: ObjectId;
6
6
  personalizeId: number;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ImagePlaceholder = exports.toImagePlaceholderObject = void 0;
4
4
  const fabric_1 = require("fabric");
5
5
  const constants_1 = require("./constants");
6
- const objectId_1 = require("@/utils/objectId");
7
6
  const utils_1 = require("../utils");
7
+ const objectId_1 = require("../../utils/objectId");
8
8
  const ImagePlaceholderClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
9
9
  initialize: function (options) {
10
10
  this.rectObject = new fabric_1.fabric.Rect({
@@ -1,4 +1,4 @@
1
- import { ObjectId } from "@/utils/objectId";
1
+ import { ObjectId } from "../../utils/objectId";
2
2
  export interface ImagePlaceholderObject extends fabric.Group {
3
3
  _id: ObjectId;
4
4
  layerId: number;
@@ -1,6 +1,6 @@
1
1
  import { fabric } from "fabric";
2
- import { ObjectId } from "@/utils/objectId";
3
2
  import { ITextInputOptions, TextInputObject } from "./interfaces";
3
+ import { ObjectId } from "../../utils/objectId";
4
4
  export declare const toTextInputObject: (textInputObject: TextInputObject) => {
5
5
  id: ObjectId;
6
6
  personalizeId: number;
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TextInput = exports.toTextInputObject = void 0;
4
4
  const fabric_1 = require("fabric");
5
5
  const constants_1 = require("./constants");
6
- const objectId_1 = require("@/utils/objectId");
7
6
  const utils_1 = require("../utils");
7
+ const objectId_1 = require("../../utils/objectId");
8
8
  const TextInputClass = fabric_1.fabric.util.createClass(fabric_1.fabric.Group, {
9
9
  initialize: function (options) {
10
10
  const { text, ...rest } = options ?? {};
@@ -1,4 +1,4 @@
1
- import { ObjectId } from "@/utils/objectId";
1
+ import { ObjectId } from "../../utils/objectId";
2
2
  export interface TextInputObject extends fabric.Group {
3
3
  _id: ObjectId;
4
4
  layerId: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",