@pie-lib/graphing-module 1.11.25 → 1.11.26
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 +100 -14
- package/module/manifest.json +7 -7
- 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.6.
|
|
2
|
-
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.7.
|
|
3
|
-
import {_dll_pie_lib__drag} from "../../drag-module@^2.1.
|
|
4
|
-
import {_dll_pie_lib__config_ui} from "../../config-module@^2.8.
|
|
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.24/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^3.7.1/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__drag} from "../../drag-module@^2.1.27/module/index.js";
|
|
4
|
+
import {_dll_pie_lib__config_ui} from "../../config-module@^2.8.11/module/index.js";
|
|
5
5
|
const PropTypes$E = _dll_prop_types;
|
|
6
6
|
const BaseDomainRangeType = {
|
|
7
7
|
min: PropTypes$E.number.isRequired,
|
|
@@ -8203,7 +8203,7 @@ Text.propTypes = {
|
|
|
8203
8203
|
const React$z = _dll_react;
|
|
8204
8204
|
const PropTypes$x = _dll_prop_types;
|
|
8205
8205
|
const cx$1 = _dll_classnames;
|
|
8206
|
-
function _defineProperty(obj, key, value) {
|
|
8206
|
+
function _defineProperty$1(obj, key, value) {
|
|
8207
8207
|
if ((key in obj)) {
|
|
8208
8208
|
Object.defineProperty(obj, key, {
|
|
8209
8209
|
value: value,
|
|
@@ -8240,7 +8240,7 @@ function _objectSpread(target) {
|
|
|
8240
8240
|
}));
|
|
8241
8241
|
}
|
|
8242
8242
|
ownKeys.forEach(function (key) {
|
|
8243
|
-
_defineProperty(target, key, source[key]);
|
|
8243
|
+
_defineProperty$1(target, key, source[key]);
|
|
8244
8244
|
});
|
|
8245
8245
|
}
|
|
8246
8246
|
return target;
|
|
@@ -10490,6 +10490,40 @@ function shallowEqual(objA, objB) {
|
|
|
10490
10490
|
}
|
|
10491
10491
|
return true;
|
|
10492
10492
|
}
|
|
10493
|
+
function _defineProperty(obj, key, value) {
|
|
10494
|
+
if ((key in obj)) {
|
|
10495
|
+
Object.defineProperty(obj, key, {
|
|
10496
|
+
value: value,
|
|
10497
|
+
enumerable: true,
|
|
10498
|
+
configurable: true,
|
|
10499
|
+
writable: true
|
|
10500
|
+
});
|
|
10501
|
+
} else {
|
|
10502
|
+
obj[key] = value;
|
|
10503
|
+
}
|
|
10504
|
+
return obj;
|
|
10505
|
+
}
|
|
10506
|
+
function ownKeys(object, enumerableOnly) {
|
|
10507
|
+
var keys = Object.keys(object);
|
|
10508
|
+
if (Object.getOwnPropertySymbols) {
|
|
10509
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
10510
|
+
(enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
10511
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
10512
|
+
})), keys.push.apply(keys, symbols));
|
|
10513
|
+
}
|
|
10514
|
+
return keys;
|
|
10515
|
+
}
|
|
10516
|
+
function _objectSpread2(target) {
|
|
10517
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
10518
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
10519
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
10520
|
+
_defineProperty(target, key, source[key]);
|
|
10521
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
10522
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
10523
|
+
});
|
|
10524
|
+
}
|
|
10525
|
+
return target;
|
|
10526
|
+
}
|
|
10493
10527
|
var $$observable = (function () {
|
|
10494
10528
|
return typeof Symbol === 'function' && Symbol.observable || '@@observable';
|
|
10495
10529
|
})();
|
|
@@ -10801,6 +10835,50 @@ function bindActionCreators(actionCreators, dispatch) {
|
|
|
10801
10835
|
}
|
|
10802
10836
|
return boundActionCreators;
|
|
10803
10837
|
}
|
|
10838
|
+
function compose() {
|
|
10839
|
+
for (var _len = arguments.length, funcs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10840
|
+
funcs[_key] = arguments[_key];
|
|
10841
|
+
}
|
|
10842
|
+
if (funcs.length === 0) {
|
|
10843
|
+
return function (arg) {
|
|
10844
|
+
return arg;
|
|
10845
|
+
};
|
|
10846
|
+
}
|
|
10847
|
+
if (funcs.length === 1) {
|
|
10848
|
+
return funcs[0];
|
|
10849
|
+
}
|
|
10850
|
+
return funcs.reduce(function (a, b) {
|
|
10851
|
+
return function () {
|
|
10852
|
+
return a(b.apply(void 0, arguments));
|
|
10853
|
+
};
|
|
10854
|
+
});
|
|
10855
|
+
}
|
|
10856
|
+
function applyMiddleware() {
|
|
10857
|
+
for (var _len = arguments.length, middlewares = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
10858
|
+
middlewares[_key] = arguments[_key];
|
|
10859
|
+
}
|
|
10860
|
+
return function (createStore) {
|
|
10861
|
+
return function () {
|
|
10862
|
+
var store = createStore.apply(void 0, arguments);
|
|
10863
|
+
var _dispatch = function dispatch() {
|
|
10864
|
+
throw new Error('Dispatching while constructing your middleware is not allowed. ' + 'Other middleware would not be applied to this dispatch.');
|
|
10865
|
+
};
|
|
10866
|
+
var middlewareAPI = {
|
|
10867
|
+
getState: store.getState,
|
|
10868
|
+
dispatch: function dispatch() {
|
|
10869
|
+
return _dispatch.apply(void 0, arguments);
|
|
10870
|
+
}
|
|
10871
|
+
};
|
|
10872
|
+
var chain = middlewares.map(function (middleware) {
|
|
10873
|
+
return middleware(middlewareAPI);
|
|
10874
|
+
});
|
|
10875
|
+
_dispatch = compose.apply(void 0, chain)(store.dispatch);
|
|
10876
|
+
return _objectSpread2(_objectSpread2({}, store), {}, {
|
|
10877
|
+
dispatch: _dispatch
|
|
10878
|
+
});
|
|
10879
|
+
};
|
|
10880
|
+
};
|
|
10881
|
+
}
|
|
10804
10882
|
function isCrushed() {}
|
|
10805
10883
|
if (typeof isCrushed.name === 'string' && isCrushed.name !== 'isCrushed') {
|
|
10806
10884
|
warning$1('You are currently using minified code outside of NODE_ENV === "production". ' + 'This means that you are running a slower development build of Redux. ' + 'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify ' + 'or setting mode to production in webpack (https://webpack.js.org/concepts/mode/) ' + 'to ensure you have the correct code for your production build.');
|
|
@@ -15139,7 +15217,7 @@ class UndoRedo extends React$3.Component {
|
|
|
15139
15217
|
classes: {
|
|
15140
15218
|
root: classes.button
|
|
15141
15219
|
},
|
|
15142
|
-
onClick: onUndo,
|
|
15220
|
+
onClick: () => onUndo(true),
|
|
15143
15221
|
__self: this,
|
|
15144
15222
|
__source: {
|
|
15145
15223
|
fileName: _jsxFileName$3,
|
|
@@ -15149,7 +15227,7 @@ class UndoRedo extends React$3.Component {
|
|
|
15149
15227
|
classes: {
|
|
15150
15228
|
root: classes.button
|
|
15151
15229
|
},
|
|
15152
|
-
onClick: onRedo,
|
|
15230
|
+
onClick: () => onRedo(true),
|
|
15153
15231
|
__self: this,
|
|
15154
15232
|
__source: {
|
|
15155
15233
|
fileName: _jsxFileName$3,
|
|
@@ -15159,7 +15237,7 @@ class UndoRedo extends React$3.Component {
|
|
|
15159
15237
|
classes: {
|
|
15160
15238
|
root: classes.button
|
|
15161
15239
|
},
|
|
15162
|
-
onClick: onReset,
|
|
15240
|
+
onClick: () => onReset(),
|
|
15163
15241
|
__self: this,
|
|
15164
15242
|
__source: {
|
|
15165
15243
|
fileName: _jsxFileName$3,
|
|
@@ -15444,6 +15522,12 @@ const styles$1 = theme => ({
|
|
|
15444
15522
|
}
|
|
15445
15523
|
});
|
|
15446
15524
|
var GraphWithControls$1 = withStyles$1(styles$1)(GraphWithControls);
|
|
15525
|
+
let lastAction = null;
|
|
15526
|
+
const getLastAction = () => lastAction;
|
|
15527
|
+
const lastActionMiddleware = () => next => action => {
|
|
15528
|
+
lastAction = action;
|
|
15529
|
+
return next(action);
|
|
15530
|
+
};
|
|
15447
15531
|
const React$1 = _dll_react;
|
|
15448
15532
|
const PropTypes$1 = _dll_prop_types;
|
|
15449
15533
|
const {isEqual: isEqual} = _dll_lodash;
|
|
@@ -15471,7 +15555,7 @@ class Root extends React$1.Component {
|
|
|
15471
15555
|
const r = reducer();
|
|
15472
15556
|
this.store = createStore(r, {
|
|
15473
15557
|
marks: props.marks
|
|
15474
|
-
});
|
|
15558
|
+
}, applyMiddleware(lastActionMiddleware));
|
|
15475
15559
|
this.store.subscribe(this.onStoreChange);
|
|
15476
15560
|
}
|
|
15477
15561
|
componentDidUpdate(prevProps) {
|
|
@@ -15488,8 +15572,10 @@ class Root extends React$1.Component {
|
|
|
15488
15572
|
this.onStoreChange = () => {
|
|
15489
15573
|
const {marks, onChangeMarks} = this.props;
|
|
15490
15574
|
const storeState = this.store.getState();
|
|
15575
|
+
const lastAction = getLastAction();
|
|
15576
|
+
const isUndoOperation = lastAction.type.includes('UNDO') || lastAction.type.includes('REDO');
|
|
15491
15577
|
if (!isEqual(storeState.marks.present, marks)) {
|
|
15492
|
-
onChangeMarks(storeState.marks.present);
|
|
15578
|
+
onChangeMarks(storeState.marks.present, isUndoOperation);
|
|
15493
15579
|
}
|
|
15494
15580
|
};
|
|
15495
15581
|
}
|
|
@@ -15504,7 +15590,7 @@ class Root extends React$1.Component {
|
|
|
15504
15590
|
__self: this,
|
|
15505
15591
|
__source: {
|
|
15506
15592
|
fileName: _jsxFileName$1,
|
|
15507
|
-
lineNumber:
|
|
15593
|
+
lineNumber: 75
|
|
15508
15594
|
}
|
|
15509
15595
|
});
|
|
15510
15596
|
}
|
|
@@ -15513,14 +15599,14 @@ class Root extends React$1.Component {
|
|
|
15513
15599
|
__self: this,
|
|
15514
15600
|
__source: {
|
|
15515
15601
|
fileName: _jsxFileName$1,
|
|
15516
|
-
lineNumber:
|
|
15602
|
+
lineNumber: 79
|
|
15517
15603
|
}
|
|
15518
15604
|
}, React$1.createElement(GraphContainer, {
|
|
15519
15605
|
...rest,
|
|
15520
15606
|
__self: this,
|
|
15521
15607
|
__source: {
|
|
15522
15608
|
fileName: _jsxFileName$1,
|
|
15523
|
-
lineNumber:
|
|
15609
|
+
lineNumber: 80
|
|
15524
15610
|
}
|
|
15525
15611
|
}));
|
|
15526
15612
|
}
|
package/module/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/graphing-module",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.26",
|
|
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.13"
|
|
14
14
|
},
|
|
15
15
|
"@pie-lib/graphing": {
|
|
16
|
-
"version": "2.12.
|
|
16
|
+
"version": "2.12.28"
|
|
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": "
|
|
25
|
+
"hash": "cac0cc423e3ba202dda68856e4e11e35ac1b0aba"
|
|
26
26
|
},
|
|
27
27
|
"modules": [
|
|
28
28
|
{
|
|
29
29
|
"name": "@pie-lib/shared-module",
|
|
30
|
-
"version": "^1.6.
|
|
30
|
+
"version": "^1.6.24"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "@pie-lib/editable-html-module",
|
|
34
|
-
"version": "^3.7.
|
|
34
|
+
"version": "^3.7.1"
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
"name": "@pie-lib/drag-module",
|
|
38
|
-
"version": "^2.1.
|
|
38
|
+
"version": "^2.1.27"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "@pie-lib/config-module",
|
|
42
|
-
"version": "^2.8.
|
|
42
|
+
"version": "^2.8.11"
|
|
43
43
|
}
|
|
44
44
|
],
|
|
45
45
|
"isLocal": true
|