|
|
|
@ -417,9 +417,10 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
|
|
this.getAllLibrary() |
|
|
|
|
this.getSitePlan() |
|
|
|
|
this.getAllBuildings() |
|
|
|
|
|
|
|
|
|
this.getSitePlan() |
|
|
|
|
|
|
|
|
|
let that = this |
|
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
document.getElementById("functionalDomainContent").oncontextmenu = function (event) { |
|
|
|
@ -430,7 +431,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngAfterViewInit(): void { |
|
|
|
|
// 监听canvas组件选中素材事件
|
|
|
|
@ -945,7 +946,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
let dadHeight = document.querySelector('.functionalDomainContent').clientHeight |
|
|
|
|
let left = document.querySelector('.functionalDomainLeft').clientWidth |
|
|
|
|
let right = document.querySelector('.functionalDomainRight').clientWidth |
|
|
|
|
let imgWidth = dad - left - right//可是区域内 宽度
|
|
|
|
|
let imgWidth = dad - left - right//可视区域内 宽度
|
|
|
|
|
let img = new Image() |
|
|
|
|
img.src = this.selectingSitePlan.imageUrl;
|
|
|
|
|
img.onload = function(){ |
|
|
|
|