@antv/g-svg 1.0.0-alpha.26 → 1.0.0-alpha.27

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.
Files changed (2) hide show
  1. package/dist/index.esm.js +4 -103
  2. package/package.json +7 -6
package/dist/index.esm.js CHANGED
@@ -1,113 +1,14 @@
1
+ import _classCallCheck from '@babel/runtime/helpers/esm/classCallCheck';
2
+ import _inherits from '@babel/runtime/helpers/esm/inherits';
3
+ import _createSuper from '@babel/runtime/helpers/esm/createSuper';
1
4
  import { CanvasConfig, ContextService, AbstractRenderer } from '@antv/g';
2
5
  import { Plugin as Plugin$1 } from '@antv/g-plugin-dom-interaction';
3
6
  import { createSVGElement, Plugin } from '@antv/g-plugin-svg-renderer';
4
7
  import { Plugin as Plugin$2 } from '@antv/g-plugin-svg-picker';
8
+ import _createClass from '@babel/runtime/helpers/esm/createClass';
5
9
  import { inject, singleton, Module } from 'mana-syringe';
6
10
  import { isString } from '@antv/util';
7
11
 
8
- function _classCallCheck(instance, Constructor) {
9
- if (!(instance instanceof Constructor)) {
10
- throw new TypeError("Cannot call a class as a function");
11
- }
12
- }
13
-
14
- function _defineProperties(target, props) {
15
- for (var i = 0; i < props.length; i++) {
16
- var descriptor = props[i];
17
- descriptor.enumerable = descriptor.enumerable || false;
18
- descriptor.configurable = true;
19
- if ("value" in descriptor) descriptor.writable = true;
20
- Object.defineProperty(target, descriptor.key, descriptor);
21
- }
22
- }
23
-
24
- function _createClass(Constructor, protoProps, staticProps) {
25
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
26
- if (staticProps) _defineProperties(Constructor, staticProps);
27
- return Constructor;
28
- }
29
-
30
- function _inherits(subClass, superClass) {
31
- if (typeof superClass !== "function" && superClass !== null) {
32
- throw new TypeError("Super expression must either be null or a function");
33
- }
34
-
35
- subClass.prototype = Object.create(superClass && superClass.prototype, {
36
- constructor: {
37
- value: subClass,
38
- writable: true,
39
- configurable: true
40
- }
41
- });
42
- if (superClass) _setPrototypeOf(subClass, superClass);
43
- }
44
-
45
- function _getPrototypeOf(o) {
46
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
47
- return o.__proto__ || Object.getPrototypeOf(o);
48
- };
49
- return _getPrototypeOf(o);
50
- }
51
-
52
- function _setPrototypeOf(o, p) {
53
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
54
- o.__proto__ = p;
55
- return o;
56
- };
57
-
58
- return _setPrototypeOf(o, p);
59
- }
60
-
61
- function _isNativeReflectConstruct() {
62
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
63
- if (Reflect.construct.sham) return false;
64
- if (typeof Proxy === "function") return true;
65
-
66
- try {
67
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
68
- return true;
69
- } catch (e) {
70
- return false;
71
- }
72
- }
73
-
74
- function _assertThisInitialized(self) {
75
- if (self === void 0) {
76
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
77
- }
78
-
79
- return self;
80
- }
81
-
82
- function _possibleConstructorReturn(self, call) {
83
- if (call && (typeof call === "object" || typeof call === "function")) {
84
- return call;
85
- } else if (call !== void 0) {
86
- throw new TypeError("Derived constructors may only return object or undefined");
87
- }
88
-
89
- return _assertThisInitialized(self);
90
- }
91
-
92
- function _createSuper(Derived) {
93
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
94
-
95
- return function _createSuperInternal() {
96
- var Super = _getPrototypeOf(Derived),
97
- result;
98
-
99
- if (hasNativeReflectConstruct) {
100
- var NewTarget = _getPrototypeOf(this).constructor;
101
-
102
- result = Reflect.construct(Super, arguments, NewTarget);
103
- } else {
104
- result = Super.apply(this, arguments);
105
- }
106
-
107
- return _possibleConstructorReturn(this, result);
108
- };
109
- }
110
-
111
12
  /*! *****************************************************************************
112
13
  Copyright (c) Microsoft Corporation.
113
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g-svg",
3
- "version": "1.0.0-alpha.26",
3
+ "version": "1.0.0-alpha.27",
4
4
  "description": "A renderer implemented by SVG",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -37,12 +37,13 @@
37
37
  },
38
38
  "homepage": "https://github.com/antvis/g#readme",
39
39
  "dependencies": {
40
- "@antv/g": "^1.0.0-alpha.26",
41
- "@antv/g-plugin-dom-interaction": "^1.0.0-alpha.25",
42
- "@antv/g-plugin-svg-picker": "^1.0.0-alpha.25",
43
- "@antv/g-plugin-svg-renderer": "^1.0.0-alpha.26",
40
+ "@antv/g": "^1.0.0-alpha.27",
41
+ "@antv/g-plugin-dom-interaction": "^1.0.0-alpha.26",
42
+ "@antv/g-plugin-svg-picker": "^1.0.0-alpha.26",
43
+ "@antv/g-plugin-svg-renderer": "^1.0.0-alpha.27",
44
44
  "@antv/util": "^2.0.13",
45
+ "@babel/runtime": "^7.16.0",
45
46
  "mana-syringe": "^0.1.0"
46
47
  },
47
- "gitHead": "04974923388e3c1e3c47d591c251380058372376"
48
+ "gitHead": "c01101beb86f98aaa569f97c678c909d4f3faaa3"
48
49
  }