victory-area 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-area
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
@@ -6497,6 +6497,432 @@ const TSpan = props => {
6497
6497
 
6498
6498
  /***/ }),
6499
6499
 
6500
+ /***/ "../../victory-core/es/victory-theme/clean.js":
6501
+ /*!****************************************************!*\
6502
+ !*** ../../victory-core/es/victory-theme/clean.js ***!
6503
+ \****************************************************/
6504
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6505
+
6506
+ "use strict";
6507
+ __webpack_require__.r(__webpack_exports__);
6508
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6509
+ /* harmony export */ "clean": function() { return /* binding */ clean; }
6510
+ /* harmony export */ });
6511
+ // *
6512
+ // * Colors
6513
+ // *
6514
+
6515
+ const gray = {
6516
+ white: "#FFFFFF",
6517
+ "50": "#FAFAFA",
6518
+ "100": "#F2F2F2",
6519
+ "200": "#E8E8E8",
6520
+ "300": "#E0E0E0",
6521
+ "400": "#D1D1D1",
6522
+ "500": "#757575",
6523
+ "600": "#5C5C5C",
6524
+ "700": "#424242",
6525
+ "800": "#333333",
6526
+ "900": "#292929",
6527
+ black: "#0F0F0F"
6528
+ };
6529
+ const yellow = {
6530
+ "100": "#FFEAB6",
6531
+ "300": "#FFD66E",
6532
+ "500": "#FCB400",
6533
+ "900": "#B87503"
6534
+ };
6535
+ const orange = {
6536
+ "100": "#FEE2D5",
6537
+ "300": "#FFA981",
6538
+ "500": "#FF6F2C",
6539
+ "900": "#D74D26"
6540
+ };
6541
+ const red = {
6542
+ "100": "#FFDCE5",
6543
+ "300": "#FF9EB7",
6544
+ "500": "#F82B60",
6545
+ "900": "#BA1E45"
6546
+ };
6547
+ const pink = {
6548
+ "100": "#FFDAF6",
6549
+ "300": "#F99DE2",
6550
+ "500": "#FF08C2",
6551
+ "900": "#B2158B"
6552
+ };
6553
+ const purple = {
6554
+ "100": "#EDE3FE",
6555
+ "300": "#CDB0FF",
6556
+ "500": "#8B46FF",
6557
+ "900": "#6B1CB0"
6558
+ };
6559
+ const blue = {
6560
+ "100": "#CFDFFF",
6561
+ "300": "#9CC7FF",
6562
+ "500": "#2D7FF9",
6563
+ "900": "#2750AE"
6564
+ };
6565
+ const cyan = {
6566
+ "100": "#D0F0FD",
6567
+ "300": "#77D1F3",
6568
+ "500": "#18BFFF",
6569
+ "900": "#0B76B7"
6570
+ };
6571
+ const teal = {
6572
+ "100": "#C2F5E9",
6573
+ "300": "#72DDC3",
6574
+ "500": "#20D9D2",
6575
+ "900": "#06A09B"
6576
+ };
6577
+ const green = {
6578
+ "100": "#D1F7C4",
6579
+ "300": "#93E088",
6580
+ "500": "#20C933",
6581
+ "900": "#338A17"
6582
+ };
6583
+ const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
6584
+ // *
6585
+ // * Typography
6586
+ // *
6587
+ const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
6588
+ const letterSpacing = "normal";
6589
+ const fontSize = 12;
6590
+ // *
6591
+ // * Layout
6592
+ // *
6593
+ const padding = 8;
6594
+ const baseProps = {
6595
+ width: 450,
6596
+ height: 300,
6597
+ padding: 50,
6598
+ colorScale: colors
6599
+ };
6600
+ // *
6601
+ // * Labels
6602
+ // *
6603
+ const baseLabelStyles = {
6604
+ fontFamily: sansSerif,
6605
+ fontSize,
6606
+ fontWeight: 300,
6607
+ letterSpacing,
6608
+ padding,
6609
+ fill: gray["900"],
6610
+ stroke: "transparent"
6611
+ };
6612
+ const centeredLabelStyles = Object.assign({
6613
+ textAnchor: "middle"
6614
+ }, baseLabelStyles);
6615
+
6616
+ // *
6617
+ // * Strokes
6618
+ // *
6619
+ const strokeDasharray = "10, 5";
6620
+ const strokeLinecap = "round";
6621
+ const strokeLinejoin = "round";
6622
+ const borderRadius = 1;
6623
+ // *
6624
+ // * Theme
6625
+ // *
6626
+ const clean = {
6627
+ area: Object.assign({
6628
+ style: {
6629
+ data: {
6630
+ fill: cyan["500"]
6631
+ },
6632
+ labels: baseLabelStyles
6633
+ }
6634
+ }, baseProps),
6635
+ axis: Object.assign({
6636
+ style: {
6637
+ axis: {
6638
+ fill: "transparent",
6639
+ stroke: gray["300"],
6640
+ strokeWidth: 1,
6641
+ strokeLinecap,
6642
+ strokeLinejoin
6643
+ },
6644
+ axisLabel: Object.assign({}, centeredLabelStyles, {
6645
+ padding,
6646
+ stroke: "transparent"
6647
+ }),
6648
+ grid: {
6649
+ fill: "none",
6650
+ stroke: "none",
6651
+ painterEvents: "painted"
6652
+ },
6653
+ ticks: {
6654
+ fill: "transparent",
6655
+ size: 5,
6656
+ stroke: "transparent"
6657
+ },
6658
+ tickLabels: baseLabelStyles
6659
+ }
6660
+ }, baseProps),
6661
+ polarAxis: Object.assign({
6662
+ style: {
6663
+ axis: {
6664
+ stroke: gray["300"]
6665
+ },
6666
+ grid: {
6667
+ stroke: gray["200"],
6668
+ strokeDasharray,
6669
+ strokeLinecap,
6670
+ strokeLinejoin,
6671
+ pointerEvents: "painted"
6672
+ },
6673
+ ticks: {
6674
+ fill: "transparent",
6675
+ size: 5,
6676
+ stroke: gray["200"],
6677
+ strokeWidth: 1,
6678
+ strokeLinecap,
6679
+ strokeLinejoin
6680
+ },
6681
+ tickLabels: baseLabelStyles
6682
+ }
6683
+ }),
6684
+ polarDependentAxis: Object.assign({
6685
+ style: {
6686
+ axis: {
6687
+ stroke: gray["300"]
6688
+ },
6689
+ grid: {
6690
+ stroke: gray["200"],
6691
+ strokeDasharray,
6692
+ strokeLinecap,
6693
+ strokeLinejoin,
6694
+ pointerEvents: "painted"
6695
+ },
6696
+ ticks: {
6697
+ fill: "transparent",
6698
+ size: 5,
6699
+ stroke: gray["200"],
6700
+ strokeWidth: 1,
6701
+ strokeLinecap,
6702
+ strokeLinejoin
6703
+ },
6704
+ tickLabels: baseLabelStyles
6705
+ }
6706
+ }),
6707
+ bar: Object.assign({
6708
+ style: {
6709
+ data: {
6710
+ fill: blue["500"],
6711
+ padding,
6712
+ strokeWidth: 0
6713
+ },
6714
+ labels: baseLabelStyles
6715
+ },
6716
+ cornerRadius: {
6717
+ top: borderRadius
6718
+ }
6719
+ }, baseProps),
6720
+ boxplot: Object.assign({
6721
+ style: {
6722
+ max: {
6723
+ padding,
6724
+ stroke: gray["400"],
6725
+ strokeWidth: 2
6726
+ },
6727
+ maxLabels: Object.assign({}, baseLabelStyles, {
6728
+ padding: 3
6729
+ }),
6730
+ median: {
6731
+ padding,
6732
+ stroke: gray.white,
6733
+ strokeWidth: 2
6734
+ },
6735
+ medianLabels: Object.assign({}, baseLabelStyles, {
6736
+ padding: 3
6737
+ }),
6738
+ min: {
6739
+ padding,
6740
+ stroke: gray["400"],
6741
+ strokeWidth: 2
6742
+ },
6743
+ minLabels: Object.assign({}, baseLabelStyles, {
6744
+ padding: 3
6745
+ }),
6746
+ q1: {
6747
+ padding,
6748
+ fill: teal["500"],
6749
+ rx: borderRadius
6750
+ },
6751
+ q1Labels: Object.assign({}, baseLabelStyles, {
6752
+ padding: 3
6753
+ }),
6754
+ q3: {
6755
+ padding,
6756
+ fill: teal["500"],
6757
+ rx: borderRadius
6758
+ },
6759
+ q3Labels: Object.assign({}, baseLabelStyles, {
6760
+ padding: 3
6761
+ })
6762
+ },
6763
+ boxWidth: 20
6764
+ }, baseProps),
6765
+ candlestick: Object.assign({
6766
+ style: {
6767
+ data: {
6768
+ stroke: gray["300"],
6769
+ strokeWidth: 0,
6770
+ rx: borderRadius
6771
+ },
6772
+ labels: Object.assign({}, baseLabelStyles, {
6773
+ padding: 5
6774
+ })
6775
+ },
6776
+ candleColors: {
6777
+ positive: teal["500"],
6778
+ negative: orange["500"]
6779
+ },
6780
+ wickStrokeWidth: 2
6781
+ }, baseProps),
6782
+ chart: baseProps,
6783
+ errorbar: Object.assign({
6784
+ borderWidth: 8,
6785
+ style: {
6786
+ data: {
6787
+ fill: "transparent",
6788
+ opacity: 1,
6789
+ stroke: gray["700"],
6790
+ strokeWidth: 2,
6791
+ strokeLinecap
6792
+ },
6793
+ labels: baseLabelStyles
6794
+ }
6795
+ }, baseProps),
6796
+ group: Object.assign({
6797
+ colorScale: colors
6798
+ }, baseProps),
6799
+ histogram: Object.assign({
6800
+ style: {
6801
+ data: {
6802
+ fill: cyan["500"],
6803
+ stroke: "transparent",
6804
+ strokeWidth: 0
6805
+ },
6806
+ labels: baseLabelStyles
6807
+ },
6808
+ binSpacing: 4,
6809
+ cornerRadius: {
6810
+ top: borderRadius
6811
+ }
6812
+ }, baseProps),
6813
+ label: baseLabelStyles,
6814
+ legend: {
6815
+ colorScale: colors,
6816
+ gutter: 10,
6817
+ orientation: "vertical",
6818
+ titleOrientation: "top",
6819
+ style: {
6820
+ data: {
6821
+ type: "circle"
6822
+ },
6823
+ labels: {
6824
+ ...baseLabelStyles,
6825
+ fontSize: 14
6826
+ },
6827
+ title: Object.assign({}, baseLabelStyles, {
6828
+ padding,
6829
+ fontSize: 20
6830
+ }),
6831
+ border: {
6832
+ stroke: gray["200"],
6833
+ strokeWidth: 2,
6834
+ padding: 16
6835
+ }
6836
+ }
6837
+ },
6838
+ line: Object.assign({
6839
+ style: {
6840
+ data: {
6841
+ fill: "transparent",
6842
+ opacity: 1,
6843
+ stroke: pink["500"],
6844
+ strokeWidth: 2,
6845
+ strokeLinecap,
6846
+ strokeLinejoin
6847
+ },
6848
+ labels: baseLabelStyles
6849
+ }
6850
+ }, baseProps),
6851
+ pie: Object.assign({
6852
+ style: {
6853
+ data: {
6854
+ padding,
6855
+ stroke: gray.white,
6856
+ strokeWidth: 1
6857
+ },
6858
+ labels: Object.assign({}, baseLabelStyles, {
6859
+ padding: 20
6860
+ })
6861
+ },
6862
+ colorScale: colors,
6863
+ cornerRadius: borderRadius
6864
+ }, baseProps),
6865
+ scatter: Object.assign({
6866
+ style: {
6867
+ data: {
6868
+ fill: purple["500"],
6869
+ opacity: 1,
6870
+ stroke: "transparent",
6871
+ strokeWidth: 0
6872
+ },
6873
+ labels: baseLabelStyles
6874
+ }
6875
+ }, baseProps),
6876
+ stack: Object.assign({
6877
+ colorScale: colors
6878
+ }, baseProps),
6879
+ tooltip: {
6880
+ style: Object.assign({}, baseLabelStyles, {
6881
+ padding: 0,
6882
+ pointerEvents: "none"
6883
+ }),
6884
+ flyoutStyle: {
6885
+ stroke: gray["500"],
6886
+ strokeWidth: 2,
6887
+ fill: gray.white,
6888
+ pointerEvents: "none"
6889
+ },
6890
+ flyoutPadding: {
6891
+ top: 8,
6892
+ bottom: 8,
6893
+ left: 16,
6894
+ right: 16
6895
+ },
6896
+ cornerRadius: borderRadius,
6897
+ pointerLength: 4
6898
+ },
6899
+ voronoi: Object.assign({
6900
+ style: {
6901
+ data: {
6902
+ fill: red["100"],
6903
+ stroke: red["500"],
6904
+ strokeWidth: 2
6905
+ },
6906
+ labels: Object.assign({}, baseLabelStyles, {
6907
+ padding: 5,
6908
+ pointerEvents: "none"
6909
+ }),
6910
+ flyout: {
6911
+ stroke: gray["900"],
6912
+ strokeWidth: 1,
6913
+ fill: gray["100"],
6914
+ pointerEvents: "none"
6915
+ },
6916
+ padding: {
6917
+ left: 2,
6918
+ bottom: 2
6919
+ }
6920
+ }
6921
+ }, baseProps)
6922
+ };
6923
+
6924
+ /***/ }),
6925
+
6500
6926
  /***/ "../../victory-core/es/victory-theme/grayscale.js":
6501
6927
  /*!********************************************************!*\
6502
6928
  !*** ../../victory-core/es/victory-theme/grayscale.js ***!
@@ -7077,12 +7503,15 @@ __webpack_require__.r(__webpack_exports__);
7077
7503
  /* harmony export */ });
7078
7504
  /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
7079
7505
  /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
7506
+ /* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
7507
+
7080
7508
 
7081
7509
 
7082
7510
 
7083
7511
  const VictoryTheme = {
7084
7512
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
7085
- material: _material__WEBPACK_IMPORTED_MODULE_1__.material
7513
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
7514
+ clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
7086
7515
  };
7087
7516
 
7088
7517
  /***/ }),
@@ -10129,6 +10558,7 @@ __webpack_require__.r(__webpack_exports__);
10129
10558
  /* eslint-disable no-magic-numbers */
10130
10559
  // Based on measuring specific character widths
10131
10560
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
10561
+ // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
10132
10562
  // prettier-ignore
10133
10563
  const fonts = {
10134
10564
  "American Typewriter": {
@@ -10187,6 +10617,10 @@ const fonts = {
10187
10617
  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],
10188
10618
  avg: 0.5116447368421051
10189
10619
  },
10620
+ "Inter": {
10621
+ 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],
10622
+ avg: 0.5624362664473683
10623
+ },
10190
10624
  "Montserrat": {
10191
10625
  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],
10192
10626
  avg: 0.571792763157895