customized-fabric 1.5.9 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,4 +8,5 @@ export interface IClipartOptions extends fabric.IGroupOptions {
8
8
  isOriginal?: boolean;
9
9
  isAdditional?: boolean;
10
10
  hideStroke?: boolean;
11
+ clipartOptionId?: number;
11
12
  }
@@ -6,3 +6,4 @@ export declare const OBJECT_TYPES: {
6
6
  activeSelection: string;
7
7
  layoutGroup: string;
8
8
  };
9
+ export declare const MAX_TEXTURE_SIZE = 20000;
package/lib/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OBJECT_TYPES = void 0;
3
+ exports.MAX_TEXTURE_SIZE = exports.OBJECT_TYPES = void 0;
4
4
  const constants_1 = require("./ClipartObject/constants");
5
5
  const constants_2 = require("./CurvedTextObject/constants");
6
6
  const constants_3 = require("./ImagePlaceholderObject/constants");
@@ -14,3 +14,4 @@ exports.OBJECT_TYPES = {
14
14
  activeSelection: "activeSelection",
15
15
  layoutGroup: constants_4.LAYOUT_GROUP_OBJECT_ATTRIBUTES.type,
16
16
  };
17
+ exports.MAX_TEXTURE_SIZE = 20000;
@@ -209,7 +209,7 @@ const asyncGetObject = async (object, options) => {
209
209
  };
210
210
  exports.asyncGetObject = asyncGetObject;
211
211
  fabric_1.fabric.Object.prototype.transparentCorners = false;
212
- fabric_1.fabric.Object.prototype.cornerColor = "black";
212
+ fabric_1.fabric.Object.prototype.cornerColor = "transparent";
213
213
  fabric_1.fabric.Object.prototype.cornerStyle = "circle";
214
214
  fabric_1.fabric.Object.prototype.cornerStrokeColor = "black";
215
215
  fabric_1.fabric.Object.prototype.borderColor = "black";
@@ -217,9 +217,7 @@ fabric_1.fabric.Group.prototype.originX = "center";
217
217
  fabric_1.fabric.Group.prototype.originY = "center";
218
218
  fabric_1.fabric.ActiveSelection.prototype.originX = "center";
219
219
  fabric_1.fabric.ActiveSelection.prototype.originY = "center";
220
- if (fabric_1.fabric.isWebglSupported()) {
221
- fabric_1.fabric.textureSize = fabric_1.fabric.maxTextureSize;
222
- }
220
+ fabric_1.fabric.textureSize = constants_1.MAX_TEXTURE_SIZE;
223
221
  fabric_1.fabric.Object.prototype.toObject = (function (toObject) {
224
222
  return function () {
225
223
  switch (this.type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customized-fabric",
3
- "version": "1.5.9",
3
+ "version": "1.6.1",
4
4
  "description": "Customized fabric",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",