Skip to content

Commit

Permalink
Adding plotly_relayouting event
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefarzat committed Aug 31, 2019
1 parent 62c9d65 commit f6eeda5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/app/shared/plot/plot.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f6eeda5

Please sign in to comment.