logitude-dashboard-library 3.1.1 → 3.1.2
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/dist/index.js +24 -22
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +24 -22
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1410,17 +1410,24 @@ var FusionChart = React.forwardRef(function (props, comRef) {
|
|
|
1410
1410
|
fusionKey = _useState3[0];
|
|
1411
1411
|
|
|
1412
1412
|
var chartData = React.useRef(null);
|
|
1413
|
+
|
|
1414
|
+
var _useState4 = React.useState(null),
|
|
1415
|
+
resizeTimer = _useState4[0],
|
|
1416
|
+
setResizeTimer = _useState4[1];
|
|
1417
|
+
|
|
1413
1418
|
var widget = React.useRef();
|
|
1414
1419
|
|
|
1415
|
-
var
|
|
1416
|
-
args =
|
|
1417
|
-
setArgs =
|
|
1420
|
+
var _useState5 = React.useState({}),
|
|
1421
|
+
args = _useState5[0],
|
|
1422
|
+
setArgs = _useState5[1];
|
|
1418
1423
|
|
|
1419
|
-
var
|
|
1420
|
-
fChart =
|
|
1421
|
-
setFchart =
|
|
1424
|
+
var _useState6 = React.useState(),
|
|
1425
|
+
fChart = _useState6[0],
|
|
1426
|
+
setFchart = _useState6[1];
|
|
1427
|
+
|
|
1428
|
+
var _useState7 = React.useState(uuid.v4()),
|
|
1429
|
+
chartContainerId = _useState7[0];
|
|
1422
1430
|
|
|
1423
|
-
var id = (Math.random() + 1).toString(36).substring(7);
|
|
1424
1431
|
var progressRef = React.useRef(null);
|
|
1425
1432
|
var fusionRef = React.useRef(null);
|
|
1426
1433
|
var fusionChartHelper = React.useRef();
|
|
@@ -1428,9 +1435,7 @@ var FusionChart = React.forwardRef(function (props, comRef) {
|
|
|
1428
1435
|
var _props$dataBinding;
|
|
1429
1436
|
|
|
1430
1437
|
widget.current = props.widget;
|
|
1431
|
-
|
|
1432
|
-
RefreshData();
|
|
1433
|
-
}, 500);
|
|
1438
|
+
RefreshData();
|
|
1434
1439
|
(_props$dataBinding = props.dataBinding) === null || _props$dataBinding === void 0 ? void 0 : _props$dataBinding.widgetUpdated.subscribe(function (updatedWidget) {
|
|
1435
1440
|
var _widget$current;
|
|
1436
1441
|
|
|
@@ -1443,22 +1448,19 @@ var FusionChart = React.forwardRef(function (props, comRef) {
|
|
|
1443
1448
|
handleData(_data, true);
|
|
1444
1449
|
}
|
|
1445
1450
|
});
|
|
1446
|
-
}, []);
|
|
1447
|
-
React.useEffect(function () {
|
|
1448
|
-
var timeout;
|
|
1449
|
-
|
|
1450
|
-
var handleResize = function handleResize() {
|
|
1451
|
-
clearTimeout(timeout);
|
|
1452
|
-
timeout = setTimeout(function () {
|
|
1453
|
-
HandleSizeChange();
|
|
1454
|
-
}, 200);
|
|
1455
|
-
};
|
|
1456
|
-
|
|
1457
1451
|
window.addEventListener("resize", handleResize);
|
|
1458
1452
|
return function () {
|
|
1459
1453
|
return window.removeEventListener("resize", handleResize);
|
|
1460
1454
|
};
|
|
1461
1455
|
}, []);
|
|
1456
|
+
|
|
1457
|
+
var handleResize = function handleResize() {
|
|
1458
|
+
clearTimeout(resizeTimer);
|
|
1459
|
+
setResizeTimer(setTimeout(function () {
|
|
1460
|
+
HandleSizeChange();
|
|
1461
|
+
}, 200));
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1462
1464
|
React.useImperativeHandle(comRef, function () {
|
|
1463
1465
|
return {
|
|
1464
1466
|
onResizeFinish: function onResizeFinish() {
|
|
@@ -1567,7 +1569,7 @@ var FusionChart = React.forwardRef(function (props, comRef) {
|
|
|
1567
1569
|
key: fusionKey,
|
|
1568
1570
|
className: 'db-fc-container',
|
|
1569
1571
|
ref: ref,
|
|
1570
|
-
id:
|
|
1572
|
+
id: chartContainerId
|
|
1571
1573
|
}, React__default.createElement(ReactFC, Object.assign({}, args, {
|
|
1572
1574
|
"fcEvent-dataplotClick": dataplotClick,
|
|
1573
1575
|
onRender: renderComplete
|