@pie-lib/graphing-module 2.5.5 → 2.5.6
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 -85
- 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_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.14.
|
|
2
|
-
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^5.6.
|
|
3
|
-
import {_dll_pie_lib__drag} from "../../drag-module@^2.8.
|
|
4
|
-
import {_dll_pie_lib__config_ui} from "../../config-module@^2.19.
|
|
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.14.6/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^5.6.6/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__drag} from "../../drag-module@^2.8.6/module/index.js";
|
|
4
|
+
import {_dll_pie_lib__config_ui} from "../../config-module@^2.19.6/module/index.js";
|
|
5
5
|
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
6
6
|
var namespaces = {
|
|
7
7
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -4441,7 +4441,7 @@ const create = (domain, range, size, getRootNode) => {
|
|
|
4441
4441
|
getRootNode
|
|
4442
4442
|
};
|
|
4443
4443
|
};
|
|
4444
|
-
var index$
|
|
4444
|
+
var index$3 = Object.freeze({
|
|
4445
4445
|
__proto__: null,
|
|
4446
4446
|
Root: Root$2,
|
|
4447
4447
|
Draggable: LocalDraggable,
|
|
@@ -4712,8 +4712,8 @@ var Point$1 = (function () {
|
|
|
4712
4712
|
const React$I = _dll_react;
|
|
4713
4713
|
const cx$4 = _dll_classnames;
|
|
4714
4714
|
const PropTypes$D = _dll_prop_types;
|
|
4715
|
-
function _extends$
|
|
4716
|
-
_extends$
|
|
4715
|
+
function _extends$9() {
|
|
4716
|
+
_extends$9 = Object.assign || (function (target) {
|
|
4717
4717
|
for (var i = 1; i < arguments.length; i++) {
|
|
4718
4718
|
var source = arguments[i];
|
|
4719
4719
|
for (var key in source) {
|
|
@@ -4724,7 +4724,7 @@ function _extends$7() {
|
|
|
4724
4724
|
}
|
|
4725
4725
|
return target;
|
|
4726
4726
|
});
|
|
4727
|
-
return _extends$
|
|
4727
|
+
return _extends$9.apply(this, arguments);
|
|
4728
4728
|
}
|
|
4729
4729
|
function _objectWithoutPropertiesLoose$5(source, excluded) {
|
|
4730
4730
|
if (source == null) return {};
|
|
@@ -4805,7 +4805,7 @@ function Line$5(_ref) {
|
|
|
4805
4805
|
x: 1,
|
|
4806
4806
|
y: 1
|
|
4807
4807
|
}) : _ref$to, _ref$fill = _ref.fill, fill = _ref$fill === void 0 ? 'transparent' : _ref$fill, _ref$className = _ref.className, className = _ref$className === void 0 ? '' : _ref$className, innerRef = _ref.innerRef, restProps = _objectWithoutProperties$5(_ref, ["from", "to", "fill", "className", "innerRef"]);
|
|
4808
|
-
return React$I.createElement("line", _extends$
|
|
4808
|
+
return React$I.createElement("line", _extends$9({
|
|
4809
4809
|
ref: innerRef,
|
|
4810
4810
|
className: cx$4('vx-line', className),
|
|
4811
4811
|
x1: from.x,
|
|
@@ -4835,7 +4835,7 @@ function LinePath$1(_ref) {
|
|
|
4835
4835
|
if (children) return children({
|
|
4836
4836
|
path: path$$1
|
|
4837
4837
|
});
|
|
4838
|
-
return React$I.createElement("path", _extends$
|
|
4838
|
+
return React$I.createElement("path", _extends$9({
|
|
4839
4839
|
ref: innerRef,
|
|
4840
4840
|
className: cx$4('vx-linepath', className),
|
|
4841
4841
|
d: path$$1(data),
|
|
@@ -5116,8 +5116,8 @@ function LinePath$1(_ref) {
|
|
|
5116
5116
|
const React$H = _dll_react;
|
|
5117
5117
|
const cx$3 = _dll_classnames;
|
|
5118
5118
|
const PropTypes$C = _dll_prop_types;
|
|
5119
|
-
function _extends$
|
|
5120
|
-
_extends$
|
|
5119
|
+
function _extends$8() {
|
|
5120
|
+
_extends$8 = Object.assign || (function (target) {
|
|
5121
5121
|
for (var i = 1; i < arguments.length; i++) {
|
|
5122
5122
|
var source = arguments[i];
|
|
5123
5123
|
for (var key in source) {
|
|
@@ -5128,7 +5128,7 @@ function _extends$6() {
|
|
|
5128
5128
|
}
|
|
5129
5129
|
return target;
|
|
5130
5130
|
});
|
|
5131
|
-
return _extends$
|
|
5131
|
+
return _extends$8.apply(this, arguments);
|
|
5132
5132
|
}
|
|
5133
5133
|
function _objectWithoutPropertiesLoose$4(source, excluded) {
|
|
5134
5134
|
if (source == null) return {};
|
|
@@ -5166,7 +5166,7 @@ Group$1.propTypes = {
|
|
|
5166
5166
|
};
|
|
5167
5167
|
function Group$1(_ref) {
|
|
5168
5168
|
var _ref$top = _ref.top, top = _ref$top === void 0 ? 0 : _ref$top, _ref$left = _ref.left, left = _ref$left === void 0 ? 0 : _ref$left, transform = _ref.transform, className = _ref.className, children = _ref.children, restProps = _objectWithoutProperties$4(_ref, ["top", "left", "transform", "className", "children"]);
|
|
5169
|
-
return React$H.createElement("g", _extends$
|
|
5169
|
+
return React$H.createElement("g", _extends$8({
|
|
5170
5170
|
className: cx$3('vx-group', className),
|
|
5171
5171
|
transform: transform || ("translate(").concat(left, ", ").concat(top, ")")
|
|
5172
5172
|
}, restProps), children);
|
|
@@ -6110,8 +6110,8 @@ function _createClass$2(Constructor, protoProps, staticProps) {
|
|
|
6110
6110
|
if (staticProps) _defineProperties$1(Constructor, staticProps);
|
|
6111
6111
|
return Constructor;
|
|
6112
6112
|
}
|
|
6113
|
-
function _extends$
|
|
6114
|
-
_extends$
|
|
6113
|
+
function _extends$7() {
|
|
6114
|
+
_extends$7 = Object.assign || (function (target) {
|
|
6115
6115
|
for (var i = 1; i < arguments.length; i++) {
|
|
6116
6116
|
var source = arguments[i];
|
|
6117
6117
|
for (var key in source) {
|
|
@@ -6122,7 +6122,7 @@ function _extends$5() {
|
|
|
6122
6122
|
}
|
|
6123
6123
|
return target;
|
|
6124
6124
|
});
|
|
6125
|
-
return _extends$
|
|
6125
|
+
return _extends$7.apply(this, arguments);
|
|
6126
6126
|
}
|
|
6127
6127
|
function _inherits$2(subClass, superClass) {
|
|
6128
6128
|
if (typeof superClass !== "function" && superClass !== null) {
|
|
@@ -6633,7 +6633,7 @@ var Text = (function (_Component) {
|
|
|
6633
6633
|
style: {
|
|
6634
6634
|
overflow: 'visible'
|
|
6635
6635
|
}
|
|
6636
|
-
}, React$G.createElement("text", _extends$
|
|
6636
|
+
}, React$G.createElement("text", _extends$7({}, textProps, {
|
|
6637
6637
|
textAnchor: textAnchor
|
|
6638
6638
|
}), wordsByLines.map(function (line, index) {
|
|
6639
6639
|
return React$G.createElement("tspan", {
|
|
@@ -6687,8 +6687,8 @@ function _defineProperty$2(obj, key, value) {
|
|
|
6687
6687
|
}
|
|
6688
6688
|
return obj;
|
|
6689
6689
|
}
|
|
6690
|
-
function _extends$
|
|
6691
|
-
_extends$
|
|
6690
|
+
function _extends$6() {
|
|
6691
|
+
_extends$6 = Object.assign || (function (target) {
|
|
6692
6692
|
for (var i = 1; i < arguments.length; i++) {
|
|
6693
6693
|
var source = arguments[i];
|
|
6694
6694
|
for (var key in source) {
|
|
@@ -6699,7 +6699,7 @@ function _extends$4() {
|
|
|
6699
6699
|
}
|
|
6700
6700
|
return target;
|
|
6701
6701
|
});
|
|
6702
|
-
return _extends$
|
|
6702
|
+
return _extends$6.apply(this, arguments);
|
|
6703
6703
|
}
|
|
6704
6704
|
function _objectSpread$7(target) {
|
|
6705
6705
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -6879,7 +6879,7 @@ function Axis(_ref) {
|
|
|
6879
6879
|
x: tickToPoint.x,
|
|
6880
6880
|
y: tickToPoint.y + (horizontal && !isTop ? tickLabelFontSize : 0),
|
|
6881
6881
|
formattedValue: format(val, index)
|
|
6882
|
-
}, tickLabelPropsObj)) : React$F.createElement(Text, _extends$
|
|
6882
|
+
}, tickLabelPropsObj)) : React$F.createElement(Text, _extends$6({
|
|
6883
6883
|
x: tickToPoint.x,
|
|
6884
6884
|
y: tickToPoint.y + (horizontal && !isTop ? tickLabelFontSize : 0)
|
|
6885
6885
|
}, tickLabelPropsObj), format(val, index)));
|
|
@@ -6890,7 +6890,7 @@ function Axis(_ref) {
|
|
|
6890
6890
|
stroke: stroke,
|
|
6891
6891
|
strokeWidth: strokeWidth,
|
|
6892
6892
|
strokeDasharray: strokeDasharray
|
|
6893
|
-
}), label && React$F.createElement(Text, _extends$
|
|
6893
|
+
}), label && React$F.createElement(Text, _extends$6({
|
|
6894
6894
|
className: cx$2('vx-axis-label', labelClassName)
|
|
6895
6895
|
}, labelTransform({
|
|
6896
6896
|
labelOffset: labelOffset,
|
|
@@ -7583,8 +7583,8 @@ Axes.__initStatic6();
|
|
|
7583
7583
|
const React$C = _dll_react;
|
|
7584
7584
|
const cx$1 = _dll_classnames;
|
|
7585
7585
|
const PropTypes$x = _dll_prop_types;
|
|
7586
|
-
function _extends$
|
|
7587
|
-
_extends$
|
|
7586
|
+
function _extends$5() {
|
|
7587
|
+
_extends$5 = Object.assign || (function (target) {
|
|
7588
7588
|
for (var i = 1; i < arguments.length; i++) {
|
|
7589
7589
|
var source = arguments[i];
|
|
7590
7590
|
for (var key in source) {
|
|
@@ -7595,7 +7595,7 @@ function _extends$3() {
|
|
|
7595
7595
|
}
|
|
7596
7596
|
return target;
|
|
7597
7597
|
});
|
|
7598
|
-
return _extends$
|
|
7598
|
+
return _extends$5.apply(this, arguments);
|
|
7599
7599
|
}
|
|
7600
7600
|
function _objectWithoutPropertiesLoose$2(source, excluded) {
|
|
7601
7601
|
if (source == null) return {};
|
|
@@ -7633,7 +7633,7 @@ Group.propTypes = {
|
|
|
7633
7633
|
};
|
|
7634
7634
|
function Group(_ref) {
|
|
7635
7635
|
var _ref$top = _ref.top, top = _ref$top === void 0 ? 0 : _ref$top, _ref$left = _ref.left, left = _ref$left === void 0 ? 0 : _ref$left, transform = _ref.transform, className = _ref.className, children = _ref.children, restProps = _objectWithoutProperties$2(_ref, ["top", "left", "transform", "className", "children"]);
|
|
7636
|
-
return React$C.createElement("g", _extends$
|
|
7636
|
+
return React$C.createElement("g", _extends$5({
|
|
7637
7637
|
className: cx$1('vx-group', className),
|
|
7638
7638
|
transform: transform || ("translate(").concat(left, ", ").concat(top, ")")
|
|
7639
7639
|
}, restProps), children);
|
|
@@ -7641,8 +7641,8 @@ function Group(_ref) {
|
|
|
7641
7641
|
const React$B = _dll_react;
|
|
7642
7642
|
const cx = _dll_classnames;
|
|
7643
7643
|
const PropTypes$w = _dll_prop_types;
|
|
7644
|
-
function _extends$
|
|
7645
|
-
_extends$
|
|
7644
|
+
function _extends$4() {
|
|
7645
|
+
_extends$4 = Object.assign || (function (target) {
|
|
7646
7646
|
for (var i = 1; i < arguments.length; i++) {
|
|
7647
7647
|
var source = arguments[i];
|
|
7648
7648
|
for (var key in source) {
|
|
@@ -7653,7 +7653,7 @@ function _extends$2() {
|
|
|
7653
7653
|
}
|
|
7654
7654
|
return target;
|
|
7655
7655
|
});
|
|
7656
|
-
return _extends$
|
|
7656
|
+
return _extends$4.apply(this, arguments);
|
|
7657
7657
|
}
|
|
7658
7658
|
function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
7659
7659
|
if (source == null) return {};
|
|
@@ -7714,7 +7714,7 @@ function Rows(_ref) {
|
|
|
7714
7714
|
x: width,
|
|
7715
7715
|
y: y
|
|
7716
7716
|
});
|
|
7717
|
-
return React$B.createElement(Line$5, _extends$
|
|
7717
|
+
return React$B.createElement(Line$5, _extends$4({
|
|
7718
7718
|
key: ("row-line-").concat(d, "-").concat(i),
|
|
7719
7719
|
from: fromPoint,
|
|
7720
7720
|
to: toPoint,
|
|
@@ -7757,7 +7757,7 @@ function Columns(_ref) {
|
|
|
7757
7757
|
x: x,
|
|
7758
7758
|
y: height
|
|
7759
7759
|
});
|
|
7760
|
-
return React$B.createElement(Line$5, _extends$
|
|
7760
|
+
return React$B.createElement(Line$5, _extends$4({
|
|
7761
7761
|
key: ("column-line-").concat(d, "-").concat(i),
|
|
7762
7762
|
from: fromPoint,
|
|
7763
7763
|
to: toPoint,
|
|
@@ -7794,7 +7794,7 @@ function Grid$2(_ref) {
|
|
|
7794
7794
|
className: cx('vx-grid', className),
|
|
7795
7795
|
top: top,
|
|
7796
7796
|
left: left
|
|
7797
|
-
}, React$B.createElement(Rows, _extends$
|
|
7797
|
+
}, React$B.createElement(Rows, _extends$4({
|
|
7798
7798
|
className: className,
|
|
7799
7799
|
scale: yScale,
|
|
7800
7800
|
width: width,
|
|
@@ -7805,7 +7805,7 @@ function Grid$2(_ref) {
|
|
|
7805
7805
|
style: rowLineStyle,
|
|
7806
7806
|
offset: yOffset,
|
|
7807
7807
|
tickValues: rowTickValues
|
|
7808
|
-
}, restProps)), React$B.createElement(Columns, _extends$
|
|
7808
|
+
}, restProps)), React$B.createElement(Columns, _extends$4({
|
|
7809
7809
|
className: className,
|
|
7810
7810
|
scale: xScale,
|
|
7811
7811
|
height: height,
|
|
@@ -8628,8 +8628,8 @@ function _assertThisInitialized$1(self) {
|
|
|
8628
8628
|
}
|
|
8629
8629
|
return self;
|
|
8630
8630
|
}
|
|
8631
|
-
function _extends$
|
|
8632
|
-
_extends$
|
|
8631
|
+
function _extends$3() {
|
|
8632
|
+
_extends$3 = Object.assign || (function (target) {
|
|
8633
8633
|
for (var i = 1; i < arguments.length; i++) {
|
|
8634
8634
|
var source = arguments[i];
|
|
8635
8635
|
for (var key in source) {
|
|
@@ -8640,7 +8640,7 @@ function _extends$1() {
|
|
|
8640
8640
|
}
|
|
8641
8641
|
return target;
|
|
8642
8642
|
});
|
|
8643
|
-
return _extends$
|
|
8643
|
+
return _extends$3.apply(this, arguments);
|
|
8644
8644
|
}
|
|
8645
8645
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
8646
8646
|
if (source == null) return {};
|
|
@@ -8915,7 +8915,7 @@ function connectAdvanced(selectorFactory, _ref) {
|
|
|
8915
8915
|
}
|
|
8916
8916
|
var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
8917
8917
|
var displayName = getDisplayName(wrappedComponentName);
|
|
8918
|
-
var selectorFactoryOptions = _extends$
|
|
8918
|
+
var selectorFactoryOptions = _extends$3({}, connectOptions, {
|
|
8919
8919
|
getDisplayName: getDisplayName,
|
|
8920
8920
|
methodName: methodName,
|
|
8921
8921
|
renderCountProp: renderCountProp,
|
|
@@ -8960,7 +8960,7 @@ function connectAdvanced(selectorFactory, _ref) {
|
|
|
8960
8960
|
lastChildProps = childProps;
|
|
8961
8961
|
lastForwardRef = forwardRef;
|
|
8962
8962
|
lastComponent = WrappedComponent;
|
|
8963
|
-
lastChildElement = React$u.createElement(WrappedComponent, _extends$
|
|
8963
|
+
lastChildElement = React$u.createElement(WrappedComponent, _extends$3({}, childProps, {
|
|
8964
8964
|
ref: forwardRef
|
|
8965
8965
|
}));
|
|
8966
8966
|
}
|
|
@@ -9516,7 +9516,7 @@ function whenMapStateToPropsIsMissing(mapStateToProps) {
|
|
|
9516
9516
|
}
|
|
9517
9517
|
var defaultMapStateToPropsFactories = [whenMapStateToPropsIsFunction, whenMapStateToPropsIsMissing];
|
|
9518
9518
|
function defaultMergeProps(stateProps, dispatchProps, ownProps) {
|
|
9519
|
-
return _extends$
|
|
9519
|
+
return _extends$3({}, ownProps, stateProps, dispatchProps);
|
|
9520
9520
|
}
|
|
9521
9521
|
function wrapMergePropsFunc(mergeProps) {
|
|
9522
9522
|
return function initMergePropsProxy(dispatch, _ref) {
|
|
@@ -9647,7 +9647,7 @@ function createConnect(_temp) {
|
|
|
9647
9647
|
var initMapStateToProps = match(mapStateToProps, mapStateToPropsFactories, 'mapStateToProps');
|
|
9648
9648
|
var initMapDispatchToProps = match(mapDispatchToProps, mapDispatchToPropsFactories, 'mapDispatchToProps');
|
|
9649
9649
|
var initMergeProps = match(mergeProps, mergePropsFactories, 'mergeProps');
|
|
9650
|
-
return connectHOC(selectorFactory, _extends$
|
|
9650
|
+
return connectHOC(selectorFactory, _extends$3({
|
|
9651
9651
|
methodName: 'connect',
|
|
9652
9652
|
getDisplayName: function getDisplayName(name) {
|
|
9653
9653
|
return "Connect(" + name + ")";
|
|
@@ -10726,7 +10726,7 @@ const require$$1 = _dll_prop_types;
|
|
|
10726
10726
|
Object.defineProperty(AutosizeInput$1, "__esModule", {
|
|
10727
10727
|
value: true
|
|
10728
10728
|
});
|
|
10729
|
-
var _extends = Object.assign || (function (target) {
|
|
10729
|
+
var _extends$2 = Object.assign || (function (target) {
|
|
10730
10730
|
for (var i = 1; i < arguments.length; i++) {
|
|
10731
10731
|
var source = arguments[i];
|
|
10732
10732
|
for (var key in source) {
|
|
@@ -10956,9 +10956,9 @@ var AutosizeInput = (function (_Component) {
|
|
|
10956
10956
|
}
|
|
10957
10957
|
return currentValue;
|
|
10958
10958
|
});
|
|
10959
|
-
var wrapperStyle = _extends({}, this.props.style);
|
|
10959
|
+
var wrapperStyle = _extends$2({}, this.props.style);
|
|
10960
10960
|
if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
|
|
10961
|
-
var inputStyle = _extends({
|
|
10961
|
+
var inputStyle = _extends$2({
|
|
10962
10962
|
boxSizing: 'content-box',
|
|
10963
10963
|
width: this.state.inputWidth + 'px'
|
|
10964
10964
|
}, this.props.inputStyle);
|
|
@@ -10970,7 +10970,7 @@ var AutosizeInput = (function (_Component) {
|
|
|
10970
10970
|
return _react2.default.createElement('div', {
|
|
10971
10971
|
className: this.props.className,
|
|
10972
10972
|
style: wrapperStyle
|
|
10973
|
-
}, this.renderStyles(), _react2.default.createElement('input', _extends({}, inputProps, {
|
|
10973
|
+
}, this.renderStyles(), _react2.default.createElement('input', _extends$2({}, inputProps, {
|
|
10974
10974
|
ref: this.inputRef
|
|
10975
10975
|
})), _react2.default.createElement('div', {
|
|
10976
10976
|
ref: this.sizerRef,
|
|
@@ -13339,6 +13339,20 @@ const tool$8 = () => ({
|
|
|
13339
13339
|
});
|
|
13340
13340
|
const debug$8 = _dll_debug;
|
|
13341
13341
|
const _ = _dll_lodash;
|
|
13342
|
+
function _extends$1() {
|
|
13343
|
+
_extends$1 = Object.assign || (function (target) {
|
|
13344
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
13345
|
+
var source = arguments[i];
|
|
13346
|
+
for (var key in source) {
|
|
13347
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13348
|
+
target[key] = source[key];
|
|
13349
|
+
}
|
|
13350
|
+
}
|
|
13351
|
+
}
|
|
13352
|
+
return target;
|
|
13353
|
+
});
|
|
13354
|
+
return _extends$1.apply(this, arguments);
|
|
13355
|
+
}
|
|
13342
13356
|
const log$8 = debug$8('pie-lib:graphing:tools:utils');
|
|
13343
13357
|
const FREQ_DIVIDER = 16;
|
|
13344
13358
|
const getAmplitudeAndFreq = (root, edge) => {
|
|
@@ -13370,11 +13384,10 @@ const xPoints = (root, freq, min, max) => {
|
|
|
13370
13384
|
return _.concat(leftpoints, rightpoints);
|
|
13371
13385
|
};
|
|
13372
13386
|
const sinY = (amplitude, freq, shift) => x => {
|
|
13373
|
-
shift = {
|
|
13387
|
+
shift = _extends$1({
|
|
13374
13388
|
phase: 0,
|
|
13375
|
-
vertical: 0
|
|
13376
|
-
|
|
13377
|
-
};
|
|
13389
|
+
vertical: 0
|
|
13390
|
+
}, shift);
|
|
13378
13391
|
const TWO_PI = Math.PI * 2;
|
|
13379
13392
|
const num = TWO_PI * (x - shift.phase);
|
|
13380
13393
|
const frac = num / freq;
|
|
@@ -13383,9 +13396,7 @@ const sinY = (amplitude, freq, shift) => x => {
|
|
|
13383
13396
|
return amplitude * sinFloat + shift.vertical;
|
|
13384
13397
|
};
|
|
13385
13398
|
const parabolaFromTwoPoints = (root, edge) => {
|
|
13386
|
-
edge = edge || ({
|
|
13387
|
-
...root
|
|
13388
|
-
});
|
|
13399
|
+
edge = edge || _extends$1({}, root);
|
|
13389
13400
|
const mirrorEdge = {
|
|
13390
13401
|
x: root.x - (edge.x - root.x),
|
|
13391
13402
|
y: edge.y
|
|
@@ -13419,9 +13430,7 @@ const pointsToABC = (one, two, three) => {
|
|
|
13419
13430
|
};
|
|
13420
13431
|
const parabola = (a, b, c) => x => a * Math.pow(x, 2) + b * x + c;
|
|
13421
13432
|
const absoluteFromTwoPoints = (root, edge) => {
|
|
13422
|
-
edge = edge || ({
|
|
13423
|
-
...root
|
|
13424
|
-
});
|
|
13433
|
+
edge = edge || _extends$1({}, root);
|
|
13425
13434
|
const a = pointsToAForAbsolute(root, edge);
|
|
13426
13435
|
return absolute(a, root.x, root.y);
|
|
13427
13436
|
};
|
|
@@ -13436,9 +13445,7 @@ const pointsToAForAbsolute = (one, two) => {
|
|
|
13436
13445
|
};
|
|
13437
13446
|
const absolute = (a, h, k) => x => a * Math.abs(x - h) + k;
|
|
13438
13447
|
const exponentialFromTwoPoints = (root, edge) => {
|
|
13439
|
-
edge = edge || ({
|
|
13440
|
-
...root
|
|
13441
|
-
});
|
|
13448
|
+
edge = edge || _extends$1({}, root);
|
|
13442
13449
|
const {a, b} = pointsToABForExponential(root, edge);
|
|
13443
13450
|
return exponential(a, b);
|
|
13444
13451
|
};
|
|
@@ -13455,21 +13462,17 @@ const pointsToABForExponential = (one, two) => {
|
|
|
13455
13462
|
const exponential = (a, b) => x => a * Math.pow(b, x);
|
|
13456
13463
|
const buildDataPoints = (domain, range, root, edge, yFn, excludeOutsidePoints = false) => {
|
|
13457
13464
|
log$8('[buildDataPoints] domain:', domain, 'range:', range, 'root:', root, 'edge:', edge);
|
|
13458
|
-
domain = {
|
|
13465
|
+
domain = _extends$1({
|
|
13459
13466
|
min: 0,
|
|
13460
13467
|
max: 0,
|
|
13461
|
-
step: 1
|
|
13462
|
-
|
|
13463
|
-
|
|
13464
|
-
range = {
|
|
13468
|
+
step: 1
|
|
13469
|
+
}, domain);
|
|
13470
|
+
range = _extends$1({
|
|
13465
13471
|
min: 0,
|
|
13466
13472
|
max: 0,
|
|
13467
|
-
step: 1
|
|
13468
|
-
|
|
13469
|
-
};
|
|
13470
|
-
edge = edge ? edge : {
|
|
13471
|
-
...root
|
|
13472
|
-
};
|
|
13473
|
+
step: 1
|
|
13474
|
+
}, range);
|
|
13475
|
+
edge = edge ? edge : _extends$1({}, root);
|
|
13473
13476
|
const minX = Math.min(root.x, edge.x);
|
|
13474
13477
|
const xPts = xPoints(minX, domain.step, domain.min - domain.step, domain.max + domain.step);
|
|
13475
13478
|
log$8('[buildDataPoints]:xPts:', xPts);
|
|
@@ -13967,7 +13970,7 @@ const labelTool = {
|
|
|
13967
13970
|
type: 'label'
|
|
13968
13971
|
};
|
|
13969
13972
|
const toolsArr = [tool$9(), tool$5(), tool$6(), tool$a(), tool$8(), tool$3(), tool$4(), tool$7(), tool$2(), tool$1(), tool(), labelTool];
|
|
13970
|
-
var index$
|
|
13973
|
+
var index$2 = Object.freeze({
|
|
13971
13974
|
__proto__: null,
|
|
13972
13975
|
allTools: allTools,
|
|
13973
13976
|
toolsArr: toolsArr,
|
|
@@ -14683,7 +14686,7 @@ function _isNativeReflectConstruct$2() {
|
|
|
14683
14686
|
}
|
|
14684
14687
|
}
|
|
14685
14688
|
var checkedLoadedFor = {};
|
|
14686
|
-
var Translator
|
|
14689
|
+
var Translator = (function (_EventEmitter) {
|
|
14687
14690
|
_inherits(Translator, _EventEmitter);
|
|
14688
14691
|
var _super = _createSuper$2(Translator);
|
|
14689
14692
|
function Translator(services) {
|
|
@@ -16398,7 +16401,7 @@ var I18n = (function (_EventEmitter) {
|
|
|
16398
16401
|
s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);
|
|
16399
16402
|
if (s.i18nFormat.init) s.i18nFormat.init(this);
|
|
16400
16403
|
}
|
|
16401
|
-
this.translator = new Translator
|
|
16404
|
+
this.translator = new Translator(this.services, this.options);
|
|
16402
16405
|
this.translator.on('*', function (event) {
|
|
16403
16406
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
16404
16407
|
args[_key2 - 1] = arguments[_key2];
|
|
@@ -16758,7 +16761,7 @@ var I18n = (function (_EventEmitter) {
|
|
|
16758
16761
|
clone.services.utils = {
|
|
16759
16762
|
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
|
|
16760
16763
|
};
|
|
16761
|
-
clone.translator = new Translator
|
|
16764
|
+
clone.translator = new Translator(clone.services, clone.options);
|
|
16762
16765
|
clone.translator.on('*', function (event) {
|
|
16763
16766
|
for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
|
16764
16767
|
args[_key4 - 1] = arguments[_key4];
|
|
@@ -16807,6 +16810,20 @@ instance.setDefaultNamespace;
|
|
|
16807
16810
|
instance.hasLoadedNamespace;
|
|
16808
16811
|
instance.loadNamespaces;
|
|
16809
16812
|
instance.loadLanguages;
|
|
16813
|
+
function _extends() {
|
|
16814
|
+
_extends = Object.assign || (function (target) {
|
|
16815
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
16816
|
+
var source = arguments[i];
|
|
16817
|
+
for (var key in source) {
|
|
16818
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
16819
|
+
target[key] = source[key];
|
|
16820
|
+
}
|
|
16821
|
+
}
|
|
16822
|
+
}
|
|
16823
|
+
return target;
|
|
16824
|
+
});
|
|
16825
|
+
return _extends.apply(this, arguments);
|
|
16826
|
+
}
|
|
16810
16827
|
var en = {
|
|
16811
16828
|
translation: {
|
|
16812
16829
|
categorize: {
|
|
@@ -17004,9 +17021,8 @@ instance.init({
|
|
|
17004
17021
|
es: es
|
|
17005
17022
|
}
|
|
17006
17023
|
});
|
|
17007
|
-
var
|
|
17008
|
-
translator: {
|
|
17009
|
-
...instance,
|
|
17024
|
+
var index$1 = {
|
|
17025
|
+
translator: _extends({}, instance, {
|
|
17010
17026
|
t: (key, options) => {
|
|
17011
17027
|
const {lng} = options;
|
|
17012
17028
|
switch (lng) {
|
|
@@ -17021,12 +17037,11 @@ var Translator = {
|
|
|
17021
17037
|
options.lng = 'es';
|
|
17022
17038
|
break;
|
|
17023
17039
|
}
|
|
17024
|
-
return instance.t(key, {
|
|
17025
|
-
lng
|
|
17026
|
-
|
|
17027
|
-
});
|
|
17040
|
+
return instance.t(key, _extends({
|
|
17041
|
+
lng
|
|
17042
|
+
}, options));
|
|
17028
17043
|
}
|
|
17029
|
-
},
|
|
17044
|
+
}),
|
|
17030
17045
|
languageOptions: [{
|
|
17031
17046
|
value: 'en_US',
|
|
17032
17047
|
label: 'English (US)'
|
|
@@ -17066,7 +17081,7 @@ function _optionalChain(ops) {
|
|
|
17066
17081
|
}
|
|
17067
17082
|
return value;
|
|
17068
17083
|
}
|
|
17069
|
-
const {translator: translator$1} =
|
|
17084
|
+
const {translator: translator$1} = index$1;
|
|
17070
17085
|
const buttonStyles = () => ({
|
|
17071
17086
|
root: {
|
|
17072
17087
|
color: color$4.text()
|
|
@@ -17381,7 +17396,7 @@ const {Button: Button} = _dll_material_ui__core;
|
|
|
17381
17396
|
const {withStyles: withStyles$3} = _dll_material_ui__core;
|
|
17382
17397
|
const {color: color$3} = _dll_pie_lib__render_ui;
|
|
17383
17398
|
const _jsxFileName$4 = "/home/circleci/repo/packages/graphing/src/undo-redo.jsx";
|
|
17384
|
-
const {translator} =
|
|
17399
|
+
const {translator} = index$1;
|
|
17385
17400
|
class UndoRedo extends React$4.Component {
|
|
17386
17401
|
static __initStatic() {
|
|
17387
17402
|
this.propTypes = {
|
|
@@ -18798,7 +18813,7 @@ var index = Object.freeze({
|
|
|
18798
18813
|
GraphContainer: Root,
|
|
18799
18814
|
GridSetup: gridSetup,
|
|
18800
18815
|
ToolMenu: ToolMenu,
|
|
18801
|
-
tools: index$
|
|
18816
|
+
tools: index$2,
|
|
18802
18817
|
KeyLegend: keyLegend
|
|
18803
18818
|
});
|
|
18804
|
-
export {index as _dll_pie_lib__graphing, index$
|
|
18819
|
+
export {index as _dll_pie_lib__graphing, index$3 as _dll_pie_lib__plot};
|
package/module/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/graphing-module",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.6",
|
|
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.14.
|
|
22
|
+
"version": "^1.14.6"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "@pie-lib/editable-html-module",
|
|
26
|
-
"version": "^5.6.
|
|
26
|
+
"version": "^5.6.6"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"name": "@pie-lib/drag-module",
|
|
30
|
-
"version": "^2.8.
|
|
30
|
+
"version": "^2.8.6"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "@pie-lib/config-module",
|
|
34
|
-
"version": "^2.19.
|
|
34
|
+
"version": "^2.19.6"
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
37
|
"isLocal": true
|