2
0

hotfix(canvasDirective): fixed reset grid

This commit is contained in:
2018-05-21 01:31:44 +02:00
parent d12353813e
commit 8bb9029779
2 changed files with 1 additions and 3 deletions

View File

@@ -12,8 +12,6 @@
<ul>
<li><b>Static Configuration</b></li>
<li *ngIf="canvasConfig"><pre>{{canvasConfig | json}}</pre></li>
<li><b>Changeable Parameters</b></li>
<li><pre>{{canvasParam | json}}</pre></li>
<li>
<label>

View File

@@ -289,7 +289,7 @@ export class CanvasDirective implements OnChanges {
private resetGrid() {
const group = Selection.select('g#grid');
if (!group.size() && this.param.showGrid) {
if (group.size() && this.param.showGrid) {
Selection.selectAll('g#grid').remove();
}
}