We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ada44d + 267f849 commit dc58cbaCopy full SHA for dc58cba
examples/custom/src/App.js
@@ -35,13 +35,12 @@ class App extends Component {
35
},
36
],
37
38
- editorRevision: 0,
39
plotRevision: 0,
40
};
41
}
42
43
handlePlotUpdate(graphDiv) {
44
- this.setState(({editorRevision: x})=>({editorRevision: x+1,graphDiv}));
+ this.setState({graphDiv});
45
46
47
handleEditorUpdate() {
@@ -55,7 +54,6 @@ class App extends Component {
55
54
locale="en"
56
graphDiv={this.state.graphDiv}
57
onUpdate={this.handleEditorUpdate.bind(this)}
58
- revision={this.state.editorRevision}
59
plotly={plotly}
60
dataSources={dataSources}
61
dataSourceOptions={dataSourceOptions}
examples/demo/src/App.js
@@ -26,7 +26,6 @@ class App extends Component {
26
// _fullLayout etc in handlePlotUpdate()
27
this.state = {
28
graphDiv: {},
29
30
31
currentMockIndex: -1,
32
mocks: [],
@@ -44,7 +43,7 @@ class App extends Component {
48
49
50
@@ -76,7 +75,6 @@ class App extends Component {
76
75
config={{editable: true}}
77
78
79
80
81
82
examples/redux/src/App.js
@@ -38,7 +38,6 @@ class App extends Component {
dataSources,
dataSourceOptions,
graphDiv,
- editorRevision,
plotRevision,
} = this.props;
@@ -51,7 +50,6 @@ class App extends Component {
51
52
graphDiv={graphDiv}
53
onUpdate={actions.editorUpdate}
- revision={editorRevision}
/>
</aside>
examples/redux/src/reducer.js
@@ -4,7 +4,6 @@ const initialState = {
4
dataSources: {},
5
dataSourceOptions: [],
6
7
8
9
10
@@ -23,7 +22,6 @@ export default (state = initialState, action) => {
23
22
return {
24
...state,
25
graphDiv: action.payload,
- editorRevision: state.editorRevision + 1,
case ACTIONS.INITIALIZE_PLOT:
examples/simple/src/App.js
@@ -25,13 +25,12 @@ class App extends Component {
33
34
@@ -44,7 +43,6 @@ class App extends Component {
<PlotlyEditor
package.json
@@ -1,7 +1,7 @@
1
{
2
"name": "react-chart-editor",
3
"description": "plotly.js chart editor react component UI",
- "version": "0.10.2",
+ "version": "0.11.0",
"author": "Plotly, Inc.",
"bugs": {
"url": "https://github.com/plotly/react-chart-editor/issues"
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments