@pie-lib/graphing-module 1.11.10 → 1.11.12

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_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.6.8/module/index.js";
2
- import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.6.11/module/index.js";
3
- import {_dll_pie_lib__drag} from "../../drag-module@^2.1.11/module/index.js";
4
- import {_dll_pie_lib__config_ui} from "../../config-module@^2.7.2/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.6.10/module/index.js";
2
+ import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.6.13/module/index.js";
3
+ import {_dll_pie_lib__drag} from "../../drag-module@^2.1.13/module/index.js";
4
+ import {_dll_pie_lib__config_ui} from "../../config-module@^2.7.4/module/index.js";
5
5
  const PropTypes$D = _dll_prop_types;
6
6
  const BaseDomainRangeType = {
7
7
  min: PropTypes$D.number.isRequired,
@@ -9717,8 +9717,8 @@ const removeBuildingToolIfCurrentToolDiffers = ({marks, currentTool}) => {
9717
9717
  return newMarks;
9718
9718
  };
9719
9719
  class Graph extends React$s.Component {
9720
- constructor(...args) {
9721
- super(...args);
9720
+ constructor(props) {
9721
+ super(props);
9722
9722
  Graph.prototype.__init.call(this);
9723
9723
  Graph.prototype.__init2.call(this);
9724
9724
  Graph.prototype.__init3.call(this);
@@ -9726,6 +9726,7 @@ class Graph extends React$s.Component {
9726
9726
  Graph.prototype.__init5.call(this);
9727
9727
  Graph.prototype.__init6.call(this);
9728
9728
  Graph.prototype.__init7.call(this);
9729
+ this.maskUid = props.maskId || 'graph-' + (Math.random() * 10000).toFixed();
9729
9730
  }
9730
9731
  static __initStatic() {
9731
9732
  this.propTypes = {
@@ -9847,21 +9848,21 @@ class Graph extends React$s.Component {
9847
9848
  __self: this,
9848
9849
  __source: {
9849
9850
  fileName: _jsxFileName$p,
9850
- lineNumber: 188
9851
+ lineNumber: 193
9851
9852
  }
9852
9853
  }, React$s.createElement('g', {
9853
9854
  transform: domain && domain.padding && domain.range ? `translate(${domain.padding}, ${range.padding})` : undefined,
9854
9855
  __self: this,
9855
9856
  __source: {
9856
9857
  fileName: _jsxFileName$p,
9857
- lineNumber: 203
9858
+ lineNumber: 208
9858
9859
  }
9859
9860
  }, React$s.createElement(Grid$1, {
9860
9861
  ...common,
9861
9862
  __self: this,
9862
9863
  __source: {
9863
9864
  fileName: _jsxFileName$p,
9864
- lineNumber: 208
9865
+ lineNumber: 213
9865
9866
  }
9866
9867
  }), React$s.createElement(Axes, {
9867
9868
  ...axesSettings,
@@ -9869,7 +9870,7 @@ class Graph extends React$s.Component {
9869
9870
  __self: this,
9870
9871
  __source: {
9871
9872
  fileName: _jsxFileName$p,
9872
- lineNumber: 209
9873
+ lineNumber: 214
9873
9874
  }
9874
9875
  }), React$s.createElement(Bg, {
9875
9876
  ...size,
@@ -9878,14 +9879,14 @@ class Graph extends React$s.Component {
9878
9879
  __self: this,
9879
9880
  __source: {
9880
9881
  fileName: _jsxFileName$p,
9881
- lineNumber: 210
9882
+ lineNumber: 215
9882
9883
  }
9883
9884
  }), React$s.createElement('mask', {
9884
- id: "myMask",
9885
+ id: `${this.maskUid}`,
9885
9886
  __self: this,
9886
9887
  __source: {
9887
9888
  fileName: _jsxFileName$p,
9888
- lineNumber: 211
9889
+ lineNumber: 216
9889
9890
  }
9890
9891
  }, React$s.createElement('rect', {
9891
9892
  ...maskSize,
@@ -9893,15 +9894,15 @@ class Graph extends React$s.Component {
9893
9894
  __self: this,
9894
9895
  __source: {
9895
9896
  fileName: _jsxFileName$p,
9896
- lineNumber: 212
9897
+ lineNumber: 217
9897
9898
  }
9898
9899
  }), " "), React$s.createElement('g', {
9899
9900
  id: "marks",
9900
- mask: "url('#myMask')",
9901
+ mask: `url('#${this.maskUid}')`,
9901
9902
  __self: this,
9902
9903
  __source: {
9903
9904
  fileName: _jsxFileName$p,
9904
- lineNumber: 215
9905
+ lineNumber: 220
9905
9906
  }
9906
9907
  }, (backgroundMarks || []).map((m, index) => {
9907
9908
  const Component = this.getComponent(m);
@@ -9918,7 +9919,7 @@ class Graph extends React$s.Component {
9918
9919
  __self: this,
9919
9920
  __source: {
9920
9921
  fileName: _jsxFileName$p,
9921
- lineNumber: 221
9922
+ lineNumber: 226
9922
9923
  }
9923
9924
  });
9924
9925
  }), marks.map((m, index) => {
@@ -9939,7 +9940,7 @@ class Graph extends React$s.Component {
9939
9940
  __self: this,
9940
9941
  __source: {
9941
9942
  fileName: _jsxFileName$p,
9942
- lineNumber: 235
9943
+ lineNumber: 240
9943
9944
  }
9944
9945
  });
9945
9946
  }), React$s.createElement('foreignObject', {
@@ -9953,7 +9954,7 @@ class Graph extends React$s.Component {
9953
9954
  __self: this,
9954
9955
  __source: {
9955
9956
  fileName: _jsxFileName$p,
9956
- lineNumber: 250
9957
+ lineNumber: 255
9957
9958
  }
9958
9959
  }))));
9959
9960
  }
@@ -14483,7 +14484,6 @@ const PropTypes$9 = _dll_prop_types;
14483
14484
  const classNames$6 = _dll_classnames;
14484
14485
  const {withStyles: withStyles$7} = _dll_material_ui__core_styles;
14485
14486
  const _jsxFileName$9 = "/home/circleci/repo/packages/graphing/src/tools/line/component.jsx";
14486
- const markerId$1 = genUid();
14487
14487
  const lineStyles$2 = theme => ({
14488
14488
  line: styles$4.line(theme),
14489
14489
  enabledArrow: styles$4.arrow(theme),
@@ -14495,6 +14495,7 @@ const lineStyles$2 = theme => ({
14495
14495
  incorrectArrow: styles$4.incorrect(theme)
14496
14496
  });
14497
14497
  const ArrowedLine = props => {
14498
+ const markerId = genUid();
14498
14499
  const {className, classes, correctness, disabled, graphProps, from, to, ...rest} = props;
14499
14500
  const {scale} = graphProps;
14500
14501
  const {domain, range} = getAdjustedGraphLimits(graphProps);
@@ -14504,22 +14505,22 @@ const ArrowedLine = props => {
14504
14505
  __self: undefined,
14505
14506
  __source: {
14506
14507
  fileName: _jsxFileName$9,
14507
- lineNumber: 31
14508
+ lineNumber: 30
14508
14509
  }
14509
14510
  }, React$9.createElement('defs', {
14510
14511
  __self: undefined,
14511
14512
  __source: {
14512
14513
  fileName: _jsxFileName$9,
14513
- lineNumber: 32
14514
+ lineNumber: 31
14514
14515
  }
14515
14516
  }, React$9.createElement(ArrowMarker, {
14516
14517
  size: thinnerShapesNeeded(graphProps) ? 4 : 5,
14517
- id: `${props.markerId || markerId$1}-${suffix}`,
14518
+ id: `${props.markerId || markerId}-${suffix}`,
14518
14519
  className: classNames$6(classes[`${suffix}Arrow`]),
14519
14520
  __self: undefined,
14520
14521
  __source: {
14521
14522
  fileName: _jsxFileName$9,
14522
- lineNumber: 33
14523
+ lineNumber: 32
14523
14524
  }
14524
14525
  })), React$9.createElement('line', {
14525
14526
  x1: scale.x(eFrom.x),
@@ -14527,13 +14528,13 @@ const ArrowedLine = props => {
14527
14528
  x2: scale.x(eTo.x),
14528
14529
  y2: scale.y(eTo.y),
14529
14530
  className: classNames$6(classes.line, disabled && classes.disabled, classes[correctness], className),
14530
- markerEnd: `url(#${props.markerId || markerId$1}-${suffix})`,
14531
- markerStart: `url(#${props.markerId || markerId$1}-${suffix})`,
14531
+ markerEnd: `url(#${props.markerId || markerId}-${suffix})`,
14532
+ markerStart: `url(#${props.markerId || markerId}-${suffix})`,
14532
14533
  ...rest,
14533
14534
  __self: undefined,
14534
14535
  __source: {
14535
14536
  fileName: _jsxFileName$9,
14536
- lineNumber: 39
14537
+ lineNumber: 38
14537
14538
  }
14538
14539
  }));
14539
14540
  };
@@ -14599,7 +14600,6 @@ const PropTypes$7 = _dll_prop_types;
14599
14600
  const {withStyles: withStyles$5} = _dll_material_ui__core_styles;
14600
14601
  const classNames$4 = _dll_classnames;
14601
14602
  const _jsxFileName$7 = "/home/circleci/repo/packages/graphing/src/tools/ray/component.jsx";
14602
- const markerId = genUid();
14603
14603
  const rayStyles = theme => ({
14604
14604
  line: styles$4.line(theme),
14605
14605
  enabledArrow: styles$4.arrow(theme),
@@ -14611,6 +14611,7 @@ const rayStyles = theme => ({
14611
14611
  incorrectArrow: styles$4.incorrect(theme)
14612
14612
  });
14613
14613
  const RayLine = props => {
14614
+ const markerId = genUid();
14614
14615
  const {graphProps, from, to, classes, disabled, correctness, className, ...rest} = props;
14615
14616
  const {scale} = graphProps;
14616
14617
  const {domain, range} = getAdjustedGraphLimits(graphProps);
@@ -14620,13 +14621,13 @@ const RayLine = props => {
14620
14621
  __self: undefined,
14621
14622
  __source: {
14622
14623
  fileName: _jsxFileName$7,
14623
- lineNumber: 31
14624
+ lineNumber: 30
14624
14625
  }
14625
14626
  }, React$7.createElement('defs', {
14626
14627
  __self: undefined,
14627
14628
  __source: {
14628
14629
  fileName: _jsxFileName$7,
14629
- lineNumber: 32
14630
+ lineNumber: 31
14630
14631
  }
14631
14632
  }, React$7.createElement(ArrowMarker, {
14632
14633
  size: thinnerShapesNeeded(graphProps) ? 4 : 5,
@@ -14635,7 +14636,7 @@ const RayLine = props => {
14635
14636
  __self: undefined,
14636
14637
  __source: {
14637
14638
  fileName: _jsxFileName$7,
14638
- lineNumber: 33
14639
+ lineNumber: 32
14639
14640
  }
14640
14641
  })), React$7.createElement('line', {
14641
14642
  x1: scale.x(from.x),
@@ -14648,7 +14649,7 @@ const RayLine = props => {
14648
14649
  __self: undefined,
14649
14650
  __source: {
14650
14651
  fileName: _jsxFileName$7,
14651
- lineNumber: 39
14652
+ lineNumber: 38
14652
14653
  }
14653
14654
  }));
14654
14655
  };
@@ -15591,7 +15592,7 @@ const AxisConfig = props => {
15591
15592
  label: min.label || '',
15592
15593
  value: minValue,
15593
15594
  min: -10000,
15594
- max: maxValue - 0.01,
15595
+ max: maxValue - 0.05,
15595
15596
  variant: "outlined",
15596
15597
  disabled: disabled,
15597
15598
  onChange: (e, v) => onChange('min', v),
@@ -15604,7 +15605,7 @@ const AxisConfig = props => {
15604
15605
  className: classes.mediumTextField,
15605
15606
  label: max.label || '',
15606
15607
  value: maxValue,
15607
- min: minValue + 0.01,
15608
+ min: minValue + 0.05,
15608
15609
  max: 10000,
15609
15610
  variant: "outlined",
15610
15611
  disabled: disabled,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/graphing-module",
3
- "version": "1.11.10",
3
+ "version": "1.11.12",
4
4
  "mappings": {
5
5
  "@pie-lib/plot": "_dll_pie_lib__plot",
6
6
  "@pie-lib/graphing": "_dll_pie_lib__graphing",
@@ -13,7 +13,7 @@
13
13
  "version": "2.6.12"
14
14
  },
15
15
  "@pie-lib/graphing": {
16
- "version": "2.12.15"
16
+ "version": "2.12.17"
17
17
  },
18
18
  "d3-scale": {
19
19
  "version": "2.2.2"
@@ -22,24 +22,24 @@
22
22
  "version": "1.4.2"
23
23
  }
24
24
  },
25
- "hash": "8deceac4273310afc3cff4d5b015ff03cd2bd6fe"
25
+ "hash": "77de12de6f6167667b6c0f31cf3c196c6b22fbff"
26
26
  },
27
27
  "modules": [
28
28
  {
29
29
  "name": "@pie-lib/shared-module",
30
- "version": "^1.6.8"
30
+ "version": "^1.6.10"
31
31
  },
32
32
  {
33
33
  "name": "@pie-lib/editable-html-module",
34
- "version": "^3.6.11"
34
+ "version": "^3.6.13"
35
35
  },
36
36
  {
37
37
  "name": "@pie-lib/drag-module",
38
- "version": "^2.1.11"
38
+ "version": "^2.1.13"
39
39
  },
40
40
  {
41
41
  "name": "@pie-lib/config-module",
42
- "version": "^2.7.2"
42
+ "version": "^2.7.4"
43
43
  }
44
44
  ],
45
45
  "isLocal": true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/graphing-module",
3
- "version": "1.11.10",
3
+ "version": "1.11.12",
4
4
  "module": "module/index.js",
5
5
  "repository": "pie-framework/pie-lib",
6
6
  "publishConfig": {