victory-histogram 36.5.0 → 36.5.3

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.
@@ -296,4 +296,5 @@ export var getBaseProps = function (props, fallbackProps) {
296
296
 
297
297
  return childProps;
298
298
  }, initialChildProps);
299
- };
299
+ };
300
+ //# sourceMappingURL=helper-methods.js.map
package/es/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  VictoryCommonProps,
7
7
  VictoryDatableProps,
8
8
  VictoryMultiLabelableProps,
9
- VictoryStyleInterface
9
+ VictoryStyleInterface,
10
10
  } from "victory-core";
11
11
 
12
12
  export type VictoryHistogramTargetType = "data" | "labels" | "parent";
package/es/index.js CHANGED
@@ -1 +1,2 @@
1
- export { default as VictoryHistogram } from "./victory-histogram";
1
+ export { default as VictoryHistogram } from "./victory-histogram";
2
+ //# sourceMappingURL=index.js.map
@@ -155,4 +155,5 @@ VictoryHistogram.getBaseProps = function (props) {
155
155
  };
156
156
 
157
157
  VictoryHistogram.expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
158
- export default addEvents(VictoryHistogram);
158
+ export default addEvents(VictoryHistogram);
159
+ //# sourceMappingURL=victory-histogram.js.map
@@ -331,4 +331,5 @@ var getBaseProps = function (props, fallbackProps) {
331
331
  }, initialChildProps);
332
332
  };
333
333
 
334
- exports.getBaseProps = getBaseProps;
334
+ exports.getBaseProps = getBaseProps;
335
+ //# sourceMappingURL=helper-methods.js.map
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  VictoryCommonProps,
7
7
  VictoryDatableProps,
8
8
  VictoryMultiLabelableProps,
9
- VictoryStyleInterface
9
+ VictoryStyleInterface,
10
10
  } from "victory-core";
11
11
 
12
12
  export type VictoryHistogramTargetType = "data" | "labels" | "parent";
package/lib/index.js CHANGED
@@ -12,4 +12,5 @@ Object.defineProperty(exports, "VictoryHistogram", {
12
12
 
13
13
  var _victoryHistogram = _interopRequireDefault(require("./victory-histogram"));
14
14
 
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
+ //# sourceMappingURL=index.js.map
@@ -176,4 +176,5 @@ VictoryHistogram.expectedComponents = ["dataComponent", "labelComponent", "group
176
176
 
177
177
  var _default = (0, _victoryCore.addEvents)(VictoryHistogram);
178
178
 
179
- exports.default = _default;
179
+ exports.default = _default;
180
+ //# sourceMappingURL=victory-histogram.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-histogram",
3
- "version": "36.5.0",
3
+ "version": "36.5.3",
4
4
  "description": "Histogram Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -22,9 +22,9 @@
22
22
  "lodash": "^4.17.19",
23
23
  "prop-types": "^15.8.1",
24
24
  "react-fast-compare": "^3.2.0",
25
- "victory-bar": "^36.5.0",
26
- "victory-core": "^36.5.0",
27
- "victory-vendor": "^36.5.0"
25
+ "victory-bar": "^36.5.3",
26
+ "victory-core": "^36.5.3",
27
+ "victory-vendor": "^36.5.1"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "react": ">=16.6.0"
@@ -33,5 +33,5 @@
33
33
  "version": "yarn run nps build-libs && nps build-dists"
34
34
  },
35
35
  "sideEffects": false,
36
- "gitHead": "7cecba921f751c3decc8215f7e866f51d11203c1"
36
+ "gitHead": "55338af3c57eacca5956e53c08a58e47ba41d01e"
37
37
  }
@@ -96,7 +96,7 @@ export const getFormattedData = cacheLastValue(({ data = [], x, bins }) => {
96
96
  ? new Date((x0.getTime() + x1.getTime()) / 2)
97
97
  : (x0 + x1) / 2,
98
98
  y: bin.length,
99
- binnedData: [...bin]
99
+ binnedData: [...bin],
100
100
  };
101
101
  });
102
102
 
@@ -126,7 +126,7 @@ export const getDomain = (props, axis) => {
126
126
 
127
127
  return Domain.getDomainWithZero(
128
128
  { ...props, data: [{ x: firstBin.x0 }, { x: lastBin.x1 }], x: "x" },
129
- "x"
129
+ "x",
130
130
  );
131
131
  }
132
132
 
@@ -141,12 +141,12 @@ const getCalculatedValues = (props) => {
141
141
 
142
142
  const range = props.range || {
143
143
  x: Helpers.getRange(props, "x"),
144
- y: Helpers.getRange(props, "y")
144
+ y: Helpers.getRange(props, "y"),
145
145
  };
146
146
 
147
147
  const domain = {
148
148
  x: getDomain(props, "x"),
149
- y: getDomain(props, "y")
149
+ y: getDomain(props, "y"),
150
150
  };
151
151
 
152
152
  let data = getData(props);
@@ -158,7 +158,7 @@ const getCalculatedValues = (props) => {
158
158
  .range(props.horizontal ? range.y : range.x),
159
159
  y: Scale.getBaseScale(props, "y")
160
160
  .domain(domain.y)
161
- .range(props.horizontal ? range.x : range.y)
161
+ .range(props.horizontal ? range.x : range.y),
162
162
  };
163
163
 
164
164
  return { style, data, scale, domain };
@@ -186,7 +186,7 @@ export const getBaseProps = (props, fallbackProps) => {
186
186
  labels,
187
187
  name,
188
188
  getPath,
189
- disableInlineStyles
189
+ disableInlineStyles,
190
190
  } = props;
191
191
  const initialChildProps = {
192
192
  parent: {
@@ -200,8 +200,8 @@ export const getBaseProps = (props, fallbackProps) => {
200
200
  name,
201
201
  theme,
202
202
  padding,
203
- style: style.parent
204
- }
203
+ style: style.parent,
204
+ },
205
205
  };
206
206
 
207
207
  const getDistance = (datum) => {
@@ -241,11 +241,11 @@ export const getBaseProps = (props, fallbackProps) => {
241
241
  y0,
242
242
  x0,
243
243
  getPath,
244
- disableInlineStyles
244
+ disableInlineStyles,
245
245
  };
246
246
 
247
247
  childProps[eventKey] = {
248
- data: dataProps
248
+ data: dataProps,
249
249
  };
250
250
 
251
251
  const text = LabelHelpers.getText(props, datum, index);
package/src/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  VictoryCommonProps,
7
7
  VictoryDatableProps,
8
8
  VictoryMultiLabelableProps,
9
- VictoryStyleInterface
9
+ VictoryStyleInterface,
10
10
  } from "victory-core";
11
11
 
12
12
  export type VictoryHistogramTargetType = "data" | "labels" | "parent";
@@ -9,19 +9,19 @@ import {
9
9
  CommonProps,
10
10
  addEvents,
11
11
  PropTypes as CustomPropTypes,
12
- UserProps
12
+ UserProps,
13
13
  } from "victory-core";
14
14
  import {
15
15
  getBaseProps,
16
16
  getData,
17
17
  getDomain,
18
- getFormattedData
18
+ getFormattedData,
19
19
  } from "./helper-methods";
20
20
 
21
21
  const fallbackProps = {
22
22
  width: 450,
23
23
  height: 300,
24
- padding: 50
24
+ padding: 50,
25
25
  };
26
26
 
27
27
  const defaultData = [];
@@ -33,7 +33,7 @@ export class VictoryHistogram extends React.Component {
33
33
  "height",
34
34
  "padding",
35
35
  "style",
36
- "width"
36
+ "width",
37
37
  ];
38
38
 
39
39
  static displayName = "VictoryHistogram";
@@ -44,17 +44,17 @@ export class VictoryHistogram extends React.Component {
44
44
  onLoad: {
45
45
  duration: 2000,
46
46
  before: () => ({ _y: 0, _y1: 0, _y0: 0 }),
47
- after: (datum) => ({ _y: datum._y, _y1: datum._y1, _y0: datum._y0 })
47
+ after: (datum) => ({ _y: datum._y, _y1: datum._y1, _y0: datum._y0 }),
48
48
  },
49
49
  onExit: {
50
50
  duration: 500,
51
- before: () => ({ _y: 0, yOffset: 0 })
51
+ before: () => ({ _y: 0, yOffset: 0 }),
52
52
  },
53
53
  onEnter: {
54
54
  duration: 500,
55
55
  before: () => ({ _y: 0, _y1: 0, _y0: 0 }),
56
- after: (datum) => ({ _y: datum._y, _y1: datum._y1, _y0: datum._y0 })
57
- }
56
+ after: (datum) => ({ _y: datum._y, _y1: datum._y1, _y0: datum._y0 }),
57
+ },
58
58
  };
59
59
 
60
60
  static getFormattedData = getFormattedData;
@@ -65,9 +65,9 @@ export class VictoryHistogram extends React.Component {
65
65
  binSpacing: CustomPropTypes.nonNegative,
66
66
  bins: PropTypes.oneOfType([
67
67
  PropTypes.arrayOf(
68
- PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)])
68
+ PropTypes.oneOfType([PropTypes.number, PropTypes.instanceOf(Date)]),
69
69
  ),
70
- CustomPropTypes.nonNegative
70
+ CustomPropTypes.nonNegative,
71
71
  ]),
72
72
  cornerRadius: PropTypes.oneOfType([
73
73
  PropTypes.number,
@@ -78,11 +78,11 @@ export class VictoryHistogram extends React.Component {
78
78
  topRight: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
79
79
  bottom: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
80
80
  bottomLeft: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
81
- bottomRight: PropTypes.oneOfType([PropTypes.number, PropTypes.func])
82
- })
81
+ bottomRight: PropTypes.oneOfType([PropTypes.number, PropTypes.func]),
82
+ }),
83
83
  ]),
84
84
  getPath: PropTypes.func,
85
- horizontal: PropTypes.bool
85
+ horizontal: PropTypes.bool,
86
86
  };
87
87
 
88
88
  static defaultProps = {
@@ -94,7 +94,7 @@ export class VictoryHistogram extends React.Component {
94
94
  samples: 50,
95
95
  sortOrder: "ascending",
96
96
  standalone: true,
97
- theme: VictoryTheme.grayscale
97
+ theme: VictoryTheme.grayscale,
98
98
  };
99
99
 
100
100
  static getDomain = getDomain;
@@ -104,7 +104,7 @@ export class VictoryHistogram extends React.Component {
104
104
  "dataComponent",
105
105
  "labelComponent",
106
106
  "groupComponent",
107
- "containerComponent"
107
+ "containerComponent",
108
108
  ];
109
109
 
110
110
  // Overridden in native versions