@antv/g-svg 1.6.0-alpha.0 → 1.6.2

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,7 +1,7 @@
1
- import type { RendererPlugin, Syringe } from '@antv/g';
2
- export declare class ContextRegisterPlugin implements RendererPlugin {
1
+ import { AbstractRendererPlugin } from '@antv/g';
2
+ export declare class ContextRegisterPlugin extends AbstractRendererPlugin {
3
3
  name: string;
4
- init(container: Syringe.Container): void;
5
- destroy(container: Syringe.Container): void;
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,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAWvD,qBAAa,qBAAsB,YAAW,cAAc;IAC1D,IAAI,SAA0B;IAC9B,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,GAAG,IAAI;IAGxC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC,SAAS,GAAG,IAAI;CAG5C"}
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,SAA0B;IAC9B,IAAI,IAAI,IAAI;IAGZ,OAAO,IAAI,IAAI;CAGhB"}
package/dist/index.esm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { inject, CanvasConfig, singleton, ContextService, isString, Module, AbstractRenderer } from '@antv/g';
1
+ import { inject, CanvasConfig, singleton, ContextService, isString, Module, AbstractRendererPlugin, AbstractRenderer } from '@antv/g';
2
2
  import { Plugin as Plugin$1 } from '@antv/g-plugin-dom-interaction';
3
3
  import * as DomInteraction from '@antv/g-plugin-dom-interaction';
4
4
  export { DomInteraction };
@@ -542,23 +542,33 @@ var containerModule = Module(function (register) {
542
542
  */
543
543
  register(SVGContextService);
544
544
  });
545
- var ContextRegisterPlugin = /*#__PURE__*/function () {
545
+ var ContextRegisterPlugin = /*#__PURE__*/function (_AbstractRendererPlug) {
546
+ _inheritsLoose(ContextRegisterPlugin, _AbstractRendererPlug);
547
+
546
548
  function ContextRegisterPlugin() {
547
- this.name = 'svg-context-register';
549
+ var _this;
550
+
551
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
552
+ args[_key] = arguments[_key];
553
+ }
554
+
555
+ _this = _AbstractRendererPlug.call.apply(_AbstractRendererPlug, [this].concat(args)) || this;
556
+ _this.name = 'svg-context-register';
557
+ return _this;
548
558
  }
549
559
 
550
560
  var _proto = ContextRegisterPlugin.prototype;
551
561
 
552
- _proto.init = function init(container) {
553
- container.load(containerModule, true);
562
+ _proto.init = function init() {
563
+ this.container.load(containerModule, true);
554
564
  };
555
565
 
556
- _proto.destroy = function destroy(container) {
557
- container.unload(containerModule);
566
+ _proto.destroy = function destroy() {
567
+ this.container.unload(containerModule);
558
568
  };
559
569
 
560
570
  return ContextRegisterPlugin;
561
- }();
571
+ }(AbstractRendererPlugin);
562
572
 
563
573
  var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
564
574
  _inheritsLoose(Renderer, _AbstractRenderer);
package/dist/index.js CHANGED
@@ -564,23 +564,33 @@ var containerModule = g.Module(function (register) {
564
564
  */
565
565
  register(SVGContextService);
566
566
  });
567
- var ContextRegisterPlugin = /*#__PURE__*/function () {
567
+ var ContextRegisterPlugin = /*#__PURE__*/function (_AbstractRendererPlug) {
568
+ _inheritsLoose(ContextRegisterPlugin, _AbstractRendererPlug);
569
+
568
570
  function ContextRegisterPlugin() {
569
- this.name = 'svg-context-register';
571
+ var _this;
572
+
573
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
574
+ args[_key] = arguments[_key];
575
+ }
576
+
577
+ _this = _AbstractRendererPlug.call.apply(_AbstractRendererPlug, [this].concat(args)) || this;
578
+ _this.name = 'svg-context-register';
579
+ return _this;
570
580
  }
571
581
 
572
582
  var _proto = ContextRegisterPlugin.prototype;
573
583
 
574
- _proto.init = function init(container) {
575
- container.load(containerModule, true);
584
+ _proto.init = function init() {
585
+ this.container.load(containerModule, true);
576
586
  };
577
587
 
578
- _proto.destroy = function destroy(container) {
579
- container.unload(containerModule);
588
+ _proto.destroy = function destroy() {
589
+ this.container.unload(containerModule);
580
590
  };
581
591
 
582
592
  return ContextRegisterPlugin;
583
- }();
593
+ }(g.AbstractRendererPlugin);
584
594
 
585
595
  var Renderer = /*#__PURE__*/function (_AbstractRenderer) {
586
596
  _inheritsLoose(Renderer, _AbstractRenderer);