Skip to content

Commit 3ff5972

Browse files
committed
Adding plotly_relayouting event
1 parent 7f2342f commit 3ff5972

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ Event handlers for specific [`plotly.js` events](https://plot.ly/javascript/plot
162162
| `(transitioning)` | `Function` | `plotly_transitioning` |
163163
| `(transitionInterrupted)` | `Function` | `plotly_transitioninterrupted` |
164164
| `(unhover)` | `Function` | `plotly_unhover` |
165+
| `(relayouting)` | `Function` | `plotly_relayouting` |
165166

166167

167168
## Customizing the `plotly.js` bundle

src/app/shared/plot/plot.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,12 @@ export class PlotComponent implements OnInit, OnChanges, OnDestroy, DoCheck {
8282
@Output() transitioning = new EventEmitter();
8383
@Output() transitionInterrupted = new EventEmitter();
8484
@Output() unhover = new EventEmitter();
85+
@Output() relayouting = new EventEmitter();
8586

8687
public eventNames = ['afterExport', 'afterPlot', 'animated', 'animatingFrame', 'animationInterrupted', 'autoSize',
8788
'beforeExport', 'buttonClicked', 'clickAnnotation', 'deselect', 'doubleClick', 'framework', 'hover',
8889
'legendClick', 'legendDoubleClick', 'relayout', 'restyle', 'redraw', 'selected', 'selecting', 'sliderChange',
89-
'sliderEnd', 'sliderStart', 'transitioning', 'transitionInterrupted', 'unhover'];
90+
'sliderEnd', 'sliderStart', 'transitioning', 'transitionInterrupted', 'unhover', 'relayouting'];
9091

9192
constructor(
9293
public plotly: PlotlyService,

0 commit comments

Comments
 (0)