victory 37.0.0 → 37.0.1-next.0
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 +33 -0
- package/dist/victory.js +62 -30
- package/dist/victory.min.js +1 -1
- package/es/index.d.ts +27 -27
- package/lib/index.d.ts +27 -27
- package/package.json +28 -31
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# victory
|
|
2
2
|
|
|
3
|
+
## 37.0.1-next.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [22ac23249]
|
|
8
|
+
- victory-area@37.0.1-next.0
|
|
9
|
+
- victory-axis@37.0.1-next.0
|
|
10
|
+
- victory-bar@37.0.1-next.0
|
|
11
|
+
- victory-box-plot@37.0.1-next.0
|
|
12
|
+
- victory-brush-container@37.0.1-next.0
|
|
13
|
+
- victory-candlestick@37.0.1-next.0
|
|
14
|
+
- victory-create-container@37.0.1-next.0
|
|
15
|
+
- victory-cursor-container@37.0.1-next.0
|
|
16
|
+
- victory-errorbar@37.0.1-next.0
|
|
17
|
+
- victory-histogram@37.0.1-next.0
|
|
18
|
+
- victory-legend@37.0.1-next.0
|
|
19
|
+
- victory-line@37.0.1-next.0
|
|
20
|
+
- victory-pie@37.0.1-next.0
|
|
21
|
+
- victory-polar-axis@37.0.1-next.0
|
|
22
|
+
- victory-scatter@37.0.1-next.0
|
|
23
|
+
- victory-selection-container@37.0.1-next.0
|
|
24
|
+
- victory-tooltip@37.0.1-next.0
|
|
25
|
+
- victory-voronoi@37.0.1-next.0
|
|
26
|
+
- victory-voronoi-container@37.0.1-next.0
|
|
27
|
+
- victory-zoom-container@37.0.1-next.0
|
|
28
|
+
- victory-chart@37.0.1-next.0
|
|
29
|
+
- victory-canvas@37.0.1-next.0
|
|
30
|
+
- victory-group@37.0.1-next.0
|
|
31
|
+
- victory-stack@37.0.1-next.0
|
|
32
|
+
- victory-brush-line@37.0.1-next.0
|
|
33
|
+
- victory-core@37.0.1-next.0
|
|
34
|
+
- victory-shared-events@37.0.1-next.0
|
|
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
|
|
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
|
|
9333
|
-
|
|
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
|
|
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
|
|
@@ -11165,7 +11173,9 @@ class VictoryBoxPlotBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().C
|
|
|
11165
11173
|
};
|
|
11166
11174
|
static getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_8__.getDomain;
|
|
11167
11175
|
static getData = _helper_methods__WEBPACK_IMPORTED_MODULE_8__.getData;
|
|
11168
|
-
static getBaseProps
|
|
11176
|
+
static getBaseProps(props) {
|
|
11177
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
|
|
11178
|
+
}
|
|
11169
11179
|
static expectedComponents = ["maxComponent", "maxLabelComponent", "medianComponent", "medianLabelComponent", "minComponent", "minLabelComponent", "q1Component", "q1LabelComponent", "q3Component", "q3LabelComponent", "groupComponent", "containerComponent"];
|
|
11170
11180
|
renderBoxPlot(props) {
|
|
11171
11181
|
const types = ["q1", "q3", "max", "min", "median"];
|
|
@@ -11816,7 +11826,7 @@ function brushContainerMixin(Base) {
|
|
|
11816
11826
|
handleWidth: 8,
|
|
11817
11827
|
mouseMoveThreshold: 0
|
|
11818
11828
|
};
|
|
11819
|
-
static defaultEvents
|
|
11829
|
+
static defaultEvents(props) {
|
|
11820
11830
|
return [{
|
|
11821
11831
|
target: "parent",
|
|
11822
11832
|
eventHandlers: {
|
|
@@ -11843,7 +11853,7 @@ function brushContainerMixin(Base) {
|
|
|
11843
11853
|
}
|
|
11844
11854
|
}
|
|
11845
11855
|
}];
|
|
11846
|
-
}
|
|
11856
|
+
}
|
|
11847
11857
|
getSelectBox(props, coordinates) {
|
|
11848
11858
|
const {
|
|
11849
11859
|
x,
|
|
@@ -13327,7 +13337,9 @@ class VictoryCandlestickBase extends (react__WEBPACK_IMPORTED_MODULE_0___default
|
|
|
13327
13337
|
};
|
|
13328
13338
|
static getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_7__.getDomain;
|
|
13329
13339
|
static getData = _helper_methods__WEBPACK_IMPORTED_MODULE_7__.getData;
|
|
13330
|
-
static getBaseProps
|
|
13340
|
+
static getBaseProps(props) {
|
|
13341
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_7__.getBaseProps)(props, fallbackProps);
|
|
13342
|
+
}
|
|
13331
13343
|
static expectedComponents = ["openLabelComponent", "closeLabelComponent", "highLabelComponent", "lowLabelComponent", "dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
13332
13344
|
|
|
13333
13345
|
// Overridden in native versions
|
|
@@ -22480,12 +22492,12 @@ const combineContainerMixins = (mixins, Container) => {
|
|
|
22480
22492
|
...defaultProps,
|
|
22481
22493
|
...Class.defaultProps
|
|
22482
22494
|
}), {});
|
|
22483
|
-
static defaultEvents
|
|
22495
|
+
static defaultEvents(props) {
|
|
22484
22496
|
return combineDefaultEvents(Classes.reduce((defaultEvents, Class) => {
|
|
22485
22497
|
const events = victory_core__WEBPACK_IMPORTED_MODULE_5__.isFunction(Class.defaultEvents) ? Class.defaultEvents(props) : Class.defaultEvents;
|
|
22486
22498
|
return [...defaultEvents, ...events];
|
|
22487
22499
|
}, []));
|
|
22488
|
-
}
|
|
22500
|
+
}
|
|
22489
22501
|
getChildren(props) {
|
|
22490
22502
|
return instances.reduce((children, instance) => instance.getChildren({
|
|
22491
22503
|
...props,
|
|
@@ -22721,7 +22733,7 @@ function cursorContainerMixin(Base) {
|
|
|
22721
22733
|
},
|
|
22722
22734
|
cursorComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_5__.LineSegment, null)
|
|
22723
22735
|
};
|
|
22724
|
-
static defaultEvents
|
|
22736
|
+
static defaultEvents(props) {
|
|
22725
22737
|
return [{
|
|
22726
22738
|
target: "parent",
|
|
22727
22739
|
eventHandlers: {
|
|
@@ -22739,7 +22751,7 @@ function cursorContainerMixin(Base) {
|
|
|
22739
22751
|
}
|
|
22740
22752
|
}
|
|
22741
22753
|
}];
|
|
22742
|
-
}
|
|
22754
|
+
}
|
|
22743
22755
|
getCursorPosition(props) {
|
|
22744
22756
|
const {
|
|
22745
22757
|
cursorValue,
|
|
@@ -23348,7 +23360,9 @@ class VictoryErrorBarBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().
|
|
|
23348
23360
|
};
|
|
23349
23361
|
static getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_6__.getDomain;
|
|
23350
23362
|
static getData = _helper_methods__WEBPACK_IMPORTED_MODULE_6__.getData;
|
|
23351
|
-
static getBaseProps
|
|
23363
|
+
static getBaseProps(props) {
|
|
23364
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBaseProps)(props, fallbackProps);
|
|
23365
|
+
}
|
|
23352
23366
|
static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
23353
23367
|
|
|
23354
23368
|
// Overridden in native versions
|
|
@@ -24179,7 +24193,9 @@ class VictoryHistogramBase extends (react__WEBPACK_IMPORTED_MODULE_0___default()
|
|
|
24179
24193
|
};
|
|
24180
24194
|
static getDomain = _helper_methods__WEBPACK_IMPORTED_MODULE_1__.getDomain;
|
|
24181
24195
|
static getData = _helper_methods__WEBPACK_IMPORTED_MODULE_1__.getData;
|
|
24182
|
-
static getBaseProps
|
|
24196
|
+
static getBaseProps(props) {
|
|
24197
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_1__.getBaseProps)(props, fallbackProps);
|
|
24198
|
+
}
|
|
24183
24199
|
static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
24184
24200
|
|
|
24185
24201
|
// Overridden in native versions
|
|
@@ -24652,8 +24668,12 @@ class VictoryLegendBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Co
|
|
|
24652
24668
|
theme: victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryTheme.grayscale,
|
|
24653
24669
|
titleComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(victory_core__WEBPACK_IMPORTED_MODULE_4__.VictoryLabel, null)
|
|
24654
24670
|
};
|
|
24655
|
-
static getBaseProps
|
|
24656
|
-
|
|
24671
|
+
static getBaseProps(props) {
|
|
24672
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBaseProps)(props, fallbackProps);
|
|
24673
|
+
}
|
|
24674
|
+
static getDimensions(props) {
|
|
24675
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getDimensions)(props, fallbackProps);
|
|
24676
|
+
}
|
|
24657
24677
|
static expectedComponents = ["borderComponent", "containerComponent", "dataComponent", "groupComponent", "labelComponent", "titleComponent"];
|
|
24658
24678
|
renderChildren(props) {
|
|
24659
24679
|
const {
|
|
@@ -24996,7 +25016,9 @@ class VictoryLineBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Comp
|
|
|
24996
25016
|
};
|
|
24997
25017
|
static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_7__.getDomain;
|
|
24998
25018
|
static getData = victory_core__WEBPACK_IMPORTED_MODULE_8__.getData;
|
|
24999
|
-
static getBaseProps
|
|
25019
|
+
static getBaseProps(props) {
|
|
25020
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_9__.getBaseProps)(props, fallbackProps);
|
|
25021
|
+
}
|
|
25000
25022
|
static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
25001
25023
|
|
|
25002
25024
|
// Overridden in native versions
|
|
@@ -25601,7 +25623,9 @@ class VictoryPieBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compo
|
|
|
25601
25623
|
sortOrder: "ascending",
|
|
25602
25624
|
theme: victory_core__WEBPACK_IMPORTED_MODULE_5__.VictoryTheme.grayscale
|
|
25603
25625
|
};
|
|
25604
|
-
static getBaseProps
|
|
25626
|
+
static getBaseProps(props) {
|
|
25627
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_6__.getBaseProps)(props, fallbackProps);
|
|
25628
|
+
}
|
|
25605
25629
|
static getData = victory_core__WEBPACK_IMPORTED_MODULE_7__.getData;
|
|
25606
25630
|
static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent", "labelIndicatorComponent"];
|
|
25607
25631
|
|
|
@@ -26198,8 +26222,12 @@ class VictoryPolarAxisBase extends (react__WEBPACK_IMPORTED_MODULE_1___default()
|
|
|
26198
26222
|
static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_7__.getDomain;
|
|
26199
26223
|
static getAxis = victory_core__WEBPACK_IMPORTED_MODULE_7__.getAxis;
|
|
26200
26224
|
static getScale = _helper_methods__WEBPACK_IMPORTED_MODULE_8__.getScale;
|
|
26201
|
-
static getStyles
|
|
26202
|
-
|
|
26225
|
+
static getStyles(props) {
|
|
26226
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getStyles)(props, fallbackProps.style);
|
|
26227
|
+
}
|
|
26228
|
+
static getBaseProps(props) {
|
|
26229
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
|
|
26230
|
+
}
|
|
26203
26231
|
static expectedComponents = ["axisComponent", "circularAxisComponent", "groupComponent", "containerComponent", "tickComponent", "tickLabelComponent", "gridComponent", "circularGridComponent"];
|
|
26204
26232
|
renderAxisLine(props) {
|
|
26205
26233
|
const {
|
|
@@ -26548,7 +26576,9 @@ class VictoryScatterBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().C
|
|
|
26548
26576
|
};
|
|
26549
26577
|
static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomain;
|
|
26550
26578
|
static getData = victory_core__WEBPACK_IMPORTED_MODULE_7__.getData;
|
|
26551
|
-
static getBaseProps
|
|
26579
|
+
static getBaseProps(props) {
|
|
26580
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
|
|
26581
|
+
}
|
|
26552
26582
|
static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
26553
26583
|
|
|
26554
26584
|
// Overridden in native versions
|
|
@@ -26871,7 +26901,7 @@ function selectionContainerMixin(Base) {
|
|
|
26871
26901
|
fillOpacity: 0.1
|
|
26872
26902
|
}
|
|
26873
26903
|
};
|
|
26874
|
-
static defaultEvents
|
|
26904
|
+
static defaultEvents(props) {
|
|
26875
26905
|
return [{
|
|
26876
26906
|
target: "parent",
|
|
26877
26907
|
eventHandlers: {
|
|
@@ -26895,7 +26925,7 @@ function selectionContainerMixin(Base) {
|
|
|
26895
26925
|
}
|
|
26896
26926
|
}
|
|
26897
26927
|
}];
|
|
26898
|
-
}
|
|
26928
|
+
}
|
|
26899
26929
|
getRect(props) {
|
|
26900
26930
|
const {
|
|
26901
26931
|
x1,
|
|
@@ -27832,7 +27862,7 @@ class VictoryTooltip extends (react__WEBPACK_IMPORTED_MODULE_4___default().Compo
|
|
|
27832
27862
|
flyoutComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement(_flyout__WEBPACK_IMPORTED_MODULE_6__.Flyout, null),
|
|
27833
27863
|
groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default().createElement("g", null)
|
|
27834
27864
|
};
|
|
27835
|
-
static defaultEvents
|
|
27865
|
+
static defaultEvents(props) {
|
|
27836
27866
|
const activate = props.activateData ? [{
|
|
27837
27867
|
target: "labels",
|
|
27838
27868
|
mutation: () => ({
|
|
@@ -27876,7 +27906,7 @@ class VictoryTooltip extends (react__WEBPACK_IMPORTED_MODULE_4___default().Compo
|
|
|
27876
27906
|
onTouchEnd: () => deactivate
|
|
27877
27907
|
}
|
|
27878
27908
|
}];
|
|
27879
|
-
}
|
|
27909
|
+
}
|
|
27880
27910
|
constructor(props) {
|
|
27881
27911
|
super(props);
|
|
27882
27912
|
this.id = props.id === undefined ? lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()("tooltip-") : props.id;
|
|
@@ -28729,7 +28759,7 @@ function voronoiContainerMixin(Base) {
|
|
|
28729
28759
|
labelComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(victory_tooltip__WEBPACK_IMPORTED_MODULE_4__.VictoryTooltip, null),
|
|
28730
28760
|
voronoiPadding: 5
|
|
28731
28761
|
};
|
|
28732
|
-
static defaultEvents
|
|
28762
|
+
static defaultEvents(props) {
|
|
28733
28763
|
return [{
|
|
28734
28764
|
target: "parent",
|
|
28735
28765
|
eventHandlers: {
|
|
@@ -28754,7 +28784,7 @@ function voronoiContainerMixin(Base) {
|
|
|
28754
28784
|
onMouseMove: () => null
|
|
28755
28785
|
}
|
|
28756
28786
|
}];
|
|
28757
|
-
}
|
|
28787
|
+
}
|
|
28758
28788
|
getDimension(props) {
|
|
28759
28789
|
const {
|
|
28760
28790
|
horizontal,
|
|
@@ -29405,7 +29435,9 @@ class VictoryVoronoiBase extends (react__WEBPACK_IMPORTED_MODULE_0___default().C
|
|
|
29405
29435
|
};
|
|
29406
29436
|
static getDomain = victory_core__WEBPACK_IMPORTED_MODULE_6__.getDomain;
|
|
29407
29437
|
static getData = victory_core__WEBPACK_IMPORTED_MODULE_7__.getData;
|
|
29408
|
-
static getBaseProps
|
|
29438
|
+
static getBaseProps(props) {
|
|
29439
|
+
return (0,_helper_methods__WEBPACK_IMPORTED_MODULE_8__.getBaseProps)(props, fallbackProps);
|
|
29440
|
+
}
|
|
29409
29441
|
static expectedComponents = ["dataComponent", "labelComponent", "groupComponent", "containerComponent"];
|
|
29410
29442
|
|
|
29411
29443
|
// Overridden in native versions
|
|
@@ -29599,7 +29631,7 @@ function zoomContainerMixin(Base) {
|
|
|
29599
29631
|
allowZoom: true,
|
|
29600
29632
|
zoomActive: false
|
|
29601
29633
|
};
|
|
29602
|
-
static defaultEvents
|
|
29634
|
+
static defaultEvents(props) {
|
|
29603
29635
|
return [{
|
|
29604
29636
|
target: "parent",
|
|
29605
29637
|
eventHandlers: {
|
|
@@ -29641,7 +29673,7 @@ function zoomContainerMixin(Base) {
|
|
|
29641
29673
|
})
|
|
29642
29674
|
}
|
|
29643
29675
|
}];
|
|
29644
|
-
}
|
|
29676
|
+
}
|
|
29645
29677
|
clipDataComponents(children, props) {
|
|
29646
29678
|
const {
|
|
29647
29679
|
scale,
|