victory-voronoi 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-voronoi
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
@@ -7435,6 +7435,432 @@ const TSpan = props => {
7435
7435
 
7436
7436
  /***/ }),
7437
7437
 
7438
+ /***/ "../../victory-core/es/victory-theme/clean.js":
7439
+ /*!****************************************************!*\
7440
+ !*** ../../victory-core/es/victory-theme/clean.js ***!
7441
+ \****************************************************/
7442
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7443
+
7444
+ "use strict";
7445
+ __webpack_require__.r(__webpack_exports__);
7446
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
7447
+ /* harmony export */ "clean": function() { return /* binding */ clean; }
7448
+ /* harmony export */ });
7449
+ // *
7450
+ // * Colors
7451
+ // *
7452
+
7453
+ const gray = {
7454
+ white: "#FFFFFF",
7455
+ "50": "#FAFAFA",
7456
+ "100": "#F2F2F2",
7457
+ "200": "#E8E8E8",
7458
+ "300": "#E0E0E0",
7459
+ "400": "#D1D1D1",
7460
+ "500": "#757575",
7461
+ "600": "#5C5C5C",
7462
+ "700": "#424242",
7463
+ "800": "#333333",
7464
+ "900": "#292929",
7465
+ black: "#0F0F0F"
7466
+ };
7467
+ const yellow = {
7468
+ "100": "#FFEAB6",
7469
+ "300": "#FFD66E",
7470
+ "500": "#FCB400",
7471
+ "900": "#B87503"
7472
+ };
7473
+ const orange = {
7474
+ "100": "#FEE2D5",
7475
+ "300": "#FFA981",
7476
+ "500": "#FF6F2C",
7477
+ "900": "#D74D26"
7478
+ };
7479
+ const red = {
7480
+ "100": "#FFDCE5",
7481
+ "300": "#FF9EB7",
7482
+ "500": "#F82B60",
7483
+ "900": "#BA1E45"
7484
+ };
7485
+ const pink = {
7486
+ "100": "#FFDAF6",
7487
+ "300": "#F99DE2",
7488
+ "500": "#FF08C2",
7489
+ "900": "#B2158B"
7490
+ };
7491
+ const purple = {
7492
+ "100": "#EDE3FE",
7493
+ "300": "#CDB0FF",
7494
+ "500": "#8B46FF",
7495
+ "900": "#6B1CB0"
7496
+ };
7497
+ const blue = {
7498
+ "100": "#CFDFFF",
7499
+ "300": "#9CC7FF",
7500
+ "500": "#2D7FF9",
7501
+ "900": "#2750AE"
7502
+ };
7503
+ const cyan = {
7504
+ "100": "#D0F0FD",
7505
+ "300": "#77D1F3",
7506
+ "500": "#18BFFF",
7507
+ "900": "#0B76B7"
7508
+ };
7509
+ const teal = {
7510
+ "100": "#C2F5E9",
7511
+ "300": "#72DDC3",
7512
+ "500": "#20D9D2",
7513
+ "900": "#06A09B"
7514
+ };
7515
+ const green = {
7516
+ "100": "#D1F7C4",
7517
+ "300": "#93E088",
7518
+ "500": "#20C933",
7519
+ "900": "#338A17"
7520
+ };
7521
+ const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
7522
+ // *
7523
+ // * Typography
7524
+ // *
7525
+ const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
7526
+ const letterSpacing = "normal";
7527
+ const fontSize = 12;
7528
+ // *
7529
+ // * Layout
7530
+ // *
7531
+ const padding = 8;
7532
+ const baseProps = {
7533
+ width: 450,
7534
+ height: 300,
7535
+ padding: 50,
7536
+ colorScale: colors
7537
+ };
7538
+ // *
7539
+ // * Labels
7540
+ // *
7541
+ const baseLabelStyles = {
7542
+ fontFamily: sansSerif,
7543
+ fontSize,
7544
+ fontWeight: 300,
7545
+ letterSpacing,
7546
+ padding,
7547
+ fill: gray["900"],
7548
+ stroke: "transparent"
7549
+ };
7550
+ const centeredLabelStyles = Object.assign({
7551
+ textAnchor: "middle"
7552
+ }, baseLabelStyles);
7553
+
7554
+ // *
7555
+ // * Strokes
7556
+ // *
7557
+ const strokeDasharray = "10, 5";
7558
+ const strokeLinecap = "round";
7559
+ const strokeLinejoin = "round";
7560
+ const borderRadius = 1;
7561
+ // *
7562
+ // * Theme
7563
+ // *
7564
+ const clean = {
7565
+ area: Object.assign({
7566
+ style: {
7567
+ data: {
7568
+ fill: cyan["500"]
7569
+ },
7570
+ labels: baseLabelStyles
7571
+ }
7572
+ }, baseProps),
7573
+ axis: Object.assign({
7574
+ style: {
7575
+ axis: {
7576
+ fill: "transparent",
7577
+ stroke: gray["300"],
7578
+ strokeWidth: 1,
7579
+ strokeLinecap,
7580
+ strokeLinejoin
7581
+ },
7582
+ axisLabel: Object.assign({}, centeredLabelStyles, {
7583
+ padding,
7584
+ stroke: "transparent"
7585
+ }),
7586
+ grid: {
7587
+ fill: "none",
7588
+ stroke: "none",
7589
+ painterEvents: "painted"
7590
+ },
7591
+ ticks: {
7592
+ fill: "transparent",
7593
+ size: 5,
7594
+ stroke: "transparent"
7595
+ },
7596
+ tickLabels: baseLabelStyles
7597
+ }
7598
+ }, baseProps),
7599
+ polarAxis: Object.assign({
7600
+ style: {
7601
+ axis: {
7602
+ stroke: gray["300"]
7603
+ },
7604
+ grid: {
7605
+ stroke: gray["200"],
7606
+ strokeDasharray,
7607
+ strokeLinecap,
7608
+ strokeLinejoin,
7609
+ pointerEvents: "painted"
7610
+ },
7611
+ ticks: {
7612
+ fill: "transparent",
7613
+ size: 5,
7614
+ stroke: gray["200"],
7615
+ strokeWidth: 1,
7616
+ strokeLinecap,
7617
+ strokeLinejoin
7618
+ },
7619
+ tickLabels: baseLabelStyles
7620
+ }
7621
+ }),
7622
+ polarDependentAxis: Object.assign({
7623
+ style: {
7624
+ axis: {
7625
+ stroke: gray["300"]
7626
+ },
7627
+ grid: {
7628
+ stroke: gray["200"],
7629
+ strokeDasharray,
7630
+ strokeLinecap,
7631
+ strokeLinejoin,
7632
+ pointerEvents: "painted"
7633
+ },
7634
+ ticks: {
7635
+ fill: "transparent",
7636
+ size: 5,
7637
+ stroke: gray["200"],
7638
+ strokeWidth: 1,
7639
+ strokeLinecap,
7640
+ strokeLinejoin
7641
+ },
7642
+ tickLabels: baseLabelStyles
7643
+ }
7644
+ }),
7645
+ bar: Object.assign({
7646
+ style: {
7647
+ data: {
7648
+ fill: blue["500"],
7649
+ padding,
7650
+ strokeWidth: 0
7651
+ },
7652
+ labels: baseLabelStyles
7653
+ },
7654
+ cornerRadius: {
7655
+ top: borderRadius
7656
+ }
7657
+ }, baseProps),
7658
+ boxplot: Object.assign({
7659
+ style: {
7660
+ max: {
7661
+ padding,
7662
+ stroke: gray["400"],
7663
+ strokeWidth: 2
7664
+ },
7665
+ maxLabels: Object.assign({}, baseLabelStyles, {
7666
+ padding: 3
7667
+ }),
7668
+ median: {
7669
+ padding,
7670
+ stroke: gray.white,
7671
+ strokeWidth: 2
7672
+ },
7673
+ medianLabels: Object.assign({}, baseLabelStyles, {
7674
+ padding: 3
7675
+ }),
7676
+ min: {
7677
+ padding,
7678
+ stroke: gray["400"],
7679
+ strokeWidth: 2
7680
+ },
7681
+ minLabels: Object.assign({}, baseLabelStyles, {
7682
+ padding: 3
7683
+ }),
7684
+ q1: {
7685
+ padding,
7686
+ fill: teal["500"],
7687
+ rx: borderRadius
7688
+ },
7689
+ q1Labels: Object.assign({}, baseLabelStyles, {
7690
+ padding: 3
7691
+ }),
7692
+ q3: {
7693
+ padding,
7694
+ fill: teal["500"],
7695
+ rx: borderRadius
7696
+ },
7697
+ q3Labels: Object.assign({}, baseLabelStyles, {
7698
+ padding: 3
7699
+ })
7700
+ },
7701
+ boxWidth: 20
7702
+ }, baseProps),
7703
+ candlestick: Object.assign({
7704
+ style: {
7705
+ data: {
7706
+ stroke: gray["300"],
7707
+ strokeWidth: 0,
7708
+ rx: borderRadius
7709
+ },
7710
+ labels: Object.assign({}, baseLabelStyles, {
7711
+ padding: 5
7712
+ })
7713
+ },
7714
+ candleColors: {
7715
+ positive: teal["500"],
7716
+ negative: orange["500"]
7717
+ },
7718
+ wickStrokeWidth: 2
7719
+ }, baseProps),
7720
+ chart: baseProps,
7721
+ errorbar: Object.assign({
7722
+ borderWidth: 8,
7723
+ style: {
7724
+ data: {
7725
+ fill: "transparent",
7726
+ opacity: 1,
7727
+ stroke: gray["700"],
7728
+ strokeWidth: 2,
7729
+ strokeLinecap
7730
+ },
7731
+ labels: baseLabelStyles
7732
+ }
7733
+ }, baseProps),
7734
+ group: Object.assign({
7735
+ colorScale: colors
7736
+ }, baseProps),
7737
+ histogram: Object.assign({
7738
+ style: {
7739
+ data: {
7740
+ fill: cyan["500"],
7741
+ stroke: "transparent",
7742
+ strokeWidth: 0
7743
+ },
7744
+ labels: baseLabelStyles
7745
+ },
7746
+ binSpacing: 4,
7747
+ cornerRadius: {
7748
+ top: borderRadius
7749
+ }
7750
+ }, baseProps),
7751
+ label: baseLabelStyles,
7752
+ legend: {
7753
+ colorScale: colors,
7754
+ gutter: 10,
7755
+ orientation: "vertical",
7756
+ titleOrientation: "top",
7757
+ style: {
7758
+ data: {
7759
+ type: "circle"
7760
+ },
7761
+ labels: {
7762
+ ...baseLabelStyles,
7763
+ fontSize: 14
7764
+ },
7765
+ title: Object.assign({}, baseLabelStyles, {
7766
+ padding,
7767
+ fontSize: 20
7768
+ }),
7769
+ border: {
7770
+ stroke: gray["200"],
7771
+ strokeWidth: 2,
7772
+ padding: 16
7773
+ }
7774
+ }
7775
+ },
7776
+ line: Object.assign({
7777
+ style: {
7778
+ data: {
7779
+ fill: "transparent",
7780
+ opacity: 1,
7781
+ stroke: pink["500"],
7782
+ strokeWidth: 2,
7783
+ strokeLinecap,
7784
+ strokeLinejoin
7785
+ },
7786
+ labels: baseLabelStyles
7787
+ }
7788
+ }, baseProps),
7789
+ pie: Object.assign({
7790
+ style: {
7791
+ data: {
7792
+ padding,
7793
+ stroke: gray.white,
7794
+ strokeWidth: 1
7795
+ },
7796
+ labels: Object.assign({}, baseLabelStyles, {
7797
+ padding: 20
7798
+ })
7799
+ },
7800
+ colorScale: colors,
7801
+ cornerRadius: borderRadius
7802
+ }, baseProps),
7803
+ scatter: Object.assign({
7804
+ style: {
7805
+ data: {
7806
+ fill: purple["500"],
7807
+ opacity: 1,
7808
+ stroke: "transparent",
7809
+ strokeWidth: 0
7810
+ },
7811
+ labels: baseLabelStyles
7812
+ }
7813
+ }, baseProps),
7814
+ stack: Object.assign({
7815
+ colorScale: colors
7816
+ }, baseProps),
7817
+ tooltip: {
7818
+ style: Object.assign({}, baseLabelStyles, {
7819
+ padding: 0,
7820
+ pointerEvents: "none"
7821
+ }),
7822
+ flyoutStyle: {
7823
+ stroke: gray["500"],
7824
+ strokeWidth: 2,
7825
+ fill: gray.white,
7826
+ pointerEvents: "none"
7827
+ },
7828
+ flyoutPadding: {
7829
+ top: 8,
7830
+ bottom: 8,
7831
+ left: 16,
7832
+ right: 16
7833
+ },
7834
+ cornerRadius: borderRadius,
7835
+ pointerLength: 4
7836
+ },
7837
+ voronoi: Object.assign({
7838
+ style: {
7839
+ data: {
7840
+ fill: red["100"],
7841
+ stroke: red["500"],
7842
+ strokeWidth: 2
7843
+ },
7844
+ labels: Object.assign({}, baseLabelStyles, {
7845
+ padding: 5,
7846
+ pointerEvents: "none"
7847
+ }),
7848
+ flyout: {
7849
+ stroke: gray["900"],
7850
+ strokeWidth: 1,
7851
+ fill: gray["100"],
7852
+ pointerEvents: "none"
7853
+ },
7854
+ padding: {
7855
+ left: 2,
7856
+ bottom: 2
7857
+ }
7858
+ }
7859
+ }, baseProps)
7860
+ };
7861
+
7862
+ /***/ }),
7863
+
7438
7864
  /***/ "../../victory-core/es/victory-theme/grayscale.js":
7439
7865
  /*!********************************************************!*\
7440
7866
  !*** ../../victory-core/es/victory-theme/grayscale.js ***!
@@ -8015,12 +8441,15 @@ __webpack_require__.r(__webpack_exports__);
8015
8441
  /* harmony export */ });
8016
8442
  /* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
8017
8443
  /* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
8444
+ /* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
8445
+
8018
8446
 
8019
8447
 
8020
8448
 
8021
8449
  const VictoryTheme = {
8022
8450
  grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
8023
- material: _material__WEBPACK_IMPORTED_MODULE_1__.material
8451
+ material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
8452
+ clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
8024
8453
  };
8025
8454
 
8026
8455
  /***/ }),
@@ -11001,6 +11430,7 @@ __webpack_require__.r(__webpack_exports__);
11001
11430
  /* eslint-disable no-magic-numbers */
11002
11431
  // Based on measuring specific character widths
11003
11432
  // as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
11433
+ // For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
11004
11434
  // prettier-ignore
11005
11435
  const fonts = {
11006
11436
  "American Typewriter": {
@@ -11059,6 +11489,10 @@ const fonts = {
11059
11489
  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],
11060
11490
  avg: 0.5116447368421051
11061
11491
  },
11492
+ "Inter": {
11493
+ 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],
11494
+ avg: 0.5624362664473683
11495
+ },
11062
11496
  "Montserrat": {
11063
11497
  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],
11064
11498
  avg: 0.571792763157895