victory 37.0.0 → 37.0.1-next.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/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # victory
2
2
 
3
+ ## 37.0.1-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [22ac23249]
8
+ - victory-area@37.0.1-next.1
9
+ - victory-axis@37.0.1-next.1
10
+ - victory-bar@37.0.1-next.1
11
+ - victory-box-plot@37.0.1-next.1
12
+ - victory-brush-container@37.0.1-next.1
13
+ - victory-candlestick@37.0.1-next.1
14
+ - victory-create-container@37.0.1-next.1
15
+ - victory-cursor-container@37.0.1-next.1
16
+ - victory-errorbar@37.0.1-next.1
17
+ - victory-histogram@37.0.1-next.1
18
+ - victory-legend@37.0.1-next.1
19
+ - victory-line@37.0.1-next.1
20
+ - victory-pie@37.0.1-next.1
21
+ - victory-polar-axis@37.0.1-next.1
22
+ - victory-scatter@37.0.1-next.1
23
+ - victory-selection-container@37.0.1-next.1
24
+ - victory-tooltip@37.0.1-next.1
25
+ - victory-voronoi@37.0.1-next.1
26
+ - victory-voronoi-container@37.0.1-next.1
27
+ - victory-zoom-container@37.0.1-next.1
28
+ - victory-chart@37.0.1-next.1
29
+ - victory-canvas@37.0.1-next.1
30
+ - victory-group@37.0.1-next.1
31
+ - victory-stack@37.0.1-next.1
32
+ - victory-brush-line@37.0.1-next.1
33
+ - victory-core@37.0.1-next.1
34
+ - victory-shared-events@37.0.1-next.1
35
+
3
36
  ## 37.0.0
4
37
 
5
38
  ### Major Changes
package/dist/victory.js CHANGED
@@ -8569,7 +8569,9 @@ class VictoryAreaBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Comp
8569
8569
  static defaultPolarTransitions = victory_core__WEBPACK_IMPORTED_MODULE_6__.continuousPolarTransitions();
8570
8570
  static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_7__.getDomainWithZero;
8571
8571
  static getData = victory_core__WEBPACK_IMPORTED_MODULE_8__.getData;
8572
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getBaseProps)(props, fallbackProps);
8572
+ static getBaseProps(props) {
8573
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getBaseProps)(props, fallbackProps);
8574
+ }
8573
8575
  static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
8574
8576
 
8575
8577
  // Overridden in native versions
@@ -9329,8 +9331,12 @@ class VictoryAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default().Comp
9329
9331
  };
9330
9332
  static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomain;
9331
9333
  static getAxis = victory_core__WEBPACK_IMPORTED_MODULE_6__.getAxis;
9332
- static getStyles = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getStyles)(props);
9333
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getBaseProps)(props, fallbackProps);
9334
+ static getStyles(props) {
9335
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getStyles)(props);
9336
+ }
9337
+ static getBaseProps(props) {
9338
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getBaseProps)(props, fallbackProps);
9339
+ }
9334
9340
  static expectedComponents = ["axisComponent", "axisLabelComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent"];
9335
9341
  renderLine(props) {
9336
9342
  const {
@@ -10506,7 +10512,9 @@ class VictoryBarBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compo
10506
10512
  };
10507
10513
  static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_5__.getDomainWithZero;
10508
10514
  static getData = victory_core__WEBPACK_IMPORTED_MODULE_6__.getData;
10509
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getBaseProps)(props, fallbackProps);
10515
+ static getBaseProps(props) {
10516
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getBaseProps)(props, fallbackProps);
10517
+ }
10510
10518
  static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
10511
10519
 
10512
10520
  // Overridden in native versions
@@ -11163,9 +11171,15 @@ class VictoryBoxPlotBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().C
11163
11171
  standalone: true,
11164
11172
  theme: victory_core__WEBPACK_IMPORTED_MODULE_7__.VictoryTheme.grayscale
11165
11173
  };
11166
- static getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_8__.getDomain;
11167
- static getData = _helper_methods__WEBPACK_IMPORTED_MODULE_8__.getData;
11168
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
11174
+ static getDomain(props, axis) {
11175
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getDomain)(props, axis);
11176
+ }
11177
+ static getData(props) {
11178
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getData)(props);
11179
+ }
11180
+ static getBaseProps(props) {
11181
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
11182
+ }
11169
11183
  static expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
11170
11184
  renderBoxPlot(props) {
11171
11185
  const types = ["q1", "q3", "max", "min", "median"];
@@ -11816,7 +11830,7 @@ function brushContainerMixin(Base) {
11816
11830
  handleWidth: 8,
11817
11831
  mouseMoveThreshold: 0
11818
11832
  };
11819
- static defaultEvents = props => {
11833
+ static defaultEvents(props) {
11820
11834
  return [{
11821
11835
  target: "parent",
11822
11836
  eventHandlers: {
@@ -11843,7 +11857,7 @@ function brushContainerMixin(Base) {
11843
11857
  }
11844
11858
  }
11845
11859
  }];
11846
- };
11860
+ }
11847
11861
  getSelectBox(props, coordinates) {
11848
11862
  const {
11849
11863
  x,
@@ -13325,9 +13339,15 @@ class VictoryCandlestickBase extends (react__WEBPACK_IMPORTED_MODULE_0___default
13325
13339
  standalone: true,
13326
13340
  theme: victory_core__WEBPACK_IMPORTED_MODULE_6__.VictoryTheme.grayscale
13327
13341
  };
13328
- static getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_7__.getDomain;
13329
- static getData = _helper_methods__WEBPACK_IMPORTED_MODULE_7__.getData;
13330
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getBaseProps)(props, fallbackProps);
13342
+ static getDomain(props, axis) {
13343
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getDomain)(props, axis);
13344
+ }
13345
+ static getData(props) {
13346
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getData)(props);
13347
+ }
13348
+ static getBaseProps(props) {
13349
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getBaseProps)(props, fallbackProps);
13350
+ }
13331
13351
  static expectedComponents = ["openLabelComponent", "closeLabelComponent", "highLabelComponent", "lowLabelComponent", "dataComponent", "labelComponent", "groupComponent", "containerComponent"];
13332
13352
 
13333
13353
  // Overridden in native versions
@@ -22480,12 +22500,12 @@ const combineContainerMixins = (mixins, Container) => {
22480
22500
  ...defaultProps,
22481
22501
  ...Class.defaultProps
22482
22502
  }), {});
22483
- static defaultEvents = props => {
22503
+ static defaultEvents(props) {
22484
22504
  return combineDefaultEvents(Classes.reduce((defaultEvents, Class) => {
22485
22505
  const events = victory_core__WEBPACK_IMPORTED_MODULE_5__.isFunction(Class.defaultEvents) ? Class.defaultEvents(props) : Class.defaultEvents;
22486
22506
  return [...defaultEvents, ...events];
22487
22507
  }, []));
22488
- };
22508
+ }
22489
22509
  getChildren(props) {
22490
22510
  return instances.reduce((children, instance) => instance.getChildren({
22491
22511
  ...props,
@@ -22721,7 +22741,7 @@ function cursorContainerMixin(Base) {
22721
22741
  },
22722
22742
  cursorComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.LineSegment, null)
22723
22743
  };
22724
- static defaultEvents = props => {
22744
+ static defaultEvents(props) {
22725
22745
  return [{
22726
22746
  target: "parent",
22727
22747
  eventHandlers: {
@@ -22739,7 +22759,7 @@ function cursorContainerMixin(Base) {
22739
22759
  }
22740
22760
  }
22741
22761
  }];
22742
- };
22762
+ }
22743
22763
  getCursorPosition(props) {
22744
22764
  const {
22745
22765
  cursorValue,
@@ -23346,9 +23366,15 @@ class VictoryErrorBarBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().
23346
23366
  standalone: true,
23347
23367
  theme: victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryTheme.grayscale
23348
23368
  };
23349
- static getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_6__.getDomain;
23350
- static getData = _helper_methods__WEBPACK_IMPORTED_MODULE_6__.getData;
23351
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBaseProps)(props, fallbackProps);
23369
+ static getDomain(props, axis) {
23370
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getDomain)(props, axis);
23371
+ }
23372
+ static getData(props) {
23373
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getData)(props);
23374
+ }
23375
+ static getBaseProps(props) {
23376
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBaseProps)(props, fallbackProps);
23377
+ }
23352
23378
  static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
23353
23379
 
23354
23380
  // Overridden in native versions
@@ -24177,9 +24203,15 @@ class VictoryHistogramBase extends (react__WEBPACK_IMPORTED_MODULE_0___default()
24177
24203
  standalone: true,
24178
24204
  theme: victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryTheme.grayscale
24179
24205
  };
24180
- static getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_1__.getDomain;
24181
- static getData = _helper_methods__WEBPACK_IMPORTED_MODULE_1__.getData;
24182
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_1__.getBaseProps)(props, fallbackProps);
24206
+ static getDomain(props, axis) {
24207
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_1__.getDomain)(props, axis);
24208
+ }
24209
+ static getData(props) {
24210
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_1__.getData)(props);
24211
+ }
24212
+ static getBaseProps(props) {
24213
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_1__.getBaseProps)(props, fallbackProps);
24214
+ }
24183
24215
  static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
24184
24216
 
24185
24217
  // Overridden in native versions
@@ -24652,8 +24684,12 @@ class VictoryLegendBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Co
24652
24684
  theme: victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryTheme.grayscale,
24653
24685
  titleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.VictoryLabel, null)
24654
24686
  };
24655
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBaseProps)(props, fallbackProps);
24656
- static getDimensions = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getDimensions)(props, fallbackProps);
24687
+ static getBaseProps(props) {
24688
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBaseProps)(props, fallbackProps);
24689
+ }
24690
+ static getDimensions(props) {
24691
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getDimensions)(props, fallbackProps);
24692
+ }
24657
24693
  static expectedComponents = ["borderComponent", "containerComponent", "dataComponent", "groupComponent", "labelComponent", "titleComponent"];
24658
24694
  renderChildren(props) {
24659
24695
  const {
@@ -24996,7 +25032,9 @@ class VictoryLineBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Comp
24996
25032
  };
24997
25033
  static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_7__.getDomain;
24998
25034
  static getData = victory_core__WEBPACK_IMPORTED_MODULE_8__.getData;
24999
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getBaseProps)(props, fallbackProps);
25035
+ static getBaseProps(props) {
25036
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getBaseProps)(props, fallbackProps);
25037
+ }
25000
25038
  static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
25001
25039
 
25002
25040
  // Overridden in native versions
@@ -25601,7 +25639,9 @@ class VictoryPieBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compo
25601
25639
  sortOrder: "ascending",
25602
25640
  theme: victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryTheme.grayscale
25603
25641
  };
25604
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBaseProps)(props, fallbackProps);
25642
+ static getBaseProps(props) {
25643
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBaseProps)(props, fallbackProps);
25644
+ }
25605
25645
  static getData = victory_core__WEBPACK_IMPORTED_MODULE_7__.getData;
25606
25646
  static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent", "labelIndicatorComponent"];
25607
25647
 
@@ -26197,9 +26237,15 @@ class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default()
26197
26237
  };
26198
26238
  static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_7__.getDomain;
26199
26239
  static getAxis = victory_core__WEBPACK_IMPORTED_MODULE_7__.getAxis;
26200
- static getScale = _helper_methods__WEBPACK_IMPORTED_MODULE_8__.getScale;
26201
- static getStyles = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getStyles)(props, fallbackProps.style);
26202
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
26240
+ static getScale(props) {
26241
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getScale)(props);
26242
+ }
26243
+ static getStyles(props) {
26244
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getStyles)(props, fallbackProps.style);
26245
+ }
26246
+ static getBaseProps(props) {
26247
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
26248
+ }
26203
26249
  static expectedComponents = ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"];
26204
26250
  renderAxisLine(props) {
26205
26251
  const {
@@ -26548,7 +26594,9 @@ class VictoryScatterBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().C
26548
26594
  };
26549
26595
  static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomain;
26550
26596
  static getData = victory_core__WEBPACK_IMPORTED_MODULE_7__.getData;
26551
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
26597
+ static getBaseProps(props) {
26598
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
26599
+ }
26552
26600
  static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
26553
26601
 
26554
26602
  // Overridden in native versions
@@ -26871,7 +26919,7 @@ function selectionContainerMixin(Base) {
26871
26919
  fillOpacity: 0.1
26872
26920
  }
26873
26921
  };
26874
- static defaultEvents = props => {
26922
+ static defaultEvents(props) {
26875
26923
  return [{
26876
26924
  target: "parent",
26877
26925
  eventHandlers: {
@@ -26895,7 +26943,7 @@ function selectionContainerMixin(Base) {
26895
26943
  }
26896
26944
  }
26897
26945
  }];
26898
- };
26946
+ }
26899
26947
  getRect(props) {
26900
26948
  const {
26901
26949
  x1,
@@ -27832,7 +27880,7 @@ class VictoryTooltip extends (react__WEBPACK_IMPORTED_MODULE_4___default().Compo
27832
27880
  flyoutComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_flyout__WEBPACK_IMPORTED_MODULE_6__.Flyout, null),
27833
27881
  groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement("g", null)
27834
27882
  };
27835
- static defaultEvents = props => {
27883
+ static defaultEvents(props) {
27836
27884
  const activate = props.activateData ? [{
27837
27885
  target: "labels",
27838
27886
  mutation: () => ({
@@ -27876,7 +27924,7 @@ class VictoryTooltip extends (react__WEBPACK_IMPORTED_MODULE_4___default().Compo
27876
27924
  onTouchEnd: () => deactivate
27877
27925
  }
27878
27926
  }];
27879
- };
27927
+ }
27880
27928
  constructor(props) {
27881
27929
  super(props);
27882
27930
  this.id = props.id === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("tooltip-") : props.id;
@@ -28729,7 +28777,7 @@ function voronoiContainerMixin(Base) {
28729
28777
  labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_tooltip__WEBPACK_IMPORTED_MODULE_4__.VictoryTooltip, null),
28730
28778
  voronoiPadding: 5
28731
28779
  };
28732
- static defaultEvents = props => {
28780
+ static defaultEvents(props) {
28733
28781
  return [{
28734
28782
  target: "parent",
28735
28783
  eventHandlers: {
@@ -28754,7 +28802,7 @@ function voronoiContainerMixin(Base) {
28754
28802
  onMouseMove: () => null
28755
28803
  }
28756
28804
  }];
28757
- };
28805
+ }
28758
28806
  getDimension(props) {
28759
28807
  const {
28760
28808
  horizontal,
@@ -29405,7 +29453,9 @@ class VictoryVoronoiBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().C
29405
29453
  };
29406
29454
  static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomain;
29407
29455
  static getData = victory_core__WEBPACK_IMPORTED_MODULE_7__.getData;
29408
- static getBaseProps = props => (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
29456
+ static getBaseProps(props) {
29457
+ return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
29458
+ }
29409
29459
  static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
29410
29460
 
29411
29461
  // Overridden in native versions
@@ -29599,7 +29649,7 @@ function zoomContainerMixin(Base) {
29599
29649
  allowZoom: true,
29600
29650
  zoomActive: false
29601
29651
  };
29602
- static defaultEvents = props => {
29652
+ static defaultEvents(props) {
29603
29653
  return [{
29604
29654
  target: "parent",
29605
29655
  eventHandlers: {
@@ -29641,7 +29691,7 @@ function zoomContainerMixin(Base) {
29641
29691
  })
29642
29692
  }
29643
29693
  }];
29644
- };
29694
+ }
29645
29695
  clipDataComponents(children, props) {
29646
29696
  const {
29647
29697
  scale,