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>
|
<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