dash-core-components 2.6.1 → 2.7.0
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/LICENSE +1 -1
- package/dash_core_components/async-datepicker.js +1 -1
- package/dash_core_components/async-datepicker.js.map +1 -1
- package/dash_core_components/async-dropdown.js +1 -1
- package/dash_core_components/async-dropdown.js.map +1 -1
- package/dash_core_components/async-graph.js +1 -1
- package/dash_core_components/async-graph.js.map +1 -1
- package/dash_core_components/async-highlight.js +1 -1
- package/dash_core_components/async-highlight.js.map +1 -1
- package/dash_core_components/async-markdown.js +1 -1
- package/dash_core_components/async-markdown.js.map +1 -1
- package/dash_core_components/async-mathjax.js +1 -1
- package/dash_core_components/async-plotlyjs.js +1 -1
- package/dash_core_components/async-slider.js +2 -1
- package/dash_core_components/async-slider.js.map +1 -1
- package/dash_core_components/async-upload.js +1 -1
- package/dash_core_components/async-upload.js.map +1 -1
- package/dash_core_components/dash_core_components-shared.js +1 -1
- package/dash_core_components/dash_core_components-shared.js.map +1 -1
- package/dash_core_components/dash_core_components.js +1 -1
- package/dash_core_components/dash_core_components.js.map +1 -1
- package/dash_core_components/plotly.min.js +7 -7
- package/lib/components/Checklist.react.js +14 -61
- package/lib/components/Clipboard.react.js +12 -82
- package/lib/components/ConfirmDialog.react.js +5 -35
- package/lib/components/ConfirmDialogProvider.react.js +7 -45
- package/lib/components/DatePickerRange.react.js +3 -64
- package/lib/components/DatePickerSingle.react.js +3 -58
- package/lib/components/Download.react.js +8 -41
- package/lib/components/Dropdown.react.js +3 -51
- package/lib/components/Graph.react.js +17 -121
- package/lib/components/Input.react.js +9 -80
- package/lib/components/Interval.react.js +10 -42
- package/lib/components/Link.react.js +18 -62
- package/lib/components/Loading.react.js +12 -59
- package/lib/components/Location.react.js +18 -56
- package/lib/components/LogoutButton.react.js +8 -42
- package/lib/components/Markdown.react.js +4 -53
- package/lib/components/RadioItems.react.js +15 -63
- package/lib/components/RangeSlider.react.js +3 -53
- package/lib/components/Slider.react.js +3 -50
- package/lib/components/Store.react.js +17 -69
- package/lib/components/Tab.react.js +1 -23
- package/lib/components/Tabs.react.js +26 -92
- package/lib/components/Textarea.react.js +9 -70
- package/lib/components/Tooltip.react.js +4 -25
- package/lib/components/Upload.react.js +3 -50
- package/lib/fragments/DatePickerRange.react.js +36 -83
- package/lib/fragments/DatePickerSingle.react.js +27 -67
- package/lib/fragments/Dropdown.react.js +50 -86
- package/lib/fragments/Graph.privateprops.js +0 -3
- package/lib/fragments/Graph.react.js +135 -235
- package/lib/fragments/Loading/spinners/CircleSpinner.js +5 -14
- package/lib/fragments/Loading/spinners/CubeSpinner.js +5 -16
- package/lib/fragments/Loading/spinners/DefaultSpinner.js +5 -14
- package/lib/fragments/Loading/spinners/DotSpinner.js +5 -14
- package/lib/fragments/Loading/spinners/GraphSpinner.js +4 -13
- package/lib/fragments/Markdown.react.js +13 -60
- package/lib/fragments/Math.react.js +2 -28
- package/lib/fragments/RangeSlider.react.js +20 -60
- package/lib/fragments/Slider.react.js +20 -60
- package/lib/fragments/Upload.react.js +23 -52
- package/lib/index.js +0 -28
- package/lib/third-party/highlight.js +0 -40
- package/lib/utils/DatePickerPersistence.js +0 -5
- package/lib/utils/LazyLoader/datePickerRange.js +1 -5
- package/lib/utils/LazyLoader/datePickerSingle.js +1 -5
- package/lib/utils/LazyLoader/dropdown.js +1 -5
- package/lib/utils/LazyLoader/graph.js +1 -5
- package/lib/utils/LazyLoader/hljs.js +1 -5
- package/lib/utils/LazyLoader/markdown.js +1 -5
- package/lib/utils/LazyLoader/mathjax.js +1 -5
- package/lib/utils/LazyLoader/plotly.js +1 -5
- package/lib/utils/LazyLoader/rangeSlider.js +1 -5
- package/lib/utils/LazyLoader/slider.js +1 -5
- package/lib/utils/LazyLoader/upload.js +1 -5
- package/lib/utils/MarkdownHighlighter.js +0 -6
- package/lib/utils/computeSliderMarkers.js +17 -68
- package/lib/utils/computeSliderStyle.js +0 -6
- package/lib/utils/convertToMoment.js +0 -8
- package/lib/utils/mathjax.js +0 -1
- package/lib/utils/optionTypes.js +3 -18
- package/package.json +18 -18
- package/lib/components/css/react-virtualized-select@3.1.0.css +0 -22
|
@@ -1,96 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.graphPropTypes = exports.graphDefaultProps = exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
9
|
var _dashComponentPlugins = require("@plotly/dash-component-plugins");
|
|
15
|
-
|
|
16
10
|
var _graph = _interopRequireDefault(require("../utils/LazyLoader/graph"));
|
|
17
|
-
|
|
18
11
|
var _plotly = _interopRequireDefault(require("../utils/LazyLoader/plotly"));
|
|
19
|
-
|
|
20
12
|
var _mathjax = _interopRequireDefault(require("../utils/LazyLoader/mathjax"));
|
|
21
|
-
|
|
22
13
|
var _Graph = require("../fragments/Graph.privateprops");
|
|
23
|
-
|
|
24
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
15
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
27
|
-
|
|
28
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
29
|
-
|
|
16
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
30
17
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
31
|
-
|
|
32
18
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
33
|
-
|
|
19
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
34
20
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
35
|
-
|
|
36
21
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
37
|
-
|
|
38
22
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
39
|
-
|
|
40
23
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
41
|
-
|
|
42
24
|
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
43
|
-
|
|
44
25
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
45
|
-
|
|
46
26
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
47
|
-
|
|
48
|
-
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
49
|
-
|
|
50
27
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
51
|
-
|
|
52
28
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
53
|
-
|
|
54
29
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
55
|
-
|
|
56
30
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
57
|
-
|
|
58
31
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
59
|
-
|
|
60
32
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
61
|
-
|
|
62
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
63
|
-
|
|
33
|
+
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
64
34
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
65
|
-
|
|
66
35
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
67
|
-
|
|
68
36
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
69
|
-
|
|
70
37
|
var EMPTY_DATA = [];
|
|
38
|
+
|
|
71
39
|
/**
|
|
72
40
|
* Graph can be used to render any plotly.js-powered data visualization.
|
|
73
41
|
*
|
|
74
42
|
* You can define callbacks based on user interaction with Graphs such as
|
|
75
43
|
* hovering, clicking or selecting
|
|
76
44
|
*/
|
|
77
|
-
|
|
78
45
|
var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
79
46
|
_inherits(PlotlyGraph, _Component);
|
|
80
|
-
|
|
81
47
|
var _super = _createSuper(PlotlyGraph);
|
|
82
|
-
|
|
83
48
|
function PlotlyGraph(props) {
|
|
84
49
|
var _this;
|
|
85
|
-
|
|
86
50
|
_classCallCheck(this, PlotlyGraph);
|
|
87
|
-
|
|
88
51
|
_this = _super.call(this, props);
|
|
89
|
-
|
|
90
52
|
if (props.mathjax) {
|
|
91
53
|
PlotlyGraph._loadMathjax = true;
|
|
92
54
|
}
|
|
93
|
-
|
|
94
55
|
_this.state = {
|
|
95
56
|
prependData: [],
|
|
96
57
|
extendData: []
|
|
@@ -98,7 +59,6 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
98
59
|
_this.clearState = _this.clearState.bind(_assertThisInitialized(_this));
|
|
99
60
|
return _this;
|
|
100
61
|
}
|
|
101
|
-
|
|
102
62
|
_createClass(PlotlyGraph, [{
|
|
103
63
|
key: "componentDidMount",
|
|
104
64
|
value: function componentDidMount() {
|
|
@@ -107,7 +67,6 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
107
67
|
prependData: [this.props.prependData]
|
|
108
68
|
});
|
|
109
69
|
}
|
|
110
|
-
|
|
111
70
|
if (this.props.extendData) {
|
|
112
71
|
this.setState({
|
|
113
72
|
extendData: [this.props.extendData]
|
|
@@ -126,38 +85,31 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
126
85
|
key: "UNSAFE_componentWillReceiveProps",
|
|
127
86
|
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
128
87
|
var prependData = this.state.prependData.slice(0);
|
|
129
|
-
|
|
130
88
|
if (this.props.figure !== nextProps.figure) {
|
|
131
89
|
prependData = EMPTY_DATA;
|
|
132
90
|
}
|
|
133
|
-
|
|
134
91
|
if (nextProps.prependData && this.props.prependData !== nextProps.prependData) {
|
|
135
92
|
prependData.push(nextProps.prependData);
|
|
136
93
|
} else {
|
|
137
94
|
prependData = EMPTY_DATA;
|
|
138
95
|
}
|
|
139
|
-
|
|
140
96
|
if (prependData !== EMPTY_DATA) {
|
|
141
97
|
this.setState({
|
|
142
|
-
prependData
|
|
98
|
+
prependData
|
|
143
99
|
});
|
|
144
100
|
}
|
|
145
|
-
|
|
146
101
|
var extendData = this.state.extendData.slice(0);
|
|
147
|
-
|
|
148
102
|
if (this.props.figure !== nextProps.figure) {
|
|
149
103
|
extendData = EMPTY_DATA;
|
|
150
104
|
}
|
|
151
|
-
|
|
152
105
|
if (nextProps.extendData && this.props.extendData !== nextProps.extendData) {
|
|
153
106
|
extendData.push(nextProps.extendData);
|
|
154
107
|
} else {
|
|
155
108
|
extendData = EMPTY_DATA;
|
|
156
109
|
}
|
|
157
|
-
|
|
158
110
|
if (extendData !== EMPTY_DATA) {
|
|
159
111
|
this.setState({
|
|
160
|
-
extendData
|
|
112
|
+
extendData
|
|
161
113
|
});
|
|
162
114
|
}
|
|
163
115
|
}
|
|
@@ -166,7 +118,9 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
166
118
|
value: function clearState(dataKey) {
|
|
167
119
|
this.setState(function (props) {
|
|
168
120
|
var data = props[dataKey];
|
|
169
|
-
var res = data && data.length ?
|
|
121
|
+
var res = data && data.length ? {
|
|
122
|
+
[dataKey]: EMPTY_DATA
|
|
123
|
+
} : undefined;
|
|
170
124
|
return res;
|
|
171
125
|
});
|
|
172
126
|
}
|
|
@@ -180,21 +134,18 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
180
134
|
}));
|
|
181
135
|
}
|
|
182
136
|
}]);
|
|
183
|
-
|
|
184
137
|
return PlotlyGraph;
|
|
185
138
|
}(_react.Component);
|
|
186
|
-
|
|
187
139
|
var RealPlotlyGraph = (0, _dashComponentPlugins.asyncDecorator)(PlotlyGraph, function () {
|
|
188
|
-
return Promise.all([(0, _graph.default)(), (0, _plotly.default)(), PlotlyGraph._loadMathjax ? (0, _mathjax.default)() : undefined]).then(function (
|
|
189
|
-
var
|
|
190
|
-
|
|
191
|
-
|
|
140
|
+
return Promise.all([(0, _graph.default)(), (0, _plotly.default)(), PlotlyGraph._loadMathjax ? (0, _mathjax.default)() : undefined]).then(function (_ref) {
|
|
141
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
142
|
+
graph = _ref2[0];
|
|
192
143
|
return graph;
|
|
193
144
|
});
|
|
194
145
|
});
|
|
195
146
|
var ControlledPlotlyGraph = /*#__PURE__*/(0, _react.memo)(function (props) {
|
|
196
147
|
var className = props.className,
|
|
197
|
-
|
|
148
|
+
id = props.id;
|
|
198
149
|
var extendedClassName = className ? 'dash-graph ' + className : 'dash-graph';
|
|
199
150
|
return /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
200
151
|
fallback: /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -214,7 +165,6 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
214
165
|
* components in an app.
|
|
215
166
|
*/
|
|
216
167
|
id: _propTypes.default.string,
|
|
217
|
-
|
|
218
168
|
/**
|
|
219
169
|
* If True, the Plotly.js plot will be fully responsive to window resize
|
|
220
170
|
* and parent element resize event. This is achieved by overriding
|
|
@@ -232,22 +182,18 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
232
182
|
* to fully take effect.
|
|
233
183
|
*/
|
|
234
184
|
responsive: _propTypes.default.oneOf([true, false, 'auto']),
|
|
235
|
-
|
|
236
185
|
/**
|
|
237
186
|
* Data from latest click event. Read-only.
|
|
238
187
|
*/
|
|
239
188
|
clickData: _propTypes.default.object,
|
|
240
|
-
|
|
241
189
|
/**
|
|
242
190
|
* Data from latest click annotation event. Read-only.
|
|
243
191
|
*/
|
|
244
192
|
clickAnnotationData: _propTypes.default.object,
|
|
245
|
-
|
|
246
193
|
/**
|
|
247
194
|
* Data from latest hover event. Read-only.
|
|
248
195
|
*/
|
|
249
196
|
hoverData: _propTypes.default.object,
|
|
250
|
-
|
|
251
197
|
/**
|
|
252
198
|
* If True, `clear_on_unhover` will clear the `hoverData` property
|
|
253
199
|
* when the user "unhovers" from a point.
|
|
@@ -255,12 +201,10 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
255
201
|
* data from the last point that was hovered over.
|
|
256
202
|
*/
|
|
257
203
|
clear_on_unhover: _propTypes.default.bool,
|
|
258
|
-
|
|
259
204
|
/**
|
|
260
205
|
* Data from latest select event. Read-only.
|
|
261
206
|
*/
|
|
262
207
|
selectedData: _propTypes.default.object,
|
|
263
|
-
|
|
264
208
|
/**
|
|
265
209
|
* Data from latest relayout event which occurs
|
|
266
210
|
* when the user zooms or pans on the plot or other
|
|
@@ -268,7 +212,6 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
268
212
|
* describing the changes made. Read-only.
|
|
269
213
|
*/
|
|
270
214
|
relayoutData: _propTypes.default.object,
|
|
271
|
-
|
|
272
215
|
/**
|
|
273
216
|
* Data that should be appended to existing traces. Has the form
|
|
274
217
|
* `[updateData, traceIndices, maxPoints]`, where `updateData` is an object
|
|
@@ -280,7 +223,6 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
280
223
|
* https://plotly.com/javascript/plotlyjs-function-reference/#plotlyextendtraces
|
|
281
224
|
*/
|
|
282
225
|
extendData: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),
|
|
283
|
-
|
|
284
226
|
/**
|
|
285
227
|
* Data that should be prepended to existing traces. Has the form
|
|
286
228
|
* `[updateData, traceIndices, maxPoints]`, where `updateData` is an object
|
|
@@ -292,7 +234,6 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
292
234
|
* https://plotly.com/javascript/plotlyjs-function-reference/#plotlyprependtraces
|
|
293
235
|
*/
|
|
294
236
|
prependData: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object]),
|
|
295
|
-
|
|
296
237
|
/**
|
|
297
238
|
* Data from latest restyle event which occurs
|
|
298
239
|
* when the user toggles a legend item, changes
|
|
@@ -303,7 +244,6 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
303
244
|
* Read-only.
|
|
304
245
|
*/
|
|
305
246
|
restyleData: _propTypes.default.array,
|
|
306
|
-
|
|
307
247
|
/**
|
|
308
248
|
* Plotly `figure` object. See schema:
|
|
309
249
|
* https://plotly.com/javascript/reference
|
|
@@ -315,34 +255,28 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
315
255
|
layout: _propTypes.default.object,
|
|
316
256
|
frames: _propTypes.default.arrayOf(_propTypes.default.object)
|
|
317
257
|
}),
|
|
318
|
-
|
|
319
258
|
/**
|
|
320
259
|
* Generic style overrides on the plot div
|
|
321
260
|
*/
|
|
322
261
|
style: _propTypes.default.object,
|
|
323
|
-
|
|
324
262
|
/**
|
|
325
263
|
* className of the parent div
|
|
326
264
|
*/
|
|
327
265
|
className: _propTypes.default.string,
|
|
328
|
-
|
|
329
266
|
/**
|
|
330
267
|
* If true, loads mathjax v3 (tex-svg) into the page and use it in the graph
|
|
331
268
|
*/
|
|
332
269
|
mathjax: _propTypes.default.bool,
|
|
333
|
-
|
|
334
270
|
/**
|
|
335
271
|
* Beta: If true, animate between updates using
|
|
336
272
|
* plotly.js's `animate` function
|
|
337
273
|
*/
|
|
338
274
|
animate: _propTypes.default.bool,
|
|
339
|
-
|
|
340
275
|
/**
|
|
341
276
|
* Beta: Object containing animation settings.
|
|
342
277
|
* Only applies if `animate` is `true`
|
|
343
278
|
*/
|
|
344
279
|
animation_options: _propTypes.default.object,
|
|
345
|
-
|
|
346
280
|
/**
|
|
347
281
|
* Plotly.js config options.
|
|
348
282
|
* See https://plotly.com/javascript/configuration-options/
|
|
@@ -353,18 +287,19 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
353
287
|
* No interactivity, for export or image generation
|
|
354
288
|
*/
|
|
355
289
|
staticPlot: _propTypes.default.bool,
|
|
356
|
-
|
|
357
290
|
/**
|
|
358
291
|
* Base URL for a Plotly cloud instance, if `showSendToCloud` is enabled
|
|
359
292
|
*/
|
|
360
293
|
plotlyServerURL: _propTypes.default.string,
|
|
361
|
-
|
|
362
294
|
/**
|
|
363
295
|
* We can edit titles, move annotations, etc - sets all pieces of `edits`
|
|
364
296
|
* unless a separate `edits` config item overrides individual parts
|
|
365
297
|
*/
|
|
366
298
|
editable: _propTypes.default.bool,
|
|
367
|
-
|
|
299
|
+
/**
|
|
300
|
+
* Enables moving selections
|
|
301
|
+
*/
|
|
302
|
+
editSelection: _propTypes.default.bool,
|
|
368
303
|
/**
|
|
369
304
|
* A set of editable properties
|
|
370
305
|
*/
|
|
@@ -375,7 +310,6 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
375
310
|
* the arrow length & direction unchanged)
|
|
376
311
|
*/
|
|
377
312
|
annotationPosition: _propTypes.default.bool,
|
|
378
|
-
|
|
379
313
|
/**
|
|
380
314
|
* Just for annotations with arrows, change the length and direction of the arrow
|
|
381
315
|
*/
|
|
@@ -385,105 +319,86 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
385
319
|
colorbarPosition: _propTypes.default.bool,
|
|
386
320
|
colorbarTitleText: _propTypes.default.bool,
|
|
387
321
|
legendPosition: _propTypes.default.bool,
|
|
388
|
-
|
|
389
322
|
/**
|
|
390
323
|
* Edit the trace name fields from the legend
|
|
391
324
|
*/
|
|
392
325
|
legendText: _propTypes.default.bool,
|
|
393
326
|
shapePosition: _propTypes.default.bool,
|
|
394
|
-
|
|
395
327
|
/**
|
|
396
328
|
* The global `layout.title`
|
|
397
329
|
*/
|
|
398
330
|
titleText: _propTypes.default.bool
|
|
399
331
|
}),
|
|
400
|
-
|
|
401
332
|
/**
|
|
402
333
|
* DO autosize once regardless of layout.autosize
|
|
403
334
|
* (use default width or height values otherwise)
|
|
404
335
|
*/
|
|
405
336
|
autosizable: _propTypes.default.bool,
|
|
406
|
-
|
|
407
337
|
/**
|
|
408
338
|
* Whether to change layout size when the window size changes
|
|
409
339
|
*/
|
|
410
340
|
responsive: _propTypes.default.bool,
|
|
411
|
-
|
|
412
341
|
/**
|
|
413
342
|
* Set the length of the undo/redo queue
|
|
414
343
|
*/
|
|
415
344
|
queueLength: _propTypes.default.number,
|
|
416
|
-
|
|
417
345
|
/**
|
|
418
346
|
* If we DO autosize, do we fill the container or the screen?
|
|
419
347
|
*/
|
|
420
348
|
fillFrame: _propTypes.default.bool,
|
|
421
|
-
|
|
422
349
|
/**
|
|
423
350
|
* If we DO autosize, set the frame margins in percents of plot size
|
|
424
351
|
*/
|
|
425
352
|
frameMargins: _propTypes.default.number,
|
|
426
|
-
|
|
427
353
|
/**
|
|
428
354
|
* Mousewheel or two-finger scroll zooms the plot
|
|
429
355
|
*/
|
|
430
356
|
scrollZoom: _propTypes.default.bool,
|
|
431
|
-
|
|
432
357
|
/**
|
|
433
358
|
* Double click interaction (false, 'reset', 'autosize' or 'reset+autosize')
|
|
434
359
|
*/
|
|
435
360
|
doubleClick: _propTypes.default.oneOf([false, 'reset', 'autosize', 'reset+autosize']),
|
|
436
|
-
|
|
437
361
|
/**
|
|
438
362
|
* Delay for registering a double-click event in ms. The
|
|
439
363
|
* minimum value is 100 and the maximum value is 1000. By
|
|
440
364
|
* default this is 300.
|
|
441
365
|
*/
|
|
442
366
|
doubleClickDelay: _propTypes.default.number,
|
|
443
|
-
|
|
444
367
|
/**
|
|
445
368
|
* New users see some hints about interactivity
|
|
446
369
|
*/
|
|
447
370
|
showTips: _propTypes.default.bool,
|
|
448
|
-
|
|
449
371
|
/**
|
|
450
372
|
* Enable axis pan/zoom drag handles
|
|
451
373
|
*/
|
|
452
374
|
showAxisDragHandles: _propTypes.default.bool,
|
|
453
|
-
|
|
454
375
|
/**
|
|
455
376
|
* Enable direct range entry at the pan/zoom drag points
|
|
456
377
|
* (drag handles must be enabled above)
|
|
457
378
|
*/
|
|
458
379
|
showAxisRangeEntryBoxes: _propTypes.default.bool,
|
|
459
|
-
|
|
460
380
|
/**
|
|
461
381
|
* Link to open this plot in plotly
|
|
462
382
|
*/
|
|
463
383
|
showLink: _propTypes.default.bool,
|
|
464
|
-
|
|
465
384
|
/**
|
|
466
385
|
* If we show a link, does it contain data or just link to a plotly file?
|
|
467
386
|
*/
|
|
468
387
|
sendData: _propTypes.default.bool,
|
|
469
|
-
|
|
470
388
|
/**
|
|
471
389
|
* Text appearing in the sendData link
|
|
472
390
|
*/
|
|
473
391
|
linkText: _propTypes.default.string,
|
|
474
|
-
|
|
475
392
|
/**
|
|
476
393
|
* Display the mode bar (true, false, or 'hover')
|
|
477
394
|
*/
|
|
478
395
|
displayModeBar: _propTypes.default.oneOf([true, false, 'hover']),
|
|
479
|
-
|
|
480
396
|
/**
|
|
481
397
|
* Should we include a modebar button to send this data to a
|
|
482
398
|
* Plotly Cloud instance, linked by `plotlyServerURL`.
|
|
483
399
|
* By default this is false.
|
|
484
400
|
*/
|
|
485
401
|
showSendToCloud: _propTypes.default.bool,
|
|
486
|
-
|
|
487
402
|
/**
|
|
488
403
|
* Should we show a modebar button to send this data to a
|
|
489
404
|
* Plotly Chart Studio plot. If both this and showSendToCloud
|
|
@@ -491,7 +406,6 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
491
406
|
* honored. By default this is false.
|
|
492
407
|
*/
|
|
493
408
|
showEditInChartStudio: _propTypes.default.bool,
|
|
494
|
-
|
|
495
409
|
/**
|
|
496
410
|
* Remove mode bar button by name.
|
|
497
411
|
* All modebar button names at https://github.com/plotly/plotly.js/blob/master/src/components/modebar/buttons.js
|
|
@@ -504,19 +418,16 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
504
418
|
* hoverClosestGl2d, hoverClosestPie, toggleHover, resetViews.
|
|
505
419
|
*/
|
|
506
420
|
modeBarButtonsToRemove: _propTypes.default.array,
|
|
507
|
-
|
|
508
421
|
/**
|
|
509
422
|
* Add mode bar button using config objects
|
|
510
423
|
*/
|
|
511
424
|
modeBarButtonsToAdd: _propTypes.default.array,
|
|
512
|
-
|
|
513
425
|
/**
|
|
514
426
|
* Fully custom mode bar buttons as nested array,
|
|
515
427
|
* where the outer arrays represents button groups, and
|
|
516
428
|
* the inner arrays have buttons config objects or names of default buttons
|
|
517
429
|
*/
|
|
518
430
|
modeBarButtons: _propTypes.default.any,
|
|
519
|
-
|
|
520
431
|
/**
|
|
521
432
|
* Modifications to how the toImage modebar button works
|
|
522
433
|
*/
|
|
@@ -525,75 +436,62 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
525
436
|
* The file format to create
|
|
526
437
|
*/
|
|
527
438
|
format: _propTypes.default.oneOf(['jpeg', 'png', 'webp', 'svg']),
|
|
528
|
-
|
|
529
439
|
/**
|
|
530
440
|
* The name given to the downloaded file
|
|
531
441
|
*/
|
|
532
442
|
filename: _propTypes.default.string,
|
|
533
|
-
|
|
534
443
|
/**
|
|
535
444
|
* Width of the downloaded file, in px
|
|
536
445
|
*/
|
|
537
446
|
width: _propTypes.default.number,
|
|
538
|
-
|
|
539
447
|
/**
|
|
540
448
|
* Height of the downloaded file, in px
|
|
541
449
|
*/
|
|
542
450
|
height: _propTypes.default.number,
|
|
543
|
-
|
|
544
451
|
/**
|
|
545
452
|
* Extra resolution to give the file after
|
|
546
453
|
* rendering it with the given width and height
|
|
547
454
|
*/
|
|
548
455
|
scale: _propTypes.default.number
|
|
549
456
|
}),
|
|
550
|
-
|
|
551
457
|
/**
|
|
552
458
|
* Add the plotly logo on the end of the mode bar
|
|
553
459
|
*/
|
|
554
460
|
displaylogo: _propTypes.default.bool,
|
|
555
|
-
|
|
556
461
|
/**
|
|
557
462
|
* Add the plotly logo even with no modebar
|
|
558
463
|
*/
|
|
559
464
|
watermark: _propTypes.default.bool,
|
|
560
|
-
|
|
561
465
|
/**
|
|
562
466
|
* Increase the pixel ratio for Gl plot images
|
|
563
467
|
*/
|
|
564
468
|
plotGlPixelRatio: _propTypes.default.number,
|
|
565
|
-
|
|
566
469
|
/**
|
|
567
470
|
* URL to topojson files used in geo charts
|
|
568
471
|
*/
|
|
569
472
|
topojsonURL: _propTypes.default.string,
|
|
570
|
-
|
|
571
473
|
/**
|
|
572
474
|
* Mapbox access token (required to plot mapbox trace types)
|
|
573
475
|
* If using an Mapbox Atlas server, set this option to '',
|
|
574
476
|
* so that plotly.js won't attempt to authenticate to the public Mapbox server.
|
|
575
477
|
*/
|
|
576
478
|
mapboxAccessToken: _propTypes.default.any,
|
|
577
|
-
|
|
578
479
|
/**
|
|
579
480
|
* The locale to use. Locales may be provided with the plot
|
|
580
481
|
* (`locales` below) or by loading them on the page, see:
|
|
581
482
|
* https://github.com/plotly/plotly.js/blob/master/dist/README.md#to-include-localization
|
|
582
483
|
*/
|
|
583
484
|
locale: _propTypes.default.string,
|
|
584
|
-
|
|
585
485
|
/**
|
|
586
486
|
* Localization definitions, if you choose to provide them with the
|
|
587
487
|
* plot rather than registering them globally.
|
|
588
488
|
*/
|
|
589
489
|
locales: _propTypes.default.object
|
|
590
490
|
}),
|
|
591
|
-
|
|
592
491
|
/**
|
|
593
492
|
* Function that updates the state tree.
|
|
594
493
|
*/
|
|
595
494
|
setProps: _propTypes.default.func,
|
|
596
|
-
|
|
597
495
|
/**
|
|
598
496
|
* Object that holds the loading state object coming from dash-renderer
|
|
599
497
|
*/
|
|
@@ -602,12 +500,10 @@ PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.privatePropTypes)
|
|
|
602
500
|
* Determines if the component is loading or not
|
|
603
501
|
*/
|
|
604
502
|
is_loading: _propTypes.default.bool,
|
|
605
|
-
|
|
606
503
|
/**
|
|
607
504
|
* Holds which property is loading
|
|
608
505
|
*/
|
|
609
506
|
prop_name: _propTypes.default.string,
|
|
610
|
-
|
|
611
507
|
/**
|
|
612
508
|
* Holds the name of the component that is loading
|
|
613
509
|
*/
|