File tree Expand file tree Collapse file tree 4 files changed +47
-163
lines changed
components/dash-core-components Expand file tree Collapse file tree 4 files changed +47
-163
lines changed Original file line number Diff line number Diff line change 57
57
"react-dropzone" : " ^4.1.2" ,
58
58
"react-fast-compare" : " ^3.2.2" ,
59
59
"react-markdown" : " ^4.3.1" ,
60
- "react-resize-detector" : " ^6.7.6" ,
61
60
"react-select-fast-filter-options" : " ^0.2.3" ,
62
61
"react-virtualized-select" : " ^3.1.3" ,
63
62
"remark-math" : " ^3.0.1" ,
73
72
"@plotly/dash-component-plugins" : " ^1.2.3" ,
74
73
"@plotly/webpack-dash-dynamic-import" : " ^1.3.0" ,
75
74
"babel-loader" : " ^9.2.1" ,
76
- "component-playground" : " ^3.2.1" ,
77
75
"copyfiles" : " ^2.4.1" ,
78
76
"css-loader" : " ^6.8.1" ,
79
77
"es-check" : " ^7.1.1" ,
84
82
"identity-obj-proxy" : " ^3.0.0" ,
85
83
"npm-run-all" : " ^4.1.5" ,
86
84
"prettier" : " ^2.8.8" ,
87
- "react" : " ^16.14.0" ,
88
- "react-dom" : " ^16.14.0" ,
89
85
"react-jsx-parser" : " 1.21.0" ,
90
86
"rimraf" : " ^5.0.5" ,
91
87
"style-loader" : " ^3.3.3" ,
101
97
" /lib/"
102
98
],
103
99
"peerDependencies" : {
104
- "react" : " >=16 " ,
105
- "react-dom" : " >=16 "
100
+ "react" : " 16 - 19 " ,
101
+ "react-dom" : " 16 - 19 "
106
102
},
107
103
"browserslist" : [
108
104
" last 9 years and not dead"
Original file line number Diff line number Diff line change 1
1
import lazyLoadMathJax from '../utils/LazyLoader/mathjax' ;
2
2
import React , { Component } from 'react' ;
3
- // /build/withPolyfill for IE11 support - https://github.com/maslianok/react-resize-detector/issues/144
4
- import ResizeDetector from 'react-resize-detector/build/withPolyfill' ;
5
3
import {
6
4
equals ,
7
5
filter ,
@@ -16,6 +14,8 @@ import PropTypes from 'prop-types';
16
14
import { graphPropTypes , graphDefaultProps } from '../components/Graph.react' ;
17
15
/* global Plotly:true */
18
16
17
+ import ResizeDetector from '../utils/ResizeDetector' ;
18
+
19
19
/**
20
20
* `autosize: true` causes Plotly.js to conform to the parent element size.
21
21
* This is necessary for `dcc.Graph` call to `Plotly.Plots.resize(target)` to do something.
@@ -526,14 +526,7 @@ class PlotlyGraph extends Component {
526
526
className = { className }
527
527
style = { style }
528
528
>
529
- < ResizeDetector
530
- handleHeight = { true }
531
- handleWidth = { true }
532
- refreshMode = "debounce"
533
- refreshOptions = { { trailing : true } }
534
- refreshRate = { 50 }
535
- onResize = { this . graphResize }
536
- />
529
+ < ResizeDetector onResize = { this . graphResize } />
537
530
< div ref = { this . gd } style = { { height : '100%' , width : '100%' } } />
538
531
</ div >
539
532
) ;
You can’t perform that action at this time.
0 commit comments