hotfix(canvasDirective): fixed reset grid
This commit is contained in:
1 parent
d12353813e
commit
8bb9029779
2 files changed
+1
-3
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user