@pie-lib/graphing-module 1.8.3 → 1.8.4
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 +16 -13
- package/module/manifest.json +5 -5
- package/package.json +1 -1
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.
|
|
2
|
-
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.1.
|
|
3
|
-
import {_dll_pie_lib__drag} from "../../drag-module@^1.0.
|
|
4
|
-
import {_dll_pie_lib__config_ui} from "../../config-module@^2.1.
|
|
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.13/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.1.6/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__drag} from "../../drag-module@^1.0.65/module/index.js";
|
|
4
|
+
import {_dll_pie_lib__config_ui} from "../../config-module@^2.1.13/module/index.js";
|
|
5
5
|
const PropTypes$D = _dll_prop_types;
|
|
6
6
|
const BaseDomainRangeType = {
|
|
7
7
|
min: PropTypes$D.number.isRequired,
|
|
@@ -875,15 +875,15 @@ class Root$1 extends React$E.Component {
|
|
|
875
875
|
render() {
|
|
876
876
|
const {disabledTitle, graphProps, children, classes, onChangeTitle, thisIsChart, showLabels, showPixelGuides, showTitle, title, rootRef} = this.props;
|
|
877
877
|
const {size: {width = 500, height = 500}, domain, range} = graphProps;
|
|
878
|
-
const chartPadding = thisIsChart ? 45 : 0;
|
|
879
878
|
const padding = showLabels ? 70 : 40;
|
|
880
879
|
const extraPadding = showLabels ? 16 : 40;
|
|
881
880
|
const finalWidth = width + padding * 2 + (domain.padding || 0) * 2 + extraPadding;
|
|
882
881
|
const finalHeight = height + padding * 2 + (range.padding || 0) * 2;
|
|
883
882
|
const activeTitlePlugins = ['bold', 'italic', 'underline', 'strikethrough', 'math'];
|
|
883
|
+
const actualHeight = thisIsChart && showPixelGuides ? height - 80 : height;
|
|
884
884
|
const nbOfVerticalLines = parseInt(width / 100);
|
|
885
|
-
const nbOfHorizontalLines = parseInt(
|
|
886
|
-
const sideGridlinesPadding = parseInt(
|
|
885
|
+
const nbOfHorizontalLines = parseInt(actualHeight / 100);
|
|
886
|
+
const sideGridlinesPadding = parseInt(actualHeight % 100);
|
|
887
887
|
return React$E.createElement('div', {
|
|
888
888
|
className: classes.root,
|
|
889
889
|
__self: this,
|
|
@@ -893,6 +893,9 @@ class Root$1 extends React$E.Component {
|
|
|
893
893
|
}
|
|
894
894
|
}, showPixelGuides && React$E.createElement('div', {
|
|
895
895
|
className: classes.topPixelGuides,
|
|
896
|
+
style: {
|
|
897
|
+
marginLeft: thisIsChart ? 10 : 20
|
|
898
|
+
},
|
|
896
899
|
__self: this,
|
|
897
900
|
__source: {
|
|
898
901
|
fileName: _jsxFileName$w,
|
|
@@ -975,27 +978,28 @@ class Root$1 extends React$E.Component {
|
|
|
975
978
|
}, children)), showPixelGuides && React$E.createElement('div', {
|
|
976
979
|
className: classes.sidePixelGuides,
|
|
977
980
|
style: {
|
|
978
|
-
paddingTop: sideGridlinesPadding
|
|
981
|
+
paddingTop: sideGridlinesPadding,
|
|
982
|
+
marginTop: thisIsChart ? 25 : 60
|
|
979
983
|
},
|
|
980
984
|
__self: this,
|
|
981
985
|
__source: {
|
|
982
986
|
fileName: _jsxFileName$w,
|
|
983
987
|
lineNumber: 141
|
|
984
988
|
}
|
|
985
|
-
}, [...Array(nbOfHorizontalLines + 1
|
|
989
|
+
}, [...Array(nbOfHorizontalLines + 1).keys()].reverse().map(value => React$E.createElement(Readable$2, {
|
|
986
990
|
false: true,
|
|
987
991
|
key: `top-guide-${value}`,
|
|
988
992
|
__self: this,
|
|
989
993
|
__source: {
|
|
990
994
|
fileName: _jsxFileName$w,
|
|
991
|
-
lineNumber:
|
|
995
|
+
lineNumber: 149
|
|
992
996
|
}
|
|
993
997
|
}, React$E.createElement('div', {
|
|
994
998
|
className: classes.sidePixelIndicator,
|
|
995
999
|
__self: this,
|
|
996
1000
|
__source: {
|
|
997
1001
|
fileName: _jsxFileName$w,
|
|
998
|
-
lineNumber:
|
|
1002
|
+
lineNumber: 150
|
|
999
1003
|
}
|
|
1000
1004
|
}, "━ ", value * 100, "px"))))));
|
|
1001
1005
|
}
|
|
@@ -1026,8 +1030,7 @@ const styles$9 = theme => ({
|
|
|
1026
1030
|
},
|
|
1027
1031
|
topPixelGuides: {
|
|
1028
1032
|
display: 'flex',
|
|
1029
|
-
paddingTop: '6px'
|
|
1030
|
-
marginLeft: '10px'
|
|
1033
|
+
paddingTop: '6px'
|
|
1031
1034
|
},
|
|
1032
1035
|
topPixelIndicator: {
|
|
1033
1036
|
color: color$i.primaryLight(),
|
package/module/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/graphing-module",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"mappings": {
|
|
5
5
|
"@pie-lib/plot": "_dll_pie_lib__plot",
|
|
6
6
|
"@pie-lib/graphing": "_dll_pie_lib__graphing",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"modules": [
|
|
28
28
|
{
|
|
29
29
|
"name": "@pie-lib/shared-module",
|
|
30
|
-
"version": "^1.5.
|
|
30
|
+
"version": "^1.5.13"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "@pie-lib/editable-html-module",
|
|
34
|
-
"version": "^3.1.
|
|
34
|
+
"version": "^3.1.6"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "@pie-lib/drag-module",
|
|
38
|
-
"version": "^1.0.
|
|
38
|
+
"version": "^1.0.65"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "@pie-lib/config-module",
|
|
42
|
-
"version": "^2.1.
|
|
42
|
+
"version": "^2.1.13"
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
45
|
"isLocal": true
|