hotfix(canvasDirective): fixed reset grid
This commit is contained in:
@@ -12,8 +12,6 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li><b>Static Configuration</b></li>
|
<li><b>Static Configuration</b></li>
|
||||||
<li *ngIf="canvasConfig"><pre>{{canvasConfig | json}}</pre></li>
|
<li *ngIf="canvasConfig"><pre>{{canvasConfig | json}}</pre></li>
|
||||||
<li><b>Changeable Parameters</b></li>
|
|
||||||
<li><pre>{{canvasParam | json}}</pre></li>
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<label>
|
<label>
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ export class CanvasDirective implements OnChanges {
|
|||||||
private resetGrid() {
|
private resetGrid() {
|
||||||
const group = Selection.select('g#grid');
|
const group = Selection.select('g#grid');
|
||||||
|
|
||||||
if (!group.size() && this.param.showGrid) {
|
if (group.size() && this.param.showGrid) {
|
||||||
Selection.selectAll('g#grid').remove();
|
Selection.selectAll('g#grid').remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user