dash-core-components 2.6.2 → 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/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 +3 -52
- 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 +51 -153
- 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 +17 -17
- package/lib/components/css/react-virtualized-select@3.1.0.css +0 -22
|
@@ -4,65 +4,34 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _mathjax = _interopRequireDefault(require("../utils/LazyLoader/mathjax"));
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _withPolyfill = _interopRequireDefault(require("react-resize-detector/build/withPolyfill"));
|
|
13
|
-
|
|
14
10
|
var _ramda = require("ramda");
|
|
15
|
-
|
|
16
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
17
|
-
|
|
18
12
|
var _Graph = require("../components/Graph.react");
|
|
19
|
-
|
|
20
13
|
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); }
|
|
21
|
-
|
|
22
|
-
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; }
|
|
23
|
-
|
|
14
|
+
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; }
|
|
24
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
-
|
|
26
16
|
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; }
|
|
27
|
-
|
|
28
17
|
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; }
|
|
29
|
-
|
|
30
18
|
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; }
|
|
31
|
-
|
|
32
19
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
33
|
-
|
|
34
20
|
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."); }
|
|
35
|
-
|
|
36
21
|
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); }
|
|
37
|
-
|
|
38
22
|
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; }
|
|
39
|
-
|
|
40
23
|
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; }
|
|
41
|
-
|
|
42
24
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
43
|
-
|
|
44
25
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
45
|
-
|
|
46
26
|
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); } }
|
|
47
|
-
|
|
48
27
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
49
|
-
|
|
50
28
|
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); }
|
|
51
|
-
|
|
52
29
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
53
|
-
|
|
54
30
|
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); }; }
|
|
55
|
-
|
|
56
|
-
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); }
|
|
57
|
-
|
|
31
|
+
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); }
|
|
58
32
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
59
|
-
|
|
60
33
|
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; } }
|
|
61
|
-
|
|
62
34
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
63
|
-
|
|
64
|
-
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); }
|
|
65
|
-
|
|
66
35
|
/* global Plotly:true */
|
|
67
36
|
|
|
68
37
|
/**
|
|
@@ -81,6 +50,7 @@ var AUTO_LAYOUT = {};
|
|
|
81
50
|
var UNRESPONSIVE_LAYOUT = {
|
|
82
51
|
autosize: false
|
|
83
52
|
};
|
|
53
|
+
|
|
84
54
|
/**
|
|
85
55
|
* `responsive: true` causes Plotly.js to resize the graph on `window.resize`.
|
|
86
56
|
* This is necessary for `dcc.Graph` call to `Plotly.Plots.resize(target)` to do something.
|
|
@@ -88,7 +58,6 @@ var UNRESPONSIVE_LAYOUT = {
|
|
|
88
58
|
* Users can override this value for specific use-cases by explicitly passing `responsive: false`
|
|
89
59
|
* if `responsive` is not set to True.
|
|
90
60
|
*/
|
|
91
|
-
|
|
92
61
|
var RESPONSIVE_CONFIG = {
|
|
93
62
|
responsive: true
|
|
94
63
|
};
|
|
@@ -96,19 +65,17 @@ var AUTO_CONFIG = {};
|
|
|
96
65
|
var UNRESPONSIVE_CONFIG = {
|
|
97
66
|
responsive: false
|
|
98
67
|
};
|
|
99
|
-
|
|
100
68
|
var filterEventData = function filterEventData(gd, eventData, event) {
|
|
101
69
|
var filteredEventData;
|
|
102
|
-
|
|
103
70
|
if ((0, _ramda.includes)(event, ['click', 'hover', 'selected'])) {
|
|
104
71
|
var _ret = function () {
|
|
105
72
|
var points = [];
|
|
106
|
-
|
|
107
73
|
if ((0, _ramda.isNil)(eventData)) {
|
|
108
74
|
return {
|
|
109
75
|
v: null
|
|
110
76
|
};
|
|
111
77
|
}
|
|
78
|
+
|
|
112
79
|
/*
|
|
113
80
|
* remove `data`, `layout`, `xaxis`, etc
|
|
114
81
|
* objects from the event data since they're so big
|
|
@@ -117,20 +84,17 @@ var filterEventData = function filterEventData(gd, eventData, event) {
|
|
|
117
84
|
* also, pull down the `customdata` point from the data array
|
|
118
85
|
* into the event object
|
|
119
86
|
*/
|
|
120
|
-
|
|
121
|
-
|
|
122
87
|
var data = gd.data;
|
|
123
|
-
|
|
124
88
|
var _loop = function _loop(i) {
|
|
125
89
|
var fullPoint = eventData.points[i];
|
|
126
90
|
var pointData = (0, _ramda.filter)(function (o) {
|
|
127
91
|
return !(0, _ramda.includes)((0, _ramda.type)(o), ['Object', 'Array']);
|
|
128
|
-
}, fullPoint);
|
|
92
|
+
}, fullPoint);
|
|
129
93
|
|
|
94
|
+
// permit a bounding box to pass through, if present
|
|
130
95
|
if ((0, _ramda.has)('bbox', fullPoint)) {
|
|
131
96
|
pointData.bbox = fullPoint.bbox;
|
|
132
97
|
}
|
|
133
|
-
|
|
134
98
|
if ((0, _ramda.has)('curveNumber', fullPoint) && (0, _ramda.has)('customdata', data[pointData.curveNumber])) {
|
|
135
99
|
if ((0, _ramda.has)('pointNumber', fullPoint)) {
|
|
136
100
|
pointData.customdata = data[pointData.curveNumber].customdata[fullPoint.pointNumber];
|
|
@@ -139,26 +103,22 @@ var filterEventData = function filterEventData(gd, eventData, event) {
|
|
|
139
103
|
return data[pointData.curveNumber].customdata[point];
|
|
140
104
|
});
|
|
141
105
|
}
|
|
142
|
-
}
|
|
143
|
-
|
|
106
|
+
}
|
|
144
107
|
|
|
108
|
+
// specific to histogram. see https://github.com/plotly/plotly.js/pull/2113/
|
|
145
109
|
if ((0, _ramda.has)('pointNumbers', fullPoint)) {
|
|
146
110
|
pointData.pointNumbers = fullPoint.pointNumbers;
|
|
147
111
|
}
|
|
148
|
-
|
|
149
112
|
points[i] = pointData;
|
|
150
113
|
};
|
|
151
|
-
|
|
152
114
|
for (var i = 0; i < eventData.points.length; i++) {
|
|
153
115
|
_loop(i);
|
|
154
116
|
}
|
|
155
|
-
|
|
156
117
|
filteredEventData = {
|
|
157
|
-
points
|
|
118
|
+
points
|
|
158
119
|
};
|
|
159
120
|
}();
|
|
160
|
-
|
|
161
|
-
if (_typeof(_ret) === "object") return _ret.v;
|
|
121
|
+
if (typeof _ret === "object") return _ret.v;
|
|
162
122
|
} else if (event === 'relayout' || event === 'restyle') {
|
|
163
123
|
/*
|
|
164
124
|
* relayout shouldn't include any big objects
|
|
@@ -168,35 +128,27 @@ var filterEventData = function filterEventData(gd, eventData, event) {
|
|
|
168
128
|
*/
|
|
169
129
|
filteredEventData = eventData;
|
|
170
130
|
}
|
|
171
|
-
|
|
172
131
|
if ((0, _ramda.has)('range', eventData)) {
|
|
173
132
|
filteredEventData.range = eventData.range;
|
|
174
133
|
}
|
|
175
|
-
|
|
176
134
|
if ((0, _ramda.has)('lassoPoints', eventData)) {
|
|
177
135
|
filteredEventData.lassoPoints = eventData.lassoPoints;
|
|
178
136
|
}
|
|
179
|
-
|
|
180
137
|
return filteredEventData;
|
|
181
138
|
};
|
|
139
|
+
|
|
182
140
|
/**
|
|
183
141
|
* Graph can be used to render any plotly.js-powered data visualization.
|
|
184
142
|
*
|
|
185
143
|
* You can define callbacks based on user interaction with Graphs such as
|
|
186
144
|
* hovering, clicking or selecting
|
|
187
145
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
146
|
var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
191
147
|
_inherits(PlotlyGraph, _Component);
|
|
192
|
-
|
|
193
148
|
var _super = _createSuper(PlotlyGraph);
|
|
194
|
-
|
|
195
149
|
function PlotlyGraph(props) {
|
|
196
150
|
var _this2;
|
|
197
|
-
|
|
198
151
|
_classCallCheck(this, PlotlyGraph);
|
|
199
|
-
|
|
200
152
|
_this2 = _super.call(this, props);
|
|
201
153
|
_this2.gd = /*#__PURE__*/_react.default.createRef();
|
|
202
154
|
_this2._hasPlotted = false;
|
|
@@ -216,23 +168,21 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
216
168
|
};
|
|
217
169
|
return _this2;
|
|
218
170
|
}
|
|
219
|
-
|
|
220
171
|
_createClass(PlotlyGraph, [{
|
|
221
172
|
key: "plot",
|
|
222
173
|
value: function plot(props) {
|
|
223
174
|
var _this3 = this;
|
|
224
|
-
|
|
225
175
|
var figure = props.figure,
|
|
226
|
-
|
|
176
|
+
config = props.config;
|
|
227
177
|
var animate = props.animate,
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
178
|
+
animation_options = props.animation_options,
|
|
179
|
+
responsive = props.responsive,
|
|
180
|
+
mathjax = props.mathjax;
|
|
231
181
|
var gd = this.gd.current;
|
|
232
182
|
figure = props._dashprivate_transformFigure(figure, gd);
|
|
233
183
|
config = props._dashprivate_transformConfig(config, gd);
|
|
234
|
-
var configClone = this.getConfig(config, responsive);
|
|
235
|
-
|
|
184
|
+
var configClone = this.getConfig(config, responsive);
|
|
185
|
+
// add typesetMath | not exposed to the dash API
|
|
236
186
|
configClone.typesetMath = mathjax;
|
|
237
187
|
var figureClone = {
|
|
238
188
|
data: figure.data,
|
|
@@ -240,7 +190,6 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
240
190
|
frames: figure.frames,
|
|
241
191
|
config: configClone
|
|
242
192
|
};
|
|
243
|
-
|
|
244
193
|
if (animate && this._hasPlotted && figure.data.length === gd.data.length) {
|
|
245
194
|
// in case we've have figure frames,
|
|
246
195
|
// we need to recreate frames before animation
|
|
@@ -251,38 +200,32 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
251
200
|
return Plotly.animate(gd, figureClone, animation_options);
|
|
252
201
|
});
|
|
253
202
|
}
|
|
254
|
-
|
|
255
203
|
return Plotly.animate(gd, figureClone, animation_options);
|
|
256
204
|
}
|
|
257
|
-
|
|
258
205
|
gd.classList.add('dash-graph--pending');
|
|
259
206
|
return (0, _mathjax.default)(mathjax).then(function () {
|
|
260
207
|
var gd = _this3.gd.current;
|
|
261
208
|
return gd && Plotly.react(gd, figureClone);
|
|
262
209
|
}).then(function () {
|
|
263
|
-
var gd = _this3.gd.current;
|
|
210
|
+
var gd = _this3.gd.current;
|
|
264
211
|
|
|
212
|
+
// double-check gd hasn't been unmounted
|
|
265
213
|
if (!gd) {
|
|
266
214
|
return;
|
|
267
215
|
}
|
|
216
|
+
gd.classList.remove('dash-graph--pending');
|
|
268
217
|
|
|
269
|
-
|
|
270
|
-
|
|
218
|
+
// in case we've made a new DOM element, transfer events
|
|
271
219
|
if (_this3._hasPlotted && gd !== _this3._prevGd) {
|
|
272
220
|
if (_this3._prevGd && _this3._prevGd.removeAllListeners) {
|
|
273
221
|
_this3._prevGd.removeAllListeners();
|
|
274
|
-
|
|
275
222
|
Plotly.purge(_this3._prevGd);
|
|
276
223
|
}
|
|
277
|
-
|
|
278
224
|
_this3._hasPlotted = false;
|
|
279
225
|
}
|
|
280
|
-
|
|
281
226
|
if (!_this3._hasPlotted) {
|
|
282
227
|
_this3.bindEvents();
|
|
283
|
-
|
|
284
228
|
_this3.graphResize(true);
|
|
285
|
-
|
|
286
229
|
_this3._hasPlotted = true;
|
|
287
230
|
_this3._prevGd = gd;
|
|
288
231
|
}
|
|
@@ -292,43 +235,33 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
292
235
|
key: "amendTraces",
|
|
293
236
|
value: function amendTraces(p, oldProps, newProps) {
|
|
294
237
|
var oldPrepend = oldProps.prependData,
|
|
295
|
-
|
|
238
|
+
oldExtend = oldProps.extendData;
|
|
296
239
|
var newPrepend = newProps.prependData,
|
|
297
|
-
|
|
298
|
-
|
|
240
|
+
newExtend = newProps.extendData;
|
|
299
241
|
var _this = this;
|
|
300
|
-
|
|
301
242
|
function mergeTraces(props, dataKey, plotlyFnKey) {
|
|
302
243
|
var clearState = props.clearState;
|
|
303
244
|
var dataArray = props[dataKey];
|
|
304
|
-
|
|
305
245
|
var _p = Promise.resolve();
|
|
306
|
-
|
|
307
246
|
dataArray.forEach(function (data) {
|
|
308
247
|
var updateData, traceIndices, maxPoints;
|
|
309
|
-
|
|
310
|
-
if (Array.isArray(data) && _typeof(data[0]) === 'object') {
|
|
248
|
+
if (Array.isArray(data) && typeof data[0] === 'object') {
|
|
311
249
|
var _data = _slicedToArray(data, 3);
|
|
312
|
-
|
|
313
250
|
updateData = _data[0];
|
|
314
251
|
traceIndices = _data[1];
|
|
315
252
|
maxPoints = _data[2];
|
|
316
253
|
} else {
|
|
317
254
|
updateData = data;
|
|
318
255
|
}
|
|
319
|
-
|
|
320
256
|
if (!traceIndices) {
|
|
321
|
-
function getFirstProp(data) {
|
|
257
|
+
var getFirstProp = function getFirstProp(data) {
|
|
322
258
|
return data[Object.keys(data)[0]];
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
function generateIndices(data) {
|
|
259
|
+
};
|
|
260
|
+
var generateIndices = function generateIndices(data) {
|
|
326
261
|
return Array.from(Array(getFirstProp(data).length).keys());
|
|
327
|
-
}
|
|
328
|
-
|
|
262
|
+
};
|
|
329
263
|
traceIndices = generateIndices(updateData);
|
|
330
264
|
}
|
|
331
|
-
|
|
332
265
|
_p = _p.then(function () {
|
|
333
266
|
var gd = _this.gd.current;
|
|
334
267
|
return gd && Plotly[plotlyFnKey](gd, updateData, traceIndices, maxPoints);
|
|
@@ -338,29 +271,24 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
338
271
|
return clearState(dataKey);
|
|
339
272
|
});
|
|
340
273
|
}
|
|
341
|
-
|
|
342
274
|
var modified = false;
|
|
343
|
-
|
|
344
275
|
if (newPrepend !== null && newPrepend !== void 0 && newPrepend.length && oldPrepend !== newPrepend) {
|
|
345
276
|
modified = true;
|
|
346
277
|
p = p.then(function () {
|
|
347
278
|
return mergeTraces(newProps, 'prependData', 'prependTraces');
|
|
348
279
|
});
|
|
349
280
|
}
|
|
350
|
-
|
|
351
281
|
if (newExtend !== null && newExtend !== void 0 && newExtend.length && oldExtend !== newExtend) {
|
|
352
282
|
modified = true;
|
|
353
283
|
p = p.then(function () {
|
|
354
284
|
return mergeTraces(newProps, 'extendData', 'extendTraces');
|
|
355
285
|
});
|
|
356
286
|
}
|
|
357
|
-
|
|
358
287
|
if (modified) {
|
|
359
288
|
p = p.then(function () {
|
|
360
289
|
return newProps._dashprivate_onFigureModified(newProps.figure);
|
|
361
290
|
});
|
|
362
291
|
}
|
|
363
|
-
|
|
364
292
|
return p;
|
|
365
293
|
}
|
|
366
294
|
}, {
|
|
@@ -374,14 +302,12 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
374
302
|
if (!layout) {
|
|
375
303
|
return layout;
|
|
376
304
|
}
|
|
377
|
-
|
|
378
305
|
var override = this.getLayoutOverride(responsive);
|
|
379
306
|
var _this$state = this.state,
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
307
|
+
prev_override = _this$state.override,
|
|
308
|
+
prev_originals = _this$state.originals;
|
|
309
|
+
// Store the original data that we're about to override
|
|
383
310
|
var originals = {};
|
|
384
|
-
|
|
385
311
|
for (var key in override) {
|
|
386
312
|
if (layout[key] !== prev_override[key]) {
|
|
387
313
|
originals[key] = layout[key];
|
|
@@ -389,23 +315,20 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
389
315
|
originals[key] = prev_originals[key];
|
|
390
316
|
}
|
|
391
317
|
}
|
|
392
|
-
|
|
393
318
|
this.setState({
|
|
394
|
-
override
|
|
395
|
-
originals
|
|
396
|
-
});
|
|
397
|
-
|
|
319
|
+
override,
|
|
320
|
+
originals
|
|
321
|
+
});
|
|
322
|
+
// Undo the previous override, but only for keys that the user did not change
|
|
398
323
|
for (var _key in prev_originals) {
|
|
399
324
|
if (layout[_key] === prev_override[_key]) {
|
|
400
325
|
layout[_key] = prev_originals[_key];
|
|
401
326
|
}
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
|
|
327
|
+
}
|
|
328
|
+
// Apply the current override
|
|
405
329
|
for (var _key2 in override) {
|
|
406
330
|
layout[_key2] = override[_key2];
|
|
407
331
|
}
|
|
408
|
-
|
|
409
332
|
return layout; // not really a clone
|
|
410
333
|
}
|
|
411
334
|
}, {
|
|
@@ -414,10 +337,8 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
414
337
|
switch (responsive) {
|
|
415
338
|
case false:
|
|
416
339
|
return UNRESPONSIVE_CONFIG;
|
|
417
|
-
|
|
418
340
|
case true:
|
|
419
341
|
return RESPONSIVE_CONFIG;
|
|
420
|
-
|
|
421
342
|
default:
|
|
422
343
|
return AUTO_CONFIG;
|
|
423
344
|
}
|
|
@@ -428,10 +349,8 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
428
349
|
switch (responsive) {
|
|
429
350
|
case false:
|
|
430
351
|
return UNRESPONSIVE_LAYOUT;
|
|
431
|
-
|
|
432
352
|
case true:
|
|
433
353
|
return RESPONSIVE_LAYOUT;
|
|
434
|
-
|
|
435
354
|
default:
|
|
436
355
|
return AUTO_LAYOUT;
|
|
437
356
|
}
|
|
@@ -440,30 +359,24 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
440
359
|
key: "isResponsive",
|
|
441
360
|
value: function isResponsive(props) {
|
|
442
361
|
var config = props.config,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
362
|
+
figure = props.figure,
|
|
363
|
+
responsive = props.responsive;
|
|
446
364
|
if ((0, _ramda.type)(responsive) === 'Boolean') {
|
|
447
365
|
return responsive;
|
|
448
366
|
}
|
|
449
|
-
|
|
450
367
|
return Boolean(config.responsive && (!figure.layout || (figure.layout.autosize || (0, _ramda.isNil)(figure.layout.autosize)) && ((0, _ramda.isNil)(figure.layout.height) || (0, _ramda.isNil)(figure.layout.width))));
|
|
451
368
|
}
|
|
452
369
|
}, {
|
|
453
370
|
key: "graphResize",
|
|
454
371
|
value: function graphResize() {
|
|
455
372
|
var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
456
|
-
|
|
457
373
|
if (!force && !this.isResponsive(this.props)) {
|
|
458
374
|
return;
|
|
459
375
|
}
|
|
460
|
-
|
|
461
376
|
var gd = this.gd.current;
|
|
462
|
-
|
|
463
377
|
if (!gd) {
|
|
464
378
|
return;
|
|
465
379
|
}
|
|
466
|
-
|
|
467
380
|
gd.classList.add('dash-graph--pending');
|
|
468
381
|
Plotly.Plots.resize(gd).catch(function () {}).finally(function () {
|
|
469
382
|
return gd.classList.remove('dash-graph--pending');
|
|
@@ -473,31 +386,29 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
473
386
|
key: "bindEvents",
|
|
474
387
|
value: function bindEvents() {
|
|
475
388
|
var _this$props = this.props,
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
389
|
+
setProps = _this$props.setProps,
|
|
390
|
+
clear_on_unhover = _this$props.clear_on_unhover,
|
|
391
|
+
relayoutData = _this$props.relayoutData,
|
|
392
|
+
restyleData = _this$props.restyleData,
|
|
393
|
+
hoverData = _this$props.hoverData,
|
|
394
|
+
selectedData = _this$props.selectedData;
|
|
482
395
|
var gd = this.gd.current;
|
|
483
396
|
gd.on('plotly_click', function (eventData) {
|
|
484
397
|
var clickData = filterEventData(gd, eventData, 'click');
|
|
485
|
-
|
|
486
398
|
if (!(0, _ramda.isNil)(clickData)) {
|
|
487
399
|
setProps({
|
|
488
|
-
clickData
|
|
400
|
+
clickData
|
|
489
401
|
});
|
|
490
402
|
}
|
|
491
403
|
});
|
|
492
404
|
gd.on('plotly_clickannotation', function (eventData) {
|
|
493
405
|
var clickAnnotationData = (0, _ramda.omit)(['event', 'fullAnnotation'], eventData);
|
|
494
406
|
setProps({
|
|
495
|
-
clickAnnotationData
|
|
407
|
+
clickAnnotationData
|
|
496
408
|
});
|
|
497
409
|
});
|
|
498
410
|
gd.on('plotly_hover', function (eventData) {
|
|
499
411
|
var hover = filterEventData(gd, eventData, 'hover');
|
|
500
|
-
|
|
501
412
|
if (!(0, _ramda.isNil)(hover) && !(0, _ramda.equals)(hover, hoverData)) {
|
|
502
413
|
setProps({
|
|
503
414
|
hoverData: hover
|
|
@@ -506,7 +417,6 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
506
417
|
});
|
|
507
418
|
gd.on('plotly_selected', function (eventData) {
|
|
508
419
|
var selected = filterEventData(gd, eventData, 'selected');
|
|
509
|
-
|
|
510
420
|
if (!(0, _ramda.isNil)(selected) && !(0, _ramda.equals)(selected, selectedData)) {
|
|
511
421
|
setProps({
|
|
512
422
|
selectedData: selected
|
|
@@ -520,7 +430,6 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
520
430
|
});
|
|
521
431
|
gd.on('plotly_relayout', function (eventData) {
|
|
522
432
|
var relayout = filterEventData(gd, eventData, 'relayout');
|
|
523
|
-
|
|
524
433
|
if (!(0, _ramda.isNil)(relayout) && !(0, _ramda.equals)(relayout, relayoutData)) {
|
|
525
434
|
setProps({
|
|
526
435
|
relayoutData: relayout
|
|
@@ -529,7 +438,6 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
529
438
|
});
|
|
530
439
|
gd.on('plotly_restyle', function (eventData) {
|
|
531
440
|
var restyle = filterEventData(gd, eventData, 'restyle');
|
|
532
|
-
|
|
533
441
|
if (!(0, _ramda.isNil)(restyle) && !(0, _ramda.equals)(restyle, restyleData)) {
|
|
534
442
|
setProps({
|
|
535
443
|
restyleData: restyle
|
|
@@ -554,10 +462,8 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
554
462
|
key: "componentWillUnmount",
|
|
555
463
|
value: function componentWillUnmount() {
|
|
556
464
|
var gd = this.gd.current;
|
|
557
|
-
|
|
558
465
|
if (gd && gd.removeAllListeners) {
|
|
559
466
|
gd.removeAllListeners();
|
|
560
|
-
|
|
561
467
|
if (this._hasPlotted) {
|
|
562
468
|
Plotly.purge(gd);
|
|
563
469
|
}
|
|
@@ -572,9 +478,7 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
572
478
|
key: "UNSAFE_componentWillReceiveProps",
|
|
573
479
|
value: function UNSAFE_componentWillReceiveProps(nextProps) {
|
|
574
480
|
var _this4 = this;
|
|
575
|
-
|
|
576
481
|
var idChanged = this.props.id !== nextProps.id;
|
|
577
|
-
|
|
578
482
|
if (idChanged) {
|
|
579
483
|
/*
|
|
580
484
|
* then the dom needs to get re-rendered with a new ID.
|
|
@@ -582,22 +486,18 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
582
486
|
*/
|
|
583
487
|
return;
|
|
584
488
|
}
|
|
585
|
-
|
|
586
489
|
var p = this._queue;
|
|
587
|
-
|
|
588
490
|
if (this.props.mathjax !== nextProps.mathjax || this.props.figure !== nextProps.figure || this.props._dashprivate_transformConfig !== nextProps._dashprivate_transformConfig || this.props._dashprivate_transformFigure !== nextProps._dashprivate_transformFigure) {
|
|
589
491
|
p = p.then(function () {
|
|
590
492
|
return _this4.plot(nextProps);
|
|
591
493
|
});
|
|
592
494
|
}
|
|
593
|
-
|
|
594
495
|
this._queue = this.amendTraces(p, this.props, nextProps);
|
|
595
496
|
}
|
|
596
497
|
}, {
|
|
597
498
|
key: "componentDidUpdate",
|
|
598
499
|
value: function componentDidUpdate(prevProps) {
|
|
599
500
|
var _this5 = this;
|
|
600
|
-
|
|
601
501
|
if (prevProps.id !== this.props.id || prevProps.mathjax !== this.props.mathjax) {
|
|
602
502
|
this._queue = this._queue.then(function () {
|
|
603
503
|
return _this5.plot(_this5.props);
|
|
@@ -608,10 +508,10 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
608
508
|
key: "render",
|
|
609
509
|
value: function render() {
|
|
610
510
|
var _this$props2 = this.props,
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
511
|
+
className = _this$props2.className,
|
|
512
|
+
id = _this$props2.id,
|
|
513
|
+
style = _this$props2.style,
|
|
514
|
+
loading_state = _this$props2.loading_state;
|
|
615
515
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
616
516
|
id: id,
|
|
617
517
|
key: id,
|
|
@@ -636,10 +536,8 @@ var PlotlyGraph = /*#__PURE__*/function (_Component) {
|
|
|
636
536
|
}));
|
|
637
537
|
}
|
|
638
538
|
}]);
|
|
639
|
-
|
|
640
539
|
return PlotlyGraph;
|
|
641
540
|
}(_react.Component);
|
|
642
|
-
|
|
643
541
|
PlotlyGraph.propTypes = _objectSpread(_objectSpread({}, _Graph.graphPropTypes), {}, {
|
|
644
542
|
prependData: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object])),
|
|
645
543
|
extendData: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object])),
|
|
@@ -4,37 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
14
10
|
/**
|
|
15
11
|
* Spinner created by Tobias Ahlin, https://github.com/tobiasahlin/SpinKit
|
|
16
12
|
*/
|
|
17
13
|
var CircleSpinner = function CircleSpinner(_ref) {
|
|
18
14
|
var status = _ref.status,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
color = _ref.color,
|
|
16
|
+
fullscreen = _ref.fullscreen,
|
|
17
|
+
debug = _ref.debug,
|
|
18
|
+
className = _ref.className,
|
|
19
|
+
style = _ref.style;
|
|
24
20
|
var debugTitle;
|
|
25
|
-
|
|
26
21
|
if (debug) {
|
|
27
22
|
debugTitle = /*#__PURE__*/_react.default.createElement("h3", {
|
|
28
23
|
className: "dash-loading-title"
|
|
29
24
|
}, "Loading ", status.component_name, "'s ", status.prop_name);
|
|
30
25
|
}
|
|
31
|
-
|
|
32
26
|
var spinnerClass = fullscreen ? 'dash-spinner-container' : '';
|
|
33
|
-
|
|
34
27
|
if (className) {
|
|
35
28
|
spinnerClass += " ".concat(className);
|
|
36
29
|
}
|
|
37
|
-
|
|
38
30
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
39
31
|
style: style ? style : {},
|
|
40
32
|
className: spinnerClass
|
|
@@ -66,7 +58,6 @@ var CircleSpinner = function CircleSpinner(_ref) {
|
|
|
66
58
|
className: "dash-sk-circle12 dash-sk-child"
|
|
67
59
|
})), /*#__PURE__*/_react.default.createElement("style", null, "\n .dash-spinner-container {\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n background-color: white;\n z-index: 99;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .dash-loading-title {\n text-align: center;\n }\n .dash-sk-circle {\n margin: 1rem auto;\n width: 40px;\n height: 40px;\n position: relative;\n }\n .dash-sk-circle .dash-sk-child {\n width: 100%;\n height: 100%;\n position: absolute;\n left: 0;\n top: 0;\n }\n .dash-sk-circle .dash-sk-child:before {\n content: '';\n display: block;\n margin: 0 auto;\n width: 15%;\n height: 15%;\n background-color: ".concat(color, ";\n border-radius: 100%;\n -webkit-animation: dash-sk-circleBounceDelay 1.2s infinite ease-in-out both;\n animation: dash-sk-circleBounceDelay 1.2s infinite ease-in-out both;\n }\n .dash-sk-circle .dash-sk-circle2 {\n -webkit-transform: rotate(30deg);\n -ms-transform: rotate(30deg);\n transform: rotate(30deg); }\n .dash-sk-circle .dash-sk-circle3 {\n -webkit-transform: rotate(60deg);\n -ms-transform: rotate(60deg);\n transform: rotate(60deg); }\n .dash-sk-circle .dash-sk-circle4 {\n -webkit-transform: rotate(90deg);\n -ms-transform: rotate(90deg);\n transform: rotate(90deg); }\n .dash-sk-circle .dash-sk-circle5 {\n -webkit-transform: rotate(120deg);\n -ms-transform: rotate(120deg);\n transform: rotate(120deg); }\n .dash-sk-circle .dash-sk-circle6 {\n -webkit-transform: rotate(150deg);\n -ms-transform: rotate(150deg);\n transform: rotate(150deg); }\n .dash-sk-circle .dash-sk-circle7 {\n -webkit-transform: rotate(180deg);\n -ms-transform: rotate(180deg);\n transform: rotate(180deg); }\n .dash-sk-circle .dash-sk-circle8 {\n -webkit-transform: rotate(210deg);\n -ms-transform: rotate(210deg);\n transform: rotate(210deg); }\n .dash-sk-circle .dash-sk-circle9 {\n -webkit-transform: rotate(240deg);\n -ms-transform: rotate(240deg);\n transform: rotate(240deg); }\n .dash-sk-circle .dash-sk-circle10 {\n -webkit-transform: rotate(270deg);\n -ms-transform: rotate(270deg);\n transform: rotate(270deg); }\n .dash-sk-circle .dash-sk-circle11 {\n -webkit-transform: rotate(300deg);\n -ms-transform: rotate(300deg);\n transform: rotate(300deg); }\n .dash-sk-circle .dash-sk-circle12 {\n -webkit-transform: rotate(330deg);\n -ms-transform: rotate(330deg);\n transform: rotate(330deg); }\n .dash-sk-circle .dash-sk-circle2:before {\n -webkit-animation-delay: -1.1s;\n animation-delay: -1.1s; }\n .dash-sk-circle .dash-sk-circle3:before {\n -webkit-animation-delay: -1s;\n animation-delay: -1s; }\n .dash-sk-circle .dash-sk-circle4:before {\n -webkit-animation-delay: -0.9s;\n animation-delay: -0.9s; }\n .dash-sk-circle .dash-sk-circle5:before {\n -webkit-animation-delay: -0.8s;\n animation-delay: -0.8s; }\n .dash-sk-circle .dash-sk-circle6:before {\n -webkit-animation-delay: -0.7s;\n animation-delay: -0.7s; }\n .dash-sk-circle .dash-sk-circle7:before {\n -webkit-animation-delay: -0.6s;\n animation-delay: -0.6s; }\n .dash-sk-circle .dash-sk-circle8:before {\n -webkit-animation-delay: -0.5s;\n animation-delay: -0.5s; }\n .dash-sk-circle .dash-sk-circle9:before {\n -webkit-animation-delay: -0.4s;\n animation-delay: -0.4s; }\n .dash-sk-circle .dash-sk-circle10:before {\n -webkit-animation-delay: -0.3s;\n animation-delay: -0.3s; }\n .dash-spinner-container > .sk-circle .sk-circle11:before {\n -webkit-animation-delay: -0.2s;\n animation-delay: -0.2s; }\n .dash-spinner-container .sk-circle .sk-circle12:before {\n -webkit-animation-delay: -0.1s;\n animation-delay: -0.1s; }\n\n @-webkit-keyframes dash-sk-circleBounceDelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n } 40% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n }\n\n @keyframes dash-sk-circleBounceDelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n } 40% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n }\n ")));
|
|
68
60
|
};
|
|
69
|
-
|
|
70
61
|
CircleSpinner.propTypes = {
|
|
71
62
|
status: _propTypes.default.object,
|
|
72
63
|
color: _propTypes.default.string,
|