@antv/g-svg 1.5.3 → 1.6.1
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 +1251 -1095
- package/dist/index.umd.min.js +4 -4
- package/package.json +5 -5
|
@@ -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,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
|
-
|
|
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(
|
|
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(
|
|
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
|
-
|
|
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(
|
|
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(
|
|
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);
|