@antv/g2 3.5.14 → 3.5.15

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 (45) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/g2-core.js +2 -70
  3. package/build/g2-core.js.map +1 -1
  4. package/build/g2-simple.js +2 -126
  5. package/build/g2-simple.js.map +1 -1
  6. package/build/g2.js +2 -346
  7. package/build/g2.js.map +1 -1
  8. package/dist/g2-core.min.js +1 -1
  9. package/dist/g2-simple.min.js +1 -1
  10. package/dist/g2.min.js +1 -1
  11. package/lib/base.js +0 -12
  12. package/lib/chart/chart.js +0 -12
  13. package/lib/chart/controller/tooltip.js +1 -1
  14. package/lib/chart/view.js +0 -10
  15. package/lib/component/guide/region-filter.js +0 -12
  16. package/lib/component/legend/tail.js +0 -12
  17. package/lib/component/tooltip/index.js +0 -12
  18. package/lib/facet/circle.js +0 -12
  19. package/lib/facet/list.js +0 -12
  20. package/lib/facet/matrix.js +0 -12
  21. package/lib/facet/mirror.js +0 -12
  22. package/lib/facet/rect.js +0 -12
  23. package/lib/facet/tree.js +0 -12
  24. package/lib/geom/area.js +0 -12
  25. package/lib/geom/base.js +0 -10
  26. package/lib/geom/edge.js +0 -12
  27. package/lib/geom/heatmap.js +0 -12
  28. package/lib/geom/interval.js +0 -16
  29. package/lib/geom/line.js +0 -14
  30. package/lib/geom/path.js +0 -10
  31. package/lib/geom/point.js +0 -16
  32. package/lib/geom/polygon.js +0 -12
  33. package/lib/geom/schema.js +0 -12
  34. package/lib/geom/venn.js +0 -12
  35. package/lib/geom/violin.js +0 -12
  36. package/lib/global.js +1 -1
  37. package/lib/interaction/brush.js +0 -10
  38. package/lib/interaction/drag.js +0 -10
  39. package/lib/interaction/scroll-bar.js +0 -12
  40. package/lib/interaction/shape-select.js +0 -12
  41. package/lib/interaction/slider.js +0 -10
  42. package/lib/interaction/zoom.js +0 -10
  43. package/package.json +1 -1
  44. package/src/chart/controller/tooltip.js +1 -1
  45. package/src/global.js +1 -1
@@ -1,13 +1,5 @@
1
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2
-
3
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4
-
5
1
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6
2
 
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
8
-
9
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
-
11
3
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
12
4
 
13
5
  /**
@@ -25,8 +17,6 @@ require('./shape/violin');
25
17
  var Violin = /*#__PURE__*/function (_GeomBase) {
26
18
  _inheritsLoose(Violin, _GeomBase);
27
19
 
28
- var _super = _createSuper(Violin);
29
-
30
20
  var _proto = Violin.prototype;
31
21
 
32
22
  /**
@@ -85,8 +75,6 @@ var Violin = /*#__PURE__*/function (_GeomBase) {
85
75
  var ViolinDodge = /*#__PURE__*/function (_Violin) {
86
76
  _inheritsLoose(ViolinDodge, _Violin);
87
77
 
88
- var _super2 = _createSuper(ViolinDodge);
89
-
90
78
  function ViolinDodge() {
91
79
  return _Violin.apply(this, arguments) || this;
92
80
  }
package/lib/global.js CHANGED
@@ -7,7 +7,7 @@ var Util = require('./util');
7
7
  var Theme = require('./theme/index');
8
8
 
9
9
  var Global = {
10
- version: '3.5.14',
10
+ version: '3.5.15',
11
11
  renderer: 'canvas',
12
12
  // trackable: false,
13
13
  trackingInfo: {},
@@ -1,13 +1,5 @@
1
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2
-
3
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4
-
5
1
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6
2
 
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
8
-
9
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
-
11
3
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
12
4
 
13
5
  var Util = require('../util');
@@ -21,8 +13,6 @@ var DEFAULT_TYPE = 'XY';
21
13
  var Brush = /*#__PURE__*/function (_Interaction) {
22
14
  _inheritsLoose(Brush, _Interaction);
23
15
 
24
- var _super = _createSuper(Brush);
25
-
26
16
  var _proto = Brush.prototype;
27
17
 
28
18
  _proto.getDefaultCfg = function getDefaultCfg() {
@@ -1,13 +1,5 @@
1
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2
-
3
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4
-
5
1
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6
2
 
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
8
-
9
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
-
11
3
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
12
4
 
13
5
  var Util = require('../util');
@@ -28,8 +20,6 @@ var DEFAULT_TYPE = 'X';
28
20
  var Drag = /*#__PURE__*/function (_Interaction) {
29
21
  _inheritsLoose(Drag, _Interaction);
30
22
 
31
- var _super = _createSuper(Drag);
32
-
33
23
  var _proto = Drag.prototype;
34
24
 
35
25
  _proto.getDefaultCfg = function getDefaultCfg() {
@@ -1,13 +1,3 @@
1
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2
-
3
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4
-
5
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6
-
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
8
-
9
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
-
11
1
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
12
2
 
13
3
  var Util = require('../util');
@@ -23,8 +13,6 @@ var DEFAULT_TYPE = 'X';
23
13
  var ScrollBar = /*#__PURE__*/function (_Interaction) {
24
14
  _inheritsLoose(ScrollBar, _Interaction);
25
15
 
26
- var _super = _createSuper(ScrollBar);
27
-
28
16
  var _proto = ScrollBar.prototype;
29
17
 
30
18
  _proto.getDefaultCfg = function getDefaultCfg() {
@@ -1,13 +1,3 @@
1
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2
-
3
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4
-
5
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6
-
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
8
-
9
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
-
11
1
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
12
2
 
13
3
  var Util = require('../util');
@@ -27,8 +17,6 @@ function getOriginalAttrs(attrs, styles) {
27
17
  var Select = /*#__PURE__*/function (_Interaction) {
28
18
  _inheritsLoose(Select, _Interaction);
29
19
 
30
- var _super = _createSuper(Select);
31
-
32
20
  function Select() {
33
21
  return _Interaction.apply(this, arguments) || this;
34
22
  }
@@ -1,13 +1,5 @@
1
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2
-
3
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4
-
5
1
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6
2
 
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
8
-
9
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
-
11
3
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
12
4
 
13
5
  var Range = require('./component/range');
@@ -33,8 +25,6 @@ var DomUtil = Util.DomUtil,
33
25
  var Slider = /*#__PURE__*/function (_Interaction) {
34
26
  _inheritsLoose(Slider, _Interaction);
35
27
 
36
- var _super = _createSuper(Slider);
37
-
38
28
  var _proto = Slider.prototype;
39
29
 
40
30
  _proto.getDefaultCfg = function getDefaultCfg() {
@@ -1,13 +1,5 @@
1
- function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2
-
3
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
4
-
5
1
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
6
2
 
7
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
8
-
9
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
10
-
11
3
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }
12
4
 
13
5
  var Util = require('../util');
@@ -24,8 +16,6 @@ var DEFAULT_TYPE = 'X';
24
16
  var Zoom = /*#__PURE__*/function (_Interaction) {
25
17
  _inheritsLoose(Zoom, _Interaction);
26
18
 
27
- var _super = _createSuper(Zoom);
28
-
29
19
  var _proto = Zoom.prototype;
30
20
 
31
21
  _proto.getDefaultCfg = function getDefaultCfg() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g2",
3
- "version": "3.5.14",
3
+ "version": "3.5.15",
4
4
  "description": "the Grammar of Graphics in Javascript",
5
5
  "browser": "build/g2.js",
6
6
  "main": "build/g2.js",
@@ -9,7 +9,7 @@ const MatrixUtil = Util.MatrixUtil;
9
9
  const Vector2 = MatrixUtil.vec2;
10
10
 
11
11
  const TYPE_SHOW_MARKERS = [ 'line', 'area', 'path', 'areaStack' ]; // 默认展示 tooltip marker 的几何图形
12
- const TYPE_SHOW_CROSSHAIRS = [ 'line', 'area' ]; // 默认展示十字瞄准线的几何图形
12
+ const TYPE_SHOW_CROSSHAIRS = [ 'line', 'area', 'point' ]; // 默认展示十字瞄准线的几何图形
13
13
 
14
14
  // TODO FIXME this is HARD CODING
15
15
  const IGNORE_TOOLTIP_ITEM_PROPERTIES = [
package/src/global.js CHANGED
@@ -6,7 +6,7 @@ const Util = require('./util');
6
6
  const Theme = require('./theme/index');
7
7
 
8
8
  const Global = {
9
- version: '3.5.14',
9
+ version: '3.5.15',
10
10
  renderer: 'canvas',
11
11
  // trackable: false,
12
12
  trackingInfo: {},