Browse Source

[完善]修复图标放大bug

develop
邵佳豪 4 years ago
parent
commit
be858d50ae
  1. 2
      src/app/ui/collection-tools/collection-tools.component.html
  2. 8
      src/app/ui/collection-tools/collection-tools.component.ts

2
src/app/ui/collection-tools/collection-tools.component.html

@ -7,7 +7,7 @@
<span style="color: gray;margin-right: 10px;">图标大小</span>
<mat-form-field style="margin-top: 3px;">
<mat-select (ngModelChange)='iconScale()' [(ngModel)]="selected">
<mat-select (selectionChange)='iconScale()' [(ngModel)]="selected">
<mat-option value="1">正常</mat-option>
<mat-option value="2">放大2倍</mat-option>
<mat-option value="4">放大4倍</mat-option>

8
src/app/ui/collection-tools/collection-tools.component.ts

@ -43,7 +43,7 @@ export class CollectionToolsComponent implements OnInit {
'#FF6A6A','#ff0000','#ff6eb4','#00bfff','#54ff9f',
'#009688','#836fff','#ff8c00','#ee00ee','#ffa07a',
'#00C500','#00ffff','#6495ed','#ffdAb9','#AA00FF']
selected = 'option1' //图标大小选择框
selected = "1" //图标大小选择框
allBuildings //该单位所有建筑
beforeOneCheckedBuilding:any = {name:"总平面图"}; //当前点击选择的建筑
@ -160,7 +160,8 @@ export class CollectionToolsComponent implements OnInit {
//放大图标
iconScale(){
this.canvas.setIconScale(this.selected)
let number = Number(this.selected)
this.canvas.setIconScale(number)
}
//素材宽度输入框改变
assetWidthIunput(){
@ -411,9 +412,6 @@ export class CollectionToolsComponent implements OnInit {
//复制素材
copyAsset(){
this.canvas.copy()
// console.log(1,this.canvasData.originalcompanyBuildingData)
// console.log(2,this.canvasData.originaleveryStoreyData)
// console.log(3,this.selectingSitePlan.id)
}
//粘贴素材
pasteAsset(){

Loading…
Cancel
Save