@visactor/vrender-kits 0.22.9-alpha.1 → 0.22.9

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.
@@ -79,4 +79,4 @@ class CanvasWrapEnableWH {
79
79
  }
80
80
 
81
81
  exports.CanvasWrapEnableWH = CanvasWrapEnableWH;
82
- //# sourceMappingURL=canvas-wrap.js.map
82
+ //# sourceMappingURL=canvas-wrap.js.map
@@ -98,4 +98,4 @@ let FeishuEnvContribution = class extends vrender_core_1.BaseEnvContribution {
98
98
 
99
99
  FeishuEnvContribution = __decorate([ (0, vrender_core_1.injectable)(), __metadata("design:paramtypes", []) ], FeishuEnvContribution),
100
100
  exports.FeishuEnvContribution = FeishuEnvContribution;
101
- //# sourceMappingURL=feishu-contribution.js.map
101
+ //# sourceMappingURL=feishu-contribution.js.map
@@ -96,4 +96,4 @@ let HarmonyEnvContribution = class extends vrender_core_1.BaseEnvContribution {
96
96
 
97
97
  HarmonyEnvContribution = __decorate([ (0, vrender_core_1.injectable)(), __metadata("design:paramtypes", []) ], HarmonyEnvContribution),
98
98
  exports.HarmonyEnvContribution = HarmonyEnvContribution;
99
- //# sourceMappingURL=harmony-contribution.js.map
99
+ //# sourceMappingURL=harmony-contribution.js.map
@@ -129,4 +129,4 @@ let LynxEnvContribution = class extends vrender_core_1.BaseEnvContribution {
129
129
 
130
130
  LynxEnvContribution = __decorate([ (0, vrender_core_1.injectable)(), __metadata("design:paramtypes", []) ], LynxEnvContribution),
131
131
  exports.LynxEnvContribution = LynxEnvContribution;
132
- //# sourceMappingURL=lynx-contribution.js.map
132
+ //# sourceMappingURL=lynx-contribution.js.map
@@ -51,4 +51,4 @@ class DragNDrop {
51
51
  }
52
52
 
53
53
  exports.DragNDrop = DragNDrop;
54
- //# sourceMappingURL=drag.js.map
54
+ //# sourceMappingURL=drag.js.map
@@ -190,4 +190,4 @@ class Gesture extends vutils_1.EventEmitter {
190
190
  }
191
191
 
192
192
  exports.Gesture = Gesture;
193
- //# sourceMappingURL=gesture.js.map
193
+ //# sourceMappingURL=gesture.js.map
@@ -36,4 +36,4 @@ Object.defineProperty(exports, "Gesture", {
36
36
  return gesture_1.Gesture;
37
37
  }
38
38
  }), __exportStar(require("./interface"), exports);
39
- //# sourceMappingURL=index.js.map
39
+ //# sourceMappingURL=index.js.map
@@ -3,4 +3,4 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: !0
5
5
  });
6
- //# sourceMappingURL=interface.js.map
6
+ //# sourceMappingURL=interface.js.map
@@ -2,5 +2,4 @@ import type { IGraphicAttribute, IContext2d, IGraphic, IMarkAttribute, IThemeAtt
2
2
  export declare abstract class RoughBaseRender {
3
3
  canvasRenderer: IGraphicRender;
4
4
  drawShape(graphic: IGraphic, ctx: IContext2d, x: number, y: number, drawContext: IDrawContext, params?: IGraphicRenderDrawParams, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean): void;
5
- reInit(): void;
6
5
  }
@@ -8,10 +8,6 @@ class RoughBaseRender {
8
8
  drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb) {
9
9
  if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
10
10
  }
11
- reInit() {
12
- var _a;
13
- null === (_a = this.canvasRenderer) || void 0 === _a || _a.reInit();
14
- }
15
11
  }
16
12
 
17
13
  exports.RoughBaseRender = RoughBaseRender;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/render/contributions/rough/base-render.ts"],"names":[],"mappings":";;;AAWA,MAAsB,eAAe;IAEnC,SAAS,CACP,OAAiB,EACjB,GAAe,EACf,CAAS,EACT,CAAS,EACT,WAAyB,EACzB,MAAiC,EACjC,MAIY,EACZ,QAIY;QAEZ,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE;YACjC,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;SACjG;IACH,CAAC;IAED,MAAM;;QACJ,MAAA,IAAI,CAAC,cAAc,0CAAE,MAAM,EAAE,CAAC;IAChC,CAAC;CACF;AA5BD,0CA4BC","file":"base-render.js","sourcesContent":["import type {\n IGraphicAttribute,\n IContext2d,\n IGraphic,\n IMarkAttribute,\n IThemeAttribute,\n IDrawContext,\n IGraphicRenderDrawParams,\n IGraphicRender\n} from '@visactor/vrender-core';\n\nexport abstract class RoughBaseRender {\n canvasRenderer!: IGraphicRender;\n drawShape(\n graphic: IGraphic,\n ctx: IContext2d,\n x: number,\n y: number,\n drawContext: IDrawContext,\n params?: IGraphicRenderDrawParams,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean\n ): void {\n if (this.canvasRenderer.drawShape) {\n return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);\n }\n }\n\n reInit() {\n this.canvasRenderer?.reInit();\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/render/contributions/rough/base-render.ts"],"names":[],"mappings":";;;AAWA,MAAsB,eAAe;IAEnC,SAAS,CACP,OAAiB,EACjB,GAAe,EACf,CAAS,EACT,CAAS,EACT,WAAyB,EACzB,MAAiC,EACjC,MAIY,EACZ,QAIY;QAEZ,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE;YACjC,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;SACjG;IACH,CAAC;CACF;AAxBD,0CAwBC","file":"base-render.js","sourcesContent":["import type {\n IGraphicAttribute,\n IContext2d,\n IGraphic,\n IMarkAttribute,\n IThemeAttribute,\n IDrawContext,\n IGraphicRenderDrawParams,\n IGraphicRender\n} from '@visactor/vrender-core';\n\nexport abstract class RoughBaseRender {\n canvasRenderer!: IGraphicRender;\n drawShape(\n graphic: IGraphic,\n ctx: IContext2d,\n x: number,\n y: number,\n drawContext: IDrawContext,\n params?: IGraphicRenderDrawParams,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean\n ): void {\n if (this.canvasRenderer.drawShape) {\n return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);\n }\n }\n}\n"]}
package/dist/index.es.js CHANGED
@@ -1552,10 +1552,6 @@ class RoughBaseRender {
1552
1552
  return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
1553
1553
  }
1554
1554
  }
1555
- reInit() {
1556
- var _a;
1557
- (_a = this.canvasRenderer) === null || _a === void 0 ? void 0 : _a.reInit();
1558
- }
1559
1555
  }
1560
1556
 
1561
1557
  let RoughCanvasArcRender = class RoughCanvasArcRender extends RoughBaseRender {
@@ -69,4 +69,4 @@ export class CanvasWrapEnableWH {
69
69
  };
70
70
  }
71
71
  }
72
- //# sourceMappingURL=canvas-wrap.js.map
72
+ //# sourceMappingURL=canvas-wrap.js.map
@@ -95,4 +95,4 @@ let FeishuEnvContribution = class extends BaseEnvContribution {
95
95
  FeishuEnvContribution = __decorate([ injectable(), __metadata("design:paramtypes", []) ], FeishuEnvContribution);
96
96
 
97
97
  export { FeishuEnvContribution };
98
- //# sourceMappingURL=feishu-contribution.js.map
98
+ //# sourceMappingURL=feishu-contribution.js.map
@@ -93,4 +93,4 @@ let HarmonyEnvContribution = class extends BaseEnvContribution {
93
93
  HarmonyEnvContribution = __decorate([ injectable(), __metadata("design:paramtypes", []) ], HarmonyEnvContribution);
94
94
 
95
95
  export { HarmonyEnvContribution };
96
- //# sourceMappingURL=harmony-contribution.js.map
96
+ //# sourceMappingURL=harmony-contribution.js.map
@@ -124,4 +124,4 @@ let LynxEnvContribution = class extends BaseEnvContribution {
124
124
  LynxEnvContribution = __decorate([ injectable(), __metadata("design:paramtypes", []) ], LynxEnvContribution);
125
125
 
126
126
  export { LynxEnvContribution };
127
- //# sourceMappingURL=lynx-contribution.js.map
127
+ //# sourceMappingURL=lynx-contribution.js.map
@@ -43,4 +43,4 @@ export class DragNDrop {
43
43
  this.removeEvents(), this.rootNode = null;
44
44
  }
45
45
  }
46
- //# sourceMappingURL=drag.js.map
46
+ //# sourceMappingURL=drag.js.map
@@ -185,4 +185,4 @@ export class Gesture extends EventEmitter {
185
185
  this.emit(type, e);
186
186
  }
187
187
  }
188
- //# sourceMappingURL=gesture.js.map
188
+ //# sourceMappingURL=gesture.js.map
@@ -5,4 +5,4 @@ import { Gesture } from "./gesture";
5
5
  export { DragNDrop, Gesture };
6
6
 
7
7
  export * from "./interface";
8
- //# sourceMappingURL=index.js.map
8
+ //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
1
  export { };
2
- //# sourceMappingURL=interface.js.map
2
+ //# sourceMappingURL=interface.js.map
@@ -2,5 +2,4 @@ import type { IGraphicAttribute, IContext2d, IGraphic, IMarkAttribute, IThemeAtt
2
2
  export declare abstract class RoughBaseRender {
3
3
  canvasRenderer: IGraphicRender;
4
4
  drawShape(graphic: IGraphic, ctx: IContext2d, x: number, y: number, drawContext: IDrawContext, params?: IGraphicRenderDrawParams, fillCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean, strokeCb?: (ctx: IContext2d, markAttribute: Partial<IMarkAttribute & IGraphicAttribute>, themeAttribute: IThemeAttribute) => boolean): void;
5
- reInit(): void;
6
5
  }
@@ -2,9 +2,5 @@ export class RoughBaseRender {
2
2
  drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb) {
3
3
  if (this.canvasRenderer.drawShape) return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);
4
4
  }
5
- reInit() {
6
- var _a;
7
- null === (_a = this.canvasRenderer) || void 0 === _a || _a.reInit();
8
- }
9
5
  }
10
6
  //# sourceMappingURL=base-render.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/render/contributions/rough/base-render.ts"],"names":[],"mappings":"AAWA,MAAM,OAAgB,eAAe;IAEnC,SAAS,CACP,OAAiB,EACjB,GAAe,EACf,CAAS,EACT,CAAS,EACT,WAAyB,EACzB,MAAiC,EACjC,MAIY,EACZ,QAIY;QAEZ,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE;YACjC,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;SACjG;IACH,CAAC;IAED,MAAM;;QACJ,MAAA,IAAI,CAAC,cAAc,0CAAE,MAAM,EAAE,CAAC;IAChC,CAAC;CACF","file":"base-render.js","sourcesContent":["import type {\n IGraphicAttribute,\n IContext2d,\n IGraphic,\n IMarkAttribute,\n IThemeAttribute,\n IDrawContext,\n IGraphicRenderDrawParams,\n IGraphicRender\n} from '@visactor/vrender-core';\n\nexport abstract class RoughBaseRender {\n canvasRenderer!: IGraphicRender;\n drawShape(\n graphic: IGraphic,\n ctx: IContext2d,\n x: number,\n y: number,\n drawContext: IDrawContext,\n params?: IGraphicRenderDrawParams,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean\n ): void {\n if (this.canvasRenderer.drawShape) {\n return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);\n }\n }\n\n reInit() {\n this.canvasRenderer?.reInit();\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/render/contributions/rough/base-render.ts"],"names":[],"mappings":"AAWA,MAAM,OAAgB,eAAe;IAEnC,SAAS,CACP,OAAiB,EACjB,GAAe,EACf,CAAS,EACT,CAAS,EACT,WAAyB,EACzB,MAAiC,EACjC,MAIY,EACZ,QAIY;QAEZ,IAAI,IAAI,CAAC,cAAc,CAAC,SAAS,EAAE;YACjC,OAAO,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC;SACjG;IACH,CAAC;CACF","file":"base-render.js","sourcesContent":["import type {\n IGraphicAttribute,\n IContext2d,\n IGraphic,\n IMarkAttribute,\n IThemeAttribute,\n IDrawContext,\n IGraphicRenderDrawParams,\n IGraphicRender\n} from '@visactor/vrender-core';\n\nexport abstract class RoughBaseRender {\n canvasRenderer!: IGraphicRender;\n drawShape(\n graphic: IGraphic,\n ctx: IContext2d,\n x: number,\n y: number,\n drawContext: IDrawContext,\n params?: IGraphicRenderDrawParams,\n fillCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean,\n strokeCb?: (\n ctx: IContext2d,\n markAttribute: Partial<IMarkAttribute & IGraphicAttribute>,\n themeAttribute: IThemeAttribute\n ) => boolean\n ): void {\n if (this.canvasRenderer.drawShape) {\n return this.canvasRenderer.drawShape(graphic, ctx, x, y, drawContext, params, fillCb, strokeCb);\n }\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-kits",
3
- "version": "0.22.9-alpha.1",
3
+ "version": "0.22.9",
4
4
  "description": "",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -13,7 +13,7 @@
13
13
  ],
14
14
  "dependencies": {
15
15
  "@visactor/vutils": "~0.19.5",
16
- "@visactor/vrender-core": "0.22.9-alpha.1",
16
+ "@visactor/vrender-core": "0.22.9",
17
17
  "@resvg/resvg-js": "2.4.1",
18
18
  "roughjs": "4.5.2",
19
19
  "gifuct-js": "2.1.2",
@@ -33,9 +33,9 @@
33
33
  "vite": "3.2.6",
34
34
  "typescript": "4.9.5",
35
35
  "cross-env": "^7.0.3",
36
- "@internal/ts-config": "0.0.1",
36
+ "@internal/bundler": "0.0.1",
37
37
  "@internal/eslint-config": "0.0.1",
38
- "@internal/bundler": "0.0.1"
38
+ "@internal/ts-config": "0.0.1"
39
39
  },
40
40
  "keywords": [
41
41
  "VisActor",