|
@@ -203,12 +203,15 @@ export class EditScence extends SGraphScene {
|
|
|
AttachObjectIds: [],
|
|
|
Type: "Zone",
|
|
|
Pos: { X: event.x, Y: event.y },
|
|
|
- OutLine:[{X:event.x, Y:event.y}],
|
|
|
+ OutLine: [{ X: event.x, Y: event.y }],
|
|
|
Properties: {
|
|
|
StrokeColor: this._legend.Color,
|
|
|
FillColor: this._legend.FillColor,
|
|
|
LineDash: this._legend.LineDash,
|
|
|
LineWidth: this._legend.LineWidth,
|
|
|
+ font:0,
|
|
|
+ color:'',
|
|
|
+ TextPos:{X:0,Y:0}
|
|
|
},
|
|
|
}
|
|
|
|
|
@@ -305,6 +308,10 @@ export class EditScence extends SGraphScene {
|
|
|
Properties: {
|
|
|
Url: '/serve/topology-wanda/Picture/query/' + this._legend.Url,
|
|
|
Num: 1, // 此num与信息工程化得num无关
|
|
|
+ sWidth:0, //icon 的宽
|
|
|
+ sHeight:0, //icon 的高
|
|
|
+ font:0, //font
|
|
|
+ color:'' //字体颜色
|
|
|
},
|
|
|
}
|
|
|
const item = new SImageLegendItem(null, LegendData);
|
|
@@ -398,7 +405,11 @@ export class EditScence extends SGraphScene {
|
|
|
updatedWidth(width: number): void {
|
|
|
if (this.focusItem) {
|
|
|
// let old = this.focusItem.width;
|
|
|
- this.focusItem.width = width;
|
|
|
+ if (this.focusItem.data && this.focusItem.data.GraphElementType && this.focusItem.data.GraphElementType == "Image") {
|
|
|
+ this.focusItem.sWidth = width;
|
|
|
+ } else {
|
|
|
+ this.focusItem.width = width;
|
|
|
+ }
|
|
|
// this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "color", old, color));
|
|
|
}
|
|
|
}
|
|
@@ -408,9 +419,14 @@ export class EditScence extends SGraphScene {
|
|
|
* @param height number 颜色
|
|
|
*/
|
|
|
updatedHeight(height: number): void {
|
|
|
+
|
|
|
if (this.focusItem) {
|
|
|
// let old = this.focusItem.width;
|
|
|
- this.focusItem.height = height;
|
|
|
+ if (this.focusItem.data && this.focusItem.data.GraphElementType && this.focusItem.data.GraphElementType == "Image") {
|
|
|
+ this.focusItem.sHeight = height;
|
|
|
+ } else {
|
|
|
+ this.focusItem.height = height;
|
|
|
+ }
|
|
|
// this.undoStack.push(new SGraphPropertyCommand(this, this.focusItem, "color", old, color));
|
|
|
}
|
|
|
}
|
|
@@ -475,7 +491,7 @@ export class EditScence extends SGraphScene {
|
|
|
*/
|
|
|
upadataLengedName(val: string): void {
|
|
|
if (this.focusItem && this.focusItem.data) {
|
|
|
- this.focusItem.text= val
|
|
|
+ this.focusItem.text = val
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -485,7 +501,7 @@ export class EditScence extends SGraphScene {
|
|
|
*/
|
|
|
upadatImageNum(num: number): void {
|
|
|
if (this.focusItem && this.focusItem.num) {
|
|
|
- this.focusItem.num= num
|
|
|
+ this.focusItem.num = num
|
|
|
}
|
|
|
}
|
|
|
/**
|
|
@@ -553,7 +569,6 @@ export class EditScence extends SGraphScene {
|
|
|
this.Relations.forEach(e => {
|
|
|
Relations.push(e.toData())
|
|
|
});
|
|
|
-
|
|
|
let element = {
|
|
|
Nodes, Markers, Relations
|
|
|
}
|