diff --git a/README.md b/README.md index 7a6b017..0617b46 100644 --- a/README.md +++ b/README.md @@ -162,6 +162,7 @@ Event handlers for specific [`plotly.js` events](https://plot.ly/javascript/plot | `(transitioning)` | `Function` | `plotly_transitioning` | | `(transitionInterrupted)` | `Function` | `plotly_transitioninterrupted` | | `(unhover)` | `Function` | `plotly_unhover` | +| `(relayouting)` | `Function` | `plotly_relayouting` | ## Customizing the `plotly.js` bundle diff --git a/src/app/shared/plot/plot.component.ts b/src/app/shared/plot/plot.component.ts index 25391b6..a53af87 100644 --- a/src/app/shared/plot/plot.component.ts +++ b/src/app/shared/plot/plot.component.ts @@ -81,11 +81,12 @@ export class PlotComponent implements OnInit, OnChanges, OnDestroy, DoCheck { @Output() transitioning = new EventEmitter(); @Output() transitionInterrupted = new EventEmitter(); @Output() unhover = new EventEmitter(); + @Output() relayouting = new EventEmitter(); public eventNames = ['afterExport', 'afterPlot', 'animated', 'animatingFrame', 'animationInterrupted', 'autoSize', 'beforeExport', 'buttonClicked', 'click', 'clickAnnotation', 'deselect', 'doubleClick', 'framework', 'hover', 'legendClick', 'legendDoubleClick', 'relayout', 'restyle', 'redraw', 'selected', 'selecting', 'sliderChange', - 'sliderEnd', 'sliderStart', 'transitioning', 'transitionInterrupted', 'unhover']; + 'sliderEnd', 'sliderStart', 'transitioning', 'transitionInterrupted', 'unhover', 'relayouting']; constructor( public plotly: PlotlyService,