@pie-lib/graphing-module 2.5.7 → 2.5.9
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 +85 -100
- 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.9/module/index.js";
|
|
2
|
+
import {_dll_pie_lib__editable_html} from "../../editable-html-module@^5.6.9/module/index.js";
|
|
3
|
+
import {_dll_pie_lib__drag} from "../../drag-module@^2.8.9/module/index.js";
|
|
4
|
+
import {_dll_pie_lib__config_ui} from "../../config-module@^2.19.9/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$2 = 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$7() {
|
|
4716
|
+
_extends$7 = 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$9() {
|
|
|
4724
4724
|
}
|
|
4725
4725
|
return target;
|
|
4726
4726
|
});
|
|
4727
|
-
return _extends$
|
|
4727
|
+
return _extends$7.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$7({
|
|
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$7({
|
|
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$6() {
|
|
5120
|
+
_extends$6 = 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$8() {
|
|
|
5128
5128
|
}
|
|
5129
5129
|
return target;
|
|
5130
5130
|
});
|
|
5131
|
-
return _extends$
|
|
5131
|
+
return _extends$6.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$6({
|
|
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$5() {
|
|
6114
|
+
_extends$5 = 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$7() {
|
|
|
6122
6122
|
}
|
|
6123
6123
|
return target;
|
|
6124
6124
|
});
|
|
6125
|
-
return _extends$
|
|
6125
|
+
return _extends$5.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$5({}, 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$4() {
|
|
6691
|
+
_extends$4 = 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$6() {
|
|
|
6699
6699
|
}
|
|
6700
6700
|
return target;
|
|
6701
6701
|
});
|
|
6702
|
-
return _extends$
|
|
6702
|
+
return _extends$4.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$4({
|
|
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$4({
|
|
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$3() {
|
|
7587
|
+
_extends$3 = 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$5() {
|
|
|
7595
7595
|
}
|
|
7596
7596
|
return target;
|
|
7597
7597
|
});
|
|
7598
|
-
return _extends$
|
|
7598
|
+
return _extends$3.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$3({
|
|
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$2() {
|
|
7645
|
+
_extends$2 = 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$4() {
|
|
|
7653
7653
|
}
|
|
7654
7654
|
return target;
|
|
7655
7655
|
});
|
|
7656
|
-
return _extends$
|
|
7656
|
+
return _extends$2.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$2({
|
|
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$2({
|
|
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$2({
|
|
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$2({
|
|
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$1() {
|
|
8632
|
+
_extends$1 = 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$3() {
|
|
|
8640
8640
|
}
|
|
8641
8641
|
return target;
|
|
8642
8642
|
});
|
|
8643
|
-
return _extends$
|
|
8643
|
+
return _extends$1.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$1({}, 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$1({}, 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$1({}, 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$1({
|
|
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
|
|
10729
|
+
var _extends = 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
|
|
10959
|
+
var wrapperStyle = _extends({}, this.props.style);
|
|
10960
10960
|
if (!wrapperStyle.display) wrapperStyle.display = 'inline-block';
|
|
10961
|
-
var inputStyle = _extends
|
|
10961
|
+
var inputStyle = _extends({
|
|
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
|
|
10973
|
+
}, this.renderStyles(), _react2.default.createElement('input', _extends({}, inputProps, {
|
|
10974
10974
|
ref: this.inputRef
|
|
10975
10975
|
})), _react2.default.createElement('div', {
|
|
10976
10976
|
ref: this.sizerRef,
|
|
@@ -13339,20 +13339,6 @@ 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
|
-
}
|
|
13356
13342
|
const log$8 = debug$8('pie-lib:graphing:tools:utils');
|
|
13357
13343
|
const FREQ_DIVIDER = 16;
|
|
13358
13344
|
const getAmplitudeAndFreq = (root, edge) => {
|
|
@@ -13384,10 +13370,11 @@ const xPoints = (root, freq, min, max) => {
|
|
|
13384
13370
|
return _.concat(leftpoints, rightpoints);
|
|
13385
13371
|
};
|
|
13386
13372
|
const sinY = (amplitude, freq, shift) => x => {
|
|
13387
|
-
shift =
|
|
13373
|
+
shift = {
|
|
13388
13374
|
phase: 0,
|
|
13389
|
-
vertical: 0
|
|
13390
|
-
|
|
13375
|
+
vertical: 0,
|
|
13376
|
+
...shift
|
|
13377
|
+
};
|
|
13391
13378
|
const TWO_PI = Math.PI * 2;
|
|
13392
13379
|
const num = TWO_PI * (x - shift.phase);
|
|
13393
13380
|
const frac = num / freq;
|
|
@@ -13396,7 +13383,9 @@ const sinY = (amplitude, freq, shift) => x => {
|
|
|
13396
13383
|
return amplitude * sinFloat + shift.vertical;
|
|
13397
13384
|
};
|
|
13398
13385
|
const parabolaFromTwoPoints = (root, edge) => {
|
|
13399
|
-
edge = edge ||
|
|
13386
|
+
edge = edge || ({
|
|
13387
|
+
...root
|
|
13388
|
+
});
|
|
13400
13389
|
const mirrorEdge = {
|
|
13401
13390
|
x: root.x - (edge.x - root.x),
|
|
13402
13391
|
y: edge.y
|
|
@@ -13430,7 +13419,9 @@ const pointsToABC = (one, two, three) => {
|
|
|
13430
13419
|
};
|
|
13431
13420
|
const parabola = (a, b, c) => x => a * Math.pow(x, 2) + b * x + c;
|
|
13432
13421
|
const absoluteFromTwoPoints = (root, edge) => {
|
|
13433
|
-
edge = edge ||
|
|
13422
|
+
edge = edge || ({
|
|
13423
|
+
...root
|
|
13424
|
+
});
|
|
13434
13425
|
const a = pointsToAForAbsolute(root, edge);
|
|
13435
13426
|
return absolute(a, root.x, root.y);
|
|
13436
13427
|
};
|
|
@@ -13445,7 +13436,9 @@ const pointsToAForAbsolute = (one, two) => {
|
|
|
13445
13436
|
};
|
|
13446
13437
|
const absolute = (a, h, k) => x => a * Math.abs(x - h) + k;
|
|
13447
13438
|
const exponentialFromTwoPoints = (root, edge) => {
|
|
13448
|
-
edge = edge ||
|
|
13439
|
+
edge = edge || ({
|
|
13440
|
+
...root
|
|
13441
|
+
});
|
|
13449
13442
|
const {a, b} = pointsToABForExponential(root, edge);
|
|
13450
13443
|
return exponential(a, b);
|
|
13451
13444
|
};
|
|
@@ -13462,17 +13455,21 @@ const pointsToABForExponential = (one, two) => {
|
|
|
13462
13455
|
const exponential = (a, b) => x => a * Math.pow(b, x);
|
|
13463
13456
|
const buildDataPoints = (domain, range, root, edge, yFn, excludeOutsidePoints = false) => {
|
|
13464
13457
|
log$8('[buildDataPoints] domain:', domain, 'range:', range, 'root:', root, 'edge:', edge);
|
|
13465
|
-
domain =
|
|
13458
|
+
domain = {
|
|
13466
13459
|
min: 0,
|
|
13467
13460
|
max: 0,
|
|
13468
|
-
step: 1
|
|
13469
|
-
|
|
13470
|
-
|
|
13461
|
+
step: 1,
|
|
13462
|
+
...domain
|
|
13463
|
+
};
|
|
13464
|
+
range = {
|
|
13471
13465
|
min: 0,
|
|
13472
13466
|
max: 0,
|
|
13473
|
-
step: 1
|
|
13474
|
-
|
|
13475
|
-
|
|
13467
|
+
step: 1,
|
|
13468
|
+
...range
|
|
13469
|
+
};
|
|
13470
|
+
edge = edge ? edge : {
|
|
13471
|
+
...root
|
|
13472
|
+
};
|
|
13476
13473
|
const minX = Math.min(root.x, edge.x);
|
|
13477
13474
|
const xPts = xPoints(minX, domain.step, domain.min - domain.step, domain.max + domain.step);
|
|
13478
13475
|
log$8('[buildDataPoints]:xPts:', xPts);
|
|
@@ -13970,7 +13967,7 @@ const labelTool = {
|
|
|
13970
13967
|
type: 'label'
|
|
13971
13968
|
};
|
|
13972
13969
|
const toolsArr = [tool$9(), tool$5(), tool$6(), tool$a(), tool$8(), tool$3(), tool$4(), tool$7(), tool$2(), tool$1(), tool(), labelTool];
|
|
13973
|
-
var index$
|
|
13970
|
+
var index$1 = Object.freeze({
|
|
13974
13971
|
__proto__: null,
|
|
13975
13972
|
allTools: allTools,
|
|
13976
13973
|
toolsArr: toolsArr,
|
|
@@ -14686,7 +14683,7 @@ function _isNativeReflectConstruct$2() {
|
|
|
14686
14683
|
}
|
|
14687
14684
|
}
|
|
14688
14685
|
var checkedLoadedFor = {};
|
|
14689
|
-
var Translator = (function (_EventEmitter) {
|
|
14686
|
+
var Translator$1 = (function (_EventEmitter) {
|
|
14690
14687
|
_inherits(Translator, _EventEmitter);
|
|
14691
14688
|
var _super = _createSuper$2(Translator);
|
|
14692
14689
|
function Translator(services) {
|
|
@@ -16401,7 +16398,7 @@ var I18n = (function (_EventEmitter) {
|
|
|
16401
16398
|
s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);
|
|
16402
16399
|
if (s.i18nFormat.init) s.i18nFormat.init(this);
|
|
16403
16400
|
}
|
|
16404
|
-
this.translator = new Translator(this.services, this.options);
|
|
16401
|
+
this.translator = new Translator$1(this.services, this.options);
|
|
16405
16402
|
this.translator.on('*', function (event) {
|
|
16406
16403
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
16407
16404
|
args[_key2 - 1] = arguments[_key2];
|
|
@@ -16761,7 +16758,7 @@ var I18n = (function (_EventEmitter) {
|
|
|
16761
16758
|
clone.services.utils = {
|
|
16762
16759
|
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
|
|
16763
16760
|
};
|
|
16764
|
-
clone.translator = new Translator(clone.services, clone.options);
|
|
16761
|
+
clone.translator = new Translator$1(clone.services, clone.options);
|
|
16765
16762
|
clone.translator.on('*', function (event) {
|
|
16766
16763
|
for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
|
16767
16764
|
args[_key4 - 1] = arguments[_key4];
|
|
@@ -16810,20 +16807,6 @@ instance.setDefaultNamespace;
|
|
|
16810
16807
|
instance.hasLoadedNamespace;
|
|
16811
16808
|
instance.loadNamespaces;
|
|
16812
16809
|
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
|
-
}
|
|
16827
16810
|
var en = {
|
|
16828
16811
|
translation: {
|
|
16829
16812
|
categorize: {
|
|
@@ -17021,8 +17004,9 @@ instance.init({
|
|
|
17021
17004
|
es: es
|
|
17022
17005
|
}
|
|
17023
17006
|
});
|
|
17024
|
-
var
|
|
17025
|
-
translator:
|
|
17007
|
+
var Translator = {
|
|
17008
|
+
translator: {
|
|
17009
|
+
...instance,
|
|
17026
17010
|
t: (key, options) => {
|
|
17027
17011
|
const {lng} = options;
|
|
17028
17012
|
switch (lng) {
|
|
@@ -17037,11 +17021,12 @@ var index$1 = {
|
|
|
17037
17021
|
options.lng = 'es';
|
|
17038
17022
|
break;
|
|
17039
17023
|
}
|
|
17040
|
-
return instance.t(key,
|
|
17041
|
-
lng
|
|
17042
|
-
|
|
17024
|
+
return instance.t(key, {
|
|
17025
|
+
lng,
|
|
17026
|
+
...options
|
|
17027
|
+
});
|
|
17043
17028
|
}
|
|
17044
|
-
}
|
|
17029
|
+
},
|
|
17045
17030
|
languageOptions: [{
|
|
17046
17031
|
value: 'en_US',
|
|
17047
17032
|
label: 'English (US)'
|
|
@@ -17081,7 +17066,7 @@ function _optionalChain(ops) {
|
|
|
17081
17066
|
}
|
|
17082
17067
|
return value;
|
|
17083
17068
|
}
|
|
17084
|
-
const {translator: translator$1} =
|
|
17069
|
+
const {translator: translator$1} = Translator;
|
|
17085
17070
|
const buttonStyles = () => ({
|
|
17086
17071
|
root: {
|
|
17087
17072
|
color: color$4.text()
|
|
@@ -17396,7 +17381,7 @@ const {Button: Button} = _dll_material_ui__core;
|
|
|
17396
17381
|
const {withStyles: withStyles$3} = _dll_material_ui__core;
|
|
17397
17382
|
const {color: color$3} = _dll_pie_lib__render_ui;
|
|
17398
17383
|
const _jsxFileName$4 = "/Users/carlacostea/Pie_Work/pie-framework/pie-lib/packages/graphing/src/undo-redo.jsx";
|
|
17399
|
-
const {translator} =
|
|
17384
|
+
const {translator} = Translator;
|
|
17400
17385
|
class UndoRedo extends React$4.Component {
|
|
17401
17386
|
static __initStatic() {
|
|
17402
17387
|
this.propTypes = {
|
|
@@ -18813,7 +18798,7 @@ var index = Object.freeze({
|
|
|
18813
18798
|
GraphContainer: Root,
|
|
18814
18799
|
GridSetup: gridSetup,
|
|
18815
18800
|
ToolMenu: ToolMenu,
|
|
18816
|
-
tools: index$
|
|
18801
|
+
tools: index$1,
|
|
18817
18802
|
KeyLegend: keyLegend
|
|
18818
18803
|
});
|
|
18819
|
-
export {index as _dll_pie_lib__graphing, index$
|
|
18804
|
+
export {index as _dll_pie_lib__graphing, index$2 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.9",
|
|
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.9"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
25
|
"name": "@pie-lib/editable-html-module",
|
|
26
|
-
"version": "^5.6.
|
|
26
|
+
"version": "^5.6.9"
|
|
27
27
|
},
|
|
28
28
|
{
|
|
29
29
|
"name": "@pie-lib/drag-module",
|
|
30
|
-
"version": "^2.8.
|
|
30
|
+
"version": "^2.8.9"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "@pie-lib/config-module",
|
|
34
|
-
"version": "^2.19.
|
|
34
|
+
"version": "^2.19.9"
|
|
35
35
|
}
|
|
36
36
|
],
|
|
37
37
|
"isLocal": true
|