[ADF-865] codelyzer diagrams and analytics (#2072)

* fix codelyzer diagrams and analytics

* fix test
This commit is contained in:
Eugenio Romano
2017-07-11 16:20:03 +01:00
committed by Eugenio Romano
parent 3b3adbb8ba
commit 26841a782d
88 changed files with 331 additions and 192 deletions

View File

@@ -15,12 +15,12 @@
* limitations under the License.
*/
import { Injectable } from '@angular/core';
import { Injectable , OnDestroy} from '@angular/core';
declare let Raphael: any;
@Injectable()
export class RaphaelService {
export class RaphaelService implements OnDestroy {
paper: any;
width: number = 300;
@@ -53,7 +53,7 @@ export class RaphaelService {
return paper;
}
private ngOnDestroy(): any {
public ngOnDestroy(): any {
if (this.paper) {
this.paper.clear();
this.paper = void 0;