|
@@ -643,6 +643,7 @@
|
|
// this.view.canvasView.addEventListener("click", this.checkSpace);
|
|
// this.view.canvasView.addEventListener("click", this.checkSpace);
|
|
//这里说是点击事件`
|
|
//这里说是点击事件`
|
|
this.getGraphy();
|
|
this.getGraphy();
|
|
|
|
+ console.log(data)
|
|
},
|
|
},
|
|
/** canvas事件------------------------------------------------------------------------------------*/
|
|
/** canvas事件------------------------------------------------------------------------------------*/
|
|
//点击元空间
|
|
//点击元空间
|
|
@@ -752,7 +753,7 @@
|
|
isBusinessToColor(item){
|
|
isBusinessToColor(item){
|
|
if (item.isBusiness == 1) {
|
|
if (item.isBusiness == 1) {
|
|
item.color = item.cacheColor || new SColor('#000');
|
|
item.color = item.cacheColor || new SColor('#000');
|
|
- item.fillColor = new SColor('#000');
|
|
|
|
|
|
+ item.fillColor = new SColor('#F2F6FC');
|
|
item.width = item.cacheWidth;
|
|
item.width = item.cacheWidth;
|
|
} else if (item.isBusiness == 2) {
|
|
} else if (item.isBusiness == 2) {
|
|
//已有id 的业务空间
|
|
//已有id 的业务空间
|
|
@@ -773,8 +774,9 @@
|
|
item.fillColor = new SColor(11,12,12,.2) || new SColor('#F2F6FC')
|
|
item.fillColor = new SColor(11,12,12,.2) || new SColor('#F2F6FC')
|
|
} else if (item.isBusiness == 6) {
|
|
} else if (item.isBusiness == 6) {
|
|
item.color = new SColor(68,161,140,.4) || new SColor('#000');
|
|
item.color = new SColor(68,161,140,.4) || new SColor('#000');
|
|
- // item.width = 800;
|
|
|
|
- item.fillColor =new SColor('#1abc9c');
|
|
|
|
|
|
+ item.width = item.cacheWidth;
|
|
|
|
+ item.fillColor =new SColor('#1abc9c');
|
|
|
|
+ console.log('click item isbusiness',item)
|
|
} else if (item.isBusiness == 7) {
|
|
} else if (item.isBusiness == 7) {
|
|
item.width = item.cacheWidth;
|
|
item.width = item.cacheWidth;
|
|
item.color = item.cacheColor || new SColor('#000');
|
|
item.color = item.cacheColor || new SColor('#000');
|