|
@@ -126,6 +126,7 @@ export class EditScence extends SGraphScene {
|
|
|
Pos: { X: 0, Y: 0 },
|
|
|
|
|
|
Properties: {
|
|
|
+ IconUrl: require("../../assets/images/t-line-hover.png"),
|
|
|
Line: [{ X: event.x, Y: event.y }]
|
|
|
}
|
|
|
}
|
|
@@ -167,14 +168,11 @@ export class EditScence extends SGraphScene {
|
|
|
const LegendData: Relation = {
|
|
|
ID: uuid(),
|
|
|
Name: this._legend.Name,
|
|
|
- GraphElementType: this._legend.Type,
|
|
|
- Num: 1,
|
|
|
GraphElementId: this._legend.Id,
|
|
|
- AttachObjectIds: [],
|
|
|
- Type: "Line",
|
|
|
PointList: [{ X: event.x, Y: event.y }],
|
|
|
- LineType: 0,
|
|
|
+ LineType: "Line",
|
|
|
Properties: {
|
|
|
+ IconUrl: '/serve/topology-wanda/Picture/query/' + this._legend.Url,
|
|
|
LineDash: this._legend.LineDash,
|
|
|
LineWidth: this._legend.LineWidth,
|
|
|
Color: this._legend.Color,
|
|
@@ -199,7 +197,6 @@ export class EditScence extends SGraphScene {
|
|
|
* 增加多边形item lenged
|
|
|
*/
|
|
|
addPolygonItem(event: SMouseEvent): void {
|
|
|
-
|
|
|
const SubType = this._legend.SubType ? this._legend.SubType : ''
|
|
|
const LegendData: Legend = {
|
|
|
ID: uuid(),
|
|
@@ -213,6 +210,7 @@ export class EditScence extends SGraphScene {
|
|
|
OutLine: [{ X: event.x, Y: event.y }],
|
|
|
SubType: SubType,
|
|
|
Properties: {
|
|
|
+ IconUrl: '/serve/topology-wanda/Picture/query/' + this._legend.Url,
|
|
|
StrokeColor: this._legend.Color,
|
|
|
FillColor: this._legend.FillColor,
|
|
|
LineDash: this._legend.LineDash,
|
|
@@ -258,6 +256,7 @@ export class EditScence extends SGraphScene {
|
|
|
Pos: { X: event.x, Y: event.y },
|
|
|
|
|
|
Properties: {
|
|
|
+ IconUrl: require(`../../assets/images/t-img-hover.png`),
|
|
|
Url: '',
|
|
|
}
|
|
|
}
|
|
@@ -287,6 +286,7 @@ export class EditScence extends SGraphScene {
|
|
|
Pos: { X: event.x, Y: event.y },
|
|
|
|
|
|
Properties: {
|
|
|
+ IconUrl: require(`../../assets/images/t-text-hover.png`),
|
|
|
Text: '请在右侧属性栏输入文字!',
|
|
|
Color: '',
|
|
|
Font: 0,
|
|
@@ -320,6 +320,7 @@ export class EditScence extends SGraphScene {
|
|
|
Rolate: { X: 0, Y: 0, Z: 0 },
|
|
|
Size: { Width: 0, Height: 0 },
|
|
|
Properties: {
|
|
|
+ IconUrl: '/serve/topology-wanda/Picture/query/' + this._legend.Url,
|
|
|
Url: '/serve/topology-wanda/Picture/query/' + this._legend.Url,
|
|
|
Num: 1,
|
|
|
sWidth: 0,
|