@antv/g-canvas 1.5.2 → 1.6.0
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.
- package/dist/ContextRegisterPlugin.d.ts +4 -4
- package/dist/ContextRegisterPlugin.d.ts.map +1 -1
- package/dist/index.esm.js +18 -8
- package/dist/index.js +17 -7
- package/dist/index.umd.js +451 -258
- package/dist/index.umd.min.js +7 -7
- package/package.json +8 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
export declare class ContextRegisterPlugin
|
|
1
|
+
import { AbstractRendererPlugin } from '@antv/g';
|
|
2
|
+
export declare class ContextRegisterPlugin extends AbstractRendererPlugin {
|
|
3
3
|
name: string;
|
|
4
|
-
init(
|
|
5
|
-
destroy(
|
|
4
|
+
init(): void;
|
|
5
|
+
destroy(): void;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=ContextRegisterPlugin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContextRegisterPlugin.d.ts","sourceRoot":"","sources":["../src/ContextRegisterPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ContextRegisterPlugin.d.ts","sourceRoot":"","sources":["../src/ContextRegisterPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAU,MAAM,SAAS,CAAC;AAUzD,qBAAa,qBAAsB,SAAQ,sBAAsB;IAC/D,IAAI,SAA6B;IACjC,IAAI,IAAI,IAAI;IAGZ,OAAO,IAAI,IAAI;CAGhB"}
|
package/dist/index.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setDOMSize, inject, CanvasConfig, singleton, ContextService, isString, isBrowser, Module, AbstractRenderer } from '@antv/g';
|
|
1
|
+
import { setDOMSize, inject, CanvasConfig, singleton, ContextService, isString, isBrowser, Module, AbstractRendererPlugin, AbstractRenderer } from '@antv/g';
|
|
2
2
|
import { Plugin as Plugin$1 } from '@antv/g-plugin-canvas-path-generator';
|
|
3
3
|
import * as CanvasPathGenerator from '@antv/g-plugin-canvas-path-generator';
|
|
4
4
|
export { CanvasPathGenerator };
|
|
@@ -575,23 +575,33 @@ var containerModule = Module(function (register) {
|
|
|
575
575
|
*/
|
|
576
576
|
register(Canvas2DContextService);
|
|
577
577
|
});
|
|
578
|
-
var ContextRegisterPlugin = /*#__PURE__*/function () {
|
|
578
|
+
var ContextRegisterPlugin = /*#__PURE__*/function (_AbstractRendererPlug) {
|
|
579
|
+
_inheritsLoose(ContextRegisterPlugin, _AbstractRendererPlug);
|
|
580
|
+
|
|
579
581
|
function ContextRegisterPlugin() {
|
|
580
|
-
|
|
582
|
+
var _this;
|
|
583
|
+
|
|
584
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
585
|
+
args[_key] = arguments[_key];
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
_this = _AbstractRendererPlug.call.apply(_AbstractRendererPlug, [this].concat(args)) || this;
|
|
589
|
+
_this.name = 'canvas-context-register';
|
|
590
|
+
return _this;
|
|
581
591
|
}
|
|
582
592
|
|
|
583
593
|
var _proto = ContextRegisterPlugin.prototype;
|
|
584
594
|
|
|
585
|
-
_proto.init = function init(
|
|
586
|
-
container.load(containerModule, true);
|
|
595
|
+
_proto.init = function init() {
|
|
596
|
+
this.container.load(containerModule, true);
|
|
587
597
|
};
|
|
588
598
|
|
|
589
|
-
_proto.destroy = function destroy(
|
|
590
|
-
container.unload(containerModule);
|
|
599
|
+
_proto.destroy = function destroy() {
|
|
600
|
+
this.container.unload(containerModule);
|
|
591
601
|
};
|
|
592
602
|
|
|
593
603
|
return ContextRegisterPlugin;
|
|
594
|
-
}();
|
|
604
|
+
}(AbstractRendererPlugin);
|
|
595
605
|
|
|
596
606
|
var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
|
|
597
607
|
_inheritsLoose(Renderer, _AbstractRenderer);
|
package/dist/index.js
CHANGED
|
@@ -594,23 +594,33 @@ var containerModule = g.Module(function (register) {
|
|
|
594
594
|
*/
|
|
595
595
|
register(Canvas2DContextService);
|
|
596
596
|
});
|
|
597
|
-
var ContextRegisterPlugin = /*#__PURE__*/function () {
|
|
597
|
+
var ContextRegisterPlugin = /*#__PURE__*/function (_AbstractRendererPlug) {
|
|
598
|
+
_inheritsLoose(ContextRegisterPlugin, _AbstractRendererPlug);
|
|
599
|
+
|
|
598
600
|
function ContextRegisterPlugin() {
|
|
599
|
-
|
|
601
|
+
var _this;
|
|
602
|
+
|
|
603
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
604
|
+
args[_key] = arguments[_key];
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
_this = _AbstractRendererPlug.call.apply(_AbstractRendererPlug, [this].concat(args)) || this;
|
|
608
|
+
_this.name = 'canvas-context-register';
|
|
609
|
+
return _this;
|
|
600
610
|
}
|
|
601
611
|
|
|
602
612
|
var _proto = ContextRegisterPlugin.prototype;
|
|
603
613
|
|
|
604
|
-
_proto.init = function init(
|
|
605
|
-
container.load(containerModule, true);
|
|
614
|
+
_proto.init = function init() {
|
|
615
|
+
this.container.load(containerModule, true);
|
|
606
616
|
};
|
|
607
617
|
|
|
608
|
-
_proto.destroy = function destroy(
|
|
609
|
-
container.unload(containerModule);
|
|
618
|
+
_proto.destroy = function destroy() {
|
|
619
|
+
this.container.unload(containerModule);
|
|
610
620
|
};
|
|
611
621
|
|
|
612
622
|
return ContextRegisterPlugin;
|
|
613
|
-
}();
|
|
623
|
+
}(g.AbstractRendererPlugin);
|
|
614
624
|
|
|
615
625
|
var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
|
|
616
626
|
_inheritsLoose(Renderer, _AbstractRenderer);
|