@pie-lib/graphing-module 1.8.6 → 1.8.8

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/module/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import {_dll_prop_types, _dll_react, _dll_material_ui__core_styles, _dll_pie_lib__render_ui, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_material_ui__core, _dll_material_ui__core_styles_color_manipulator, _dll_material_ui__icons} from "../../shared-module@^1.5.15/module/index.js";
2
- import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.1.8/module/index.js";
3
- import {_dll_pie_lib__drag} from "../../drag-module@^1.0.67/module/index.js";
4
- import {_dll_pie_lib__config_ui} from "../../config-module@^2.1.15/module/index.js";
1
+ import {_dll_prop_types, _dll_pie_lib__render_ui, _dll_material_ui__core_styles, _dll_react, _dll_classnames, _dll_react_dom, _dll_lodash, _dll_debug, _dll_material_ui__core, _dll_material_ui__core_styles_color_manipulator, _dll_material_ui__icons} from "../../shared-module@^1.5.17/module/index.js";
2
+ import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.1.10/module/index.js";
3
+ import {_dll_pie_lib__drag} from "../../drag-module@^1.0.69/module/index.js";
4
+ import {_dll_pie_lib__config_ui} from "../../config-module@^2.1.17/module/index.js";
5
5
  const PropTypes$D = _dll_prop_types;
6
6
  const BaseDomainRangeType = {
7
7
  min: PropTypes$D.number.isRequired,
@@ -819,6 +819,116 @@ var index$4 = Object.freeze({
819
819
  },
820
820
  customEvent: customEvent
821
821
  });
822
+ const React$F = _dll_react;
823
+ const {useState: useState$2} = _dll_react;
824
+ const {color: color$j} = _dll_pie_lib__render_ui;
825
+ const {Readable: Readable$3} = _dll_pie_lib__render_ui;
826
+ const cn$4 = _dll_classnames;
827
+ const {withStyles: withStyles$m} = _dll_material_ui__core_styles;
828
+ const EditableHtml$2 = _dll_pie_lib__editable_html;
829
+ const _jsxFileName$x = "/home/circleci/repo/packages/plot/src/label.jsx";
830
+ const LabelComponent = props => {
831
+ const {classes, disabledLabel, graphHeight, graphWidth, isChartBottomLabel, isChartLeftLabel, placeholder, text, side, onChange} = props;
832
+ const [rotatedToHorizontal, setRotatedToHorizontal] = useState$2(false);
833
+ const activePlugins = ['bold', 'italic', 'underline', 'strikethrough', 'math'];
834
+ const chartValue = side === 'left' && isChartLeftLabel && graphHeight - 148;
835
+ const defaultStyle = {
836
+ width: chartValue || (side === 'left' || side === 'right' ? graphHeight - 8 : graphWidth - 8),
837
+ top: chartValue || side === 'left' && `${graphHeight - 8}px` || side === 'bottom' && `${graphHeight - 90}px` || 0,
838
+ left: side === 'right' && `${graphWidth - 8}px` || (isChartLeftLabel || isChartBottomLabel) && '50px' || 0
839
+ };
840
+ const rotatedStyle = {
841
+ width: graphWidth - 8,
842
+ top: side === 'right' && `${graphHeight - 22}px` || 0,
843
+ left: 0
844
+ };
845
+ const rotateLabel = () => !disabledLabel && (side === 'left' || side === 'right') && setRotatedToHorizontal(true);
846
+ return React$F.createElement(Readable$3, {
847
+ false: true,
848
+ __self: undefined,
849
+ __source: {
850
+ fileName: _jsxFileName$x,
851
+ lineNumber: 54
852
+ }
853
+ }, React$F.createElement('div', {
854
+ className: cn$4(classes.axisLabel, {
855
+ [classes.rotateLeftLabel]: side === 'left' && !rotatedToHorizontal,
856
+ [classes.rotateRightLabel]: side === 'right' && !rotatedToHorizontal,
857
+ [classes.editLabel]: rotatedToHorizontal,
858
+ [classes.customBottom]: isChartBottomLabel
859
+ }),
860
+ style: rotatedToHorizontal ? rotatedStyle : defaultStyle,
861
+ onClick: rotateLabel,
862
+ __self: undefined,
863
+ __source: {
864
+ fileName: _jsxFileName$x,
865
+ lineNumber: 55
866
+ }
867
+ }, disabledLabel ? React$F.createElement('div', {
868
+ className: classes.disabledLabel,
869
+ dangerouslySetInnerHTML: {
870
+ __html: text || ''
871
+ },
872
+ __self: undefined,
873
+ __source: {
874
+ fileName: _jsxFileName$x,
875
+ lineNumber: 66
876
+ }
877
+ }) : React$F.createElement(EditableHtml$2, {
878
+ markup: text || '',
879
+ onChange: onChange,
880
+ placeholder: !disabledLabel && placeholder,
881
+ toolbarOpts: {
882
+ position: side === 'bottom' ? 'top' : 'bottom',
883
+ noBorder: true
884
+ },
885
+ disableScrollbar: true,
886
+ activePlugins: activePlugins,
887
+ onDone: () => setRotatedToHorizontal(false),
888
+ __self: undefined,
889
+ __source: {
890
+ fileName: _jsxFileName$x,
891
+ lineNumber: 68
892
+ }
893
+ })));
894
+ };
895
+ var Label$1 = withStyles$m(theme => ({
896
+ label: {
897
+ fill: color$j.secondary()
898
+ },
899
+ axisLabel: {
900
+ fontSize: theme.typography.fontSize - 2,
901
+ textAlign: 'center',
902
+ margin: '4px',
903
+ padding: '4px 0'
904
+ },
905
+ disabledLabel: {
906
+ pointerEvents: 'none',
907
+ width: '100%'
908
+ },
909
+ editLabel: {
910
+ position: 'absolute',
911
+ backgroundColor: 'white',
912
+ borderRadius: '4px',
913
+ boxShadow: '0px 5px 8px rgba(0, 0, 0, 0.15)',
914
+ zIndex: 10
915
+ },
916
+ rotateLeftLabel: {
917
+ rotate: '-90deg',
918
+ transformOrigin: '0 0',
919
+ transformStyle: 'preserve-3d',
920
+ position: 'absolute'
921
+ },
922
+ rotateRightLabel: {
923
+ rotate: '90deg',
924
+ transformOrigin: '0 0',
925
+ transformStyle: 'preserve-3d',
926
+ position: 'absolute'
927
+ },
928
+ customBottom: {
929
+ position: 'absolute'
930
+ }
931
+ }))(LabelComponent);
822
932
  const React$E = _dll_react;
823
933
  const {withStyles: withStyles$l} = _dll_material_ui__core_styles;
824
934
  const PropTypes$C = _dll_prop_types;
@@ -827,10 +937,32 @@ const {Readable: Readable$2} = _dll_pie_lib__render_ui;
827
937
  const cn$3 = _dll_classnames;
828
938
  const EditableHtml$1 = _dll_pie_lib__editable_html;
829
939
  const _jsxFileName$w = "/home/circleci/repo/packages/plot/src/root.jsx";
940
+ function _optionalChain$1(ops) {
941
+ let lastAccessLHS = undefined;
942
+ let value = ops[0];
943
+ let i = 1;
944
+ while (i < ops.length) {
945
+ const op = ops[i];
946
+ const fn = ops[i + 1];
947
+ i += 2;
948
+ if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
949
+ return undefined;
950
+ }
951
+ if (op === 'access' || op === 'optionalAccess') {
952
+ lastAccessLHS = value;
953
+ value = fn(value);
954
+ } else if (op === 'call' || op === 'optionalCall') {
955
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
956
+ lastAccessLHS = undefined;
957
+ }
958
+ }
959
+ return value;
960
+ }
830
961
  class Root$1 extends React$E.Component {
831
962
  constructor(...args) {
832
963
  super(...args);
833
964
  Root$1.prototype.__init.call(this);
965
+ Root$1.prototype.__init2.call(this);
834
966
  }
835
967
  static __initStatic() {
836
968
  this.propTypes = {
@@ -872,15 +1004,32 @@ class Root$1 extends React$E.Component {
872
1004
  const g = select(this.g);
873
1005
  g.on('mousemove', null);
874
1006
  }
1007
+ __init2() {
1008
+ this.onChangeLabel = (newValue, side) => {
1009
+ const {labels, onChangeLabels, isChart} = this.props;
1010
+ if (isChart) {
1011
+ if (side === 'left') {
1012
+ onChangeLabels('range', newValue);
1013
+ } else {
1014
+ onChangeLabels('domain', newValue);
1015
+ }
1016
+ return;
1017
+ }
1018
+ onChangeLabels({
1019
+ ...labels,
1020
+ [side]: newValue
1021
+ });
1022
+ };
1023
+ }
875
1024
  render() {
876
- const {disabledTitle, graphProps, children, classes, onChangeTitle, thisIsChart, showLabels, showPixelGuides, showTitle, title, rootRef} = this.props;
1025
+ const {disabledTitle, disabledLabels, labels, labelsPlaceholders, titlePlaceholder, graphProps, children, classes, defineChart, onChangeTitle, isChart, showLabels, showPixelGuides, showTitle, title, rootRef} = this.props;
877
1026
  const {size: {width = 500, height = 500}, domain, range} = graphProps;
878
- const padding = showLabels ? 70 : 40;
879
- const extraPadding = showLabels ? 16 : 40;
880
- const finalWidth = width + padding * 2 + (domain.padding || 0) * 2 + extraPadding;
881
- const finalHeight = height + padding * 2 + (range.padding || 0) * 2;
1027
+ const topPadding = 40;
1028
+ const leftPadding = showLabels ? 80 : 60;
1029
+ const finalWidth = width + leftPadding * 2 + (domain.padding || 0) * 2;
1030
+ const finalHeight = height + topPadding * 2 + (range.padding || 0) * 2;
882
1031
  const activeTitlePlugins = ['bold', 'italic', 'underline', 'strikethrough', 'math'];
883
- const actualHeight = thisIsChart && showPixelGuides ? height - 80 : height;
1032
+ const actualHeight = defineChart && showPixelGuides ? height - 150 : height;
884
1033
  const nbOfVerticalLines = parseInt(width / 100);
885
1034
  const nbOfHorizontalLines = parseInt(actualHeight / 100);
886
1035
  const sideGridlinesPadding = parseInt(actualHeight % 100);
@@ -889,17 +1038,17 @@ class Root$1 extends React$E.Component {
889
1038
  __self: this,
890
1039
  __source: {
891
1040
  fileName: _jsxFileName$w,
892
- lineNumber: 96
1041
+ lineNumber: 121
893
1042
  }
894
1043
  }, showPixelGuides && React$E.createElement('div', {
895
1044
  className: classes.topPixelGuides,
896
1045
  style: {
897
- marginLeft: thisIsChart ? 10 : 20
1046
+ marginLeft: isChart ? 60 : showLabels ? 30 : 10
898
1047
  },
899
1048
  __self: this,
900
1049
  __source: {
901
1050
  fileName: _jsxFileName$w,
902
- lineNumber: 98
1051
+ lineNumber: 123
903
1052
  }
904
1053
  }, [...Array(nbOfVerticalLines + 1).keys()].map(value => React$E.createElement(Readable$2, {
905
1054
  false: true,
@@ -907,59 +1056,96 @@ class Root$1 extends React$E.Component {
907
1056
  __self: this,
908
1057
  __source: {
909
1058
  fileName: _jsxFileName$w,
910
- lineNumber: 100
1059
+ lineNumber: 128
911
1060
  }
912
1061
  }, React$E.createElement('div', {
913
1062
  className: classes.topPixelIndicator,
914
1063
  __self: this,
915
1064
  __source: {
916
1065
  fileName: _jsxFileName$w,
917
- lineNumber: 101
1066
+ lineNumber: 129
918
1067
  }
919
1068
  }, React$E.createElement('div', {
920
1069
  __self: this,
921
1070
  __source: {
922
1071
  fileName: _jsxFileName$w,
923
- lineNumber: 102
1072
+ lineNumber: 130
924
1073
  }
925
1074
  }, value * 100, "px"), React$E.createElement('div', {
926
1075
  __self: this,
927
1076
  __source: {
928
1077
  fileName: _jsxFileName$w,
929
- lineNumber: 103
1078
+ lineNumber: 131
1079
+ }
1080
+ }, "|"))))), showTitle && (disabledTitle ? React$E.createElement('div', {
1081
+ className: cn$3(classes.graphTitle, classes.disabledTitle),
1082
+ dangerouslySetInnerHTML: {
1083
+ __html: title || ''
1084
+ },
1085
+ __self: this,
1086
+ __source: {
1087
+ fileName: _jsxFileName$w,
1088
+ lineNumber: 139
930
1089
  }
931
- }, "|"))))), showTitle && React$E.createElement(EditableHtml$1, {
1090
+ }) : React$E.createElement(EditableHtml$1, {
932
1091
  className: cn$3({
933
- [classes.disabledTitle]: disabledTitle
1092
+ [classes.rightMargin]: showPixelGuides
934
1093
  }, classes.graphTitle),
935
1094
  markup: title || '',
936
- width: finalWidth,
937
1095
  onChange: onChangeTitle,
938
- placeholder: !disabledTitle && 'Click here to add a title for this graph',
1096
+ placeholder: defineChart && titlePlaceholder || !disabledTitle && 'Click here to add a title for this graph',
939
1097
  toolbarOpts: {
940
1098
  noBorder: true
941
1099
  },
942
1100
  activePlugins: activeTitlePlugins,
1101
+ disableScrollbar: true,
1102
+ __self: this,
1103
+ __source: {
1104
+ fileName: _jsxFileName$w,
1105
+ lineNumber: 144
1106
+ }
1107
+ })), showLabels && !isChart && React$E.createElement(Label$1, {
1108
+ side: "top",
1109
+ text: labels.top,
1110
+ disabledLabel: disabledLabels,
1111
+ placeholder: _optionalChain$1([labelsPlaceholders, 'optionalAccess', _ => _.top]),
1112
+ graphHeight: finalHeight,
1113
+ graphWidth: finalWidth,
1114
+ onChange: value => this.onChangeLabel(value, 'top'),
943
1115
  __self: this,
944
1116
  __source: {
945
1117
  fileName: _jsxFileName$w,
946
- lineNumber: 110
1118
+ lineNumber: 158
947
1119
  }
948
1120
  }), React$E.createElement('div', {
949
1121
  className: classes.wrapper,
950
1122
  __self: this,
951
1123
  __source: {
952
1124
  fileName: _jsxFileName$w,
953
- lineNumber: 125
1125
+ lineNumber: 168
1126
+ }
1127
+ }, showLabels && React$E.createElement(Label$1, {
1128
+ side: "left",
1129
+ text: labels.left,
1130
+ disabledLabel: disabledLabels,
1131
+ placeholder: _optionalChain$1([labelsPlaceholders, 'optionalAccess', _2 => _2.left]),
1132
+ graphHeight: finalHeight,
1133
+ graphWidth: finalWidth,
1134
+ isChartLeftLabel: isChart && defineChart,
1135
+ onChange: value => this.onChangeLabel(value, 'left'),
1136
+ __self: this,
1137
+ __source: {
1138
+ fileName: _jsxFileName$w,
1139
+ lineNumber: 170
954
1140
  }
955
- }, React$E.createElement('svg', {
1141
+ }), React$E.createElement('svg', {
956
1142
  width: finalWidth,
957
1143
  height: finalHeight,
958
- className: classes.svg,
1144
+ className: defineChart ? classes.defineChart : classes.chart,
959
1145
  __self: this,
960
1146
  __source: {
961
1147
  fileName: _jsxFileName$w,
962
- lineNumber: 126
1148
+ lineNumber: 181
963
1149
  }
964
1150
  }, React$E.createElement('g', {
965
1151
  ref: r => {
@@ -969,22 +1155,35 @@ class Root$1 extends React$E.Component {
969
1155
  }
970
1156
  },
971
1157
  className: classes.graphBox,
972
- transform: `translate(${padding}, ${padding})`,
1158
+ transform: `translate(${leftPadding}, ${topPadding})`,
1159
+ __self: this,
1160
+ __source: {
1161
+ fileName: _jsxFileName$w,
1162
+ lineNumber: 186
1163
+ }
1164
+ }, children)), showLabels && !isChart && React$E.createElement(Label$1, {
1165
+ side: "right",
1166
+ text: labels.right,
1167
+ disabledLabel: disabledLabels,
1168
+ placeholder: _optionalChain$1([labelsPlaceholders, 'optionalAccess', _3 => _3.right]),
1169
+ graphHeight: finalHeight,
1170
+ graphWidth: finalWidth,
1171
+ onChange: value => this.onChangeLabel(value, 'right'),
973
1172
  __self: this,
974
1173
  __source: {
975
1174
  fileName: _jsxFileName$w,
976
- lineNumber: 127
1175
+ lineNumber: 200
977
1176
  }
978
- }, children)), showPixelGuides && React$E.createElement('div', {
1177
+ }), showPixelGuides && React$E.createElement('div', {
979
1178
  className: classes.sidePixelGuides,
980
1179
  style: {
981
1180
  paddingTop: sideGridlinesPadding,
982
- marginTop: thisIsChart ? 25 : 60
1181
+ marginTop: defineChart ? 25 : 31
983
1182
  },
984
1183
  __self: this,
985
1184
  __source: {
986
1185
  fileName: _jsxFileName$w,
987
- lineNumber: 141
1186
+ lineNumber: 211
988
1187
  }
989
1188
  }, [...Array(nbOfHorizontalLines + 1).keys()].reverse().map(value => React$E.createElement(Readable$2, {
990
1189
  false: true,
@@ -992,16 +1191,30 @@ class Root$1 extends React$E.Component {
992
1191
  __self: this,
993
1192
  __source: {
994
1193
  fileName: _jsxFileName$w,
995
- lineNumber: 149
1194
+ lineNumber: 219
996
1195
  }
997
1196
  }, React$E.createElement('div', {
998
1197
  className: classes.sidePixelIndicator,
999
1198
  __self: this,
1000
1199
  __source: {
1001
1200
  fileName: _jsxFileName$w,
1002
- lineNumber: 150
1201
+ lineNumber: 220
1202
+ }
1203
+ }, "━ ", value * 100, "px"))))), showLabels && React$E.createElement(Label$1, {
1204
+ side: "bottom",
1205
+ text: labels.bottom,
1206
+ disabledLabel: disabledLabels,
1207
+ placeholder: _optionalChain$1([labelsPlaceholders, 'optionalAccess', _4 => _4.bottom]),
1208
+ graphHeight: finalHeight,
1209
+ graphWidth: finalWidth,
1210
+ isChartBottomLabel: isChart && defineChart,
1211
+ onChange: value => this.onChangeLabel(value, 'bottom'),
1212
+ __self: this,
1213
+ __source: {
1214
+ fileName: _jsxFileName$w,
1215
+ lineNumber: 227
1003
1216
  }
1004
- }, "━ ", value * 100, "px"))))));
1217
+ }));
1005
1218
  }
1006
1219
  }
1007
1220
  Root$1.__initStatic();
@@ -1009,12 +1222,22 @@ const styles$9 = theme => ({
1009
1222
  root: {
1010
1223
  border: `solid 1px ${color$i.primaryLight()}`,
1011
1224
  color: color$i.text(),
1012
- backgroundColor: color$i.background()
1225
+ backgroundColor: color$i.background(),
1226
+ touchAction: 'none',
1227
+ position: 'relative'
1013
1228
  },
1014
1229
  wrapper: {
1015
- display: 'flex'
1230
+ display: 'flex',
1231
+ position: 'relative'
1016
1232
  },
1017
1233
  svg: {},
1234
+ defineChart: {
1235
+ paddingLeft: '50px',
1236
+ overflow: 'visible'
1237
+ },
1238
+ chart: {
1239
+ overflow: 'visible'
1240
+ },
1018
1241
  graphBox: {
1019
1242
  cursor: 'pointer',
1020
1243
  userSelect: 'none'
@@ -1028,6 +1251,9 @@ const styles$9 = theme => ({
1028
1251
  disabledTitle: {
1029
1252
  pointerEvents: 'none'
1030
1253
  },
1254
+ rightMargin: {
1255
+ marginRight: '74px'
1256
+ },
1031
1257
  topPixelGuides: {
1032
1258
  display: 'flex',
1033
1259
  paddingTop: '6px'
@@ -5712,284 +5938,59 @@ var index$2 = Object.freeze({
5712
5938
  createGraphProps: create
5713
5939
  });
5714
5940
  const React$C = _dll_react;
5941
+ const cx$3 = _dll_classnames;
5715
5942
  const PropTypes$A = _dll_prop_types;
5716
- const {withStyles: withStyles$k} = _dll_material_ui__core_styles;
5717
- const {color: color$g} = _dll_pie_lib__render_ui;
5718
- const {Readable: Readable$1} = _dll_pie_lib__render_ui;
5719
- const cn$2 = _dll_classnames;
5720
- const EditableHtml = _dll_pie_lib__editable_html;
5721
- const _jsxFileName$u = "/home/circleci/repo/packages/graphing/src/labels.jsx";
5722
- const rotations = {
5723
- left: -90,
5724
- top: 0,
5725
- bottom: 0,
5726
- right: 90
5727
- };
5728
- const getTransform = (side, width, height) => {
5729
- const t = (x, y, rotate) => `translate(${x}, ${y}), rotate(${rotate})`;
5730
- if (side === 'left') {
5731
- return t(-20, height / 2, rotations[side]);
5732
- }
5733
- if (side === 'right') {
5734
- return t(width + 30, height / 2, rotations[side]);
5735
- }
5736
- if (side === 'top') {
5737
- return t(width / 2, -20, rotations[side]);
5738
- }
5739
- if (side === 'bottom') {
5740
- return t(width / 2, height + 30, rotations[side]);
5741
- }
5742
- };
5743
- const getY = (side, height) => {
5744
- switch (side) {
5745
- case 'left':
5746
- return -height;
5747
- case 'top':
5748
- return -height;
5749
- case 'right':
5750
- return -height - 10;
5751
- default:
5752
- return -height + 10;
5753
- }
5754
- };
5755
- class RawLabel extends React$C.Component {
5756
- static __initStatic() {
5757
- this.propTypes = {
5758
- text: PropTypes$A.string,
5759
- side: PropTypes$A.string,
5760
- classes: PropTypes$A.object,
5761
- disabledLabel: PropTypes$A.bool,
5762
- placeholder: PropTypes$A.string,
5763
- graphProps: GraphPropsType.isRequired
5764
- };
5765
- }
5766
- static __initStatic2() {
5767
- this.defaultProps = {
5768
- onChange: () => {}
5769
- };
5770
- }
5771
- render() {
5772
- const {disabledLabel, placeholder, text, side, graphProps, classes, onChange} = this.props;
5773
- const {size, domain, range} = graphProps;
5774
- const totalHeight = (size.height || 500) + (range.padding || 0) * 2;
5775
- const totalWidth = (size.width || 500) + (domain.padding || 0) * 2;
5776
- const transform = getTransform(side, totalWidth, totalHeight);
5777
- const width = side === 'left' || side === 'right' ? totalHeight : totalWidth;
5778
- const height = 36;
5779
- const y = getY(side, height);
5780
- const finalHeight = side === 'bottom' ? height + 22 : height + 18;
5781
- const activePlugins = ['bold', 'italic', 'underline', 'strikethrough', 'math'];
5782
- return React$C.createElement('foreignObject', {
5783
- x: -(width / 2),
5784
- y: y,
5785
- width: width,
5786
- height: finalHeight,
5787
- transform: transform,
5788
- textAnchor: "middle",
5789
- __self: this,
5790
- __source: {
5791
- fileName: _jsxFileName$u,
5792
- lineNumber: 82
5793
- }
5794
- }, React$C.createElement(Readable$1, {
5795
- false: true,
5796
- __self: this,
5797
- __source: {
5798
- fileName: _jsxFileName$u,
5799
- lineNumber: 90
5800
- }
5801
- }, React$C.createElement(EditableHtml, {
5802
- className: cn$2({
5803
- [classes.bottomLabel]: side === 'bottom',
5804
- [classes.disabledAxisLabel]: disabledLabel
5805
- }, classes.axisLabel),
5806
- markup: text || '',
5807
- onChange: onChange,
5808
- placeholder: !disabledLabel && placeholder,
5809
- toolbarOpts: {
5810
- position: side === 'bottom' ? 'top' : 'bottom',
5811
- noBorder: true
5812
- },
5813
- activePlugins: activePlugins,
5814
- __self: this,
5815
- __source: {
5816
- fileName: _jsxFileName$u,
5817
- lineNumber: 91
5943
+ function _extends$6() {
5944
+ _extends$6 = Object.assign || (function (target) {
5945
+ for (var i = 1; i < arguments.length; i++) {
5946
+ var source = arguments[i];
5947
+ for (var key in source) {
5948
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
5949
+ target[key] = source[key];
5950
+ }
5818
5951
  }
5819
- })));
5952
+ }
5953
+ return target;
5954
+ });
5955
+ return _extends$6.apply(this, arguments);
5956
+ }
5957
+ function _objectWithoutPropertiesLoose$4(source, excluded) {
5958
+ if (source == null) return {};
5959
+ var target = {};
5960
+ var sourceKeys = Object.keys(source);
5961
+ var key, i;
5962
+ for (i = 0; i < sourceKeys.length; i++) {
5963
+ key = sourceKeys[i];
5964
+ if (excluded.indexOf(key) >= 0) continue;
5965
+ target[key] = source[key];
5820
5966
  }
5967
+ return target;
5821
5968
  }
5822
- RawLabel.__initStatic();
5823
- RawLabel.__initStatic2();
5824
- const Label = withStyles$k(theme => ({
5825
- label: {
5826
- fill: color$g.secondary()
5827
- },
5828
- axisLabel: {
5829
- fontSize: theme.typography.fontSize - 2,
5830
- textAlign: 'center',
5831
- padding: '0 4px'
5832
- },
5833
- disabledAxisLabel: {
5834
- pointerEvents: 'none'
5835
- },
5836
- bottomLabel: {
5837
- marginTop: '44px'
5838
- }
5839
- }))(RawLabel);
5840
- const LabelType = {
5841
- left: PropTypes$A.string,
5842
- top: PropTypes$A.string,
5843
- bottom: PropTypes$A.string,
5844
- right: PropTypes$A.string
5845
- };
5846
- class Labels extends React$C.Component {
5847
- constructor(...args) {
5848
- super(...args);
5849
- Labels.prototype.__init.call(this);
5850
- }
5851
- static __initStatic3() {
5852
- this.propTypes = {
5853
- classes: PropTypes$A.object,
5854
- className: PropTypes$A.string,
5855
- disabledLabels: PropTypes$A.bool,
5856
- placeholders: PropTypes$A.object,
5857
- value: PropTypes$A.shape(LabelType),
5858
- graphProps: PropTypes$A.object
5859
- };
5860
- }
5861
- static __initStatic4() {
5862
- this.defaultProps = {};
5863
- }
5864
- __init() {
5865
- this.onChangeLabel = (newValue, side) => {
5866
- const {value, onChange} = this.props;
5867
- const labels = {
5868
- ...value,
5869
- [side]: newValue
5870
- };
5871
- onChange(labels);
5872
- };
5873
- }
5874
- render() {
5875
- const {disabledLabels, placeholders = {}, value = {}, graphProps} = this.props;
5876
- return React$C.createElement(React$C.Fragment, {
5877
- __self: this,
5878
- __source: {
5879
- fileName: _jsxFileName$u,
5880
- lineNumber: 164
5881
- }
5882
- }, React$C.createElement(Label, {
5883
- key: "left",
5884
- side: "left",
5885
- text: value.left,
5886
- disabledLabel: disabledLabels,
5887
- placeholder: placeholders.left,
5888
- graphProps: graphProps,
5889
- onChange: value => this.onChangeLabel(value, 'left'),
5890
- __self: this,
5891
- __source: {
5892
- fileName: _jsxFileName$u,
5893
- lineNumber: 165
5894
- }
5895
- }), React$C.createElement(Label, {
5896
- key: "top",
5897
- side: "top",
5898
- text: value.top,
5899
- disabledLabel: disabledLabels,
5900
- placeholder: placeholders.top,
5901
- graphProps: graphProps,
5902
- onChange: value => this.onChangeLabel(value, 'top'),
5903
- __self: this,
5904
- __source: {
5905
- fileName: _jsxFileName$u,
5906
- lineNumber: 174
5907
- }
5908
- }), React$C.createElement(Label, {
5909
- key: "bottom",
5910
- side: "bottom",
5911
- text: value.bottom,
5912
- disabledLabel: disabledLabels,
5913
- placeholder: placeholders.bottom,
5914
- graphProps: graphProps,
5915
- onChange: value => this.onChangeLabel(value, 'bottom'),
5916
- __self: this,
5917
- __source: {
5918
- fileName: _jsxFileName$u,
5919
- lineNumber: 183
5920
- }
5921
- }), React$C.createElement(Label, {
5922
- key: "right",
5923
- side: "right",
5924
- text: value.right,
5925
- disabledLabel: disabledLabels,
5926
- placeholder: placeholders.right,
5927
- graphProps: graphProps,
5928
- onChange: value => this.onChangeLabel(value, 'right'),
5929
- __self: this,
5930
- __source: {
5931
- fileName: _jsxFileName$u,
5932
- lineNumber: 192
5933
- }
5934
- }));
5935
- }
5936
- }
5937
- Labels.__initStatic3();
5938
- Labels.__initStatic4();
5939
- const React$B = _dll_react;
5940
- const cx$3 = _dll_classnames;
5941
- const PropTypes$z = _dll_prop_types;
5942
- function _extends$6() {
5943
- _extends$6 = Object.assign || (function (target) {
5944
- for (var i = 1; i < arguments.length; i++) {
5945
- var source = arguments[i];
5946
- for (var key in source) {
5947
- if (Object.prototype.hasOwnProperty.call(source, key)) {
5948
- target[key] = source[key];
5949
- }
5950
- }
5951
- }
5952
- return target;
5953
- });
5954
- return _extends$6.apply(this, arguments);
5955
- }
5956
- function _objectWithoutPropertiesLoose$4(source, excluded) {
5957
- if (source == null) return {};
5958
- var target = {};
5959
- var sourceKeys = Object.keys(source);
5960
- var key, i;
5961
- for (i = 0; i < sourceKeys.length; i++) {
5962
- key = sourceKeys[i];
5963
- if (excluded.indexOf(key) >= 0) continue;
5964
- target[key] = source[key];
5965
- }
5966
- return target;
5967
- }
5968
- function _objectWithoutProperties$4(source, excluded) {
5969
- if (source == null) return {};
5970
- var target = _objectWithoutPropertiesLoose$4(source, excluded);
5971
- var key, i;
5972
- if (Object.getOwnPropertySymbols) {
5973
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
5974
- for (i = 0; i < sourceSymbolKeys.length; i++) {
5975
- key = sourceSymbolKeys[i];
5976
- if (excluded.indexOf(key) >= 0) continue;
5977
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
5978
- target[key] = source[key];
5979
- }
5969
+ function _objectWithoutProperties$4(source, excluded) {
5970
+ if (source == null) return {};
5971
+ var target = _objectWithoutPropertiesLoose$4(source, excluded);
5972
+ var key, i;
5973
+ if (Object.getOwnPropertySymbols) {
5974
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
5975
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
5976
+ key = sourceSymbolKeys[i];
5977
+ if (excluded.indexOf(key) >= 0) continue;
5978
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
5979
+ target[key] = source[key];
5980
+ }
5980
5981
  }
5981
5982
  return target;
5982
5983
  }
5983
5984
  Group.propTypes = {
5984
- top: PropTypes$z.number,
5985
- left: PropTypes$z.number,
5986
- transform: PropTypes$z.string,
5987
- className: PropTypes$z.string,
5988
- children: PropTypes$z.any
5985
+ top: PropTypes$A.number,
5986
+ left: PropTypes$A.number,
5987
+ transform: PropTypes$A.string,
5988
+ className: PropTypes$A.string,
5989
+ children: PropTypes$A.any
5989
5990
  };
5990
5991
  function Group(_ref) {
5991
5992
  var _ref$top = _ref.top, top = _ref$top === void 0 ? 0 : _ref$top, _ref$left = _ref.left, left = _ref$left === void 0 ? 0 : _ref$left, transform = _ref.transform, className = _ref.className, children = _ref.children, restProps = _objectWithoutProperties$4(_ref, ["top", "left", "transform", "className", "children"]);
5992
- return React$B.createElement("g", _extends$6({
5993
+ return React$C.createElement("g", _extends$6({
5993
5994
  className: cx$3('vx-group', className),
5994
5995
  transform: transform || ("translate(").concat(left, ", ").concat(top, ")")
5995
5996
  }, restProps), children);
@@ -6252,9 +6253,9 @@ var Point$1 = (function () {
6252
6253
  }]);
6253
6254
  return Point;
6254
6255
  })();
6255
- const React$A = _dll_react;
6256
+ const React$B = _dll_react;
6256
6257
  const cx$2 = _dll_classnames;
6257
- const PropTypes$y = _dll_prop_types;
6258
+ const PropTypes$z = _dll_prop_types;
6258
6259
  function _extends$5() {
6259
6260
  _extends$5 = Object.assign || (function (target) {
6260
6261
  for (var i = 1; i < arguments.length; i++) {
@@ -6297,47 +6298,47 @@ function _objectWithoutProperties$3(source, excluded) {
6297
6298
  return target;
6298
6299
  }
6299
6300
  ({
6300
- className: PropTypes$y.string,
6301
- data: PropTypes$y.any,
6302
- children: PropTypes$y.func,
6303
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6304
- centroid: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6305
- innerRadius: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6306
- outerRadius: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6307
- cornerRadius: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6308
- startAngle: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6309
- endAngle: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6310
- padAngle: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6311
- padRadius: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number])
6301
+ className: PropTypes$z.string,
6302
+ data: PropTypes$z.any,
6303
+ children: PropTypes$z.func,
6304
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6305
+ centroid: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6306
+ innerRadius: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6307
+ outerRadius: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6308
+ cornerRadius: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6309
+ startAngle: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6310
+ endAngle: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6311
+ padAngle: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6312
+ padRadius: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number])
6312
6313
  });
6313
6314
  ({
6314
- className: PropTypes$y.string,
6315
- top: PropTypes$y.number,
6316
- left: PropTypes$y.number,
6317
- data: PropTypes$y.array,
6318
- centroid: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6319
- innerRadius: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6320
- outerRadius: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6321
- cornerRadius: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6322
- startAngle: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6323
- endAngle: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6324
- padAngle: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6325
- padRadius: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6326
- pieValue: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6327
- pieSort: PropTypes$y.func,
6328
- pieSortValues: PropTypes$y.func,
6329
- children: PropTypes$y.func
6315
+ className: PropTypes$z.string,
6316
+ top: PropTypes$z.number,
6317
+ left: PropTypes$z.number,
6318
+ data: PropTypes$z.array,
6319
+ centroid: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6320
+ innerRadius: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6321
+ outerRadius: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6322
+ cornerRadius: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6323
+ startAngle: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6324
+ endAngle: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6325
+ padAngle: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6326
+ padRadius: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6327
+ pieValue: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6328
+ pieSort: PropTypes$z.func,
6329
+ pieSortValues: PropTypes$z.func,
6330
+ children: PropTypes$z.func
6330
6331
  });
6331
6332
  Line$5.propTypes = {
6332
- className: PropTypes$y.string,
6333
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6334
- from: PropTypes$y.shape({
6335
- x: PropTypes$y.number,
6336
- y: PropTypes$y.number
6333
+ className: PropTypes$z.string,
6334
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6335
+ from: PropTypes$z.shape({
6336
+ x: PropTypes$z.number,
6337
+ y: PropTypes$z.number
6337
6338
  }),
6338
- to: PropTypes$y.shape({
6339
- x: PropTypes$y.number,
6340
- y: PropTypes$y.number
6339
+ to: PropTypes$z.shape({
6340
+ x: PropTypes$z.number,
6341
+ y: PropTypes$z.number
6341
6342
  })
6342
6343
  };
6343
6344
  function Line$5(_ref) {
@@ -6348,7 +6349,7 @@ function Line$5(_ref) {
6348
6349
  x: 1,
6349
6350
  y: 1
6350
6351
  }) : _ref$to, _ref$fill = _ref.fill, fill = _ref$fill === void 0 ? 'transparent' : _ref$fill, _ref$className = _ref.className, className = _ref$className === void 0 ? '' : _ref$className, innerRef = _ref.innerRef, restProps = _objectWithoutProperties$3(_ref, ["from", "to", "fill", "className", "innerRef"]);
6351
- return React$A.createElement("line", _extends$5({
6352
+ return React$B.createElement("line", _extends$5({
6352
6353
  ref: innerRef,
6353
6354
  className: cx$2('vx-line', className),
6354
6355
  x1: from.x,
@@ -6359,12 +6360,12 @@ function Line$5(_ref) {
6359
6360
  }, restProps));
6360
6361
  }
6361
6362
  LinePath$1.propTypes = {
6362
- data: PropTypes$y.array,
6363
- curve: PropTypes$y.func,
6364
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6365
- defined: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.bool]),
6366
- x: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6367
- y: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number])
6363
+ data: PropTypes$z.array,
6364
+ curve: PropTypes$z.func,
6365
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6366
+ defined: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.bool]),
6367
+ x: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6368
+ y: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number])
6368
6369
  };
6369
6370
  function LinePath$1(_ref) {
6370
6371
  var children = _ref.children, data = _ref.data, x = _ref.x, y = _ref.y, _ref$fill = _ref.fill, fill = _ref$fill === void 0 ? 'transparent' : _ref$fill, className = _ref.className, curve = _ref.curve, innerRef = _ref.innerRef, _ref$defined = _ref.defined, defined = _ref$defined === void 0 ? function () {
@@ -6378,7 +6379,7 @@ function LinePath$1(_ref) {
6378
6379
  if (children) return children({
6379
6380
  path: path$$1
6380
6381
  });
6381
- return React$A.createElement("path", _extends$5({
6382
+ return React$B.createElement("path", _extends$5({
6382
6383
  ref: innerRef,
6383
6384
  className: cx$2('vx-linepath', className),
6384
6385
  d: path$$1(data),
@@ -6386,275 +6387,275 @@ function LinePath$1(_ref) {
6386
6387
  }, restProps));
6387
6388
  }
6388
6389
  ({
6389
- className: PropTypes$y.string,
6390
- data: PropTypes$y.any,
6391
- curve: PropTypes$y.func,
6392
- angle: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6393
- radius: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6394
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object])
6390
+ className: PropTypes$z.string,
6391
+ data: PropTypes$z.any,
6392
+ curve: PropTypes$z.func,
6393
+ angle: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6394
+ radius: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6395
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object])
6395
6396
  });
6396
6397
  ({
6397
- children: PropTypes$y.func,
6398
- className: PropTypes$y.string,
6399
- data: PropTypes$y.any,
6400
- defined: PropTypes$y.func,
6401
- curve: PropTypes$y.func,
6402
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6403
- x: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6404
- x0: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6405
- x1: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6406
- y: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6407
- y0: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6408
- y1: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number])
6398
+ children: PropTypes$z.func,
6399
+ className: PropTypes$z.string,
6400
+ data: PropTypes$z.any,
6401
+ defined: PropTypes$z.func,
6402
+ curve: PropTypes$z.func,
6403
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6404
+ x: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6405
+ x0: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6406
+ x1: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6407
+ y: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6408
+ y0: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6409
+ y1: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number])
6409
6410
  });
6410
6411
  ({
6411
- children: PropTypes$y.func,
6412
- className: PropTypes$y.string,
6413
- data: PropTypes$y.any,
6414
- defined: PropTypes$y.func,
6415
- curve: PropTypes$y.func,
6416
- yScale: PropTypes$y.func,
6417
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6418
- x: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6419
- x0: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6420
- x1: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6421
- y1: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6422
- y0: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number])
6412
+ children: PropTypes$z.func,
6413
+ className: PropTypes$z.string,
6414
+ data: PropTypes$z.any,
6415
+ defined: PropTypes$z.func,
6416
+ curve: PropTypes$z.func,
6417
+ yScale: PropTypes$z.func,
6418
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6419
+ x: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6420
+ x0: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6421
+ x1: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6422
+ y1: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6423
+ y0: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number])
6423
6424
  });
6424
6425
  ({
6425
- data: PropTypes$y.array.isRequired,
6426
- className: PropTypes$y.string,
6427
- top: PropTypes$y.number,
6428
- left: PropTypes$y.number,
6429
- curve: PropTypes$y.func,
6430
- color: PropTypes$y.func,
6431
- keys: PropTypes$y.array,
6432
- children: PropTypes$y.func,
6433
- x: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6434
- x0: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6435
- x1: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6436
- y: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6437
- y0: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6438
- y1: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6439
- value: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6440
- defined: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.bool]),
6441
- order: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.array, PropTypes$y.string]),
6442
- offset: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.array, PropTypes$y.string])
6426
+ data: PropTypes$z.array.isRequired,
6427
+ className: PropTypes$z.string,
6428
+ top: PropTypes$z.number,
6429
+ left: PropTypes$z.number,
6430
+ curve: PropTypes$z.func,
6431
+ color: PropTypes$z.func,
6432
+ keys: PropTypes$z.array,
6433
+ children: PropTypes$z.func,
6434
+ x: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6435
+ x0: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6436
+ x1: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6437
+ y: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6438
+ y0: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6439
+ y1: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6440
+ value: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6441
+ defined: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.bool]),
6442
+ order: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.array, PropTypes$z.string]),
6443
+ offset: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.array, PropTypes$z.string])
6443
6444
  });
6444
6445
  ({
6445
- className: PropTypes$y.string,
6446
- top: PropTypes$y.number,
6447
- left: PropTypes$y.number,
6448
- keys: PropTypes$y.array,
6449
- data: PropTypes$y.array,
6450
- curve: PropTypes$y.func,
6451
- color: PropTypes$y.func,
6452
- children: PropTypes$y.func,
6453
- x: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6454
- x0: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6455
- x1: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6456
- y: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6457
- y0: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6458
- y1: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6459
- value: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6460
- defined: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.bool]),
6461
- order: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.array, PropTypes$y.string]),
6462
- offset: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.array, PropTypes$y.string])
6446
+ className: PropTypes$z.string,
6447
+ top: PropTypes$z.number,
6448
+ left: PropTypes$z.number,
6449
+ keys: PropTypes$z.array,
6450
+ data: PropTypes$z.array,
6451
+ curve: PropTypes$z.func,
6452
+ color: PropTypes$z.func,
6453
+ children: PropTypes$z.func,
6454
+ x: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6455
+ x0: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6456
+ x1: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6457
+ y: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6458
+ y0: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6459
+ y1: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6460
+ value: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6461
+ defined: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.bool]),
6462
+ order: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.array, PropTypes$z.string]),
6463
+ offset: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.array, PropTypes$z.string])
6463
6464
  });
6464
6465
  ({
6465
- className: PropTypes$y.string,
6466
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object])
6466
+ className: PropTypes$z.string,
6467
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object])
6467
6468
  });
6468
6469
  ({
6469
- data: PropTypes$y.array.isRequired,
6470
- x0: PropTypes$y.func.isRequired,
6471
- x0Scale: PropTypes$y.func.isRequired,
6472
- x1Scale: PropTypes$y.func.isRequired,
6473
- yScale: PropTypes$y.func.isRequired,
6474
- color: PropTypes$y.func.isRequired,
6475
- keys: PropTypes$y.array.isRequired,
6476
- height: PropTypes$y.number.isRequired,
6477
- className: PropTypes$y.string,
6478
- top: PropTypes$y.number,
6479
- left: PropTypes$y.number,
6480
- children: PropTypes$y.func
6470
+ data: PropTypes$z.array.isRequired,
6471
+ x0: PropTypes$z.func.isRequired,
6472
+ x0Scale: PropTypes$z.func.isRequired,
6473
+ x1Scale: PropTypes$z.func.isRequired,
6474
+ yScale: PropTypes$z.func.isRequired,
6475
+ color: PropTypes$z.func.isRequired,
6476
+ keys: PropTypes$z.array.isRequired,
6477
+ height: PropTypes$z.number.isRequired,
6478
+ className: PropTypes$z.string,
6479
+ top: PropTypes$z.number,
6480
+ left: PropTypes$z.number,
6481
+ children: PropTypes$z.func
6481
6482
  });
6482
6483
  ({
6483
- data: PropTypes$y.array.isRequired,
6484
- y0: PropTypes$y.func.isRequired,
6485
- y0Scale: PropTypes$y.func.isRequired,
6486
- y1Scale: PropTypes$y.func.isRequired,
6487
- xScale: PropTypes$y.func.isRequired,
6488
- color: PropTypes$y.func.isRequired,
6489
- keys: PropTypes$y.array.isRequired,
6490
- width: PropTypes$y.number.isRequired,
6491
- className: PropTypes$y.string,
6492
- x: PropTypes$y.func,
6493
- top: PropTypes$y.number,
6494
- left: PropTypes$y.number,
6495
- children: PropTypes$y.func
6484
+ data: PropTypes$z.array.isRequired,
6485
+ y0: PropTypes$z.func.isRequired,
6486
+ y0Scale: PropTypes$z.func.isRequired,
6487
+ y1Scale: PropTypes$z.func.isRequired,
6488
+ xScale: PropTypes$z.func.isRequired,
6489
+ color: PropTypes$z.func.isRequired,
6490
+ keys: PropTypes$z.array.isRequired,
6491
+ width: PropTypes$z.number.isRequired,
6492
+ className: PropTypes$z.string,
6493
+ x: PropTypes$z.func,
6494
+ top: PropTypes$z.number,
6495
+ left: PropTypes$z.number,
6496
+ children: PropTypes$z.func
6496
6497
  });
6497
6498
  ({
6498
- data: PropTypes$y.array.isRequired,
6499
- x: PropTypes$y.func.isRequired,
6500
- xScale: PropTypes$y.func.isRequired,
6501
- yScale: PropTypes$y.func.isRequired,
6502
- color: PropTypes$y.func.isRequired,
6503
- keys: PropTypes$y.array.isRequired,
6504
- className: PropTypes$y.string,
6505
- top: PropTypes$y.number,
6506
- left: PropTypes$y.number,
6507
- children: PropTypes$y.func,
6508
- y0: PropTypes$y.func,
6509
- y1: PropTypes$y.func,
6510
- order: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.array, PropTypes$y.string]),
6511
- offset: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.array, PropTypes$y.string]),
6512
- value: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number])
6499
+ data: PropTypes$z.array.isRequired,
6500
+ x: PropTypes$z.func.isRequired,
6501
+ xScale: PropTypes$z.func.isRequired,
6502
+ yScale: PropTypes$z.func.isRequired,
6503
+ color: PropTypes$z.func.isRequired,
6504
+ keys: PropTypes$z.array.isRequired,
6505
+ className: PropTypes$z.string,
6506
+ top: PropTypes$z.number,
6507
+ left: PropTypes$z.number,
6508
+ children: PropTypes$z.func,
6509
+ y0: PropTypes$z.func,
6510
+ y1: PropTypes$z.func,
6511
+ order: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.array, PropTypes$z.string]),
6512
+ offset: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.array, PropTypes$z.string]),
6513
+ value: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number])
6513
6514
  });
6514
6515
  ({
6515
- data: PropTypes$y.array.isRequired,
6516
- y: PropTypes$y.func.isRequired,
6517
- x0: PropTypes$y.func,
6518
- x1: PropTypes$y.func,
6519
- xScale: PropTypes$y.func.isRequired,
6520
- yScale: PropTypes$y.func.isRequired,
6521
- color: PropTypes$y.func.isRequired,
6522
- keys: PropTypes$y.array.isRequired,
6523
- className: PropTypes$y.string,
6524
- top: PropTypes$y.number,
6525
- left: PropTypes$y.number,
6526
- order: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.array, PropTypes$y.string]),
6527
- offset: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.array, PropTypes$y.string]),
6528
- value: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.number]),
6529
- children: PropTypes$y.func
6516
+ data: PropTypes$z.array.isRequired,
6517
+ y: PropTypes$z.func.isRequired,
6518
+ x0: PropTypes$z.func,
6519
+ x1: PropTypes$z.func,
6520
+ xScale: PropTypes$z.func.isRequired,
6521
+ yScale: PropTypes$z.func.isRequired,
6522
+ color: PropTypes$z.func.isRequired,
6523
+ keys: PropTypes$z.array.isRequired,
6524
+ className: PropTypes$z.string,
6525
+ top: PropTypes$z.number,
6526
+ left: PropTypes$z.number,
6527
+ order: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.array, PropTypes$z.string]),
6528
+ offset: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.array, PropTypes$z.string]),
6529
+ value: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.number]),
6530
+ children: PropTypes$z.func
6530
6531
  });
6531
6532
  ({
6532
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6533
- x: PropTypes$y.func,
6534
- y: PropTypes$y.func,
6535
- source: PropTypes$y.func,
6536
- target: PropTypes$y.func,
6537
- path: PropTypes$y.func,
6538
- children: PropTypes$y.func
6533
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6534
+ x: PropTypes$z.func,
6535
+ y: PropTypes$z.func,
6536
+ source: PropTypes$z.func,
6537
+ target: PropTypes$z.func,
6538
+ path: PropTypes$z.func,
6539
+ children: PropTypes$z.func
6539
6540
  });
6540
6541
  ({
6541
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6542
- x: PropTypes$y.func,
6543
- y: PropTypes$y.func,
6544
- source: PropTypes$y.func,
6545
- target: PropTypes$y.func,
6546
- path: PropTypes$y.func
6542
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6543
+ x: PropTypes$z.func,
6544
+ y: PropTypes$z.func,
6545
+ source: PropTypes$z.func,
6546
+ target: PropTypes$z.func,
6547
+ path: PropTypes$z.func
6547
6548
  });
6548
6549
  ({
6549
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6550
- angle: PropTypes$y.func,
6551
- radius: PropTypes$y.func,
6552
- source: PropTypes$y.func,
6553
- target: PropTypes$y.func,
6554
- path: PropTypes$y.func,
6555
- children: PropTypes$y.func
6550
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6551
+ angle: PropTypes$z.func,
6552
+ radius: PropTypes$z.func,
6553
+ source: PropTypes$z.func,
6554
+ target: PropTypes$z.func,
6555
+ path: PropTypes$z.func,
6556
+ children: PropTypes$z.func
6556
6557
  });
6557
6558
  ({
6558
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6559
- percent: PropTypes$y.number,
6560
- x: PropTypes$y.func,
6561
- y: PropTypes$y.func,
6562
- source: PropTypes$y.func,
6563
- target: PropTypes$y.func,
6564
- path: PropTypes$y.func,
6565
- children: PropTypes$y.func
6559
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6560
+ percent: PropTypes$z.number,
6561
+ x: PropTypes$z.func,
6562
+ y: PropTypes$z.func,
6563
+ source: PropTypes$z.func,
6564
+ target: PropTypes$z.func,
6565
+ path: PropTypes$z.func,
6566
+ children: PropTypes$z.func
6566
6567
  });
6567
6568
  ({
6568
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6569
- percent: PropTypes$y.number,
6570
- x: PropTypes$y.func,
6571
- y: PropTypes$y.func,
6572
- source: PropTypes$y.func,
6573
- target: PropTypes$y.func,
6574
- path: PropTypes$y.func,
6575
- children: PropTypes$y.func
6569
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6570
+ percent: PropTypes$z.number,
6571
+ x: PropTypes$z.func,
6572
+ y: PropTypes$z.func,
6573
+ source: PropTypes$z.func,
6574
+ target: PropTypes$z.func,
6575
+ path: PropTypes$z.func,
6576
+ children: PropTypes$z.func
6576
6577
  });
6577
6578
  ({
6578
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6579
- percent: PropTypes$y.number,
6580
- x: PropTypes$y.func,
6581
- y: PropTypes$y.func,
6582
- source: PropTypes$y.func,
6583
- target: PropTypes$y.func,
6584
- path: PropTypes$y.func,
6585
- children: PropTypes$y.func
6579
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6580
+ percent: PropTypes$z.number,
6581
+ x: PropTypes$z.func,
6582
+ y: PropTypes$z.func,
6583
+ source: PropTypes$z.func,
6584
+ target: PropTypes$z.func,
6585
+ path: PropTypes$z.func,
6586
+ children: PropTypes$z.func
6586
6587
  });
6587
6588
  ({
6588
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6589
- path: PropTypes$y.func,
6590
- x: PropTypes$y.func,
6591
- y: PropTypes$y.func,
6592
- source: PropTypes$y.func,
6593
- target: PropTypes$y.func,
6594
- children: PropTypes$y.func
6589
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6590
+ path: PropTypes$z.func,
6591
+ x: PropTypes$z.func,
6592
+ y: PropTypes$z.func,
6593
+ source: PropTypes$z.func,
6594
+ target: PropTypes$z.func,
6595
+ children: PropTypes$z.func
6595
6596
  });
6596
6597
  ({
6597
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6598
- path: PropTypes$y.func,
6599
- x: PropTypes$y.func,
6600
- y: PropTypes$y.func,
6601
- source: PropTypes$y.func,
6602
- target: PropTypes$y.func,
6603
- children: PropTypes$y.func
6598
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6599
+ path: PropTypes$z.func,
6600
+ x: PropTypes$z.func,
6601
+ y: PropTypes$z.func,
6602
+ source: PropTypes$z.func,
6603
+ target: PropTypes$z.func,
6604
+ children: PropTypes$z.func
6604
6605
  });
6605
6606
  ({
6606
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6607
- path: PropTypes$y.func,
6608
- x: PropTypes$y.func,
6609
- y: PropTypes$y.func,
6610
- source: PropTypes$y.func,
6611
- target: PropTypes$y.func,
6612
- children: PropTypes$y.func
6607
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6608
+ path: PropTypes$z.func,
6609
+ x: PropTypes$z.func,
6610
+ y: PropTypes$z.func,
6611
+ source: PropTypes$z.func,
6612
+ target: PropTypes$z.func,
6613
+ children: PropTypes$z.func
6613
6614
  });
6614
6615
  ({
6615
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6616
- percent: PropTypes$y.number,
6617
- x: PropTypes$y.func,
6618
- y: PropTypes$y.func,
6619
- source: PropTypes$y.func,
6620
- target: PropTypes$y.func,
6621
- path: PropTypes$y.func,
6622
- children: PropTypes$y.func
6616
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6617
+ percent: PropTypes$z.number,
6618
+ x: PropTypes$z.func,
6619
+ y: PropTypes$z.func,
6620
+ source: PropTypes$z.func,
6621
+ target: PropTypes$z.func,
6622
+ path: PropTypes$z.func,
6623
+ children: PropTypes$z.func
6623
6624
  });
6624
6625
  ({
6625
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6626
- percent: PropTypes$y.number,
6627
- x: PropTypes$y.func,
6628
- y: PropTypes$y.func,
6629
- source: PropTypes$y.func,
6630
- target: PropTypes$y.func,
6631
- path: PropTypes$y.func,
6632
- children: PropTypes$y.func
6626
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6627
+ percent: PropTypes$z.number,
6628
+ x: PropTypes$z.func,
6629
+ y: PropTypes$z.func,
6630
+ source: PropTypes$z.func,
6631
+ target: PropTypes$z.func,
6632
+ path: PropTypes$z.func,
6633
+ children: PropTypes$z.func
6633
6634
  });
6634
6635
  ({
6635
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6636
- x: PropTypes$y.func,
6637
- y: PropTypes$y.func,
6638
- source: PropTypes$y.func,
6639
- target: PropTypes$y.func,
6640
- path: PropTypes$y.func,
6641
- children: PropTypes$y.func
6636
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6637
+ x: PropTypes$z.func,
6638
+ y: PropTypes$z.func,
6639
+ source: PropTypes$z.func,
6640
+ target: PropTypes$z.func,
6641
+ path: PropTypes$z.func,
6642
+ children: PropTypes$z.func
6642
6643
  });
6643
6644
  ({
6644
- sides: PropTypes$y.number.isRequired,
6645
- size: PropTypes$y.number.isRequired,
6646
- className: PropTypes$y.string,
6647
- rotate: PropTypes$y.number,
6648
- children: PropTypes$y.func,
6649
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
6650
- center: PropTypes$y.shape({
6651
- x: PropTypes$y.number,
6652
- y: PropTypes$y.number
6645
+ sides: PropTypes$z.number.isRequired,
6646
+ size: PropTypes$z.number.isRequired,
6647
+ className: PropTypes$z.string,
6648
+ rotate: PropTypes$z.number,
6649
+ children: PropTypes$z.func,
6650
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object]),
6651
+ center: PropTypes$z.shape({
6652
+ x: PropTypes$z.number,
6653
+ y: PropTypes$z.number
6653
6654
  })
6654
6655
  });
6655
6656
  ({
6656
- className: PropTypes$y.string,
6657
- innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object])
6657
+ className: PropTypes$z.string,
6658
+ innerRef: PropTypes$z.oneOfType([PropTypes$z.func, PropTypes$z.object])
6658
6659
  });
6659
6660
  var balancedMatch$1 = balanced$3;
6660
6661
  function balanced$3(a, b, str) {
@@ -7573,8 +7574,8 @@ function getUnitsInExpression(expression) {
7573
7574
  }
7574
7575
  return uniqueUnits;
7575
7576
  }
7576
- const PropTypes$x = _dll_prop_types;
7577
- const React$z = _dll_react;
7577
+ const PropTypes$y = _dll_prop_types;
7578
+ const React$A = _dll_react;
7578
7579
  const {Component: Component$a} = _dll_react;
7579
7580
  function _classCallCheck$1(instance, Constructor) {
7580
7581
  if (!(instance instanceof Constructor)) {
@@ -8110,7 +8111,7 @@ var Text = (function (_Component) {
8110
8111
  if (transforms.length) {
8111
8112
  textProps.transform = transforms.join(' ');
8112
8113
  }
8113
- return React$z.createElement("svg", {
8114
+ return React$A.createElement("svg", {
8114
8115
  ref: innerRef,
8115
8116
  x: dx,
8116
8117
  y: dy,
@@ -8118,10 +8119,10 @@ var Text = (function (_Component) {
8118
8119
  style: {
8119
8120
  overflow: 'visible'
8120
8121
  }
8121
- }, React$z.createElement("text", _extends$4({}, textProps, {
8122
+ }, React$A.createElement("text", _extends$4({}, textProps, {
8122
8123
  textAnchor: textAnchor
8123
8124
  }), wordsByLines.map(function (line, index) {
8124
- return React$z.createElement("tspan", {
8125
+ return React$A.createElement("tspan", {
8125
8126
  x: x,
8126
8127
  dy: index === 0 ? startDy : lineHeight,
8127
8128
  key: index
@@ -8143,21 +8144,21 @@ Text.defaultProps = {
8143
8144
  verticalAnchor: 'end'
8144
8145
  };
8145
8146
  Text.propTypes = {
8146
- scaleToFit: PropTypes$x.bool,
8147
- angle: PropTypes$x.number,
8148
- textAnchor: PropTypes$x.oneOf(['start', 'middle', 'end', 'inherit']),
8149
- verticalAnchor: PropTypes$x.oneOf(['start', 'middle', 'end']),
8150
- style: PropTypes$x.object,
8151
- innerRef: PropTypes$x.oneOfType([PropTypes$x.func, PropTypes$x.object]),
8152
- x: PropTypes$x.oneOfType([PropTypes$x.number, PropTypes$x.string]),
8153
- y: PropTypes$x.oneOfType([PropTypes$x.number, PropTypes$x.string]),
8154
- dx: PropTypes$x.oneOfType([PropTypes$x.number, PropTypes$x.string]),
8155
- dy: PropTypes$x.oneOfType([PropTypes$x.number, PropTypes$x.string]),
8156
- lineHeight: PropTypes$x.oneOfType([PropTypes$x.number, PropTypes$x.string]),
8157
- capHeight: PropTypes$x.oneOfType([PropTypes$x.number, PropTypes$x.string])
8147
+ scaleToFit: PropTypes$y.bool,
8148
+ angle: PropTypes$y.number,
8149
+ textAnchor: PropTypes$y.oneOf(['start', 'middle', 'end', 'inherit']),
8150
+ verticalAnchor: PropTypes$y.oneOf(['start', 'middle', 'end']),
8151
+ style: PropTypes$y.object,
8152
+ innerRef: PropTypes$y.oneOfType([PropTypes$y.func, PropTypes$y.object]),
8153
+ x: PropTypes$y.oneOfType([PropTypes$y.number, PropTypes$y.string]),
8154
+ y: PropTypes$y.oneOfType([PropTypes$y.number, PropTypes$y.string]),
8155
+ dx: PropTypes$y.oneOfType([PropTypes$y.number, PropTypes$y.string]),
8156
+ dy: PropTypes$y.oneOfType([PropTypes$y.number, PropTypes$y.string]),
8157
+ lineHeight: PropTypes$y.oneOfType([PropTypes$y.number, PropTypes$y.string]),
8158
+ capHeight: PropTypes$y.oneOfType([PropTypes$y.number, PropTypes$y.string])
8158
8159
  };
8159
- const React$y = _dll_react;
8160
- const PropTypes$w = _dll_prop_types;
8160
+ const React$z = _dll_react;
8161
+ const PropTypes$x = _dll_prop_types;
8161
8162
  const cx$1 = _dll_classnames;
8162
8163
  function _defineProperty(obj, key, value) {
8163
8164
  if ((key in obj)) {
@@ -8238,33 +8239,33 @@ function labelTransform(_ref) {
8238
8239
  };
8239
8240
  }
8240
8241
  var propTypes = {
8241
- axisClassName: PropTypes$w.string,
8242
- axisLineClassName: PropTypes$w.string,
8243
- hideAxisLine: PropTypes$w.bool,
8244
- hideTicks: PropTypes$w.bool,
8245
- hideZero: PropTypes$w.bool,
8246
- label: PropTypes$w.string,
8247
- labelClassName: PropTypes$w.string,
8248
- labelOffset: PropTypes$w.number,
8249
- labelProps: PropTypes$w.object,
8250
- left: PropTypes$w.number,
8251
- numTicks: PropTypes$w.number,
8252
- orientation: PropTypes$w.oneOf([ORIENT.top, ORIENT.right, ORIENT.bottom, ORIENT.left]),
8253
- rangePadding: PropTypes$w.number,
8254
- scale: PropTypes$w.func.isRequired,
8255
- stroke: PropTypes$w.string,
8256
- strokeWidth: PropTypes$w.number,
8257
- strokeDasharray: PropTypes$w.string,
8258
- tickClassName: PropTypes$w.string,
8259
- tickFormat: PropTypes$w.func,
8260
- tickLabelProps: PropTypes$w.func,
8261
- tickLength: PropTypes$w.number,
8262
- tickStroke: PropTypes$w.string,
8263
- tickTransform: PropTypes$w.string,
8264
- tickValues: PropTypes$w.array,
8265
- tickComponent: PropTypes$w.func,
8266
- top: PropTypes$w.number,
8267
- children: PropTypes$w.func
8242
+ axisClassName: PropTypes$x.string,
8243
+ axisLineClassName: PropTypes$x.string,
8244
+ hideAxisLine: PropTypes$x.bool,
8245
+ hideTicks: PropTypes$x.bool,
8246
+ hideZero: PropTypes$x.bool,
8247
+ label: PropTypes$x.string,
8248
+ labelClassName: PropTypes$x.string,
8249
+ labelOffset: PropTypes$x.number,
8250
+ labelProps: PropTypes$x.object,
8251
+ left: PropTypes$x.number,
8252
+ numTicks: PropTypes$x.number,
8253
+ orientation: PropTypes$x.oneOf([ORIENT.top, ORIENT.right, ORIENT.bottom, ORIENT.left]),
8254
+ rangePadding: PropTypes$x.number,
8255
+ scale: PropTypes$x.func.isRequired,
8256
+ stroke: PropTypes$x.string,
8257
+ strokeWidth: PropTypes$x.number,
8258
+ strokeDasharray: PropTypes$x.string,
8259
+ tickClassName: PropTypes$x.string,
8260
+ tickFormat: PropTypes$x.func,
8261
+ tickLabelProps: PropTypes$x.func,
8262
+ tickLength: PropTypes$x.number,
8263
+ tickStroke: PropTypes$x.string,
8264
+ tickTransform: PropTypes$x.string,
8265
+ tickValues: PropTypes$x.array,
8266
+ tickComponent: PropTypes$x.func,
8267
+ top: PropTypes$x.number,
8268
+ children: PropTypes$x.func
8268
8269
  };
8269
8270
  function Axis(_ref) {
8270
8271
  var children = _ref.children, axisClassName = _ref.axisClassName, axisLineClassName = _ref.axisLineClassName, _ref$hideAxisLine = _ref.hideAxisLine, hideAxisLine = _ref$hideAxisLine === void 0 ? false : _ref$hideAxisLine, _ref$hideTicks = _ref.hideTicks, hideTicks = _ref$hideTicks === void 0 ? false : _ref$hideTicks, _ref$hideZero = _ref.hideZero, hideZero = _ref$hideZero === void 0 ? false : _ref$hideZero, _ref$label = _ref.label, label = _ref$label === void 0 ? '' : _ref$label, labelClassName = _ref.labelClassName, _ref$labelOffset = _ref.labelOffset, labelOffset = _ref$labelOffset === void 0 ? 14 : _ref$labelOffset, _ref$labelProps = _ref.labelProps, labelProps = _ref$labelProps === void 0 ? {
@@ -8302,7 +8303,7 @@ function Axis(_ref) {
8302
8303
  });
8303
8304
  var tickLabelFontSize = 10;
8304
8305
  if (!!children) {
8305
- return React$y.createElement(Group, {
8306
+ return React$z.createElement(Group, {
8306
8307
  className: cx$1('vx-axis', axisClassName),
8307
8308
  top: top,
8308
8309
  left: left
@@ -8336,7 +8337,7 @@ function Axis(_ref) {
8336
8337
  })
8337
8338
  }));
8338
8339
  }
8339
- return React$y.createElement(Group, {
8340
+ return React$z.createElement(Group, {
8340
8341
  className: cx$1('vx-axis', axisClassName),
8341
8342
  top: top,
8342
8343
  left: left
@@ -8352,11 +8353,11 @@ function Axis(_ref) {
8352
8353
  });
8353
8354
  var tickLabelPropsObj = tickLabelProps(val, index);
8354
8355
  tickLabelFontSize = Math.max(tickLabelFontSize, tickLabelPropsObj.fontSize || 0);
8355
- return React$y.createElement(Group, {
8356
+ return React$z.createElement(Group, {
8356
8357
  key: ("vx-tick-").concat(val, "-").concat(index),
8357
8358
  className: cx$1('vx-axis-tick', tickClassName),
8358
8359
  transform: tickTransform
8359
- }, !hideTicks && React$y.createElement(Line$5, {
8360
+ }, !hideTicks && React$z.createElement(Line$5, {
8360
8361
  from: tickFromPoint,
8361
8362
  to: tickToPoint,
8362
8363
  stroke: tickStroke
@@ -8364,18 +8365,18 @@ function Axis(_ref) {
8364
8365
  x: tickToPoint.x,
8365
8366
  y: tickToPoint.y + (horizontal && !isTop ? tickLabelFontSize : 0),
8366
8367
  formattedValue: format(val, index)
8367
- }, tickLabelPropsObj)) : React$y.createElement(Text, _extends$3({
8368
+ }, tickLabelPropsObj)) : React$z.createElement(Text, _extends$3({
8368
8369
  x: tickToPoint.x,
8369
8370
  y: tickToPoint.y + (horizontal && !isTop ? tickLabelFontSize : 0)
8370
8371
  }, tickLabelPropsObj), format(val, index)));
8371
- }), !hideAxisLine && React$y.createElement(Line$5, {
8372
+ }), !hideAxisLine && React$z.createElement(Line$5, {
8372
8373
  className: cx$1('vx-axis-line', axisLineClassName),
8373
8374
  from: axisFromPoint,
8374
8375
  to: axisToPoint,
8375
8376
  stroke: stroke,
8376
8377
  strokeWidth: strokeWidth,
8377
8378
  strokeDasharray: strokeDasharray
8378
- }), label && React$y.createElement(Text, _extends$3({
8379
+ }), label && React$z.createElement(Text, _extends$3({
8379
8380
  className: cx$1('vx-axis-label', labelClassName)
8380
8381
  }, labelTransform({
8381
8382
  labelOffset: labelOffset,
@@ -8388,128 +8389,128 @@ function Axis(_ref) {
8388
8389
  }
8389
8390
  Axis.propTypes = propTypes;
8390
8391
  ({
8391
- axisClassName: PropTypes$w.string,
8392
- axisLineClassName: PropTypes$w.string,
8393
- hideAxisLine: PropTypes$w.bool,
8394
- hideTicks: PropTypes$w.bool,
8395
- hideZero: PropTypes$w.bool,
8396
- label: PropTypes$w.string,
8397
- labelClassName: PropTypes$w.string,
8398
- labelOffset: PropTypes$w.number,
8399
- labelProps: PropTypes$w.object,
8400
- left: PropTypes$w.number,
8401
- numTicks: PropTypes$w.number,
8402
- rangePadding: PropTypes$w.number,
8403
- scale: PropTypes$w.func.isRequired,
8404
- stroke: PropTypes$w.string,
8405
- strokeWidth: PropTypes$w.number,
8406
- strokeDasharray: PropTypes$w.string,
8407
- tickClassName: PropTypes$w.string,
8408
- tickFormat: PropTypes$w.func,
8409
- tickLabelProps: PropTypes$w.func,
8410
- tickLength: PropTypes$w.number,
8411
- tickStroke: PropTypes$w.string,
8412
- tickTransform: PropTypes$w.string,
8413
- tickValues: PropTypes$w.array,
8414
- tickComponent: PropTypes$w.func,
8415
- top: PropTypes$w.number,
8416
- children: PropTypes$w.func
8392
+ axisClassName: PropTypes$x.string,
8393
+ axisLineClassName: PropTypes$x.string,
8394
+ hideAxisLine: PropTypes$x.bool,
8395
+ hideTicks: PropTypes$x.bool,
8396
+ hideZero: PropTypes$x.bool,
8397
+ label: PropTypes$x.string,
8398
+ labelClassName: PropTypes$x.string,
8399
+ labelOffset: PropTypes$x.number,
8400
+ labelProps: PropTypes$x.object,
8401
+ left: PropTypes$x.number,
8402
+ numTicks: PropTypes$x.number,
8403
+ rangePadding: PropTypes$x.number,
8404
+ scale: PropTypes$x.func.isRequired,
8405
+ stroke: PropTypes$x.string,
8406
+ strokeWidth: PropTypes$x.number,
8407
+ strokeDasharray: PropTypes$x.string,
8408
+ tickClassName: PropTypes$x.string,
8409
+ tickFormat: PropTypes$x.func,
8410
+ tickLabelProps: PropTypes$x.func,
8411
+ tickLength: PropTypes$x.number,
8412
+ tickStroke: PropTypes$x.string,
8413
+ tickTransform: PropTypes$x.string,
8414
+ tickValues: PropTypes$x.array,
8415
+ tickComponent: PropTypes$x.func,
8416
+ top: PropTypes$x.number,
8417
+ children: PropTypes$x.func
8417
8418
  });
8418
8419
  ({
8419
- axisClassName: PropTypes$w.string,
8420
- axisLineClassName: PropTypes$w.string,
8421
- hideAxisLine: PropTypes$w.bool,
8422
- hideTicks: PropTypes$w.bool,
8423
- hideZero: PropTypes$w.bool,
8424
- label: PropTypes$w.string,
8425
- labelClassName: PropTypes$w.string,
8426
- labelOffset: PropTypes$w.number,
8427
- labelProps: PropTypes$w.object,
8428
- left: PropTypes$w.number,
8429
- numTicks: PropTypes$w.number,
8430
- rangePadding: PropTypes$w.number,
8431
- scale: PropTypes$w.func.isRequired,
8432
- stroke: PropTypes$w.string,
8433
- strokeWidth: PropTypes$w.number,
8434
- strokeDasharray: PropTypes$w.string,
8435
- tickClassName: PropTypes$w.string,
8436
- tickFormat: PropTypes$w.func,
8437
- tickLabelProps: PropTypes$w.func,
8438
- tickLength: PropTypes$w.number,
8439
- tickStroke: PropTypes$w.string,
8440
- tickTransform: PropTypes$w.string,
8441
- tickValues: PropTypes$w.array,
8442
- tickComponent: PropTypes$w.func,
8443
- top: PropTypes$w.number,
8444
- children: PropTypes$w.func
8420
+ axisClassName: PropTypes$x.string,
8421
+ axisLineClassName: PropTypes$x.string,
8422
+ hideAxisLine: PropTypes$x.bool,
8423
+ hideTicks: PropTypes$x.bool,
8424
+ hideZero: PropTypes$x.bool,
8425
+ label: PropTypes$x.string,
8426
+ labelClassName: PropTypes$x.string,
8427
+ labelOffset: PropTypes$x.number,
8428
+ labelProps: PropTypes$x.object,
8429
+ left: PropTypes$x.number,
8430
+ numTicks: PropTypes$x.number,
8431
+ rangePadding: PropTypes$x.number,
8432
+ scale: PropTypes$x.func.isRequired,
8433
+ stroke: PropTypes$x.string,
8434
+ strokeWidth: PropTypes$x.number,
8435
+ strokeDasharray: PropTypes$x.string,
8436
+ tickClassName: PropTypes$x.string,
8437
+ tickFormat: PropTypes$x.func,
8438
+ tickLabelProps: PropTypes$x.func,
8439
+ tickLength: PropTypes$x.number,
8440
+ tickStroke: PropTypes$x.string,
8441
+ tickTransform: PropTypes$x.string,
8442
+ tickValues: PropTypes$x.array,
8443
+ tickComponent: PropTypes$x.func,
8444
+ top: PropTypes$x.number,
8445
+ children: PropTypes$x.func
8445
8446
  });
8446
8447
  ({
8447
- axisClassName: PropTypes$w.string,
8448
- axisLineClassName: PropTypes$w.string,
8449
- hideAxisLine: PropTypes$w.bool,
8450
- hideTicks: PropTypes$w.bool,
8451
- hideZero: PropTypes$w.bool,
8452
- label: PropTypes$w.string,
8453
- labelClassName: PropTypes$w.string,
8454
- labelOffset: PropTypes$w.number,
8455
- labelProps: PropTypes$w.object,
8456
- left: PropTypes$w.number,
8457
- numTicks: PropTypes$w.number,
8458
- rangePadding: PropTypes$w.number,
8459
- scale: PropTypes$w.func.isRequired,
8460
- stroke: PropTypes$w.string,
8461
- strokeWidth: PropTypes$w.number,
8462
- strokeDasharray: PropTypes$w.string,
8463
- tickClassName: PropTypes$w.string,
8464
- tickFormat: PropTypes$w.func,
8465
- tickLabelProps: PropTypes$w.func,
8466
- tickLength: PropTypes$w.number,
8467
- tickStroke: PropTypes$w.string,
8468
- tickTransform: PropTypes$w.string,
8469
- tickValues: PropTypes$w.array,
8470
- tickComponent: PropTypes$w.func,
8471
- top: PropTypes$w.number,
8472
- children: PropTypes$w.func
8448
+ axisClassName: PropTypes$x.string,
8449
+ axisLineClassName: PropTypes$x.string,
8450
+ hideAxisLine: PropTypes$x.bool,
8451
+ hideTicks: PropTypes$x.bool,
8452
+ hideZero: PropTypes$x.bool,
8453
+ label: PropTypes$x.string,
8454
+ labelClassName: PropTypes$x.string,
8455
+ labelOffset: PropTypes$x.number,
8456
+ labelProps: PropTypes$x.object,
8457
+ left: PropTypes$x.number,
8458
+ numTicks: PropTypes$x.number,
8459
+ rangePadding: PropTypes$x.number,
8460
+ scale: PropTypes$x.func.isRequired,
8461
+ stroke: PropTypes$x.string,
8462
+ strokeWidth: PropTypes$x.number,
8463
+ strokeDasharray: PropTypes$x.string,
8464
+ tickClassName: PropTypes$x.string,
8465
+ tickFormat: PropTypes$x.func,
8466
+ tickLabelProps: PropTypes$x.func,
8467
+ tickLength: PropTypes$x.number,
8468
+ tickStroke: PropTypes$x.string,
8469
+ tickTransform: PropTypes$x.string,
8470
+ tickValues: PropTypes$x.array,
8471
+ tickComponent: PropTypes$x.func,
8472
+ top: PropTypes$x.number,
8473
+ children: PropTypes$x.func
8473
8474
  });
8474
8475
  ({
8475
- axisClassName: PropTypes$w.string,
8476
- axisLineClassName: PropTypes$w.string,
8477
- hideAxisLine: PropTypes$w.bool,
8478
- hideTicks: PropTypes$w.bool,
8479
- hideZero: PropTypes$w.bool,
8480
- label: PropTypes$w.string,
8481
- labelClassName: PropTypes$w.string,
8482
- labelOffset: PropTypes$w.number,
8483
- labelProps: PropTypes$w.object,
8484
- left: PropTypes$w.number,
8485
- numTicks: PropTypes$w.number,
8486
- rangePadding: PropTypes$w.number,
8487
- scale: PropTypes$w.func.isRequired,
8488
- stroke: PropTypes$w.string,
8489
- strokeWidth: PropTypes$w.number,
8490
- strokeDasharray: PropTypes$w.string,
8491
- tickClassName: PropTypes$w.string,
8492
- tickFormat: PropTypes$w.func,
8493
- tickLabelProps: PropTypes$w.func,
8494
- tickLength: PropTypes$w.number,
8495
- tickStroke: PropTypes$w.string,
8496
- tickTransform: PropTypes$w.string,
8497
- tickValues: PropTypes$w.array,
8498
- tickComponent: PropTypes$w.func,
8499
- top: PropTypes$w.number,
8500
- children: PropTypes$w.func
8476
+ axisClassName: PropTypes$x.string,
8477
+ axisLineClassName: PropTypes$x.string,
8478
+ hideAxisLine: PropTypes$x.bool,
8479
+ hideTicks: PropTypes$x.bool,
8480
+ hideZero: PropTypes$x.bool,
8481
+ label: PropTypes$x.string,
8482
+ labelClassName: PropTypes$x.string,
8483
+ labelOffset: PropTypes$x.number,
8484
+ labelProps: PropTypes$x.object,
8485
+ left: PropTypes$x.number,
8486
+ numTicks: PropTypes$x.number,
8487
+ rangePadding: PropTypes$x.number,
8488
+ scale: PropTypes$x.func.isRequired,
8489
+ stroke: PropTypes$x.string,
8490
+ strokeWidth: PropTypes$x.number,
8491
+ strokeDasharray: PropTypes$x.string,
8492
+ tickClassName: PropTypes$x.string,
8493
+ tickFormat: PropTypes$x.func,
8494
+ tickLabelProps: PropTypes$x.func,
8495
+ tickLength: PropTypes$x.number,
8496
+ tickStroke: PropTypes$x.string,
8497
+ tickTransform: PropTypes$x.string,
8498
+ tickValues: PropTypes$x.array,
8499
+ tickComponent: PropTypes$x.func,
8500
+ top: PropTypes$x.number,
8501
+ children: PropTypes$x.func
8501
8502
  });
8502
- const React$x = _dll_react;
8503
- const PropTypes$v = _dll_prop_types;
8503
+ const React$y = _dll_react;
8504
+ const PropTypes$w = _dll_prop_types;
8504
8505
  const classNames$f = _dll_classnames;
8505
- const {withStyles: withStyles$j} = _dll_material_ui__core_styles;
8506
- const _jsxFileName$t = "/home/circleci/repo/packages/graphing/src/axis/arrow.jsx";
8506
+ const {withStyles: withStyles$k} = _dll_material_ui__core_styles;
8507
+ const _jsxFileName$u = "/home/circleci/repo/packages/graphing/src/axis/arrow.jsx";
8507
8508
  const style = {
8508
8509
  root: {
8509
8510
  fill: 'var(--arrow-color, black)'
8510
8511
  }
8511
8512
  };
8512
- class Arrow$2 extends React$x.Component {
8513
+ class Arrow$2 extends React$y.Component {
8513
8514
  render() {
8514
8515
  const {x, y, classes, className, scale} = this.props;
8515
8516
  const names = classNames$f(classes.root, className);
@@ -8530,24 +8531,24 @@ class Arrow$2 extends React$x.Component {
8530
8531
  if (direction === 'down') {
8531
8532
  transform = getTransform(xv, yv + 15, 270);
8532
8533
  }
8533
- return React$x.createElement('path', {
8534
+ return React$y.createElement('path', {
8534
8535
  d: "m 0,0 8,-5 0,10 -8,-5",
8535
8536
  transform: transform,
8536
8537
  className: names,
8537
8538
  __self: this,
8538
8539
  __source: {
8539
- fileName: _jsxFileName$t,
8540
+ fileName: _jsxFileName$u,
8540
8541
  lineNumber: 43
8541
8542
  }
8542
8543
  });
8543
8544
  }
8544
8545
  }
8545
8546
  Arrow$2.propTypes = {
8546
- y: PropTypes$v.number,
8547
- x: PropTypes$v.number,
8548
- direction: PropTypes$v.oneOf(['left', 'right', 'up', 'down']),
8549
- classes: PropTypes$v.object.isRequired,
8550
- className: PropTypes$v.string,
8547
+ y: PropTypes$w.number,
8548
+ x: PropTypes$w.number,
8549
+ direction: PropTypes$w.oneOf(['left', 'right', 'up', 'down']),
8550
+ classes: PropTypes$w.object.isRequired,
8551
+ className: PropTypes$w.string,
8551
8552
  scale: ScaleType.isRequired
8552
8553
  };
8553
8554
  Arrow$2.defaultProps = {
@@ -8555,7 +8556,7 @@ Arrow$2.defaultProps = {
8555
8556
  x: 0,
8556
8557
  direction: 'left'
8557
8558
  };
8558
- var Arrow$3 = withStyles$j(style)(Arrow$2);
8559
+ var Arrow$3 = withStyles$k(style)(Arrow$2);
8559
8560
  const {head: head} = _dll_lodash;
8560
8561
  const {tail: tail} = _dll_lodash;
8561
8562
  const {isEqual: isEqual$6} = _dll_lodash;
@@ -8706,15 +8707,15 @@ const isDuplicatedMark = (mark, marks, oldMark) => {
8706
8707
  });
8707
8708
  return !!duplicated;
8708
8709
  };
8709
- const React$w = _dll_react;
8710
- const PropTypes$u = _dll_prop_types;
8711
- const {withStyles: withStyles$i} = _dll_material_ui__core;
8712
- const {color: color$f} = _dll_pie_lib__render_ui;
8713
- const {Readable: Readable} = _dll_pie_lib__render_ui;
8714
- const _jsxFileName$s = "/home/circleci/repo/packages/graphing/src/axis/axes.jsx";
8710
+ const React$x = _dll_react;
8711
+ const PropTypes$v = _dll_prop_types;
8712
+ const {withStyles: withStyles$j} = _dll_material_ui__core;
8713
+ const {color: color$g} = _dll_pie_lib__render_ui;
8714
+ const {Readable: Readable$1} = _dll_pie_lib__render_ui;
8715
+ const _jsxFileName$t = "/home/circleci/repo/packages/graphing/src/axis/axes.jsx";
8715
8716
  const AxisPropTypes = {
8716
- includeArrows: PropTypes$u.object,
8717
- graphProps: PropTypes$u.object
8717
+ includeArrows: PropTypes$v.object,
8718
+ graphProps: PropTypes$v.object
8718
8719
  };
8719
8720
  const AxisDefaultProps = {
8720
8721
  includeArrows: {
@@ -8726,16 +8727,16 @@ const AxisDefaultProps = {
8726
8727
  };
8727
8728
  const axisStyles = theme => ({
8728
8729
  line: {
8729
- stroke: color$f.primary(),
8730
+ stroke: color$g.primary(),
8730
8731
  strokeWidth: 5
8731
8732
  },
8732
8733
  arrow: {
8733
- fill: color$f.primary()
8734
+ fill: color$g.primary()
8734
8735
  },
8735
8736
  tick: {
8736
- fill: color$f.primary(),
8737
+ fill: color$g.primary(),
8737
8738
  '& > line': {
8738
- stroke: color$f.primary()
8739
+ stroke: color$g.primary()
8739
8740
  }
8740
8741
  },
8741
8742
  labelFontSize: {
@@ -8765,11 +8766,11 @@ const sharedValues = (firstNegativeX, firstNegativeY, distanceFromOriginToFirstN
8765
8766
  return result;
8766
8767
  };
8767
8768
  const firstNegativeValue = interval => (interval || []).find(element => element < 0);
8768
- class RawXAxis extends React$w.Component {
8769
+ class RawXAxis extends React$x.Component {
8769
8770
  static __initStatic() {
8770
8771
  this.propTypes = {
8771
8772
  ...AxisPropTypes,
8772
- classes: PropTypes$u.object,
8773
+ classes: PropTypes$v.object,
8773
8774
  graphProps: GraphPropsType.isRequired
8774
8775
  };
8775
8776
  }
@@ -8793,13 +8794,13 @@ class RawXAxis extends React$w.Component {
8793
8794
  const necessaryRows = countWords(domain.axisLabel);
8794
8795
  const longestWord = findLongestWord(domain.axisLabel);
8795
8796
  const necessaryWidth = amountToIncreaseWidth(longestWord) + 2;
8796
- return React$w.createElement(React$w.Fragment, {
8797
+ return React$x.createElement(React$x.Fragment, {
8797
8798
  __self: this,
8798
8799
  __source: {
8799
- fileName: _jsxFileName$s,
8800
+ fileName: _jsxFileName$t,
8800
8801
  lineNumber: 129
8801
8802
  }
8802
- }, React$w.createElement(Axis, {
8803
+ }, React$x.createElement(Axis, {
8803
8804
  axisLineClassName: classes.line,
8804
8805
  scale: scale.x,
8805
8806
  top: scale.y(0),
@@ -8812,10 +8813,10 @@ class RawXAxis extends React$w.Component {
8812
8813
  tickValues: tickValues,
8813
8814
  __self: this,
8814
8815
  __source: {
8815
- fileName: _jsxFileName$s,
8816
+ fileName: _jsxFileName$t,
8816
8817
  lineNumber: 130
8817
8818
  }
8818
- }), includeArrows && includeArrows.left && React$w.createElement(Arrow$3, {
8819
+ }), includeArrows && includeArrows.left && React$x.createElement(Arrow$3, {
8819
8820
  direction: "left",
8820
8821
  x: domain.min,
8821
8822
  y: 0,
@@ -8823,10 +8824,10 @@ class RawXAxis extends React$w.Component {
8823
8824
  scale: scale,
8824
8825
  __self: this,
8825
8826
  __source: {
8826
- fileName: _jsxFileName$s,
8827
+ fileName: _jsxFileName$t,
8827
8828
  lineNumber: 143
8828
8829
  }
8829
- }), includeArrows && includeArrows.right && React$w.createElement(Arrow$3, {
8830
+ }), includeArrows && includeArrows.right && React$x.createElement(Arrow$3, {
8830
8831
  direction: "right",
8831
8832
  x: domain.max,
8832
8833
  y: 0,
@@ -8834,27 +8835,27 @@ class RawXAxis extends React$w.Component {
8834
8835
  scale: scale,
8835
8836
  __self: this,
8836
8837
  __source: {
8837
- fileName: _jsxFileName$s,
8838
+ fileName: _jsxFileName$t,
8838
8839
  lineNumber: 146
8839
8840
  }
8840
- }), domain.axisLabel && React$w.createElement('foreignObject', {
8841
+ }), domain.axisLabel && React$x.createElement('foreignObject', {
8841
8842
  x: size.width + 17,
8842
8843
  y: scale.y(0) - 9,
8843
8844
  width: necessaryWidth,
8844
8845
  height: 20 * necessaryRows,
8845
8846
  __self: this,
8846
8847
  __source: {
8847
- fileName: _jsxFileName$s,
8848
+ fileName: _jsxFileName$t,
8848
8849
  lineNumber: 149
8849
8850
  }
8850
- }, React$w.createElement('div', {
8851
+ }, React$x.createElement('div', {
8851
8852
  dangerouslySetInnerHTML: {
8852
8853
  __html: domain.axisLabel
8853
8854
  },
8854
8855
  className: classes.labelFontSize,
8855
8856
  __self: this,
8856
8857
  __source: {
8857
- fileName: _jsxFileName$s,
8858
+ fileName: _jsxFileName$t,
8858
8859
  lineNumber: 155
8859
8860
  }
8860
8861
  })));
@@ -8862,8 +8863,8 @@ class RawXAxis extends React$w.Component {
8862
8863
  }
8863
8864
  RawXAxis.__initStatic();
8864
8865
  RawXAxis.__initStatic2();
8865
- const XAxis = withStyles$i(axisStyles)(RawXAxis);
8866
- class RawYAxis extends React$w.Component {
8866
+ const XAxis = withStyles$j(axisStyles)(RawXAxis);
8867
+ class RawYAxis extends React$x.Component {
8867
8868
  static __initStatic3() {
8868
8869
  this.propTypes = {
8869
8870
  ...AxisPropTypes,
@@ -8878,13 +8879,13 @@ class RawYAxis extends React$w.Component {
8878
8879
  const {scale, range, size} = graphProps || ({});
8879
8880
  const necessaryWidth = range.axisLabel ? amountToIncreaseWidth(range.axisLabel.length) : 0;
8880
8881
  const customTickFormat = value => skipValues && skipValues.indexOf(value) >= 0 ? '' : value;
8881
- return React$w.createElement(React$w.Fragment, {
8882
+ return React$x.createElement(React$x.Fragment, {
8882
8883
  __self: this,
8883
8884
  __source: {
8884
- fileName: _jsxFileName$s,
8885
+ fileName: _jsxFileName$t,
8885
8886
  lineNumber: 184
8886
8887
  }
8887
- }, React$w.createElement(Axis, {
8888
+ }, React$x.createElement(Axis, {
8888
8889
  axisLineClassName: classes.line,
8889
8890
  orientation: 'left',
8890
8891
  scale: scale.y,
@@ -8913,10 +8914,10 @@ class RawYAxis extends React$w.Component {
8913
8914
  tickValues: rowTickValues,
8914
8915
  __self: this,
8915
8916
  __source: {
8916
- fileName: _jsxFileName$s,
8917
+ fileName: _jsxFileName$t,
8917
8918
  lineNumber: 185
8918
8919
  }
8919
- }), includeArrows && includeArrows.down && React$w.createElement(Arrow$3, {
8920
+ }), includeArrows && includeArrows.down && React$x.createElement(Arrow$3, {
8920
8921
  direction: "down",
8921
8922
  x: 0,
8922
8923
  y: range.min,
@@ -8924,10 +8925,10 @@ class RawYAxis extends React$w.Component {
8924
8925
  scale: scale,
8925
8926
  __self: this,
8926
8927
  __source: {
8927
- fileName: _jsxFileName$s,
8928
+ fileName: _jsxFileName$t,
8928
8929
  lineNumber: 214
8929
8930
  }
8930
- }), includeArrows && includeArrows.up && React$w.createElement(Arrow$3, {
8931
+ }), includeArrows && includeArrows.up && React$x.createElement(Arrow$3, {
8931
8932
  direction: "up",
8932
8933
  x: 0,
8933
8934
  y: range.max,
@@ -8935,34 +8936,34 @@ class RawYAxis extends React$w.Component {
8935
8936
  scale: scale,
8936
8937
  __self: this,
8937
8938
  __source: {
8938
- fileName: _jsxFileName$s,
8939
+ fileName: _jsxFileName$t,
8939
8940
  lineNumber: 217
8940
8941
  }
8941
- }), range.axisLabel && React$w.createElement('foreignObject', {
8942
+ }), range.axisLabel && React$x.createElement('foreignObject', {
8942
8943
  x: scale.x(0) - necessaryWidth / 2,
8943
8944
  y: -33,
8944
8945
  width: necessaryWidth,
8945
8946
  height: "20",
8946
8947
  __self: this,
8947
8948
  __source: {
8948
- fileName: _jsxFileName$s,
8949
+ fileName: _jsxFileName$t,
8949
8950
  lineNumber: 220
8950
8951
  }
8951
- }, React$w.createElement(Readable, {
8952
+ }, React$x.createElement(Readable$1, {
8952
8953
  false: true,
8953
8954
  __self: this,
8954
8955
  __source: {
8955
- fileName: _jsxFileName$s,
8956
+ fileName: _jsxFileName$t,
8956
8957
  lineNumber: 226
8957
8958
  }
8958
- }, React$w.createElement('div', {
8959
+ }, React$x.createElement('div', {
8959
8960
  dangerouslySetInnerHTML: {
8960
8961
  __html: range.axisLabel
8961
8962
  },
8962
8963
  className: classes.axisLabelHolder,
8963
8964
  __self: this,
8964
8965
  __source: {
8965
- fileName: _jsxFileName$s,
8966
+ fileName: _jsxFileName$t,
8966
8967
  lineNumber: 227
8967
8968
  }
8968
8969
  }))));
@@ -8970,8 +8971,8 @@ class RawYAxis extends React$w.Component {
8970
8971
  }
8971
8972
  RawYAxis.__initStatic3();
8972
8973
  RawYAxis.__initStatic4();
8973
- const YAxis = withStyles$i(axisStyles)(RawYAxis);
8974
- class Axes extends React$w.Component {
8974
+ const YAxis = withStyles$j(axisStyles)(RawYAxis);
8975
+ class Axes extends React$x.Component {
8975
8976
  constructor(...args) {
8976
8977
  super(...args);
8977
8978
  Axes.prototype.__init.call(this);
@@ -8980,7 +8981,7 @@ class Axes extends React$w.Component {
8980
8981
  static __initStatic5() {
8981
8982
  this.propTypes = {
8982
8983
  ...AxisPropTypes,
8983
- classes: PropTypes$u.object,
8984
+ classes: PropTypes$v.object,
8984
8985
  graphProps: GraphPropsType.isRequired
8985
8986
  };
8986
8987
  }
@@ -9033,13 +9034,13 @@ class Axes extends React$w.Component {
9033
9034
  const deltaAllowance = 6;
9034
9035
  const dy = 25;
9035
9036
  const skipValues = sharedValues(firstNegativeX, firstNegativeY, distanceFromOriginToFirstNegativeX, distanceFromOriginToFirstNegativeY, deltaAllowance, dy);
9036
- return React$w.createElement(React$w.Fragment, {
9037
+ return React$x.createElement(React$x.Fragment, {
9037
9038
  __self: this,
9038
9039
  __source: {
9039
- fileName: _jsxFileName$s,
9040
+ fileName: _jsxFileName$t,
9040
9041
  lineNumber: 308
9041
9042
  }
9042
- }, range.min <= 0 ? React$w.createElement(XAxis, {
9043
+ }, range.min <= 0 ? React$x.createElement(XAxis, {
9043
9044
  ...this.props,
9044
9045
  skipValues: skipValues,
9045
9046
  columnTicksValues: columnTicksValues,
@@ -9047,17 +9048,17 @@ class Axes extends React$w.Component {
9047
9048
  dy: dy,
9048
9049
  __self: this,
9049
9050
  __source: {
9050
- fileName: _jsxFileName$s,
9051
+ fileName: _jsxFileName$t,
9051
9052
  lineNumber: 310
9052
9053
  }
9053
- }) : null, domain.min <= 0 ? React$w.createElement(YAxis, {
9054
+ }) : null, domain.min <= 0 ? React$x.createElement(YAxis, {
9054
9055
  ...this.props,
9055
9056
  skipValues: skipValues,
9056
9057
  rowTickValues: rowTickValues,
9057
9058
  distanceFromOriginToFirstNegativeX: distanceFromOriginToFirstNegativeX,
9058
9059
  __self: this,
9059
9060
  __source: {
9060
- fileName: _jsxFileName$s,
9061
+ fileName: _jsxFileName$t,
9061
9062
  lineNumber: 319
9062
9063
  }
9063
9064
  }) : null);
@@ -9065,9 +9066,9 @@ class Axes extends React$w.Component {
9065
9066
  }
9066
9067
  Axes.__initStatic5();
9067
9068
  Axes.__initStatic6();
9068
- const React$v = _dll_react;
9069
+ const React$w = _dll_react;
9069
9070
  const cx = _dll_classnames;
9070
- const PropTypes$t = _dll_prop_types;
9071
+ const PropTypes$u = _dll_prop_types;
9071
9072
  function _extends$2() {
9072
9073
  _extends$2 = Object.assign || (function (target) {
9073
9074
  for (var i = 1; i < arguments.length; i++) {
@@ -9110,24 +9111,24 @@ function _objectWithoutProperties$1(source, excluded) {
9110
9111
  return target;
9111
9112
  }
9112
9113
  Rows.propTypes = {
9113
- top: PropTypes$t.number,
9114
- left: PropTypes$t.number,
9115
- className: PropTypes$t.string,
9116
- stroke: PropTypes$t.string,
9117
- strokeWidth: PropTypes$t.oneOfType([PropTypes$t.string, PropTypes$t.number]),
9118
- strokeDasharray: PropTypes$t.string,
9119
- numTicks: PropTypes$t.number,
9120
- lineStyle: PropTypes$t.object,
9121
- offset: PropTypes$t.number,
9122
- scale: PropTypes$t.func.isRequired,
9123
- width: PropTypes$t.number.isRequired,
9124
- tickValues: PropTypes$t.array
9114
+ top: PropTypes$u.number,
9115
+ left: PropTypes$u.number,
9116
+ className: PropTypes$u.string,
9117
+ stroke: PropTypes$u.string,
9118
+ strokeWidth: PropTypes$u.oneOfType([PropTypes$u.string, PropTypes$u.number]),
9119
+ strokeDasharray: PropTypes$u.string,
9120
+ numTicks: PropTypes$u.number,
9121
+ lineStyle: PropTypes$u.object,
9122
+ offset: PropTypes$u.number,
9123
+ scale: PropTypes$u.func.isRequired,
9124
+ width: PropTypes$u.number.isRequired,
9125
+ tickValues: PropTypes$u.array
9125
9126
  };
9126
9127
  function Rows(_ref) {
9127
9128
  var _ref$top = _ref.top, top = _ref$top === void 0 ? 0 : _ref$top, _ref$left = _ref.left, left = _ref$left === void 0 ? 0 : _ref$left, scale = _ref.scale, width = _ref.width, _ref$stroke = _ref.stroke, stroke = _ref$stroke === void 0 ? '#eaf0f6' : _ref$stroke, _ref$strokeWidth = _ref.strokeWidth, strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth, strokeDasharray = _ref.strokeDasharray, className = _ref.className, _ref$numTicks = _ref.numTicks, numTicks = _ref$numTicks === void 0 ? 10 : _ref$numTicks, lineStyle = _ref.lineStyle, offset = _ref.offset, tickValues = _ref.tickValues, restProps = _objectWithoutProperties$1(_ref, ["top", "left", "scale", "width", "stroke", "strokeWidth", "strokeDasharray", "className", "numTicks", "lineStyle", "offset", "tickValues"]);
9128
9129
  var ticks = scale.ticks ? scale.ticks(numTicks) : scale.domain();
9129
9130
  if (tickValues) ticks = tickValues;
9130
- return React$v.createElement(Group, {
9131
+ return React$w.createElement(Group, {
9131
9132
  className: cx('vx-rows', className),
9132
9133
  top: top,
9133
9134
  left: left
@@ -9141,7 +9142,7 @@ function Rows(_ref) {
9141
9142
  x: width,
9142
9143
  y: y
9143
9144
  });
9144
- return React$v.createElement(Line$5, _extends$2({
9145
+ return React$w.createElement(Line$5, _extends$2({
9145
9146
  key: ("row-line-").concat(d, "-").concat(i),
9146
9147
  from: fromPoint,
9147
9148
  to: toPoint,
@@ -9153,24 +9154,24 @@ function Rows(_ref) {
9153
9154
  }));
9154
9155
  }
9155
9156
  Columns.propTypes = {
9156
- top: PropTypes$t.number,
9157
- left: PropTypes$t.number,
9158
- className: PropTypes$t.string,
9159
- stroke: PropTypes$t.string,
9160
- strokeWidth: PropTypes$t.oneOfType([PropTypes$t.string, PropTypes$t.number]),
9161
- strokeDasharray: PropTypes$t.string,
9162
- numTicks: PropTypes$t.number,
9163
- lineStyle: PropTypes$t.object,
9164
- offset: PropTypes$t.number,
9165
- scale: PropTypes$t.func.isRequired,
9166
- height: PropTypes$t.number.isRequired,
9167
- tickValues: PropTypes$t.array
9157
+ top: PropTypes$u.number,
9158
+ left: PropTypes$u.number,
9159
+ className: PropTypes$u.string,
9160
+ stroke: PropTypes$u.string,
9161
+ strokeWidth: PropTypes$u.oneOfType([PropTypes$u.string, PropTypes$u.number]),
9162
+ strokeDasharray: PropTypes$u.string,
9163
+ numTicks: PropTypes$u.number,
9164
+ lineStyle: PropTypes$u.object,
9165
+ offset: PropTypes$u.number,
9166
+ scale: PropTypes$u.func.isRequired,
9167
+ height: PropTypes$u.number.isRequired,
9168
+ tickValues: PropTypes$u.array
9168
9169
  };
9169
9170
  function Columns(_ref) {
9170
9171
  var _ref$top = _ref.top, top = _ref$top === void 0 ? 0 : _ref$top, _ref$left = _ref.left, left = _ref$left === void 0 ? 0 : _ref$left, scale = _ref.scale, height = _ref.height, _ref$stroke = _ref.stroke, stroke = _ref$stroke === void 0 ? '#eaf0f6' : _ref$stroke, _ref$strokeWidth = _ref.strokeWidth, strokeWidth = _ref$strokeWidth === void 0 ? 1 : _ref$strokeWidth, strokeDasharray = _ref.strokeDasharray, className = _ref.className, _ref$numTicks = _ref.numTicks, numTicks = _ref$numTicks === void 0 ? 10 : _ref$numTicks, lineStyle = _ref.lineStyle, offset = _ref.offset, tickValues = _ref.tickValues, restProps = _objectWithoutProperties$1(_ref, ["top", "left", "scale", "height", "stroke", "strokeWidth", "strokeDasharray", "className", "numTicks", "lineStyle", "offset", "tickValues"]);
9171
9172
  var ticks = scale.ticks ? scale.ticks(numTicks) : scale.domain();
9172
9173
  if (tickValues) ticks = tickValues;
9173
- return React$v.createElement(Group, {
9174
+ return React$w.createElement(Group, {
9174
9175
  className: cx('vx-columns', className),
9175
9176
  top: top,
9176
9177
  left: left
@@ -9184,7 +9185,7 @@ function Columns(_ref) {
9184
9185
  x: x,
9185
9186
  y: height
9186
9187
  });
9187
- return React$v.createElement(Line$5, _extends$2({
9188
+ return React$w.createElement(Line$5, _extends$2({
9188
9189
  key: ("column-line-").concat(d, "-").concat(i),
9189
9190
  from: fromPoint,
9190
9191
  to: toPoint,
@@ -9196,32 +9197,32 @@ function Columns(_ref) {
9196
9197
  }));
9197
9198
  }
9198
9199
  Grid$2.propTypes = {
9199
- top: PropTypes$t.number,
9200
- left: PropTypes$t.number,
9201
- className: PropTypes$t.string,
9202
- stroke: PropTypes$t.string,
9203
- strokeWidth: PropTypes$t.oneOfType([PropTypes$t.string, PropTypes$t.number]),
9204
- strokeDasharray: PropTypes$t.string,
9205
- numTicksRows: PropTypes$t.number,
9206
- numTicksColumns: PropTypes$t.number,
9207
- rowLineStyle: PropTypes$t.object,
9208
- columnLineStyle: PropTypes$t.object,
9209
- xOffset: PropTypes$t.number,
9210
- yOffset: PropTypes$t.number,
9211
- xScale: PropTypes$t.func.isRequired,
9212
- yScale: PropTypes$t.func.isRequired,
9213
- height: PropTypes$t.number.isRequired,
9214
- width: PropTypes$t.number.isRequired,
9215
- rowTickValues: PropTypes$t.array,
9216
- columnTickValues: PropTypes$t.array
9200
+ top: PropTypes$u.number,
9201
+ left: PropTypes$u.number,
9202
+ className: PropTypes$u.string,
9203
+ stroke: PropTypes$u.string,
9204
+ strokeWidth: PropTypes$u.oneOfType([PropTypes$u.string, PropTypes$u.number]),
9205
+ strokeDasharray: PropTypes$u.string,
9206
+ numTicksRows: PropTypes$u.number,
9207
+ numTicksColumns: PropTypes$u.number,
9208
+ rowLineStyle: PropTypes$u.object,
9209
+ columnLineStyle: PropTypes$u.object,
9210
+ xOffset: PropTypes$u.number,
9211
+ yOffset: PropTypes$u.number,
9212
+ xScale: PropTypes$u.func.isRequired,
9213
+ yScale: PropTypes$u.func.isRequired,
9214
+ height: PropTypes$u.number.isRequired,
9215
+ width: PropTypes$u.number.isRequired,
9216
+ rowTickValues: PropTypes$u.array,
9217
+ columnTickValues: PropTypes$u.array
9217
9218
  };
9218
9219
  function Grid$2(_ref) {
9219
9220
  var top = _ref.top, left = _ref.left, xScale = _ref.xScale, yScale = _ref.yScale, width = _ref.width, height = _ref.height, className = _ref.className, stroke = _ref.stroke, strokeWidth = _ref.strokeWidth, strokeDasharray = _ref.strokeDasharray, numTicksRows = _ref.numTicksRows, numTicksColumns = _ref.numTicksColumns, rowLineStyle = _ref.rowLineStyle, columnLineStyle = _ref.columnLineStyle, xOffset = _ref.xOffset, yOffset = _ref.yOffset, rowTickValues = _ref.rowTickValues, columnTickValues = _ref.columnTickValues, restProps = _objectWithoutProperties$1(_ref, ["top", "left", "xScale", "yScale", "width", "height", "className", "stroke", "strokeWidth", "strokeDasharray", "numTicksRows", "numTicksColumns", "rowLineStyle", "columnLineStyle", "xOffset", "yOffset", "rowTickValues", "columnTickValues"]);
9220
- return React$v.createElement(Group, {
9221
+ return React$w.createElement(Group, {
9221
9222
  className: cx('vx-grid', className),
9222
9223
  top: top,
9223
9224
  left: left
9224
- }, React$v.createElement(Rows, _extends$2({
9225
+ }, React$w.createElement(Rows, _extends$2({
9225
9226
  className: className,
9226
9227
  scale: yScale,
9227
9228
  width: width,
@@ -9232,7 +9233,7 @@ function Grid$2(_ref) {
9232
9233
  style: rowLineStyle,
9233
9234
  offset: yOffset,
9234
9235
  tickValues: rowTickValues
9235
- }, restProps)), React$v.createElement(Columns, _extends$2({
9236
+ }, restProps)), React$w.createElement(Columns, _extends$2({
9236
9237
  className: className,
9237
9238
  scale: xScale,
9238
9239
  height: height,
@@ -9245,21 +9246,21 @@ function Grid$2(_ref) {
9245
9246
  tickValues: columnTickValues
9246
9247
  }, restProps)));
9247
9248
  }
9248
- const React$u = _dll_react;
9249
- const PropTypes$s = _dll_prop_types;
9250
- const {color: color$e} = _dll_pie_lib__render_ui;
9251
- const {withStyles: withStyles$h} = _dll_material_ui__core_styles;
9252
- const _jsxFileName$r = "/home/circleci/repo/packages/graphing/src/grid.jsx";
9253
- class Grid extends React$u.Component {
9249
+ const React$v = _dll_react;
9250
+ const PropTypes$t = _dll_prop_types;
9251
+ const {color: color$f} = _dll_pie_lib__render_ui;
9252
+ const {withStyles: withStyles$i} = _dll_material_ui__core_styles;
9253
+ const _jsxFileName$s = "/home/circleci/repo/packages/graphing/src/grid.jsx";
9254
+ class Grid extends React$v.Component {
9254
9255
  constructor(...args) {
9255
9256
  super(...args);
9256
9257
  Grid.prototype.__init.call(this);
9257
9258
  }
9258
9259
  static __initStatic() {
9259
9260
  this.propTypes = {
9260
- disabled: PropTypes$s.bool,
9261
- disabledAdditionalGrid: PropTypes$s.bool,
9262
- classes: PropTypes$s.object.isRequired,
9261
+ disabled: PropTypes$t.bool,
9262
+ disabledAdditionalGrid: PropTypes$t.bool,
9263
+ classes: PropTypes$t.object.isRequired,
9263
9264
  graphProps: GraphPropsType.isRequired
9264
9265
  };
9265
9266
  }
@@ -9300,7 +9301,7 @@ class Grid extends React$u.Component {
9300
9301
  const rowTickValues = getTickValues(range);
9301
9302
  const columnTickValues = getTickValues(domain);
9302
9303
  const {rowTickLabelValues, columnTickLabelValues, rowStrokeDasharray, columnStrokeDasharray, displayAdditionalGrid} = this.getAdditionalGridProps(rowTickValues, columnTickValues);
9303
- return React$u.createElement(React$u.Fragment, null, React$u.createElement(Grid$2, {
9304
+ return React$v.createElement(React$v.Fragment, null, React$v.createElement(Grid$2, {
9304
9305
  innerRef: r => this.grid = r,
9305
9306
  xScale: scale.x,
9306
9307
  yScale: scale.y,
@@ -9311,40 +9312,265 @@ class Grid extends React$u.Component {
9311
9312
  columnTickValues: columnTickValues,
9312
9313
  __self: this,
9313
9314
  __source: {
9314
- fileName: _jsxFileName$r,
9315
+ fileName: _jsxFileName$s,
9315
9316
  lineNumber: 102
9316
9317
  }
9317
- }), displayAdditionalGrid && React$u.createElement(React$u.Fragment, null, React$u.createElement(Rows, {
9318
+ }), displayAdditionalGrid && React$v.createElement(React$v.Fragment, null, React$v.createElement(Rows, {
9318
9319
  scale: scale.y,
9319
9320
  width: width,
9320
9321
  tickValues: rowTickLabelValues,
9321
- stroke: color$e.primary(),
9322
+ stroke: color$f.primary(),
9322
9323
  strokeDasharray: rowStrokeDasharray,
9323
9324
  __self: this,
9324
9325
  __source: {
9325
- fileName: _jsxFileName$r,
9326
+ fileName: _jsxFileName$s,
9326
9327
  lineNumber: 114
9327
9328
  }
9328
- }), React$u.createElement(Columns, {
9329
+ }), React$v.createElement(Columns, {
9329
9330
  scale: scale.x,
9330
9331
  height: height,
9331
9332
  tickValues: columnTickLabelValues,
9332
- stroke: color$e.primary(),
9333
+ stroke: color$f.primary(),
9333
9334
  strokeDasharray: columnStrokeDasharray,
9334
9335
  __self: this,
9335
9336
  __source: {
9336
- fileName: _jsxFileName$r,
9337
+ fileName: _jsxFileName$s,
9337
9338
  lineNumber: 121
9338
9339
  }
9339
9340
  })));
9340
9341
  }
9341
9342
  }
9342
9343
  Grid.__initStatic();
9343
- var Grid$1 = withStyles$h(() => ({
9344
+ var Grid$1 = withStyles$i(() => ({
9344
9345
  grid: {
9345
9346
  stroke: 'purple'
9346
9347
  }
9347
9348
  }))(Grid);
9349
+ const React$u = _dll_react;
9350
+ const PropTypes$s = _dll_prop_types;
9351
+ const {withStyles: withStyles$h} = _dll_material_ui__core_styles;
9352
+ const {color: color$e} = _dll_pie_lib__render_ui;
9353
+ const {Readable: Readable} = _dll_pie_lib__render_ui;
9354
+ const cn$2 = _dll_classnames;
9355
+ const EditableHtml = _dll_pie_lib__editable_html;
9356
+ const _jsxFileName$r = "/home/circleci/repo/packages/graphing/src/labels.jsx";
9357
+ const rotations = {
9358
+ left: -90,
9359
+ top: 0,
9360
+ bottom: 0,
9361
+ right: 90
9362
+ };
9363
+ const getTransform = (side, width, height) => {
9364
+ const t = (x, y, rotate) => `translate(${x}, ${y}), rotate(${rotate})`;
9365
+ if (side === 'left') {
9366
+ return t(-20, height / 2, rotations[side]);
9367
+ }
9368
+ if (side === 'right') {
9369
+ return t(width + 30, height / 2, rotations[side]);
9370
+ }
9371
+ if (side === 'top') {
9372
+ return t(width / 2, -20, rotations[side]);
9373
+ }
9374
+ if (side === 'bottom') {
9375
+ return t(width / 2, height + 30, rotations[side]);
9376
+ }
9377
+ };
9378
+ const getY = (side, height) => {
9379
+ switch (side) {
9380
+ case 'left':
9381
+ return -height;
9382
+ case 'top':
9383
+ return -height;
9384
+ case 'right':
9385
+ return -height - 10;
9386
+ default:
9387
+ return -height + 10;
9388
+ }
9389
+ };
9390
+ class RawLabel extends React$u.Component {
9391
+ static __initStatic() {
9392
+ this.propTypes = {
9393
+ text: PropTypes$s.string,
9394
+ side: PropTypes$s.string,
9395
+ classes: PropTypes$s.object,
9396
+ disabledLabel: PropTypes$s.bool,
9397
+ placeholder: PropTypes$s.string,
9398
+ graphProps: GraphPropsType.isRequired
9399
+ };
9400
+ }
9401
+ static __initStatic2() {
9402
+ this.defaultProps = {
9403
+ onChange: () => {}
9404
+ };
9405
+ }
9406
+ render() {
9407
+ const {disabledLabel, placeholder, text, side, graphProps, classes, onChange} = this.props;
9408
+ const {size, domain, range} = graphProps;
9409
+ const totalHeight = (size.height || 500) + (range.padding || 0) * 2;
9410
+ const totalWidth = (size.width || 500) + (domain.padding || 0) * 2;
9411
+ const transform = getTransform(side, totalWidth, totalHeight);
9412
+ const width = side === 'left' || side === 'right' ? totalHeight : totalWidth;
9413
+ const height = 36;
9414
+ const y = getY(side, height);
9415
+ const finalHeight = side === 'bottom' ? height + 22 : height + 18;
9416
+ const activePlugins = ['bold', 'italic', 'underline', 'strikethrough', 'math'];
9417
+ return React$u.createElement('foreignObject', {
9418
+ x: -(width / 2),
9419
+ y: y,
9420
+ width: width,
9421
+ height: finalHeight,
9422
+ transform: transform,
9423
+ textAnchor: "middle",
9424
+ __self: this,
9425
+ __source: {
9426
+ fileName: _jsxFileName$r,
9427
+ lineNumber: 82
9428
+ }
9429
+ }, React$u.createElement(Readable, {
9430
+ false: true,
9431
+ __self: this,
9432
+ __source: {
9433
+ fileName: _jsxFileName$r,
9434
+ lineNumber: 90
9435
+ }
9436
+ }, React$u.createElement(EditableHtml, {
9437
+ className: cn$2({
9438
+ [classes.bottomLabel]: side === 'bottom',
9439
+ [classes.disabledAxisLabel]: disabledLabel
9440
+ }, classes.axisLabel),
9441
+ markup: text || '',
9442
+ onChange: onChange,
9443
+ placeholder: !disabledLabel && placeholder,
9444
+ toolbarOpts: {
9445
+ position: side === 'bottom' ? 'top' : 'bottom',
9446
+ noBorder: true
9447
+ },
9448
+ activePlugins: activePlugins,
9449
+ __self: this,
9450
+ __source: {
9451
+ fileName: _jsxFileName$r,
9452
+ lineNumber: 91
9453
+ }
9454
+ })));
9455
+ }
9456
+ }
9457
+ RawLabel.__initStatic();
9458
+ RawLabel.__initStatic2();
9459
+ const Label = withStyles$h(theme => ({
9460
+ label: {
9461
+ fill: color$e.secondary()
9462
+ },
9463
+ axisLabel: {
9464
+ fontSize: theme.typography.fontSize - 2,
9465
+ textAlign: 'center',
9466
+ padding: '0 4px'
9467
+ },
9468
+ disabledAxisLabel: {
9469
+ pointerEvents: 'none'
9470
+ },
9471
+ bottomLabel: {
9472
+ marginTop: '44px'
9473
+ }
9474
+ }))(RawLabel);
9475
+ const LabelType = {
9476
+ left: PropTypes$s.string,
9477
+ top: PropTypes$s.string,
9478
+ bottom: PropTypes$s.string,
9479
+ right: PropTypes$s.string
9480
+ };
9481
+ class Labels extends React$u.Component {
9482
+ constructor(...args) {
9483
+ super(...args);
9484
+ Labels.prototype.__init.call(this);
9485
+ }
9486
+ static __initStatic3() {
9487
+ this.propTypes = {
9488
+ classes: PropTypes$s.object,
9489
+ className: PropTypes$s.string,
9490
+ disabledLabels: PropTypes$s.bool,
9491
+ placeholders: PropTypes$s.object,
9492
+ value: PropTypes$s.shape(LabelType),
9493
+ graphProps: PropTypes$s.object
9494
+ };
9495
+ }
9496
+ static __initStatic4() {
9497
+ this.defaultProps = {};
9498
+ }
9499
+ __init() {
9500
+ this.onChangeLabel = (newValue, side) => {
9501
+ const {value, onChange} = this.props;
9502
+ const labels = {
9503
+ ...value,
9504
+ [side]: newValue
9505
+ };
9506
+ onChange(labels);
9507
+ };
9508
+ }
9509
+ render() {
9510
+ const {disabledLabels, placeholders = {}, value = {}, graphProps} = this.props;
9511
+ return React$u.createElement(React$u.Fragment, {
9512
+ __self: this,
9513
+ __source: {
9514
+ fileName: _jsxFileName$r,
9515
+ lineNumber: 164
9516
+ }
9517
+ }, React$u.createElement(Label, {
9518
+ key: "left",
9519
+ side: "left",
9520
+ text: value.left,
9521
+ disabledLabel: disabledLabels,
9522
+ placeholder: placeholders.left,
9523
+ graphProps: graphProps,
9524
+ onChange: value => this.onChangeLabel(value, 'left'),
9525
+ __self: this,
9526
+ __source: {
9527
+ fileName: _jsxFileName$r,
9528
+ lineNumber: 165
9529
+ }
9530
+ }), React$u.createElement(Label, {
9531
+ key: "top",
9532
+ side: "top",
9533
+ text: value.top,
9534
+ disabledLabel: disabledLabels,
9535
+ placeholder: placeholders.top,
9536
+ graphProps: graphProps,
9537
+ onChange: value => this.onChangeLabel(value, 'top'),
9538
+ __self: this,
9539
+ __source: {
9540
+ fileName: _jsxFileName$r,
9541
+ lineNumber: 174
9542
+ }
9543
+ }), React$u.createElement(Label, {
9544
+ key: "bottom",
9545
+ side: "bottom",
9546
+ text: value.bottom,
9547
+ disabledLabel: disabledLabels,
9548
+ placeholder: placeholders.bottom,
9549
+ graphProps: graphProps,
9550
+ onChange: value => this.onChangeLabel(value, 'bottom'),
9551
+ __self: this,
9552
+ __source: {
9553
+ fileName: _jsxFileName$r,
9554
+ lineNumber: 183
9555
+ }
9556
+ }), React$u.createElement(Label, {
9557
+ key: "right",
9558
+ side: "right",
9559
+ text: value.right,
9560
+ disabledLabel: disabledLabels,
9561
+ placeholder: placeholders.right,
9562
+ graphProps: graphProps,
9563
+ onChange: value => this.onChangeLabel(value, 'right'),
9564
+ __self: this,
9565
+ __source: {
9566
+ fileName: _jsxFileName$r,
9567
+ lineNumber: 192
9568
+ }
9569
+ }));
9570
+ }
9571
+ }
9572
+ Labels.__initStatic3();
9573
+ Labels.__initStatic4();
9348
9574
  const React$t = _dll_react;
9349
9575
  const PropTypes$r = _dll_prop_types;
9350
9576
  const _jsxFileName$q = "/home/circleci/repo/packages/graphing/src/bg.jsx";
@@ -9584,31 +9810,35 @@ class Graph extends React$s.Component {
9584
9810
  return React$s.createElement(Root$2, {
9585
9811
  rootRef: r => this.rootNode = r,
9586
9812
  disabledTitle: disabledTitle,
9813
+ disabledLabels: disabledLabels,
9814
+ labels: labels,
9815
+ labelsPlaceholders: labelsPlaceholders || ({}),
9587
9816
  showPixelGuides: showPixelGuides,
9588
9817
  showLabels: showLabels,
9589
9818
  showTitle: showTitle,
9590
9819
  title: title,
9591
9820
  titlePlaceholder: titlePlaceholder,
9592
9821
  onChangeTitle: onChangeTitle,
9822
+ onChangeLabels: onChangeLabels,
9593
9823
  ...common,
9594
9824
  __self: this,
9595
9825
  __source: {
9596
9826
  fileName: _jsxFileName$p,
9597
- lineNumber: 188
9827
+ lineNumber: 187
9598
9828
  }
9599
9829
  }, React$s.createElement('g', {
9600
9830
  transform: domain && domain.padding && domain.range ? `translate(${domain.padding}, ${range.padding})` : undefined,
9601
9831
  __self: this,
9602
9832
  __source: {
9603
9833
  fileName: _jsxFileName$p,
9604
- lineNumber: 199
9834
+ lineNumber: 202
9605
9835
  }
9606
9836
  }, React$s.createElement(Grid$1, {
9607
9837
  ...common,
9608
9838
  __self: this,
9609
9839
  __source: {
9610
9840
  fileName: _jsxFileName$p,
9611
- lineNumber: 206
9841
+ lineNumber: 209
9612
9842
  }
9613
9843
  }), React$s.createElement(Axes, {
9614
9844
  ...axesSettings,
@@ -9616,7 +9846,7 @@ class Graph extends React$s.Component {
9616
9846
  __self: this,
9617
9847
  __source: {
9618
9848
  fileName: _jsxFileName$p,
9619
- lineNumber: 207
9849
+ lineNumber: 210
9620
9850
  }
9621
9851
  }), React$s.createElement(Bg, {
9622
9852
  ...size,
@@ -9625,14 +9855,14 @@ class Graph extends React$s.Component {
9625
9855
  __self: this,
9626
9856
  __source: {
9627
9857
  fileName: _jsxFileName$p,
9628
- lineNumber: 208
9858
+ lineNumber: 211
9629
9859
  }
9630
9860
  }), React$s.createElement('mask', {
9631
9861
  id: "myMask",
9632
9862
  __self: this,
9633
9863
  __source: {
9634
9864
  fileName: _jsxFileName$p,
9635
- lineNumber: 209
9865
+ lineNumber: 212
9636
9866
  }
9637
9867
  }, React$s.createElement('rect', {
9638
9868
  ...maskSize,
@@ -9640,7 +9870,7 @@ class Graph extends React$s.Component {
9640
9870
  __self: this,
9641
9871
  __source: {
9642
9872
  fileName: _jsxFileName$p,
9643
- lineNumber: 210
9873
+ lineNumber: 213
9644
9874
  }
9645
9875
  }), " "), React$s.createElement('g', {
9646
9876
  id: "marks",
@@ -9648,7 +9878,7 @@ class Graph extends React$s.Component {
9648
9878
  __self: this,
9649
9879
  __source: {
9650
9880
  fileName: _jsxFileName$p,
9651
- lineNumber: 213
9881
+ lineNumber: 216
9652
9882
  }
9653
9883
  }, (backgroundMarks || []).map((m, index) => {
9654
9884
  const Component = this.getComponent(m);
@@ -9665,7 +9895,7 @@ class Graph extends React$s.Component {
9665
9895
  __self: this,
9666
9896
  __source: {
9667
9897
  fileName: _jsxFileName$p,
9668
- lineNumber: 219
9898
+ lineNumber: 222
9669
9899
  }
9670
9900
  });
9671
9901
  }), marks.map((m, index) => {
@@ -9686,7 +9916,7 @@ class Graph extends React$s.Component {
9686
9916
  __self: this,
9687
9917
  __source: {
9688
9918
  fileName: _jsxFileName$p,
9689
- lineNumber: 233
9919
+ lineNumber: 236
9690
9920
  }
9691
9921
  });
9692
9922
  }), React$s.createElement('foreignObject', {
@@ -9700,20 +9930,9 @@ class Graph extends React$s.Component {
9700
9930
  __self: this,
9701
9931
  __source: {
9702
9932
  fileName: _jsxFileName$p,
9703
- lineNumber: 249
9704
- }
9705
- }))), showLabels && React$s.createElement(Labels, {
9706
- disabledLabels: disabledLabels,
9707
- placeholders: labelsPlaceholders,
9708
- value: labels,
9709
- onChange: onChangeLabels,
9710
- ...common,
9711
- __self: this,
9712
- __source: {
9713
- fileName: _jsxFileName$p,
9714
- lineNumber: 259
9933
+ lineNumber: 252
9715
9934
  }
9716
- }));
9935
+ }))));
9717
9936
  }
9718
9937
  }
9719
9938
  Graph.__initStatic();
@@ -15685,8 +15904,8 @@ GridSetup.propTypes = {
15685
15904
  gridValues: PropTypes.object,
15686
15905
  includeAxes: PropTypes.bool,
15687
15906
  labelValues: PropTypes.object,
15688
- onChange: PropTypes.function,
15689
- onChangeView: PropTypes.function,
15907
+ onChange: PropTypes.func,
15908
+ onChangeView: PropTypes.func,
15690
15909
  range: PropTypes.object,
15691
15910
  size: PropTypes.object,
15692
15911
  sizeConstraints: PropTypes.object,