Browse Source

设置图例显示隐藏

zhuzhou
徐振升 4 years ago
parent
commit
34177788a2
  1. 9
      src/app/working-area/working-area.component.ts

9
src/app/working-area/working-area.component.ts

@ -1490,6 +1490,15 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
shape.hideBorder();
shape.setPointVisiable(false);
}
////////////////////////////////////////////////////////////////////////////////////////////////图例
/**
*
* @param b true false隐藏
*/
public setLegendVisible(b: boolean): void {
const legend = this.backgroundImage.getChildByName('图例') as AxLegend;
legend.visible = b;
}
}
enum CanvasAction {
selectionChanged = 'selectionChanged',

Loading…
Cancel
Save