|
@@ -3,7 +3,7 @@ import { SPersagyImageEdit } from "./"
|
|
|
|
|
|
import { SGraphEdit } from "./../edit"
|
|
|
import { SMouseEvent } from "@persagy-web/base/lib";
|
|
|
-import { SGraphSelectContainer } from "@persagy-web/graph";
|
|
|
+import { SGraphSelectContainer, SLineStyle } from "@persagy-web/graph";
|
|
|
import { SItemStatus } from "@persagy-web/big/lib/enums/SItemStatus";
|
|
|
import { uuid, rgbaNum } from "./../big-edit/until";
|
|
|
|
|
@@ -372,13 +372,17 @@ export class PTopoScene extends SBaseEditScene {
|
|
|
let styleValue: any
|
|
|
if (styleType == "strokeColor") {
|
|
|
const colorlist = rgbaNum(changeStyle)
|
|
|
- styleValue = new SColor(Number(colorlist[0]), Number(colorlist[1]), Number(colorlist[2]), Number(colorlist[3]));
|
|
|
+ styleValue = new SColor(Number(colorlist[0]), Number(colorlist[1]), Number(colorlist[2]), colorlist[3] * 255);
|
|
|
+ } else if (styleType == "lineStyle") {
|
|
|
+ styleValue = SLineStyle[changeStyle]
|
|
|
+ } else {
|
|
|
+ styleValue = changeStyle
|
|
|
}
|
|
|
List.forEach((item: SGraphEdit, index: number) => {
|
|
|
if (item instanceof SGraphSelectContainer) {
|
|
|
return
|
|
|
}
|
|
|
- item[styleType] = styleValue
|
|
|
+ item[styleType] = styleValue;
|
|
|
})
|
|
|
|
|
|
}
|
|
@@ -428,6 +432,7 @@ export class PTopoScene extends SBaseEditScene {
|
|
|
console.log('this.root.children', this.root.children)
|
|
|
this.root.children.forEach(item => {
|
|
|
if (!(item instanceof SGraphSelectContainer) && MarkType.includes(item.data.Properties.Type)) {
|
|
|
+ console.log('item.toData()', item.toData())
|
|
|
Markers.push(item.toData())
|
|
|
}
|
|
|
});
|