xctc-utils 1.6.60 → 1.6.61

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.
@@ -4,6 +4,6 @@ export declare function InitElement2CanvasFn(list: any[]): void;
4
4
  export declare function CreateCanvasSvgElementFn(item: any, index?: number): void;
5
5
  export declare function CreateCanvasImageElementFn(item: any, index?: number): void;
6
6
  export declare function CreateSelectionRectFn(): void;
7
- export declare function CreateAllSelectionRectFn(fabric: any): void;
7
+ export declare function CreateAllSelectionRectFn(): void;
8
8
  export declare function CreateRightClickMenuFn(options: any): void;
9
9
  export declare function CreateElementFn(domVal: any, id: string, index?: number): void;
@@ -153,7 +153,7 @@ function CreateSelectionRectFn() {
153
153
  _.canvasDataSource.requestRenderAll();
154
154
  }
155
155
  exports.CreateSelectionRectFn = CreateSelectionRectFn;
156
- function CreateAllSelectionRectFn(fabric) {
156
+ function CreateAllSelectionRectFn() {
157
157
  var _ = this;
158
158
  if (!_.canvasDataSource) {
159
159
  return;
@@ -162,7 +162,7 @@ function CreateAllSelectionRectFn(fabric) {
162
162
  // console.log("xxx---",_.canvasDataSource.getWidth());
163
163
  var containerWidth = container.offsetWidth;
164
164
  var containerHeight = container.offsetWidth;
165
- _.createSelectionRectDataSource = new fabric.Rect({
165
+ _.createSelectionRectDataSource = new fabric_1.fabric.Rect({
166
166
  left: 0,
167
167
  top: 0,
168
168
  width: _.canvasDataSource.getWidth(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xctc-utils",
3
- "version": "1.6.60",
3
+ "version": "1.6.61",
4
4
  "description": "localStorage存储\r ```\r sessionStorage存储\r ```\r crypto-js加密、解密\r ```\r 微信授权登录、微信分享\r ```\r 设备环境获取\r ```\r 是否是微信浏览器\r ```\r 时间戳转时间,字符串转时间戳",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",