@pie-lib/graphing-module 1.11.9 → 1.11.11

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.7/module/index.js";
2
- import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.6.10/module/index.js";
3
- import {_dll_pie_lib__drag} from "../../drag-module@^2.1.10/module/index.js";
4
- import {_dll_pie_lib__config_ui} from "../../config-module@^2.7.1/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.9/module/index.js";
2
+ import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.6.12/module/index.js";
3
+ import {_dll_pie_lib__drag} from "../../drag-module@^2.1.12/module/index.js";
4
+ import {_dll_pie_lib__config_ui} from "../../config-module@^2.7.3/module/index.js";
5
5
  const PropTypes$D = _dll_prop_types;
6
6
  const BaseDomainRangeType = {
7
7
  min: PropTypes$D.number.isRequired,
@@ -14483,7 +14483,6 @@ const PropTypes$9 = _dll_prop_types;
14483
14483
  const classNames$6 = _dll_classnames;
14484
14484
  const {withStyles: withStyles$7} = _dll_material_ui__core_styles;
14485
14485
  const _jsxFileName$9 = "/home/circleci/repo/packages/graphing/src/tools/line/component.jsx";
14486
- const markerId$1 = genUid();
14487
14486
  const lineStyles$2 = theme => ({
14488
14487
  line: styles$4.line(theme),
14489
14488
  enabledArrow: styles$4.arrow(theme),
@@ -14495,6 +14494,7 @@ const lineStyles$2 = theme => ({
14495
14494
  incorrectArrow: styles$4.incorrect(theme)
14496
14495
  });
14497
14496
  const ArrowedLine = props => {
14497
+ const markerId = genUid();
14498
14498
  const {className, classes, correctness, disabled, graphProps, from, to, ...rest} = props;
14499
14499
  const {scale} = graphProps;
14500
14500
  const {domain, range} = getAdjustedGraphLimits(graphProps);
@@ -14504,22 +14504,22 @@ const ArrowedLine = props => {
14504
14504
  __self: undefined,
14505
14505
  __source: {
14506
14506
  fileName: _jsxFileName$9,
14507
- lineNumber: 31
14507
+ lineNumber: 30
14508
14508
  }
14509
14509
  }, React$9.createElement('defs', {
14510
14510
  __self: undefined,
14511
14511
  __source: {
14512
14512
  fileName: _jsxFileName$9,
14513
- lineNumber: 32
14513
+ lineNumber: 31
14514
14514
  }
14515
14515
  }, React$9.createElement(ArrowMarker, {
14516
14516
  size: thinnerShapesNeeded(graphProps) ? 4 : 5,
14517
- id: `${props.markerId || markerId$1}-${suffix}`,
14517
+ id: `${props.markerId || markerId}-${suffix}`,
14518
14518
  className: classNames$6(classes[`${suffix}Arrow`]),
14519
14519
  __self: undefined,
14520
14520
  __source: {
14521
14521
  fileName: _jsxFileName$9,
14522
- lineNumber: 33
14522
+ lineNumber: 32
14523
14523
  }
14524
14524
  })), React$9.createElement('line', {
14525
14525
  x1: scale.x(eFrom.x),
@@ -14527,13 +14527,13 @@ const ArrowedLine = props => {
14527
14527
  x2: scale.x(eTo.x),
14528
14528
  y2: scale.y(eTo.y),
14529
14529
  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})`,
14530
+ markerEnd: `url(#${props.markerId || markerId}-${suffix})`,
14531
+ markerStart: `url(#${props.markerId || markerId}-${suffix})`,
14532
14532
  ...rest,
14533
14533
  __self: undefined,
14534
14534
  __source: {
14535
14535
  fileName: _jsxFileName$9,
14536
- lineNumber: 39
14536
+ lineNumber: 38
14537
14537
  }
14538
14538
  }));
14539
14539
  };
@@ -14599,7 +14599,6 @@ const PropTypes$7 = _dll_prop_types;
14599
14599
  const {withStyles: withStyles$5} = _dll_material_ui__core_styles;
14600
14600
  const classNames$4 = _dll_classnames;
14601
14601
  const _jsxFileName$7 = "/home/circleci/repo/packages/graphing/src/tools/ray/component.jsx";
14602
- const markerId = genUid();
14603
14602
  const rayStyles = theme => ({
14604
14603
  line: styles$4.line(theme),
14605
14604
  enabledArrow: styles$4.arrow(theme),
@@ -14611,6 +14610,7 @@ const rayStyles = theme => ({
14611
14610
  incorrectArrow: styles$4.incorrect(theme)
14612
14611
  });
14613
14612
  const RayLine = props => {
14613
+ const markerId = genUid();
14614
14614
  const {graphProps, from, to, classes, disabled, correctness, className, ...rest} = props;
14615
14615
  const {scale} = graphProps;
14616
14616
  const {domain, range} = getAdjustedGraphLimits(graphProps);
@@ -14620,13 +14620,13 @@ const RayLine = props => {
14620
14620
  __self: undefined,
14621
14621
  __source: {
14622
14622
  fileName: _jsxFileName$7,
14623
- lineNumber: 31
14623
+ lineNumber: 30
14624
14624
  }
14625
14625
  }, React$7.createElement('defs', {
14626
14626
  __self: undefined,
14627
14627
  __source: {
14628
14628
  fileName: _jsxFileName$7,
14629
- lineNumber: 32
14629
+ lineNumber: 31
14630
14630
  }
14631
14631
  }, React$7.createElement(ArrowMarker, {
14632
14632
  size: thinnerShapesNeeded(graphProps) ? 4 : 5,
@@ -14635,7 +14635,7 @@ const RayLine = props => {
14635
14635
  __self: undefined,
14636
14636
  __source: {
14637
14637
  fileName: _jsxFileName$7,
14638
- lineNumber: 33
14638
+ lineNumber: 32
14639
14639
  }
14640
14640
  })), React$7.createElement('line', {
14641
14641
  x1: scale.x(from.x),
@@ -14648,7 +14648,7 @@ const RayLine = props => {
14648
14648
  __self: undefined,
14649
14649
  __source: {
14650
14650
  fileName: _jsxFileName$7,
14651
- lineNumber: 39
14651
+ lineNumber: 38
14652
14652
  }
14653
14653
  }));
14654
14654
  };
@@ -15450,6 +15450,10 @@ class Root extends React$1.Component {
15450
15450
  }
15451
15451
  componentDidUpdate(prevProps) {
15452
15452
  const {marks} = this.props;
15453
+ const storeState = this.store.getState();
15454
+ if (isEqual(storeState.marks.present, marks)) {
15455
+ return;
15456
+ }
15453
15457
  if (!isEqual(prevProps.marks, marks)) {
15454
15458
  this.store.dispatch(changeMarks(marks));
15455
15459
  }
@@ -15474,7 +15478,7 @@ class Root extends React$1.Component {
15474
15478
  __self: this,
15475
15479
  __source: {
15476
15480
  fileName: _jsxFileName$1,
15477
- lineNumber: 67
15481
+ lineNumber: 72
15478
15482
  }
15479
15483
  });
15480
15484
  }
@@ -15483,14 +15487,14 @@ class Root extends React$1.Component {
15483
15487
  __self: this,
15484
15488
  __source: {
15485
15489
  fileName: _jsxFileName$1,
15486
- lineNumber: 71
15490
+ lineNumber: 76
15487
15491
  }
15488
15492
  }, React$1.createElement(GraphContainer, {
15489
15493
  ...rest,
15490
15494
  __self: this,
15491
15495
  __source: {
15492
15496
  fileName: _jsxFileName$1,
15493
- lineNumber: 72
15497
+ lineNumber: 77
15494
15498
  }
15495
15499
  }));
15496
15500
  }
@@ -15587,7 +15591,7 @@ const AxisConfig = props => {
15587
15591
  label: min.label || '',
15588
15592
  value: minValue,
15589
15593
  min: -10000,
15590
- max: maxValue - 0.01,
15594
+ max: maxValue - 0.05,
15591
15595
  variant: "outlined",
15592
15596
  disabled: disabled,
15593
15597
  onChange: (e, v) => onChange('min', v),
@@ -15600,7 +15604,7 @@ const AxisConfig = props => {
15600
15604
  className: classes.mediumTextField,
15601
15605
  label: max.label || '',
15602
15606
  value: maxValue,
15603
- min: minValue + 0.01,
15607
+ min: minValue + 0.05,
15604
15608
  max: 10000,
15605
15609
  variant: "outlined",
15606
15610
  disabled: disabled,
@@ -15819,7 +15823,7 @@ const GridSetup = props => {
15819
15823
  }
15820
15824
  }, React.createElement(NumberTextFieldCustom, {
15821
15825
  className: classes.largeTextField,
15822
- label: "Number of Horizontal Gridlines",
15826
+ label: "Number of Vertical Gridlines",
15823
15827
  value: domain.max,
15824
15828
  min: !includeAxes && gridProps.min,
15825
15829
  max: !includeAxes && gridProps.max,
@@ -15832,7 +15836,7 @@ const GridSetup = props => {
15832
15836
  }
15833
15837
  }), React.createElement(NumberTextFieldCustom, {
15834
15838
  className: classes.largeTextField,
15835
- label: "Number of Vertical Gridlines",
15839
+ label: "Number of Horizontal Gridlines",
15836
15840
  value: range.max,
15837
15841
  min: !includeAxes && gridProps.min,
15838
15842
  max: !includeAxes && gridProps.max,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/graphing-module",
3
- "version": "1.11.9",
3
+ "version": "1.11.11",
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.16"
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": "36355b85aaef9500c585944a2ba0d27097178314"
26
26
  },
27
27
  "modules": [
28
28
  {
29
29
  "name": "@pie-lib/shared-module",
30
- "version": "^1.6.7"
30
+ "version": "^1.6.9"
31
31
  },
32
32
  {
33
33
  "name": "@pie-lib/editable-html-module",
34
- "version": "^3.6.10"
34
+ "version": "^3.6.12"
35
35
  },
36
36
  {
37
37
  "name": "@pie-lib/drag-module",
38
- "version": "^2.1.10"
38
+ "version": "^2.1.12"
39
39
  },
40
40
  {
41
41
  "name": "@pie-lib/config-module",
42
- "version": "^2.7.1"
42
+ "version": "^2.7.3"
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.9",
3
+ "version": "1.11.11",
4
4
  "module": "module/index.js",
5
5
  "repository": "pie-framework/pie-lib",
6
6
  "publishConfig": {