|
@@ -389,7 +389,7 @@ const moveNumerCircePositon=()=>{
|
|
|
}
|
|
|
//圆圈未知的设置
|
|
|
// numnerValue
|
|
|
-const circelSet = (endDom, numnerValue, posit, keys, startDom, keyMiddle, mark) => {
|
|
|
+const circelSet = (colors, numnerValue, posit, keys, startDom, keyMiddle, mark) => {
|
|
|
let elmButton = document.getElementById('wrapper').appendChild(document.createElement("div"));
|
|
|
// 阻止点击事件冒泡
|
|
|
elmButton.addEventListener("click", async (event) => {
|
|
@@ -444,7 +444,7 @@ const circelSet = (endDom, numnerValue, posit, keys, startDom, keyMiddle, mark)
|
|
|
elmButton.style.textAlign = "center";
|
|
|
elmButton.style.height = "20px";
|
|
|
elmButton.style.borderRadius = "10px";
|
|
|
- elmButton.style.background = "#255CE7";
|
|
|
+ elmButton.style.background = colors;
|
|
|
elmButton.style.position = "absolute";
|
|
|
};
|
|
|
const done = (emits) => {
|
|
@@ -483,7 +483,7 @@ const setLeaderline2 = () => {
|
|
|
endSocket: "left",
|
|
|
}
|
|
|
);
|
|
|
- circelSet(endDom, options, "left", key);
|
|
|
+ circelSet("red", options, "left", key);
|
|
|
} else {
|
|
|
line = new LeaderLine(
|
|
|
endDom,
|
|
@@ -500,7 +500,7 @@ const setLeaderline2 = () => {
|
|
|
// }),
|
|
|
}
|
|
|
);
|
|
|
- circelSet(endDom, options, "left", key);
|
|
|
+ circelSet("#255CE7", options, "left", key);
|
|
|
}
|
|
|
leaderLines2.value.push(line);
|
|
|
}
|
|
@@ -526,7 +526,7 @@ const setLeaderline2 = () => {
|
|
|
// middleLabel: LeaderLine.captionLabel(options),
|
|
|
}
|
|
|
);
|
|
|
- circelSet(endDom, options, "right", key);
|
|
|
+ circelSet("red", options, "right", key);
|
|
|
} else {
|
|
|
line = new LeaderLine(
|
|
|
LeaderLine.pointAnchor(startDom, { x: "100%", y: rectEnd.top - 232 }),
|
|
@@ -542,7 +542,7 @@ const setLeaderline2 = () => {
|
|
|
// middleLabel: LeaderLine.captionLabel(options),
|
|
|
}
|
|
|
);
|
|
|
- circelSet(endDom, options, "right", key);
|
|
|
+ circelSet("#255CE7", options, "right", key);
|
|
|
}
|
|
|
leaderLines2.value.push(line);
|
|
|
}
|
|
@@ -574,7 +574,7 @@ const setLeaderline2 = () => {
|
|
|
LeaderLine.positionByWindowResize = false;
|
|
|
line = new LeaderLine(endDom, startDom, lineStyle);
|
|
|
circelSet(
|
|
|
- endDom,
|
|
|
+ "#51637F",
|
|
|
options2,
|
|
|
"leftMiddle",
|
|
|
key2,
|
|
@@ -613,7 +613,7 @@ const setLeaderline2 = () => {
|
|
|
LeaderLine.positionByWindowResize = false;
|
|
|
line2 = new LeaderLine(startDom, endDom, lineStyle2);
|
|
|
circelSet(
|
|
|
- endDom,
|
|
|
+ "#51637F",
|
|
|
options3,
|
|
|
"rightMiddle",
|
|
|
key2,
|