From f6eeda595eed9934864bf580f6287cf65c8ee690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Farzat?= Date: Sat, 31 Aug 2019 20:02:59 -0300 Subject: [PATCH 1/2] Adding plotly_relayouting event --- README.md | 1 + src/app/shared/plot/plot.component.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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, From a67d64dfac8e607f69e5afe6c90334610caea994 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Farzat?= Date: Sat, 31 Aug 2019 20:14:15 -0300 Subject: [PATCH 2/2] 1.4.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1ff8541..1d3d8d7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "angular-plotly.js", - "version": "1.4.0", + "version": "1.4.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 631bc5d..abaa9c2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "angular-plotly.js", - "version": "1.4.0", + "version": "1.4.1", "license": "MIT", "main": "index.ts", "scripts": {