sea-chart 1.1.100 → 1.1.102

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.
@@ -15,13 +15,14 @@ class HeatMap extends ChartComponent {
15
15
  constructor(props) {
16
16
  super(props);
17
17
  this.createChart = () => {
18
+ var _result$years;
18
19
  const appendPadding = [30, 30, 0, 45];
19
20
  // height for 1 year
20
21
  const {
21
22
  chart,
22
23
  result
23
24
  } = this.props;
24
- const count = result.years.length;
25
+ const count = ((_result$years = result.years) === null || _result$years === void 0 ? void 0 : _result$years.length) || 0;
25
26
  let {
26
27
  grid_size,
27
28
  grid_distance
@@ -1,5 +1,4 @@
1
1
  import React, { Component } from 'react';
2
- import { GlobalThemeContext } from '../../../../../utils/contexts';
3
2
  import RecordsHeaderCell from './records-header-cell';
4
3
  class RecordsHeader extends Component {
5
4
  constructor() {
@@ -1,5 +1,4 @@
1
1
  import React, { Component } from 'react';
2
- import { debounce } from 'lodash-es';
3
2
  import './index.css';
4
3
  class ResizeColumnHandle extends Component {
5
4
  constructor() {
@@ -11,6 +10,7 @@ class ResizeColumnHandle extends Component {
11
10
  window.removeEventListener('touchmove', this.onMouseMove);
12
11
  };
13
12
  this.onMouseDown = e => {
13
+ e.stopPropagation();
14
14
  if (e.preventDefault) {
15
15
  e.preventDefault();
16
16
  }
@@ -20,12 +20,14 @@ class ResizeColumnHandle extends Component {
20
20
  window.addEventListener('touchmove', this.onMouseMove);
21
21
  };
22
22
  this.onMouseUp = e => {
23
+ e.stopPropagation();
23
24
  if (this.props.onDragEnd) {
24
25
  this.props.onDragEnd(e);
25
26
  }
26
27
  this.cleanUp();
27
28
  };
28
29
  this.onMouseMove = e => {
30
+ e.stopPropagation();
29
31
  if (e.preventDefault) {
30
32
  e.preventDefault();
31
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sea-chart",
3
- "version": "1.1.100",
3
+ "version": "1.1.102",
4
4
  "main": "./dist/index.js",
5
5
  "dependencies": {
6
6
  "@antv/data-set": "0.11.8",