added service to provide canvas all over
This commit is contained in:
1 parent
1231b2de9c
commit
040782f18a
7 files changed
+70
-17
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { Inject, Injectable, Optional, ViewChild } from '@angular/core';
|
||||
import * as Selection from 'd3-selection';
|
||||
|
||||
@Injectable()
|
||||
export class CanvasService {
|
||||
|
||||
public canvas: any;
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
public get get() {
|
||||
return this.canvas;
|
||||
}
|
||||
|
||||
public set(el) {
|
||||
this.canvas = el;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user