@pie-lib/graphing-module 1.10.6 → 1.10.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 +33 -22
- 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_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.
|
|
2
|
-
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.3.
|
|
3
|
-
import {_dll_pie_lib__drag} from "../../drag-module@^2.0.
|
|
4
|
-
import {_dll_pie_lib__config_ui} from "../../config-module@^2.3.
|
|
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.36/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.3.8/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__drag} from "../../drag-module@^2.0.7/module/index.js";
|
|
4
|
+
import {_dll_pie_lib__config_ui} from "../../config-module@^2.3.2/module/index.js";
|
|
5
5
|
const PropTypes$D = _dll_prop_types;
|
|
6
6
|
const BaseDomainRangeType = {
|
|
7
7
|
min: PropTypes$D.number.isRequired,
|
|
@@ -9646,17 +9646,19 @@ class Bg extends React$t.Component {
|
|
|
9646
9646
|
};
|
|
9647
9647
|
}
|
|
9648
9648
|
render() {
|
|
9649
|
-
const {width, height} = this.props;
|
|
9649
|
+
const {width, height, graphProps} = this.props;
|
|
9650
|
+
const padding = thinnerShapesNeeded(graphProps) ? 6 : 10;
|
|
9650
9651
|
return React$t.createElement('rect', {
|
|
9651
9652
|
ref: rect => this.rect = rect,
|
|
9653
|
+
transform: `translate(-${padding}, -${padding})`,
|
|
9652
9654
|
fill: "red",
|
|
9653
9655
|
fillOpacity: "0.0",
|
|
9654
|
-
width: width,
|
|
9655
|
-
height: height,
|
|
9656
|
+
width: width + padding * 2,
|
|
9657
|
+
height: height + padding * 2,
|
|
9656
9658
|
__self: this,
|
|
9657
9659
|
__source: {
|
|
9658
9660
|
fileName: _jsxFileName$q,
|
|
9659
|
-
lineNumber:
|
|
9661
|
+
lineNumber: 73
|
|
9660
9662
|
}
|
|
9661
9663
|
});
|
|
9662
9664
|
}
|
|
@@ -13945,7 +13947,7 @@ class RawBaseComponent extends React$a.Component {
|
|
|
13945
13947
|
this.input = {};
|
|
13946
13948
|
}
|
|
13947
13949
|
render() {
|
|
13948
|
-
const {closed, coordinatesOnHover, correctness, disabled, graphProps, onDragStart, onDragStop, points, middle, labelNode, labelModeEnabled} = this.props;
|
|
13950
|
+
const {closed, coordinatesOnHover, correctness, disabled, graphProps, onChangeLabelProps, onDragStart, onDragStop, points, middle, labelNode, labelModeEnabled} = this.props;
|
|
13949
13951
|
const lines = buildLines(points, closed);
|
|
13950
13952
|
const common = {
|
|
13951
13953
|
onDragStart,
|
|
@@ -13962,11 +13964,14 @@ class RawBaseComponent extends React$a.Component {
|
|
|
13962
13964
|
disabled: !labelModeEnabled,
|
|
13963
13965
|
mark: middle,
|
|
13964
13966
|
graphProps: graphProps,
|
|
13965
|
-
onChange:
|
|
13967
|
+
onChange: label => onChangeLabelProps({
|
|
13968
|
+
...middle,
|
|
13969
|
+
label
|
|
13970
|
+
}),
|
|
13966
13971
|
__self: this,
|
|
13967
13972
|
__source: {
|
|
13968
13973
|
fileName: _jsxFileName$a,
|
|
13969
|
-
lineNumber:
|
|
13974
|
+
lineNumber: 219
|
|
13970
13975
|
}
|
|
13971
13976
|
}), labelNode);
|
|
13972
13977
|
}
|
|
@@ -13974,13 +13979,13 @@ class RawBaseComponent extends React$a.Component {
|
|
|
13974
13979
|
__self: this,
|
|
13975
13980
|
__source: {
|
|
13976
13981
|
fileName: _jsxFileName$a,
|
|
13977
|
-
lineNumber:
|
|
13982
|
+
lineNumber: 231
|
|
13978
13983
|
}
|
|
13979
13984
|
}, closed ? React$a.createElement(React$a.Fragment, {
|
|
13980
13985
|
__self: this,
|
|
13981
13986
|
__source: {
|
|
13982
13987
|
fileName: _jsxFileName$a,
|
|
13983
|
-
lineNumber:
|
|
13988
|
+
lineNumber: 233
|
|
13984
13989
|
}
|
|
13985
13990
|
}, React$a.createElement(DraggablePolygon, {
|
|
13986
13991
|
points: points,
|
|
@@ -13991,7 +13996,7 @@ class RawBaseComponent extends React$a.Component {
|
|
|
13991
13996
|
__self: this,
|
|
13992
13997
|
__source: {
|
|
13993
13998
|
fileName: _jsxFileName$a,
|
|
13994
|
-
lineNumber:
|
|
13999
|
+
lineNumber: 234
|
|
13995
14000
|
}
|
|
13996
14001
|
}), polygonLabelNode) : React$a.createElement(Polygon, {
|
|
13997
14002
|
points: points,
|
|
@@ -14000,7 +14005,7 @@ class RawBaseComponent extends React$a.Component {
|
|
|
14000
14005
|
__self: this,
|
|
14001
14006
|
__source: {
|
|
14002
14007
|
fileName: _jsxFileName$a,
|
|
14003
|
-
lineNumber:
|
|
14008
|
+
lineNumber: 244
|
|
14004
14009
|
}
|
|
14005
14010
|
}), (lines || []).map((l, index) => React$a.createElement(Line$4, {
|
|
14006
14011
|
key: `line-${index}`,
|
|
@@ -14012,7 +14017,7 @@ class RawBaseComponent extends React$a.Component {
|
|
|
14012
14017
|
__self: this,
|
|
14013
14018
|
__source: {
|
|
14014
14019
|
fileName: _jsxFileName$a,
|
|
14015
|
-
lineNumber:
|
|
14020
|
+
lineNumber: 247
|
|
14016
14021
|
}
|
|
14017
14022
|
})), (points || []).map((p, index) => {
|
|
14018
14023
|
return [React$a.createElement(BasePoint, {
|
|
@@ -14027,7 +14032,7 @@ class RawBaseComponent extends React$a.Component {
|
|
|
14027
14032
|
__self: this,
|
|
14028
14033
|
__source: {
|
|
14029
14034
|
fileName: _jsxFileName$a,
|
|
14030
|
-
lineNumber:
|
|
14035
|
+
lineNumber: 259
|
|
14031
14036
|
}
|
|
14032
14037
|
}), labelNode && p.hasOwnProperty('label') ? ReactDOM.createPortal(React$a.createElement(MarkLabel$1, {
|
|
14033
14038
|
inputRef: r => this.input[index] = r,
|
|
@@ -14041,7 +14046,7 @@ class RawBaseComponent extends React$a.Component {
|
|
|
14041
14046
|
__self: this,
|
|
14042
14047
|
__source: {
|
|
14043
14048
|
fileName: _jsxFileName$a,
|
|
14044
|
-
lineNumber:
|
|
14049
|
+
lineNumber: 271
|
|
14045
14050
|
}
|
|
14046
14051
|
}), labelNode) : null];
|
|
14047
14052
|
}));
|
|
@@ -14168,7 +14173,7 @@ class Component$6 extends React$a.Component {
|
|
|
14168
14173
|
__self: this,
|
|
14169
14174
|
__source: {
|
|
14170
14175
|
fileName: _jsxFileName$a,
|
|
14171
|
-
lineNumber:
|
|
14176
|
+
lineNumber: 367
|
|
14172
14177
|
}
|
|
14173
14178
|
});
|
|
14174
14179
|
}
|
|
@@ -15417,6 +15422,12 @@ class Root extends React$1.Component {
|
|
|
15417
15422
|
});
|
|
15418
15423
|
this.store.subscribe(this.onStoreChange);
|
|
15419
15424
|
}
|
|
15425
|
+
componentDidUpdate(prevProps) {
|
|
15426
|
+
const {marks} = this.props;
|
|
15427
|
+
if (!isEqual(prevProps.marks, marks)) {
|
|
15428
|
+
this.store.dispatch(changeMarks(marks));
|
|
15429
|
+
}
|
|
15430
|
+
}
|
|
15420
15431
|
__init() {
|
|
15421
15432
|
this.onStoreChange = () => {
|
|
15422
15433
|
const {marks, onChangeMarks} = this.props;
|
|
@@ -15437,7 +15448,7 @@ class Root extends React$1.Component {
|
|
|
15437
15448
|
__self: this,
|
|
15438
15449
|
__source: {
|
|
15439
15450
|
fileName: _jsxFileName$1,
|
|
15440
|
-
lineNumber:
|
|
15451
|
+
lineNumber: 67
|
|
15441
15452
|
}
|
|
15442
15453
|
});
|
|
15443
15454
|
}
|
|
@@ -15446,14 +15457,14 @@ class Root extends React$1.Component {
|
|
|
15446
15457
|
__self: this,
|
|
15447
15458
|
__source: {
|
|
15448
15459
|
fileName: _jsxFileName$1,
|
|
15449
|
-
lineNumber:
|
|
15460
|
+
lineNumber: 71
|
|
15450
15461
|
}
|
|
15451
15462
|
}, React$1.createElement(GraphContainer, {
|
|
15452
15463
|
...rest,
|
|
15453
15464
|
__self: this,
|
|
15454
15465
|
__source: {
|
|
15455
15466
|
fileName: _jsxFileName$1,
|
|
15456
|
-
lineNumber:
|
|
15467
|
+
lineNumber: 72
|
|
15457
15468
|
}
|
|
15458
15469
|
}));
|
|
15459
15470
|
}
|
package/module/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/graphing-module",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.8",
|
|
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.36"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "@pie-lib/editable-html-module",
|
|
34
|
-
"version": "^3.3.
|
|
34
|
+
"version": "^3.3.8"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "@pie-lib/drag-module",
|
|
38
|
-
"version": "^2.0.
|
|
38
|
+
"version": "^2.0.7"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "@pie-lib/config-module",
|
|
42
|
-
"version": "^2.3.
|
|
42
|
+
"version": "^2.3.2"
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
45
|
"isLocal": true
|