victory-polar-axis 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-polar-axis
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
@@ -6711,6 +6711,432 @@ const TSpan = props => {
6711
6711
 
6712
6712
  /***/ }),
6713
6713
 
6714
+ /***/ "../../victory-core/es/victory-theme/clean.js":
6715
+ /*!****************************************************!*\
6716
+ !*** ../../victory-core/es/victory-theme/clean.js ***!
6717
+ \****************************************************/
6718
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6719
+
6720
+ "use strict";
6721
+ __webpack_require__.r(__webpack_exports__);
6722
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6723
+ /* harmony export */ "clean": function() { return /* binding */ clean; }
6724
+ /* harmony export */ });
6725
+ // *
6726
+ // * Colors
6727
+ // *
6728
+
6729
+ const gray = {
6730
+ white: "#FFFFFF",
6731
+ "50": "#FAFAFA",
6732
+ "100": "#F2F2F2",
6733
+ "200": "#E8E8E8",
6734
+ "300": "#E0E0E0",
6735
+ "400": "#D1D1D1",
6736
+ "500": "#757575",
6737
+ "600": "#5C5C5C",
6738
+ "700": "#424242",
6739
+ "800": "#333333",
6740
+ "900": "#292929",
6741
+ black: "#0F0F0F"
6742
+ };
6743
+ const yellow = {
6744
+ "100": "#FFEAB6",
6745
+ "300": "#FFD66E",
6746
+ "500": "#FCB400",
6747
+ "900": "#B87503"
6748
+ };
6749
+ const orange = {
6750
+ "100": "#FEE2D5",
6751
+ "300": "#FFA981",
6752
+ "500": "#FF6F2C",
6753
+ "900": "#D74D26"
6754
+ };
6755
+ const red = {
6756
+ "100": "#FFDCE5",
6757
+ "300": "#FF9EB7",
6758
+ "500": "#F82B60",
6759
+ "900": "#BA1E45"
6760
+ };
6761
+ const pink = {
6762
+ "100": "#FFDAF6",
6763
+ "300": "#F99DE2",
6764
+ "500": "#FF08C2",
6765
+ "900": "#B2158B"
6766
+ };
6767
+ const purple = {
6768
+ "100": "#EDE3FE",
6769
+ "300": "#CDB0FF",
6770
+ "500": "#8B46FF",
6771
+ "900": "#6B1CB0"
6772
+ };
6773
+ const blue = {
6774
+ "100": "#CFDFFF",
6775
+ "300": "#9CC7FF",
6776
+ "500": "#2D7FF9",
6777
+ "900": "#2750AE"
6778
+ };
6779
+ const cyan = {
6780
+ "100": "#D0F0FD",
6781
+ "300": "#77D1F3",
6782
+ "500": "#18BFFF",
6783
+ "900": "#0B76B7"
6784
+ };
6785
+ const teal = {
6786
+ "100": "#C2F5E9",
6787
+ "300": "#72DDC3",
6788
+ "500": "#20D9D2",
6789
+ "900": "#06A09B"
6790
+ };
6791
+ const green = {
6792
+ "100": "#D1F7C4",
6793
+ "300": "#93E088",
6794
+ "500": "#20C933",
6795
+ "900": "#338A17"
6796
+ };
6797
+ const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
6798
+ // *
6799
+ // * Typography
6800
+ // *
6801
+ const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
6802
+ const letterSpacing = "normal";
6803
+ const fontSize = 12;
6804
+ // *
6805
+ // * Layout
6806
+ // *
6807
+ const padding = 8;
6808
+ const baseProps = {
6809
+ width: 450,
6810
+ height: 300,
6811
+ padding: 50,
6812
+ colorScale: colors
6813
+ };
6814
+ // *
6815
+ // * Labels
6816
+ // *
6817
+ const baseLabelStyles = {
6818
+ fontFamily: sansSerif,
6819
+ fontSize,
6820
+ fontWeight: 300,
6821
+ letterSpacing,
6822
+ padding,
6823
+ fill: gray["900"],
6824
+ stroke: "transparent"
6825
+ };
6826
+ const centeredLabelStyles = Object.assign({
6827
+ textAnchor: "middle"
6828
+ }, baseLabelStyles);
6829
+
6830
+ // *
6831
+ // * Strokes
6832
+ // *
6833
+ const strokeDasharray = "10, 5";
6834
+ const strokeLinecap = "round";
6835
+ const strokeLinejoin = "round";
6836
+ const borderRadius = 1;
6837
+ // *
6838
+ // * Theme
6839
+ // *
6840
+ const clean = {
6841
+ area: Object.assign({
6842
+ style: {
6843
+ data: {
6844
+ fill: cyan["500"]
6845
+ },
6846
+ labels: baseLabelStyles
6847
+ }
6848
+ }, baseProps),
6849
+ axis: Object.assign({
6850
+ style: {
6851
+ axis: {
6852
+ fill: "transparent",
6853
+ stroke: gray["300"],
6854
+ strokeWidth: 1,
6855
+ strokeLinecap,
6856
+ strokeLinejoin
6857
+ },
6858
+ axisLabel: Object.assign({}, centeredLabelStyles, {
6859
+ padding,
6860
+ stroke: "transparent"
6861
+ }),
6862
+ grid: {
6863
+ fill: "none",
6864
+ stroke: "none",
6865
+ painterEvents: "painted"
6866
+ },
6867
+ ticks: {
6868
+ fill: "transparent",
6869
+ size: 5,
6870
+ stroke: "transparent"
6871
+ },
6872
+ tickLabels: baseLabelStyles
6873
+ }
6874
+ }, baseProps),
6875
+ polarAxis: Object.assign({
6876
+ style: {
6877
+ axis: {
6878
+ stroke: gray["300"]
6879
+ },
6880
+ grid: {
6881
+ stroke: gray["200"],
6882
+ strokeDasharray,
6883
+ strokeLinecap,
6884
+ strokeLinejoin,
6885
+ pointerEvents: "painted"
6886
+ },
6887
+ ticks: {
6888
+ fill: "transparent",
6889
+ size: 5,
6890
+ stroke: gray["200"],
6891
+ strokeWidth: 1,
6892
+ strokeLinecap,
6893
+ strokeLinejoin
6894
+ },
6895
+ tickLabels: baseLabelStyles
6896
+ }
6897
+ }),
6898
+ polarDependentAxis: Object.assign({
6899
+ style: {
6900
+ axis: {
6901
+ stroke: gray["300"]
6902
+ },
6903
+ grid: {
6904
+ stroke: gray["200"],
6905
+ strokeDasharray,
6906
+ strokeLinecap,
6907
+ strokeLinejoin,
6908
+ pointerEvents: "painted"
6909
+ },
6910
+ ticks: {
6911
+ fill: "transparent",
6912
+ size: 5,
6913
+ stroke: gray["200"],
6914
+ strokeWidth: 1,
6915
+ strokeLinecap,
6916
+ strokeLinejoin
6917
+ },
6918
+ tickLabels: baseLabelStyles
6919
+ }
6920
+ }),
6921
+ bar: Object.assign({
6922
+ style: {
6923
+ data: {
6924
+ fill: blue["500"],
6925
+ padding,
6926
+ strokeWidth: 0
6927
+ },
6928
+ labels: baseLabelStyles
6929
+ },
6930
+ cornerRadius: {
6931
+ top: borderRadius
6932
+ }
6933
+ }, baseProps),
6934
+ boxplot: Object.assign({
6935
+ style: {
6936
+ max: {
6937
+ padding,
6938
+ stroke: gray["400"],
6939
+ strokeWidth: 2
6940
+ },
6941
+ maxLabels: Object.assign({}, baseLabelStyles, {
6942
+ padding: 3
6943
+ }),
6944
+ median: {
6945
+ padding,
6946
+ stroke: gray.white,
6947
+ strokeWidth: 2
6948
+ },
6949
+ medianLabels: Object.assign({}, baseLabelStyles, {
6950
+ padding: 3
6951
+ }),
6952
+ min: {
6953
+ padding,
6954
+ stroke: gray["400"],
6955
+ strokeWidth: 2
6956
+ },
6957
+ minLabels: Object.assign({}, baseLabelStyles, {
6958
+ padding: 3
6959
+ }),
6960
+ q1: {
6961
+ padding,
6962
+ fill: teal["500"],
6963
+ rx: borderRadius
6964
+ },
6965
+ q1Labels: Object.assign({}, baseLabelStyles, {
6966
+ padding: 3
6967
+ }),
6968
+ q3: {
6969
+ padding,
6970
+ fill: teal["500"],
6971
+ rx: borderRadius
6972
+ },
6973
+ q3Labels: Object.assign({}, baseLabelStyles, {
6974
+ padding: 3
6975
+ })
6976
+ },
6977
+ boxWidth: 20
6978
+ }, baseProps),
6979
+ candlestick: Object.assign({
6980
+ style: {
6981
+ data: {
6982
+ stroke: gray["300"],
6983
+ strokeWidth: 0,
6984
+ rx: borderRadius
6985
+ },
6986
+ labels: Object.assign({}, baseLabelStyles, {
6987
+ padding: 5
6988
+ })
6989
+ },
6990
+ candleColors: {
6991
+ positive: teal["500"],
6992
+ negative: orange["500"]
6993
+ },
6994
+ wickStrokeWidth: 2
6995
+ }, baseProps),
6996
+ chart: baseProps,
6997
+ errorbar: Object.assign({
6998
+ borderWidth: 8,
6999
+ style: {
7000
+ data: {
7001
+ fill: "transparent",
7002
+ opacity: 1,
7003
+ stroke: gray["700"],
7004
+ strokeWidth: 2,
7005
+ strokeLinecap
7006
+ },
7007
+ labels: baseLabelStyles
7008
+ }
7009
+ }, baseProps),
7010
+ group: Object.assign({
7011
+ colorScale: colors
7012
+ }, baseProps),
7013
+ histogram: Object.assign({
7014
+ style: {
7015
+ data: {
7016
+ fill: cyan["500"],
7017
+ stroke: "transparent",
7018
+ strokeWidth: 0
7019
+ },
7020
+ labels: baseLabelStyles
7021
+ },
7022
+ binSpacing: 4,
7023
+ cornerRadius: {
7024
+ top: borderRadius
7025
+ }
7026
+ }, baseProps),
7027
+ label: baseLabelStyles,
7028
+ legend: {
7029
+ colorScale: colors,
7030
+ gutter: 10,
7031
+ orientation: "vertical",
7032
+ titleOrientation: "top",
7033
+ style: {
7034
+ data: {
7035
+ type: "circle"
7036
+ },
7037
+ labels: {
7038
+ ...baseLabelStyles,
7039
+ fontSize: 14
7040
+ },
7041
+ title: Object.assign({}, baseLabelStyles, {
7042
+ padding,
7043
+ fontSize: 20
7044
+ }),
7045
+ border: {
7046
+ stroke: gray["200"],
7047
+ strokeWidth: 2,
7048
+ padding: 16
7049
+ }
7050
+ }
7051
+ },
7052
+ line: Object.assign({
7053
+ style: {
7054
+ data: {
7055
+ fill: "transparent",
7056
+ opacity: 1,
7057
+ stroke: pink["500"],
7058
+ strokeWidth: 2,
7059
+ strokeLinecap,
7060
+ strokeLinejoin
7061
+ },
7062
+ labels: baseLabelStyles
7063
+ }
7064
+ }, baseProps),
7065
+ pie: Object.assign({
7066
+ style: {
7067
+ data: {
7068
+ padding,
7069
+ stroke: gray.white,
7070
+ strokeWidth: 1
7071
+ },
7072
+ labels: Object.assign({}, baseLabelStyles, {
7073
+ padding: 20
7074
+ })
7075
+ },
7076
+ colorScale: colors,
7077
+ cornerRadius: borderRadius
7078
+ }, baseProps),
7079
+ scatter: Object.assign({
7080
+ style: {
7081
+ data: {
7082
+ fill: purple["500"],
7083
+ opacity: 1,
7084
+ stroke: "transparent",
7085
+ strokeWidth: 0
7086
+ },
7087
+ labels: baseLabelStyles
7088
+ }
7089
+ }, baseProps),
7090
+ stack: Object.assign({
7091
+ colorScale: colors
7092
+ }, baseProps),
7093
+ tooltip: {
7094
+ style: Object.assign({}, baseLabelStyles, {
7095
+ padding: 0,
7096
+ pointerEvents: "none"
7097
+ }),
7098
+ flyoutStyle: {
7099
+ stroke: gray["500"],
7100
+ strokeWidth: 2,
7101
+ fill: gray.white,
7102
+ pointerEvents: "none"
7103
+ },
7104
+ flyoutPadding: {
7105
+ top: 8,
7106
+ bottom: 8,
7107
+ left: 16,
7108
+ right: 16
7109
+ },
7110
+ cornerRadius: borderRadius,
7111
+ pointerLength: 4
7112
+ },
7113
+ voronoi: Object.assign({
7114
+ style: {
7115
+ data: {
7116
+ fill: red["100"],
7117
+ stroke: red["500"],
7118
+ strokeWidth: 2
7119
+ },
7120
+ labels: Object.assign({}, baseLabelStyles, {
7121
+ padding: 5,
7122
+ pointerEvents: "none"
7123
+ }),
7124
+ flyout: {
7125
+ stroke: gray["900"],
7126
+ strokeWidth: 1,
7127
+ fill: gray["100"],
7128
+ pointerEvents: "none"
7129
+ },
7130
+ padding: {
7131
+ left: 2,
7132
+ bottom: 2
7133
+ }
7134
+ }
7135
+ }, baseProps)
7136
+ };
7137
+
7138
+ /***/ }),
7139
+
6714
7140
  /***/ "../../victory-core/es/victory-theme/grayscale.js":
6715
7141
  /*!********************************************************!*\
6716
7142
  !*** ../../victory-core/es/victory-theme/grayscale.js ***!
@@ -7291,12 +7717,15 @@ __webpack_require__.r(__webpack_exports__);
7291
7717
  /* harmony export */ });
7292
7718
  /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
7293
7719
  /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
7720
+ /* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
7721
+
7294
7722
 
7295
7723
 
7296
7724
 
7297
7725
  const VictoryTheme = {
7298
7726
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
7299
- material: _material__WEBPACK_IMPORTED_MODULE_1__.material
7727
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
7728
+ clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
7300
7729
  };
7301
7730
 
7302
7731
  /***/ }),
@@ -10556,6 +10985,7 @@ __webpack_require__.r(__webpack_exports__);
10556
10985
  /* eslint-disable no-magic-numbers */
10557
10986
  // Based on measuring specific character widths
10558
10987
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
10988
+ // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
10559
10989
  // prettier-ignore
10560
10990
  const fonts = {
10561
10991
  "American Typewriter": {
@@ -10614,6 +11044,10 @@ const fonts = {
10614
11044
  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],
10615
11045
  avg: 0.5116447368421051
10616
11046
  },
11047
+ "Inter": {
11048
+ 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],
11049
+ avg: 0.5624362664473683
11050
+ },
10617
11051
  "Montserrat": {
10618
11052
  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],
10619
11053
  avg: 0.571792763157895