victory-box-plot 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-box-plot
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
@@ -6904,6 +6904,432 @@ const Whisker = initialProps => {
6904
6904
 
6905
6905
  /***/ }),
6906
6906
 
6907
+ /***/ "../../victory-core/es/victory-theme/clean.js":
6908
+ /*!****************************************************!*\
6909
+ !*** ../../victory-core/es/victory-theme/clean.js ***!
6910
+ \****************************************************/
6911
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6912
+
6913
+ "use strict";
6914
+ __webpack_require__.r(__webpack_exports__);
6915
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6916
+ /* harmony export */ "clean": function() { return /* binding */ clean; }
6917
+ /* harmony export */ });
6918
+ // *
6919
+ // * Colors
6920
+ // *
6921
+
6922
+ const gray = {
6923
+ white: "#FFFFFF",
6924
+ "50": "#FAFAFA",
6925
+ "100": "#F2F2F2",
6926
+ "200": "#E8E8E8",
6927
+ "300": "#E0E0E0",
6928
+ "400": "#D1D1D1",
6929
+ "500": "#757575",
6930
+ "600": "#5C5C5C",
6931
+ "700": "#424242",
6932
+ "800": "#333333",
6933
+ "900": "#292929",
6934
+ black: "#0F0F0F"
6935
+ };
6936
+ const yellow = {
6937
+ "100": "#FFEAB6",
6938
+ "300": "#FFD66E",
6939
+ "500": "#FCB400",
6940
+ "900": "#B87503"
6941
+ };
6942
+ const orange = {
6943
+ "100": "#FEE2D5",
6944
+ "300": "#FFA981",
6945
+ "500": "#FF6F2C",
6946
+ "900": "#D74D26"
6947
+ };
6948
+ const red = {
6949
+ "100": "#FFDCE5",
6950
+ "300": "#FF9EB7",
6951
+ "500": "#F82B60",
6952
+ "900": "#BA1E45"
6953
+ };
6954
+ const pink = {
6955
+ "100": "#FFDAF6",
6956
+ "300": "#F99DE2",
6957
+ "500": "#FF08C2",
6958
+ "900": "#B2158B"
6959
+ };
6960
+ const purple = {
6961
+ "100": "#EDE3FE",
6962
+ "300": "#CDB0FF",
6963
+ "500": "#8B46FF",
6964
+ "900": "#6B1CB0"
6965
+ };
6966
+ const blue = {
6967
+ "100": "#CFDFFF",
6968
+ "300": "#9CC7FF",
6969
+ "500": "#2D7FF9",
6970
+ "900": "#2750AE"
6971
+ };
6972
+ const cyan = {
6973
+ "100": "#D0F0FD",
6974
+ "300": "#77D1F3",
6975
+ "500": "#18BFFF",
6976
+ "900": "#0B76B7"
6977
+ };
6978
+ const teal = {
6979
+ "100": "#C2F5E9",
6980
+ "300": "#72DDC3",
6981
+ "500": "#20D9D2",
6982
+ "900": "#06A09B"
6983
+ };
6984
+ const green = {
6985
+ "100": "#D1F7C4",
6986
+ "300": "#93E088",
6987
+ "500": "#20C933",
6988
+ "900": "#338A17"
6989
+ };
6990
+ const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
6991
+ // *
6992
+ // * Typography
6993
+ // *
6994
+ const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
6995
+ const letterSpacing = "normal";
6996
+ const fontSize = 12;
6997
+ // *
6998
+ // * Layout
6999
+ // *
7000
+ const padding = 8;
7001
+ const baseProps = {
7002
+ width: 450,
7003
+ height: 300,
7004
+ padding: 50,
7005
+ colorScale: colors
7006
+ };
7007
+ // *
7008
+ // * Labels
7009
+ // *
7010
+ const baseLabelStyles = {
7011
+ fontFamily: sansSerif,
7012
+ fontSize,
7013
+ fontWeight: 300,
7014
+ letterSpacing,
7015
+ padding,
7016
+ fill: gray["900"],
7017
+ stroke: "transparent"
7018
+ };
7019
+ const centeredLabelStyles = Object.assign({
7020
+ textAnchor: "middle"
7021
+ }, baseLabelStyles);
7022
+
7023
+ // *
7024
+ // * Strokes
7025
+ // *
7026
+ const strokeDasharray = "10, 5";
7027
+ const strokeLinecap = "round";
7028
+ const strokeLinejoin = "round";
7029
+ const borderRadius = 1;
7030
+ // *
7031
+ // * Theme
7032
+ // *
7033
+ const clean = {
7034
+ area: Object.assign({
7035
+ style: {
7036
+ data: {
7037
+ fill: cyan["500"]
7038
+ },
7039
+ labels: baseLabelStyles
7040
+ }
7041
+ }, baseProps),
7042
+ axis: Object.assign({
7043
+ style: {
7044
+ axis: {
7045
+ fill: "transparent",
7046
+ stroke: gray["300"],
7047
+ strokeWidth: 1,
7048
+ strokeLinecap,
7049
+ strokeLinejoin
7050
+ },
7051
+ axisLabel: Object.assign({}, centeredLabelStyles, {
7052
+ padding,
7053
+ stroke: "transparent"
7054
+ }),
7055
+ grid: {
7056
+ fill: "none",
7057
+ stroke: "none",
7058
+ painterEvents: "painted"
7059
+ },
7060
+ ticks: {
7061
+ fill: "transparent",
7062
+ size: 5,
7063
+ stroke: "transparent"
7064
+ },
7065
+ tickLabels: baseLabelStyles
7066
+ }
7067
+ }, baseProps),
7068
+ polarAxis: Object.assign({
7069
+ style: {
7070
+ axis: {
7071
+ stroke: gray["300"]
7072
+ },
7073
+ grid: {
7074
+ stroke: gray["200"],
7075
+ strokeDasharray,
7076
+ strokeLinecap,
7077
+ strokeLinejoin,
7078
+ pointerEvents: "painted"
7079
+ },
7080
+ ticks: {
7081
+ fill: "transparent",
7082
+ size: 5,
7083
+ stroke: gray["200"],
7084
+ strokeWidth: 1,
7085
+ strokeLinecap,
7086
+ strokeLinejoin
7087
+ },
7088
+ tickLabels: baseLabelStyles
7089
+ }
7090
+ }),
7091
+ polarDependentAxis: Object.assign({
7092
+ style: {
7093
+ axis: {
7094
+ stroke: gray["300"]
7095
+ },
7096
+ grid: {
7097
+ stroke: gray["200"],
7098
+ strokeDasharray,
7099
+ strokeLinecap,
7100
+ strokeLinejoin,
7101
+ pointerEvents: "painted"
7102
+ },
7103
+ ticks: {
7104
+ fill: "transparent",
7105
+ size: 5,
7106
+ stroke: gray["200"],
7107
+ strokeWidth: 1,
7108
+ strokeLinecap,
7109
+ strokeLinejoin
7110
+ },
7111
+ tickLabels: baseLabelStyles
7112
+ }
7113
+ }),
7114
+ bar: Object.assign({
7115
+ style: {
7116
+ data: {
7117
+ fill: blue["500"],
7118
+ padding,
7119
+ strokeWidth: 0
7120
+ },
7121
+ labels: baseLabelStyles
7122
+ },
7123
+ cornerRadius: {
7124
+ top: borderRadius
7125
+ }
7126
+ }, baseProps),
7127
+ boxplot: Object.assign({
7128
+ style: {
7129
+ max: {
7130
+ padding,
7131
+ stroke: gray["400"],
7132
+ strokeWidth: 2
7133
+ },
7134
+ maxLabels: Object.assign({}, baseLabelStyles, {
7135
+ padding: 3
7136
+ }),
7137
+ median: {
7138
+ padding,
7139
+ stroke: gray.white,
7140
+ strokeWidth: 2
7141
+ },
7142
+ medianLabels: Object.assign({}, baseLabelStyles, {
7143
+ padding: 3
7144
+ }),
7145
+ min: {
7146
+ padding,
7147
+ stroke: gray["400"],
7148
+ strokeWidth: 2
7149
+ },
7150
+ minLabels: Object.assign({}, baseLabelStyles, {
7151
+ padding: 3
7152
+ }),
7153
+ q1: {
7154
+ padding,
7155
+ fill: teal["500"],
7156
+ rx: borderRadius
7157
+ },
7158
+ q1Labels: Object.assign({}, baseLabelStyles, {
7159
+ padding: 3
7160
+ }),
7161
+ q3: {
7162
+ padding,
7163
+ fill: teal["500"],
7164
+ rx: borderRadius
7165
+ },
7166
+ q3Labels: Object.assign({}, baseLabelStyles, {
7167
+ padding: 3
7168
+ })
7169
+ },
7170
+ boxWidth: 20
7171
+ }, baseProps),
7172
+ candlestick: Object.assign({
7173
+ style: {
7174
+ data: {
7175
+ stroke: gray["300"],
7176
+ strokeWidth: 0,
7177
+ rx: borderRadius
7178
+ },
7179
+ labels: Object.assign({}, baseLabelStyles, {
7180
+ padding: 5
7181
+ })
7182
+ },
7183
+ candleColors: {
7184
+ positive: teal["500"],
7185
+ negative: orange["500"]
7186
+ },
7187
+ wickStrokeWidth: 2
7188
+ }, baseProps),
7189
+ chart: baseProps,
7190
+ errorbar: Object.assign({
7191
+ borderWidth: 8,
7192
+ style: {
7193
+ data: {
7194
+ fill: "transparent",
7195
+ opacity: 1,
7196
+ stroke: gray["700"],
7197
+ strokeWidth: 2,
7198
+ strokeLinecap
7199
+ },
7200
+ labels: baseLabelStyles
7201
+ }
7202
+ }, baseProps),
7203
+ group: Object.assign({
7204
+ colorScale: colors
7205
+ }, baseProps),
7206
+ histogram: Object.assign({
7207
+ style: {
7208
+ data: {
7209
+ fill: cyan["500"],
7210
+ stroke: "transparent",
7211
+ strokeWidth: 0
7212
+ },
7213
+ labels: baseLabelStyles
7214
+ },
7215
+ binSpacing: 4,
7216
+ cornerRadius: {
7217
+ top: borderRadius
7218
+ }
7219
+ }, baseProps),
7220
+ label: baseLabelStyles,
7221
+ legend: {
7222
+ colorScale: colors,
7223
+ gutter: 10,
7224
+ orientation: "vertical",
7225
+ titleOrientation: "top",
7226
+ style: {
7227
+ data: {
7228
+ type: "circle"
7229
+ },
7230
+ labels: {
7231
+ ...baseLabelStyles,
7232
+ fontSize: 14
7233
+ },
7234
+ title: Object.assign({}, baseLabelStyles, {
7235
+ padding,
7236
+ fontSize: 20
7237
+ }),
7238
+ border: {
7239
+ stroke: gray["200"],
7240
+ strokeWidth: 2,
7241
+ padding: 16
7242
+ }
7243
+ }
7244
+ },
7245
+ line: Object.assign({
7246
+ style: {
7247
+ data: {
7248
+ fill: "transparent",
7249
+ opacity: 1,
7250
+ stroke: pink["500"],
7251
+ strokeWidth: 2,
7252
+ strokeLinecap,
7253
+ strokeLinejoin
7254
+ },
7255
+ labels: baseLabelStyles
7256
+ }
7257
+ }, baseProps),
7258
+ pie: Object.assign({
7259
+ style: {
7260
+ data: {
7261
+ padding,
7262
+ stroke: gray.white,
7263
+ strokeWidth: 1
7264
+ },
7265
+ labels: Object.assign({}, baseLabelStyles, {
7266
+ padding: 20
7267
+ })
7268
+ },
7269
+ colorScale: colors,
7270
+ cornerRadius: borderRadius
7271
+ }, baseProps),
7272
+ scatter: Object.assign({
7273
+ style: {
7274
+ data: {
7275
+ fill: purple["500"],
7276
+ opacity: 1,
7277
+ stroke: "transparent",
7278
+ strokeWidth: 0
7279
+ },
7280
+ labels: baseLabelStyles
7281
+ }
7282
+ }, baseProps),
7283
+ stack: Object.assign({
7284
+ colorScale: colors
7285
+ }, baseProps),
7286
+ tooltip: {
7287
+ style: Object.assign({}, baseLabelStyles, {
7288
+ padding: 0,
7289
+ pointerEvents: "none"
7290
+ }),
7291
+ flyoutStyle: {
7292
+ stroke: gray["500"],
7293
+ strokeWidth: 2,
7294
+ fill: gray.white,
7295
+ pointerEvents: "none"
7296
+ },
7297
+ flyoutPadding: {
7298
+ top: 8,
7299
+ bottom: 8,
7300
+ left: 16,
7301
+ right: 16
7302
+ },
7303
+ cornerRadius: borderRadius,
7304
+ pointerLength: 4
7305
+ },
7306
+ voronoi: Object.assign({
7307
+ style: {
7308
+ data: {
7309
+ fill: red["100"],
7310
+ stroke: red["500"],
7311
+ strokeWidth: 2
7312
+ },
7313
+ labels: Object.assign({}, baseLabelStyles, {
7314
+ padding: 5,
7315
+ pointerEvents: "none"
7316
+ }),
7317
+ flyout: {
7318
+ stroke: gray["900"],
7319
+ strokeWidth: 1,
7320
+ fill: gray["100"],
7321
+ pointerEvents: "none"
7322
+ },
7323
+ padding: {
7324
+ left: 2,
7325
+ bottom: 2
7326
+ }
7327
+ }
7328
+ }, baseProps)
7329
+ };
7330
+
7331
+ /***/ }),
7332
+
6907
7333
  /***/ "../../victory-core/es/victory-theme/grayscale.js":
6908
7334
  /*!********************************************************!*\
6909
7335
  !*** ../../victory-core/es/victory-theme/grayscale.js ***!
@@ -7484,12 +7910,15 @@ __webpack_require__.r(__webpack_exports__);
7484
7910
  /* harmony export */ });
7485
7911
  /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
7486
7912
  /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
7913
+ /* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
7914
+
7487
7915
 
7488
7916
 
7489
7917
 
7490
7918
  const VictoryTheme = {
7491
7919
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
7492
- material: _material__WEBPACK_IMPORTED_MODULE_1__.material
7920
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
7921
+ clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
7493
7922
  };
7494
7923
 
7495
7924
  /***/ }),
@@ -10470,6 +10899,7 @@ __webpack_require__.r(__webpack_exports__);
10470
10899
  /* eslint-disable no-magic-numbers */
10471
10900
  // Based on measuring specific character widths
10472
10901
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
10902
+ // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
10473
10903
  // prettier-ignore
10474
10904
  const fonts = {
10475
10905
  "American Typewriter": {
@@ -10528,6 +10958,10 @@ const fonts = {
10528
10958
  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],
10529
10959
  avg: 0.5116447368421051
10530
10960
  },
10961
+ "Inter": {
10962
+ 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],
10963
+ avg: 0.5624362664473683
10964
+ },
10531
10965
  "Montserrat": {
10532
10966
  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],
10533
10967
  avg: 0.571792763157895