victory-errorbar 37.1.0 → 37.1.2

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,13 @@
1
1
  # victory-errorbar
2
2
 
3
+ ## 37.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix victory-native container styles ([`eae3fe5dd`](https://github.com/FormidableLabs/victory/commit/eae3fe5dde175e68e146576655cb2e8054ad6456))
8
+
9
+ ## 37.1.1
10
+
3
11
  ## 37.1.0
4
12
 
5
13
  ### Minor Changes
@@ -6507,6 +6507,432 @@ const TSpan = props => {
6507
6507
 
6508
6508
  /***/ }),
6509
6509
 
6510
+ /***/ "../../victory-core/es/victory-theme/clean.js":
6511
+ /*!****************************************************!*\
6512
+ !*** ../../victory-core/es/victory-theme/clean.js ***!
6513
+ \****************************************************/
6514
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6515
+
6516
+ "use strict";
6517
+ __webpack_require__.r(__webpack_exports__);
6518
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6519
+ /* harmony export */ "clean": function() { return /* binding */ clean; }
6520
+ /* harmony export */ });
6521
+ // *
6522
+ // * Colors
6523
+ // *
6524
+
6525
+ const gray = {
6526
+ white: "#FFFFFF",
6527
+ "50": "#FAFAFA",
6528
+ "100": "#F2F2F2",
6529
+ "200": "#E8E8E8",
6530
+ "300": "#E0E0E0",
6531
+ "400": "#D1D1D1",
6532
+ "500": "#757575",
6533
+ "600": "#5C5C5C",
6534
+ "700": "#424242",
6535
+ "800": "#333333",
6536
+ "900": "#292929",
6537
+ black: "#0F0F0F"
6538
+ };
6539
+ const yellow = {
6540
+ "100": "#FFEAB6",
6541
+ "300": "#FFD66E",
6542
+ "500": "#FCB400",
6543
+ "900": "#B87503"
6544
+ };
6545
+ const orange = {
6546
+ "100": "#FEE2D5",
6547
+ "300": "#FFA981",
6548
+ "500": "#FF6F2C",
6549
+ "900": "#D74D26"
6550
+ };
6551
+ const red = {
6552
+ "100": "#FFDCE5",
6553
+ "300": "#FF9EB7",
6554
+ "500": "#F82B60",
6555
+ "900": "#BA1E45"
6556
+ };
6557
+ const pink = {
6558
+ "100": "#FFDAF6",
6559
+ "300": "#F99DE2",
6560
+ "500": "#FF08C2",
6561
+ "900": "#B2158B"
6562
+ };
6563
+ const purple = {
6564
+ "100": "#EDE3FE",
6565
+ "300": "#CDB0FF",
6566
+ "500": "#8B46FF",
6567
+ "900": "#6B1CB0"
6568
+ };
6569
+ const blue = {
6570
+ "100": "#CFDFFF",
6571
+ "300": "#9CC7FF",
6572
+ "500": "#2D7FF9",
6573
+ "900": "#2750AE"
6574
+ };
6575
+ const cyan = {
6576
+ "100": "#D0F0FD",
6577
+ "300": "#77D1F3",
6578
+ "500": "#18BFFF",
6579
+ "900": "#0B76B7"
6580
+ };
6581
+ const teal = {
6582
+ "100": "#C2F5E9",
6583
+ "300": "#72DDC3",
6584
+ "500": "#20D9D2",
6585
+ "900": "#06A09B"
6586
+ };
6587
+ const green = {
6588
+ "100": "#D1F7C4",
6589
+ "300": "#93E088",
6590
+ "500": "#20C933",
6591
+ "900": "#338A17"
6592
+ };
6593
+ const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
6594
+ // *
6595
+ // * Typography
6596
+ // *
6597
+ const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
6598
+ const letterSpacing = "normal";
6599
+ const fontSize = 12;
6600
+ // *
6601
+ // * Layout
6602
+ // *
6603
+ const padding = 8;
6604
+ const baseProps = {
6605
+ width: 450,
6606
+ height: 300,
6607
+ padding: 50,
6608
+ colorScale: colors
6609
+ };
6610
+ // *
6611
+ // * Labels
6612
+ // *
6613
+ const baseLabelStyles = {
6614
+ fontFamily: sansSerif,
6615
+ fontSize,
6616
+ fontWeight: 300,
6617
+ letterSpacing,
6618
+ padding,
6619
+ fill: gray["900"],
6620
+ stroke: "transparent"
6621
+ };
6622
+ const centeredLabelStyles = Object.assign({
6623
+ textAnchor: "middle"
6624
+ }, baseLabelStyles);
6625
+
6626
+ // *
6627
+ // * Strokes
6628
+ // *
6629
+ const strokeDasharray = "10, 5";
6630
+ const strokeLinecap = "round";
6631
+ const strokeLinejoin = "round";
6632
+ const borderRadius = 1;
6633
+ // *
6634
+ // * Theme
6635
+ // *
6636
+ const clean = {
6637
+ area: Object.assign({
6638
+ style: {
6639
+ data: {
6640
+ fill: cyan["500"]
6641
+ },
6642
+ labels: baseLabelStyles
6643
+ }
6644
+ }, baseProps),
6645
+ axis: Object.assign({
6646
+ style: {
6647
+ axis: {
6648
+ fill: "transparent",
6649
+ stroke: gray["300"],
6650
+ strokeWidth: 1,
6651
+ strokeLinecap,
6652
+ strokeLinejoin
6653
+ },
6654
+ axisLabel: Object.assign({}, centeredLabelStyles, {
6655
+ padding,
6656
+ stroke: "transparent"
6657
+ }),
6658
+ grid: {
6659
+ fill: "none",
6660
+ stroke: "none",
6661
+ painterEvents: "painted"
6662
+ },
6663
+ ticks: {
6664
+ fill: "transparent",
6665
+ size: 5,
6666
+ stroke: "transparent"
6667
+ },
6668
+ tickLabels: baseLabelStyles
6669
+ }
6670
+ }, baseProps),
6671
+ polarAxis: Object.assign({
6672
+ style: {
6673
+ axis: {
6674
+ stroke: gray["300"]
6675
+ },
6676
+ grid: {
6677
+ stroke: gray["200"],
6678
+ strokeDasharray,
6679
+ strokeLinecap,
6680
+ strokeLinejoin,
6681
+ pointerEvents: "painted"
6682
+ },
6683
+ ticks: {
6684
+ fill: "transparent",
6685
+ size: 5,
6686
+ stroke: gray["200"],
6687
+ strokeWidth: 1,
6688
+ strokeLinecap,
6689
+ strokeLinejoin
6690
+ },
6691
+ tickLabels: baseLabelStyles
6692
+ }
6693
+ }),
6694
+ polarDependentAxis: Object.assign({
6695
+ style: {
6696
+ axis: {
6697
+ stroke: gray["300"]
6698
+ },
6699
+ grid: {
6700
+ stroke: gray["200"],
6701
+ strokeDasharray,
6702
+ strokeLinecap,
6703
+ strokeLinejoin,
6704
+ pointerEvents: "painted"
6705
+ },
6706
+ ticks: {
6707
+ fill: "transparent",
6708
+ size: 5,
6709
+ stroke: gray["200"],
6710
+ strokeWidth: 1,
6711
+ strokeLinecap,
6712
+ strokeLinejoin
6713
+ },
6714
+ tickLabels: baseLabelStyles
6715
+ }
6716
+ }),
6717
+ bar: Object.assign({
6718
+ style: {
6719
+ data: {
6720
+ fill: blue["500"],
6721
+ padding,
6722
+ strokeWidth: 0
6723
+ },
6724
+ labels: baseLabelStyles
6725
+ },
6726
+ cornerRadius: {
6727
+ top: borderRadius
6728
+ }
6729
+ }, baseProps),
6730
+ boxplot: Object.assign({
6731
+ style: {
6732
+ max: {
6733
+ padding,
6734
+ stroke: gray["400"],
6735
+ strokeWidth: 2
6736
+ },
6737
+ maxLabels: Object.assign({}, baseLabelStyles, {
6738
+ padding: 3
6739
+ }),
6740
+ median: {
6741
+ padding,
6742
+ stroke: gray.white,
6743
+ strokeWidth: 2
6744
+ },
6745
+ medianLabels: Object.assign({}, baseLabelStyles, {
6746
+ padding: 3
6747
+ }),
6748
+ min: {
6749
+ padding,
6750
+ stroke: gray["400"],
6751
+ strokeWidth: 2
6752
+ },
6753
+ minLabels: Object.assign({}, baseLabelStyles, {
6754
+ padding: 3
6755
+ }),
6756
+ q1: {
6757
+ padding,
6758
+ fill: teal["500"],
6759
+ rx: borderRadius
6760
+ },
6761
+ q1Labels: Object.assign({}, baseLabelStyles, {
6762
+ padding: 3
6763
+ }),
6764
+ q3: {
6765
+ padding,
6766
+ fill: teal["500"],
6767
+ rx: borderRadius
6768
+ },
6769
+ q3Labels: Object.assign({}, baseLabelStyles, {
6770
+ padding: 3
6771
+ })
6772
+ },
6773
+ boxWidth: 20
6774
+ }, baseProps),
6775
+ candlestick: Object.assign({
6776
+ style: {
6777
+ data: {
6778
+ stroke: gray["300"],
6779
+ strokeWidth: 0,
6780
+ rx: borderRadius
6781
+ },
6782
+ labels: Object.assign({}, baseLabelStyles, {
6783
+ padding: 5
6784
+ })
6785
+ },
6786
+ candleColors: {
6787
+ positive: teal["500"],
6788
+ negative: orange["500"]
6789
+ },
6790
+ wickStrokeWidth: 2
6791
+ }, baseProps),
6792
+ chart: baseProps,
6793
+ errorbar: Object.assign({
6794
+ borderWidth: 8,
6795
+ style: {
6796
+ data: {
6797
+ fill: "transparent",
6798
+ opacity: 1,
6799
+ stroke: gray["700"],
6800
+ strokeWidth: 2,
6801
+ strokeLinecap
6802
+ },
6803
+ labels: baseLabelStyles
6804
+ }
6805
+ }, baseProps),
6806
+ group: Object.assign({
6807
+ colorScale: colors
6808
+ }, baseProps),
6809
+ histogram: Object.assign({
6810
+ style: {
6811
+ data: {
6812
+ fill: cyan["500"],
6813
+ stroke: "transparent",
6814
+ strokeWidth: 0
6815
+ },
6816
+ labels: baseLabelStyles
6817
+ },
6818
+ binSpacing: 4,
6819
+ cornerRadius: {
6820
+ top: borderRadius
6821
+ }
6822
+ }, baseProps),
6823
+ label: baseLabelStyles,
6824
+ legend: {
6825
+ colorScale: colors,
6826
+ gutter: 10,
6827
+ orientation: "vertical",
6828
+ titleOrientation: "top",
6829
+ style: {
6830
+ data: {
6831
+ type: "circle"
6832
+ },
6833
+ labels: {
6834
+ ...baseLabelStyles,
6835
+ fontSize: 14
6836
+ },
6837
+ title: Object.assign({}, baseLabelStyles, {
6838
+ padding,
6839
+ fontSize: 20
6840
+ }),
6841
+ border: {
6842
+ stroke: gray["200"],
6843
+ strokeWidth: 2,
6844
+ padding: 16
6845
+ }
6846
+ }
6847
+ },
6848
+ line: Object.assign({
6849
+ style: {
6850
+ data: {
6851
+ fill: "transparent",
6852
+ opacity: 1,
6853
+ stroke: pink["500"],
6854
+ strokeWidth: 2,
6855
+ strokeLinecap,
6856
+ strokeLinejoin
6857
+ },
6858
+ labels: baseLabelStyles
6859
+ }
6860
+ }, baseProps),
6861
+ pie: Object.assign({
6862
+ style: {
6863
+ data: {
6864
+ padding,
6865
+ stroke: gray.white,
6866
+ strokeWidth: 1
6867
+ },
6868
+ labels: Object.assign({}, baseLabelStyles, {
6869
+ padding: 20
6870
+ })
6871
+ },
6872
+ colorScale: colors,
6873
+ cornerRadius: borderRadius
6874
+ }, baseProps),
6875
+ scatter: Object.assign({
6876
+ style: {
6877
+ data: {
6878
+ fill: purple["500"],
6879
+ opacity: 1,
6880
+ stroke: "transparent",
6881
+ strokeWidth: 0
6882
+ },
6883
+ labels: baseLabelStyles
6884
+ }
6885
+ }, baseProps),
6886
+ stack: Object.assign({
6887
+ colorScale: colors
6888
+ }, baseProps),
6889
+ tooltip: {
6890
+ style: Object.assign({}, baseLabelStyles, {
6891
+ padding: 0,
6892
+ pointerEvents: "none"
6893
+ }),
6894
+ flyoutStyle: {
6895
+ stroke: gray["500"],
6896
+ strokeWidth: 2,
6897
+ fill: gray.white,
6898
+ pointerEvents: "none"
6899
+ },
6900
+ flyoutPadding: {
6901
+ top: 8,
6902
+ bottom: 8,
6903
+ left: 16,
6904
+ right: 16
6905
+ },
6906
+ cornerRadius: borderRadius,
6907
+ pointerLength: 4
6908
+ },
6909
+ voronoi: Object.assign({
6910
+ style: {
6911
+ data: {
6912
+ fill: red["100"],
6913
+ stroke: red["500"],
6914
+ strokeWidth: 2
6915
+ },
6916
+ labels: Object.assign({}, baseLabelStyles, {
6917
+ padding: 5,
6918
+ pointerEvents: "none"
6919
+ }),
6920
+ flyout: {
6921
+ stroke: gray["900"],
6922
+ strokeWidth: 1,
6923
+ fill: gray["100"],
6924
+ pointerEvents: "none"
6925
+ },
6926
+ padding: {
6927
+ left: 2,
6928
+ bottom: 2
6929
+ }
6930
+ }
6931
+ }, baseProps)
6932
+ };
6933
+
6934
+ /***/ }),
6935
+
6510
6936
  /***/ "../../victory-core/es/victory-theme/grayscale.js":
6511
6937
  /*!********************************************************!*\
6512
6938
  !*** ../../victory-core/es/victory-theme/grayscale.js ***!
@@ -7087,12 +7513,15 @@ __webpack_require__.r(__webpack_exports__);
7087
7513
  /* harmony export */ });
7088
7514
  /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
7089
7515
  /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
7516
+ /* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
7517
+
7090
7518
 
7091
7519
 
7092
7520
 
7093
7521
  const VictoryTheme = {
7094
7522
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
7095
- material: _material__WEBPACK_IMPORTED_MODULE_1__.material
7523
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
7524
+ clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
7096
7525
  };
7097
7526
 
7098
7527
  /***/ }),
@@ -10073,6 +10502,7 @@ __webpack_require__.r(__webpack_exports__);
10073
10502
  /* eslint-disable no-magic-numbers */
10074
10503
  // Based on measuring specific character widths
10075
10504
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
10505
+ // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
10076
10506
  // prettier-ignore
10077
10507
  const fonts = {
10078
10508
  "American Typewriter": {
@@ -10131,6 +10561,10 @@ const fonts = {
10131
10561
  widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2359375, 0.2234375, 0.3921875, 0.7125, 0.49375, 0.8859375, 0.771875, 0.2125, 0.3078125, 0.309375, 0.375, 0.4234375, 0.234375, 0.3125, 0.234375, 0.3, 0.5828125, 0.365625, 0.434375, 0.3921875, 0.5234375, 0.3984375, 0.5125, 0.4328125, 0.46875, 0.5125, 0.234375, 0.234375, 0.515625, 0.4234375, 0.515625, 0.340625, 0.7609375, 0.7359375, 0.6359375, 0.721875, 0.8125, 0.6375, 0.5875, 0.8078125, 0.853125, 0.4296875, 0.503125, 0.78125, 0.609375, 0.9609375, 0.8515625, 0.8140625, 0.6125, 0.8140625, 0.71875, 0.49375, 0.7125, 0.76875, 0.771875, 1.125, 0.7765625, 0.7734375, 0.65625, 0.321875, 0.3078125, 0.321875, 0.3546875, 0.5, 0.3375, 0.446875, 0.5359375, 0.45, 0.5296875, 0.4546875, 0.425, 0.4921875, 0.54375, 0.2671875, 0.240625, 0.5390625, 0.25, 0.815625, 0.5375, 0.5234375, 0.5390625, 0.5421875, 0.365625, 0.36875, 0.35625, 0.5171875, 0.5015625, 0.75, 0.5, 0.509375, 0.44375, 0.2421875, 0.14375, 0.2421875, 0.35],
10132
10562
  avg: 0.5116447368421051
10133
10563
  },
10564
+ "Inter": {
10565
+ widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2796875, 0.2890625, 0.4671875, 0.634375, 0.6421875, 0.9828125, 0.6453125, 0.3, 0.365625, 0.365625, 0.5015625, 0.6625, 0.2890625, 0.4609375, 0.2890625, 0.3609375, 0.63125, 0.4078125, 0.6109375, 0.61875, 0.646875, 0.59375, 0.6203125, 0.5671875, 0.61875, 0.6203125, 0.2890625, 0.303125, 0.6625, 0.6625, 0.6625, 0.5125, 0.9671875, 0.690625, 0.6546875, 0.73125, 0.721875, 0.6015625, 0.590625, 0.746875, 0.74375, 0.26875, 0.571875, 0.671875, 0.565625, 0.9046875, 0.7546875, 0.765625, 0.6390625, 0.765625, 0.64375, 0.6421875, 0.646875, 0.7453125, 0.690625, 0.9859375, 0.6828125, 0.6796875, 0.6296875, 0.365625, 0.3609375, 0.365625, 0.471875, 0.45625, 0.3234375, 0.5625, 0.6125, 0.571875, 0.6125, 0.584375, 0.3703125, 0.6140625, 0.5921875, 0.2421875, 0.2548828125, 0.55, 0.2421875, 0.8765625, 0.5921875, 0.6, 0.6125, 0.6125, 0.3765625, 0.528125, 0.328125, 0.5921875, 0.5625, 0.81875, 0.546875, 0.5625, 0.553125, 0.4265625, 0.3328125, 0.4265625, 0.6625],
10566
+ avg: 0.5624362664473683
10567
+ },
10134
10568
  "Montserrat": {
10135
10569
  widths: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0.2625, 0.2609375, 0.3734375, 0.696875, 0.615625, 0.8296875, 0.6703125, 0.203125, 0.3296875, 0.3296875, 0.3875, 0.575, 0.2125, 0.3828125, 0.2125, 0.3953125, 0.6625, 0.3625, 0.56875, 0.5640625, 0.6625, 0.5671875, 0.609375, 0.5890625, 0.6390625, 0.609375, 0.2125, 0.2125, 0.575, 0.575, 0.575, 0.5671875, 1.034375, 0.7171875, 0.7546875, 0.7203125, 0.8265625, 0.6703125, 0.634375, 0.7734375, 0.8140625, 0.303125, 0.5078125, 0.7125, 0.5890625, 0.95625, 0.8140625, 0.8390625, 0.71875, 0.8390625, 0.7234375, 0.615625, 0.575, 0.7921875, 0.6984375, 1.1125, 0.65625, 0.6359375, 0.6515625, 0.31875, 0.396875, 0.31875, 0.5765625, 0.5, 0.6, 0.590625, 0.678125, 0.5640625, 0.678125, 0.6046875, 0.375, 0.6875, 0.678125, 0.2703125, 0.365625, 0.6015625, 0.2703125, 1.0625, 0.678125, 0.628125, 0.678125, 0.678125, 0.4015625, 0.4890625, 0.40625, 0.6734375, 0.5421875, 0.8796875, 0.534375, 0.5671875, 0.5125, 0.334375, 0.2953125, 0.334375, 0.575],
10136
10570
  avg: 0.571792763157895