victory-scatter 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-scatter
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
@@ -6185,6 +6185,432 @@ const TSpan = props => {
6185
6185
 
6186
6186
  /***/ }),
6187
6187
 
6188
+ /***/ "../../victory-core/es/victory-theme/clean.js":
6189
+ /*!****************************************************!*\
6190
+ !*** ../../victory-core/es/victory-theme/clean.js ***!
6191
+ \****************************************************/
6192
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
6193
+
6194
+ "use strict";
6195
+ __webpack_require__.r(__webpack_exports__);
6196
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
6197
+ /* harmony export */ "clean": function() { return /* binding */ clean; }
6198
+ /* harmony export */ });
6199
+ // *
6200
+ // * Colors
6201
+ // *
6202
+
6203
+ const gray = {
6204
+ white: "#FFFFFF",
6205
+ "50": "#FAFAFA",
6206
+ "100": "#F2F2F2",
6207
+ "200": "#E8E8E8",
6208
+ "300": "#E0E0E0",
6209
+ "400": "#D1D1D1",
6210
+ "500": "#757575",
6211
+ "600": "#5C5C5C",
6212
+ "700": "#424242",
6213
+ "800": "#333333",
6214
+ "900": "#292929",
6215
+ black: "#0F0F0F"
6216
+ };
6217
+ const yellow = {
6218
+ "100": "#FFEAB6",
6219
+ "300": "#FFD66E",
6220
+ "500": "#FCB400",
6221
+ "900": "#B87503"
6222
+ };
6223
+ const orange = {
6224
+ "100": "#FEE2D5",
6225
+ "300": "#FFA981",
6226
+ "500": "#FF6F2C",
6227
+ "900": "#D74D26"
6228
+ };
6229
+ const red = {
6230
+ "100": "#FFDCE5",
6231
+ "300": "#FF9EB7",
6232
+ "500": "#F82B60",
6233
+ "900": "#BA1E45"
6234
+ };
6235
+ const pink = {
6236
+ "100": "#FFDAF6",
6237
+ "300": "#F99DE2",
6238
+ "500": "#FF08C2",
6239
+ "900": "#B2158B"
6240
+ };
6241
+ const purple = {
6242
+ "100": "#EDE3FE",
6243
+ "300": "#CDB0FF",
6244
+ "500": "#8B46FF",
6245
+ "900": "#6B1CB0"
6246
+ };
6247
+ const blue = {
6248
+ "100": "#CFDFFF",
6249
+ "300": "#9CC7FF",
6250
+ "500": "#2D7FF9",
6251
+ "900": "#2750AE"
6252
+ };
6253
+ const cyan = {
6254
+ "100": "#D0F0FD",
6255
+ "300": "#77D1F3",
6256
+ "500": "#18BFFF",
6257
+ "900": "#0B76B7"
6258
+ };
6259
+ const teal = {
6260
+ "100": "#C2F5E9",
6261
+ "300": "#72DDC3",
6262
+ "500": "#20D9D2",
6263
+ "900": "#06A09B"
6264
+ };
6265
+ const green = {
6266
+ "100": "#D1F7C4",
6267
+ "300": "#93E088",
6268
+ "500": "#20C933",
6269
+ "900": "#338A17"
6270
+ };
6271
+ const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
6272
+ // *
6273
+ // * Typography
6274
+ // *
6275
+ const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
6276
+ const letterSpacing = "normal";
6277
+ const fontSize = 12;
6278
+ // *
6279
+ // * Layout
6280
+ // *
6281
+ const padding = 8;
6282
+ const baseProps = {
6283
+ width: 450,
6284
+ height: 300,
6285
+ padding: 50,
6286
+ colorScale: colors
6287
+ };
6288
+ // *
6289
+ // * Labels
6290
+ // *
6291
+ const baseLabelStyles = {
6292
+ fontFamily: sansSerif,
6293
+ fontSize,
6294
+ fontWeight: 300,
6295
+ letterSpacing,
6296
+ padding,
6297
+ fill: gray["900"],
6298
+ stroke: "transparent"
6299
+ };
6300
+ const centeredLabelStyles = Object.assign({
6301
+ textAnchor: "middle"
6302
+ }, baseLabelStyles);
6303
+
6304
+ // *
6305
+ // * Strokes
6306
+ // *
6307
+ const strokeDasharray = "10, 5";
6308
+ const strokeLinecap = "round";
6309
+ const strokeLinejoin = "round";
6310
+ const borderRadius = 1;
6311
+ // *
6312
+ // * Theme
6313
+ // *
6314
+ const clean = {
6315
+ area: Object.assign({
6316
+ style: {
6317
+ data: {
6318
+ fill: cyan["500"]
6319
+ },
6320
+ labels: baseLabelStyles
6321
+ }
6322
+ }, baseProps),
6323
+ axis: Object.assign({
6324
+ style: {
6325
+ axis: {
6326
+ fill: "transparent",
6327
+ stroke: gray["300"],
6328
+ strokeWidth: 1,
6329
+ strokeLinecap,
6330
+ strokeLinejoin
6331
+ },
6332
+ axisLabel: Object.assign({}, centeredLabelStyles, {
6333
+ padding,
6334
+ stroke: "transparent"
6335
+ }),
6336
+ grid: {
6337
+ fill: "none",
6338
+ stroke: "none",
6339
+ painterEvents: "painted"
6340
+ },
6341
+ ticks: {
6342
+ fill: "transparent",
6343
+ size: 5,
6344
+ stroke: "transparent"
6345
+ },
6346
+ tickLabels: baseLabelStyles
6347
+ }
6348
+ }, baseProps),
6349
+ polarAxis: Object.assign({
6350
+ style: {
6351
+ axis: {
6352
+ stroke: gray["300"]
6353
+ },
6354
+ grid: {
6355
+ stroke: gray["200"],
6356
+ strokeDasharray,
6357
+ strokeLinecap,
6358
+ strokeLinejoin,
6359
+ pointerEvents: "painted"
6360
+ },
6361
+ ticks: {
6362
+ fill: "transparent",
6363
+ size: 5,
6364
+ stroke: gray["200"],
6365
+ strokeWidth: 1,
6366
+ strokeLinecap,
6367
+ strokeLinejoin
6368
+ },
6369
+ tickLabels: baseLabelStyles
6370
+ }
6371
+ }),
6372
+ polarDependentAxis: Object.assign({
6373
+ style: {
6374
+ axis: {
6375
+ stroke: gray["300"]
6376
+ },
6377
+ grid: {
6378
+ stroke: gray["200"],
6379
+ strokeDasharray,
6380
+ strokeLinecap,
6381
+ strokeLinejoin,
6382
+ pointerEvents: "painted"
6383
+ },
6384
+ ticks: {
6385
+ fill: "transparent",
6386
+ size: 5,
6387
+ stroke: gray["200"],
6388
+ strokeWidth: 1,
6389
+ strokeLinecap,
6390
+ strokeLinejoin
6391
+ },
6392
+ tickLabels: baseLabelStyles
6393
+ }
6394
+ }),
6395
+ bar: Object.assign({
6396
+ style: {
6397
+ data: {
6398
+ fill: blue["500"],
6399
+ padding,
6400
+ strokeWidth: 0
6401
+ },
6402
+ labels: baseLabelStyles
6403
+ },
6404
+ cornerRadius: {
6405
+ top: borderRadius
6406
+ }
6407
+ }, baseProps),
6408
+ boxplot: Object.assign({
6409
+ style: {
6410
+ max: {
6411
+ padding,
6412
+ stroke: gray["400"],
6413
+ strokeWidth: 2
6414
+ },
6415
+ maxLabels: Object.assign({}, baseLabelStyles, {
6416
+ padding: 3
6417
+ }),
6418
+ median: {
6419
+ padding,
6420
+ stroke: gray.white,
6421
+ strokeWidth: 2
6422
+ },
6423
+ medianLabels: Object.assign({}, baseLabelStyles, {
6424
+ padding: 3
6425
+ }),
6426
+ min: {
6427
+ padding,
6428
+ stroke: gray["400"],
6429
+ strokeWidth: 2
6430
+ },
6431
+ minLabels: Object.assign({}, baseLabelStyles, {
6432
+ padding: 3
6433
+ }),
6434
+ q1: {
6435
+ padding,
6436
+ fill: teal["500"],
6437
+ rx: borderRadius
6438
+ },
6439
+ q1Labels: Object.assign({}, baseLabelStyles, {
6440
+ padding: 3
6441
+ }),
6442
+ q3: {
6443
+ padding,
6444
+ fill: teal["500"],
6445
+ rx: borderRadius
6446
+ },
6447
+ q3Labels: Object.assign({}, baseLabelStyles, {
6448
+ padding: 3
6449
+ })
6450
+ },
6451
+ boxWidth: 20
6452
+ }, baseProps),
6453
+ candlestick: Object.assign({
6454
+ style: {
6455
+ data: {
6456
+ stroke: gray["300"],
6457
+ strokeWidth: 0,
6458
+ rx: borderRadius
6459
+ },
6460
+ labels: Object.assign({}, baseLabelStyles, {
6461
+ padding: 5
6462
+ })
6463
+ },
6464
+ candleColors: {
6465
+ positive: teal["500"],
6466
+ negative: orange["500"]
6467
+ },
6468
+ wickStrokeWidth: 2
6469
+ }, baseProps),
6470
+ chart: baseProps,
6471
+ errorbar: Object.assign({
6472
+ borderWidth: 8,
6473
+ style: {
6474
+ data: {
6475
+ fill: "transparent",
6476
+ opacity: 1,
6477
+ stroke: gray["700"],
6478
+ strokeWidth: 2,
6479
+ strokeLinecap
6480
+ },
6481
+ labels: baseLabelStyles
6482
+ }
6483
+ }, baseProps),
6484
+ group: Object.assign({
6485
+ colorScale: colors
6486
+ }, baseProps),
6487
+ histogram: Object.assign({
6488
+ style: {
6489
+ data: {
6490
+ fill: cyan["500"],
6491
+ stroke: "transparent",
6492
+ strokeWidth: 0
6493
+ },
6494
+ labels: baseLabelStyles
6495
+ },
6496
+ binSpacing: 4,
6497
+ cornerRadius: {
6498
+ top: borderRadius
6499
+ }
6500
+ }, baseProps),
6501
+ label: baseLabelStyles,
6502
+ legend: {
6503
+ colorScale: colors,
6504
+ gutter: 10,
6505
+ orientation: "vertical",
6506
+ titleOrientation: "top",
6507
+ style: {
6508
+ data: {
6509
+ type: "circle"
6510
+ },
6511
+ labels: {
6512
+ ...baseLabelStyles,
6513
+ fontSize: 14
6514
+ },
6515
+ title: Object.assign({}, baseLabelStyles, {
6516
+ padding,
6517
+ fontSize: 20
6518
+ }),
6519
+ border: {
6520
+ stroke: gray["200"],
6521
+ strokeWidth: 2,
6522
+ padding: 16
6523
+ }
6524
+ }
6525
+ },
6526
+ line: Object.assign({
6527
+ style: {
6528
+ data: {
6529
+ fill: "transparent",
6530
+ opacity: 1,
6531
+ stroke: pink["500"],
6532
+ strokeWidth: 2,
6533
+ strokeLinecap,
6534
+ strokeLinejoin
6535
+ },
6536
+ labels: baseLabelStyles
6537
+ }
6538
+ }, baseProps),
6539
+ pie: Object.assign({
6540
+ style: {
6541
+ data: {
6542
+ padding,
6543
+ stroke: gray.white,
6544
+ strokeWidth: 1
6545
+ },
6546
+ labels: Object.assign({}, baseLabelStyles, {
6547
+ padding: 20
6548
+ })
6549
+ },
6550
+ colorScale: colors,
6551
+ cornerRadius: borderRadius
6552
+ }, baseProps),
6553
+ scatter: Object.assign({
6554
+ style: {
6555
+ data: {
6556
+ fill: purple["500"],
6557
+ opacity: 1,
6558
+ stroke: "transparent",
6559
+ strokeWidth: 0
6560
+ },
6561
+ labels: baseLabelStyles
6562
+ }
6563
+ }, baseProps),
6564
+ stack: Object.assign({
6565
+ colorScale: colors
6566
+ }, baseProps),
6567
+ tooltip: {
6568
+ style: Object.assign({}, baseLabelStyles, {
6569
+ padding: 0,
6570
+ pointerEvents: "none"
6571
+ }),
6572
+ flyoutStyle: {
6573
+ stroke: gray["500"],
6574
+ strokeWidth: 2,
6575
+ fill: gray.white,
6576
+ pointerEvents: "none"
6577
+ },
6578
+ flyoutPadding: {
6579
+ top: 8,
6580
+ bottom: 8,
6581
+ left: 16,
6582
+ right: 16
6583
+ },
6584
+ cornerRadius: borderRadius,
6585
+ pointerLength: 4
6586
+ },
6587
+ voronoi: Object.assign({
6588
+ style: {
6589
+ data: {
6590
+ fill: red["100"],
6591
+ stroke: red["500"],
6592
+ strokeWidth: 2
6593
+ },
6594
+ labels: Object.assign({}, baseLabelStyles, {
6595
+ padding: 5,
6596
+ pointerEvents: "none"
6597
+ }),
6598
+ flyout: {
6599
+ stroke: gray["900"],
6600
+ strokeWidth: 1,
6601
+ fill: gray["100"],
6602
+ pointerEvents: "none"
6603
+ },
6604
+ padding: {
6605
+ left: 2,
6606
+ bottom: 2
6607
+ }
6608
+ }
6609
+ }, baseProps)
6610
+ };
6611
+
6612
+ /***/ }),
6613
+
6188
6614
  /***/ "../../victory-core/es/victory-theme/grayscale.js":
6189
6615
  /*!********************************************************!*\
6190
6616
  !*** ../../victory-core/es/victory-theme/grayscale.js ***!
@@ -6765,12 +7191,15 @@ __webpack_require__.r(__webpack_exports__);
6765
7191
  /* harmony export */ });
6766
7192
  /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
6767
7193
  /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
7194
+ /* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
7195
+
6768
7196
 
6769
7197
 
6770
7198
 
6771
7199
  const VictoryTheme = {
6772
7200
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
6773
- material: _material__WEBPACK_IMPORTED_MODULE_1__.material
7201
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
7202
+ clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
6774
7203
  };
6775
7204
 
6776
7205
  /***/ }),
@@ -9885,6 +10314,7 @@ __webpack_require__.r(__webpack_exports__);
9885
10314
  /* eslint-disable no-magic-numbers */
9886
10315
  // Based on measuring specific character widths
9887
10316
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
10317
+ // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
9888
10318
  // prettier-ignore
9889
10319
  const fonts = {
9890
10320
  "American Typewriter": {
@@ -9943,6 +10373,10 @@ const fonts = {
9943
10373
  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],
9944
10374
  avg: 0.5116447368421051
9945
10375
  },
10376
+ "Inter": {
10377
+ 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],
10378
+ avg: 0.5624362664473683
10379
+ },
9946
10380
  "Montserrat": {
9947
10381
  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],
9948
10382
  avg: 0.571792763157895