@pie-lib/graphing-module 2.0.0 → 2.0.1
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 +73 -72
- package/module/manifest.json +5 -5
- package/package.json +1 -1
package/module/index.js
CHANGED
|
@@ -1,51 +1,7 @@
|
|
|
1
|
-
import {_dll_prop_types, _dll_lodash, _dll_pie_lib__render_ui, _dll_material_ui__core_styles, _dll_react, _dll_classnames, _dll_react_dom, _dll_debug, _dll_material_ui__core, _dll_material_ui__core_styles_color_manipulator, _dll_material_ui__icons} from "../../shared-module@^1.10.
|
|
2
|
-
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^5.1.
|
|
3
|
-
import {_dll_pie_lib__drag} from "../../drag-module@^2.4.
|
|
4
|
-
import {_dll_pie_lib__config_ui} from "../../config-module@^2.14.
|
|
5
|
-
const PropTypes$H = _dll_prop_types;
|
|
6
|
-
const BaseDomainRangeType = {
|
|
7
|
-
min: PropTypes$H.number.isRequired,
|
|
8
|
-
max: PropTypes$H.number.isRequired,
|
|
9
|
-
step: PropTypes$H.number
|
|
10
|
-
};
|
|
11
|
-
const DomainType = PropTypes$H.shape(BaseDomainRangeType);
|
|
12
|
-
const RangeType = PropTypes$H.shape(BaseDomainRangeType);
|
|
13
|
-
const SizeType = PropTypes$H.shape({
|
|
14
|
-
width: PropTypes$H.number.isRequired,
|
|
15
|
-
height: PropTypes$H.number.isRequired
|
|
16
|
-
});
|
|
17
|
-
const PointType = PropTypes$H.shape({
|
|
18
|
-
x: PropTypes$H.number.isRequired,
|
|
19
|
-
y: PropTypes$H.number.isRequired
|
|
20
|
-
});
|
|
21
|
-
const ChildrenType = PropTypes$H.oneOfType([PropTypes$H.arrayOf(PropTypes$H.node), PropTypes$H.node]).isRequired;
|
|
22
|
-
const ScaleType = PropTypes$H.shape({
|
|
23
|
-
x: PropTypes$H.func.isRequired,
|
|
24
|
-
y: PropTypes$H.func.isRequired
|
|
25
|
-
});
|
|
26
|
-
const SnapType = PropTypes$H.shape({
|
|
27
|
-
x: PropTypes$H.func.isRequired,
|
|
28
|
-
y: PropTypes$H.func.isRequired
|
|
29
|
-
});
|
|
30
|
-
const GraphPropsType = PropTypes$H.shape({
|
|
31
|
-
scale: ScaleType.isRequired,
|
|
32
|
-
snap: SnapType.isRequired,
|
|
33
|
-
domain: DomainType.isRequired,
|
|
34
|
-
range: RangeType.isRequired,
|
|
35
|
-
size: SizeType.isRequired
|
|
36
|
-
});
|
|
37
|
-
var types = Object.freeze({
|
|
38
|
-
__proto__: null,
|
|
39
|
-
BaseDomainRangeType: BaseDomainRangeType,
|
|
40
|
-
DomainType: DomainType,
|
|
41
|
-
RangeType: RangeType,
|
|
42
|
-
SizeType: SizeType,
|
|
43
|
-
PointType: PointType,
|
|
44
|
-
ChildrenType: ChildrenType,
|
|
45
|
-
ScaleType: ScaleType,
|
|
46
|
-
SnapType: SnapType,
|
|
47
|
-
GraphPropsType: GraphPropsType
|
|
48
|
-
});
|
|
1
|
+
import {_dll_prop_types, _dll_lodash, _dll_pie_lib__render_ui, _dll_material_ui__core_styles, _dll_react, _dll_classnames, _dll_react_dom, _dll_debug, _dll_material_ui__core, _dll_material_ui__core_styles_color_manipulator, _dll_material_ui__icons} from "../../shared-module@^1.10.1/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^5.1.1/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__drag} from "../../drag-module@^2.4.1/module/index.js";
|
|
4
|
+
import {_dll_pie_lib__config_ui} from "../../config-module@^2.14.1/module/index.js";
|
|
49
5
|
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
50
6
|
var namespaces = {
|
|
51
7
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -736,6 +692,50 @@ function mouse(node) {
|
|
|
736
692
|
if (event.changedTouches) event = event.changedTouches[0];
|
|
737
693
|
return clientPoint(node, event);
|
|
738
694
|
}
|
|
695
|
+
const PropTypes$H = _dll_prop_types;
|
|
696
|
+
const BaseDomainRangeType = {
|
|
697
|
+
min: PropTypes$H.number.isRequired,
|
|
698
|
+
max: PropTypes$H.number.isRequired,
|
|
699
|
+
step: PropTypes$H.number
|
|
700
|
+
};
|
|
701
|
+
const DomainType = PropTypes$H.shape(BaseDomainRangeType);
|
|
702
|
+
const RangeType = PropTypes$H.shape(BaseDomainRangeType);
|
|
703
|
+
const SizeType = PropTypes$H.shape({
|
|
704
|
+
width: PropTypes$H.number.isRequired,
|
|
705
|
+
height: PropTypes$H.number.isRequired
|
|
706
|
+
});
|
|
707
|
+
const PointType = PropTypes$H.shape({
|
|
708
|
+
x: PropTypes$H.number.isRequired,
|
|
709
|
+
y: PropTypes$H.number.isRequired
|
|
710
|
+
});
|
|
711
|
+
const ChildrenType = PropTypes$H.oneOfType([PropTypes$H.arrayOf(PropTypes$H.node), PropTypes$H.node]).isRequired;
|
|
712
|
+
const ScaleType = PropTypes$H.shape({
|
|
713
|
+
x: PropTypes$H.func.isRequired,
|
|
714
|
+
y: PropTypes$H.func.isRequired
|
|
715
|
+
});
|
|
716
|
+
const SnapType = PropTypes$H.shape({
|
|
717
|
+
x: PropTypes$H.func.isRequired,
|
|
718
|
+
y: PropTypes$H.func.isRequired
|
|
719
|
+
});
|
|
720
|
+
const GraphPropsType = PropTypes$H.shape({
|
|
721
|
+
scale: ScaleType.isRequired,
|
|
722
|
+
snap: SnapType.isRequired,
|
|
723
|
+
domain: DomainType.isRequired,
|
|
724
|
+
range: RangeType.isRequired,
|
|
725
|
+
size: SizeType.isRequired
|
|
726
|
+
});
|
|
727
|
+
var types = Object.freeze({
|
|
728
|
+
__proto__: null,
|
|
729
|
+
BaseDomainRangeType: BaseDomainRangeType,
|
|
730
|
+
DomainType: DomainType,
|
|
731
|
+
RangeType: RangeType,
|
|
732
|
+
SizeType: SizeType,
|
|
733
|
+
PointType: PointType,
|
|
734
|
+
ChildrenType: ChildrenType,
|
|
735
|
+
ScaleType: ScaleType,
|
|
736
|
+
SnapType: SnapType,
|
|
737
|
+
GraphPropsType: GraphPropsType
|
|
738
|
+
});
|
|
739
739
|
var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
740
740
|
var invariant = function (condition, format, a, b, c, d, e, f) {
|
|
741
741
|
{
|
|
@@ -1226,9 +1226,9 @@ var Label$1 = withStyles$n(theme => ({
|
|
|
1226
1226
|
const React$K = _dll_react;
|
|
1227
1227
|
const {withStyles: withStyles$m} = _dll_material_ui__core_styles;
|
|
1228
1228
|
const PropTypes$F = _dll_prop_types;
|
|
1229
|
+
const cn$3 = _dll_classnames;
|
|
1229
1230
|
const {color: color$i} = _dll_pie_lib__render_ui;
|
|
1230
1231
|
const {Readable: Readable$2} = _dll_pie_lib__render_ui;
|
|
1231
|
-
const cn$3 = _dll_classnames;
|
|
1232
1232
|
const EditableHtml$1 = _dll_pie_lib__editable_html;
|
|
1233
1233
|
const _jsxFileName$B = "/Users/lakatosandrei/CoreSpring/pie-lib/packages/plot/src/root.jsx";
|
|
1234
1234
|
function _optionalChain$1(ops) {
|
|
@@ -1340,7 +1340,7 @@ class Root$1 extends React$K.Component {
|
|
|
1340
1340
|
}
|
|
1341
1341
|
__init3() {
|
|
1342
1342
|
this.measureTitleHeight = () => {
|
|
1343
|
-
const titleElement =
|
|
1343
|
+
const titleElement = this.titleRef;
|
|
1344
1344
|
if (titleElement) {
|
|
1345
1345
|
const titleHeight = titleElement.clientHeight;
|
|
1346
1346
|
this.setState({
|
|
@@ -1374,7 +1374,7 @@ class Root$1 extends React$K.Component {
|
|
|
1374
1374
|
__self: this,
|
|
1375
1375
|
__source: {
|
|
1376
1376
|
fileName: _jsxFileName$B,
|
|
1377
|
-
lineNumber:
|
|
1377
|
+
lineNumber: 168
|
|
1378
1378
|
}
|
|
1379
1379
|
}, showPixelGuides && React$K.createElement('div', {
|
|
1380
1380
|
className: classes.topPixelGuides,
|
|
@@ -1384,7 +1384,7 @@ class Root$1 extends React$K.Component {
|
|
|
1384
1384
|
__self: this,
|
|
1385
1385
|
__source: {
|
|
1386
1386
|
fileName: _jsxFileName$B,
|
|
1387
|
-
lineNumber:
|
|
1387
|
+
lineNumber: 170
|
|
1388
1388
|
}
|
|
1389
1389
|
}, [...Array(nbOfVerticalLines + 1).keys()].map(value => React$K.createElement(Readable$2, {
|
|
1390
1390
|
false: true,
|
|
@@ -1392,29 +1392,29 @@ class Root$1 extends React$K.Component {
|
|
|
1392
1392
|
__self: this,
|
|
1393
1393
|
__source: {
|
|
1394
1394
|
fileName: _jsxFileName$B,
|
|
1395
|
-
lineNumber:
|
|
1395
|
+
lineNumber: 172
|
|
1396
1396
|
}
|
|
1397
1397
|
}, React$K.createElement('div', {
|
|
1398
1398
|
className: classes.topPixelIndicator,
|
|
1399
1399
|
__self: this,
|
|
1400
1400
|
__source: {
|
|
1401
1401
|
fileName: _jsxFileName$B,
|
|
1402
|
-
lineNumber:
|
|
1402
|
+
lineNumber: 173
|
|
1403
1403
|
}
|
|
1404
1404
|
}, React$K.createElement('div', {
|
|
1405
1405
|
__self: this,
|
|
1406
1406
|
__source: {
|
|
1407
1407
|
fileName: _jsxFileName$B,
|
|
1408
|
-
lineNumber:
|
|
1408
|
+
lineNumber: 174
|
|
1409
1409
|
}
|
|
1410
1410
|
}, value * 100, "px"), React$K.createElement('div', {
|
|
1411
1411
|
__self: this,
|
|
1412
1412
|
__source: {
|
|
1413
1413
|
fileName: _jsxFileName$B,
|
|
1414
|
-
lineNumber:
|
|
1414
|
+
lineNumber: 175
|
|
1415
1415
|
}
|
|
1416
1416
|
}, "|"))))), showTitle && (disabledTitle ? React$K.createElement('div', {
|
|
1417
|
-
|
|
1417
|
+
ref: r => this.titleRef = r,
|
|
1418
1418
|
style: {
|
|
1419
1419
|
...isChart && ({
|
|
1420
1420
|
width: finalWidth
|
|
@@ -1430,14 +1430,14 @@ class Root$1 extends React$K.Component {
|
|
|
1430
1430
|
__self: this,
|
|
1431
1431
|
__source: {
|
|
1432
1432
|
fileName: _jsxFileName$B,
|
|
1433
|
-
lineNumber:
|
|
1433
|
+
lineNumber: 183
|
|
1434
1434
|
}
|
|
1435
1435
|
}) : React$K.createElement('div', {
|
|
1436
|
-
|
|
1436
|
+
ref: r => this.titleRef = r,
|
|
1437
1437
|
__self: this,
|
|
1438
1438
|
__source: {
|
|
1439
1439
|
fileName: _jsxFileName$B,
|
|
1440
|
-
lineNumber:
|
|
1440
|
+
lineNumber: 193
|
|
1441
1441
|
}
|
|
1442
1442
|
}, React$K.createElement(EditableHtml$1, {
|
|
1443
1443
|
style: isChart && ({
|
|
@@ -1459,7 +1459,7 @@ class Root$1 extends React$K.Component {
|
|
|
1459
1459
|
__self: this,
|
|
1460
1460
|
__source: {
|
|
1461
1461
|
fileName: _jsxFileName$B,
|
|
1462
|
-
lineNumber:
|
|
1462
|
+
lineNumber: 194
|
|
1463
1463
|
}
|
|
1464
1464
|
}))), showLabels && !isChart && React$K.createElement(Label$1, {
|
|
1465
1465
|
side: "top",
|
|
@@ -1474,14 +1474,14 @@ class Root$1 extends React$K.Component {
|
|
|
1474
1474
|
__self: this,
|
|
1475
1475
|
__source: {
|
|
1476
1476
|
fileName: _jsxFileName$B,
|
|
1477
|
-
lineNumber:
|
|
1477
|
+
lineNumber: 217
|
|
1478
1478
|
}
|
|
1479
1479
|
}), React$K.createElement('div', {
|
|
1480
1480
|
className: classes.wrapper,
|
|
1481
1481
|
__self: this,
|
|
1482
1482
|
__source: {
|
|
1483
1483
|
fileName: _jsxFileName$B,
|
|
1484
|
-
lineNumber:
|
|
1484
|
+
lineNumber: 229
|
|
1485
1485
|
}
|
|
1486
1486
|
}, showLabels && React$K.createElement(Label$1, {
|
|
1487
1487
|
side: "left",
|
|
@@ -1498,7 +1498,7 @@ class Root$1 extends React$K.Component {
|
|
|
1498
1498
|
__self: this,
|
|
1499
1499
|
__source: {
|
|
1500
1500
|
fileName: _jsxFileName$B,
|
|
1501
|
-
lineNumber:
|
|
1501
|
+
lineNumber: 231
|
|
1502
1502
|
}
|
|
1503
1503
|
}), React$K.createElement('svg', {
|
|
1504
1504
|
width: finalWidth,
|
|
@@ -1507,7 +1507,7 @@ class Root$1 extends React$K.Component {
|
|
|
1507
1507
|
__self: this,
|
|
1508
1508
|
__source: {
|
|
1509
1509
|
fileName: _jsxFileName$B,
|
|
1510
|
-
lineNumber:
|
|
1510
|
+
lineNumber: 245
|
|
1511
1511
|
}
|
|
1512
1512
|
}, React$K.createElement('g', {
|
|
1513
1513
|
ref: r => {
|
|
@@ -1521,7 +1521,7 @@ class Root$1 extends React$K.Component {
|
|
|
1521
1521
|
__self: this,
|
|
1522
1522
|
__source: {
|
|
1523
1523
|
fileName: _jsxFileName$B,
|
|
1524
|
-
lineNumber:
|
|
1524
|
+
lineNumber: 246
|
|
1525
1525
|
}
|
|
1526
1526
|
}, children)), showLabels && !isChart && React$K.createElement(Label$1, {
|
|
1527
1527
|
side: "right",
|
|
@@ -1536,7 +1536,7 @@ class Root$1 extends React$K.Component {
|
|
|
1536
1536
|
__self: this,
|
|
1537
1537
|
__source: {
|
|
1538
1538
|
fileName: _jsxFileName$B,
|
|
1539
|
-
lineNumber:
|
|
1539
|
+
lineNumber: 260
|
|
1540
1540
|
}
|
|
1541
1541
|
}), showPixelGuides && React$K.createElement('div', {
|
|
1542
1542
|
className: classes.sidePixelGuides,
|
|
@@ -1547,7 +1547,7 @@ class Root$1 extends React$K.Component {
|
|
|
1547
1547
|
__self: this,
|
|
1548
1548
|
__source: {
|
|
1549
1549
|
fileName: _jsxFileName$B,
|
|
1550
|
-
lineNumber:
|
|
1550
|
+
lineNumber: 273
|
|
1551
1551
|
}
|
|
1552
1552
|
}, [...Array(nbOfHorizontalLines + 1).keys()].reverse().map(value => React$K.createElement(Readable$2, {
|
|
1553
1553
|
false: true,
|
|
@@ -1555,14 +1555,14 @@ class Root$1 extends React$K.Component {
|
|
|
1555
1555
|
__self: this,
|
|
1556
1556
|
__source: {
|
|
1557
1557
|
fileName: _jsxFileName$B,
|
|
1558
|
-
lineNumber:
|
|
1558
|
+
lineNumber: 281
|
|
1559
1559
|
}
|
|
1560
1560
|
}, React$K.createElement('div', {
|
|
1561
1561
|
className: classes.sidePixelIndicator,
|
|
1562
1562
|
__self: this,
|
|
1563
1563
|
__source: {
|
|
1564
1564
|
fileName: _jsxFileName$B,
|
|
1565
|
-
lineNumber:
|
|
1565
|
+
lineNumber: 282
|
|
1566
1566
|
}
|
|
1567
1567
|
}, "━ ", value * 100, "px"))))), showLabels && React$K.createElement(Label$1, {
|
|
1568
1568
|
side: "bottom",
|
|
@@ -1580,7 +1580,7 @@ class Root$1 extends React$K.Component {
|
|
|
1580
1580
|
__self: this,
|
|
1581
1581
|
__source: {
|
|
1582
1582
|
fileName: _jsxFileName$B,
|
|
1583
|
-
lineNumber:
|
|
1583
|
+
lineNumber: 289
|
|
1584
1584
|
}
|
|
1585
1585
|
}));
|
|
1586
1586
|
}
|
|
@@ -1592,7 +1592,8 @@ const styles$a = theme => ({
|
|
|
1592
1592
|
color: color$i.defaults.TEXT,
|
|
1593
1593
|
backgroundColor: theme.palette.common.white,
|
|
1594
1594
|
touchAction: 'none',
|
|
1595
|
-
position: 'relative'
|
|
1595
|
+
position: 'relative',
|
|
1596
|
+
boxSizing: 'unset'
|
|
1596
1597
|
},
|
|
1597
1598
|
wrapper: {
|
|
1598
1599
|
display: 'flex',
|
package/module/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/graphing-module",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"mappings": {
|
|
5
5
|
"@pie-lib/plot": "_dll_pie_lib__plot",
|
|
6
6
|
"@pie-lib/graphing": "_dll_pie_lib__graphing"
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
"modules": [
|
|
20
20
|
{
|
|
21
21
|
"name": "@pie-lib/shared-module",
|
|
22
|
-
"version": "^1.10.
|
|
22
|
+
"version": "^1.10.1"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "@pie-lib/editable-html-module",
|
|
26
|
-
"version": "^5.1.
|
|
26
|
+
"version": "^5.1.1"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"name": "@pie-lib/drag-module",
|
|
30
|
-
"version": "^2.4.
|
|
30
|
+
"version": "^2.4.1"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "@pie-lib/config-module",
|
|
34
|
-
"version": "^2.14.
|
|
34
|
+
"version": "^2.14.1"
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
37
|
"isLocal": true
|