Skip to content

Commit

Permalink
Release v2.3.1
Browse files Browse the repository at this point in the history
Fix issue of pipe operator
  • Loading branch information
Xie, Ziyu committed Jul 24, 2018
1 parent 957a3ba commit 5f6e96a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Angular directive for echarts (version >= 3.x) (The project is renamed from **an

Latest version @npm:
+ `v3.2.0` for Angular >= 6
+ `v2.3.0` for Angular < 6
+ `v2.3.1` for Angular < 6

Github branches:
+ `master` for Angular >= 6
Expand All @@ -32,7 +32,7 @@ Github branches:
A starter project on Github: https://github.com/xieziyu/ngx-echarts-starter

# Latest Update
+ 2018.07.24: v3.2.0 & v2.3.0:
+ 2018.07.24: v3.2.0 & v2.3.1:
+ New: [autoResize] now detects its container element's offset height.
+ Change: Resizing detection is now debounced.

Expand Down
4 changes: 2 additions & 2 deletions src/lib/directive/ngx-echarts.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
import { ChangeFilter } from '../util/change-filter';
import { Subject } from 'rxjs/Subject';
import { Subscription } from 'rxjs/Subscription';
import { debounceTime } from 'rxjs/operators';
import 'rxjs/add/operator/debounceTime';

declare var echarts: any;

Expand Down Expand Up @@ -110,7 +110,7 @@ export class NgxEchartsDirective implements OnChanges, OnDestroy, DoCheck {
this._chart = this.createChart();

// subscribe to _resize$ and debounced
this._resizeSub = this._resize$.pipe(debounceTime(50)).subscribe(() => {
this._resizeSub = this._resize$.debounceTime(50).subscribe(() => {
if (this._chart) {
this._chart.resize();
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-echarts",
"version": "2.3.0",
"version": "2.3.1",
"description": "Angular directive for ECharts 3",
"repository": "https://github.com/xieziyu/ngx-echarts.git",
"author": "Xie, Ziyu <[email protected]>",
Expand Down

0 comments on commit 5f6e96a

Please sign in to comment.