update
parent
d382501003
commit
a84c96f9dd
Binary file not shown.
Before Width: | Height: | Size: 587 KiB After Width: | Height: | Size: 282 KiB |
File diff suppressed because one or more lines are too long
|
@ -1765,8 +1765,8 @@ let handleAnimate = async (result: any) => {
|
||||||
let data = Lineitem
|
let data = Lineitem
|
||||||
let x = (Number(polyineArray[polyineArray.length - 1][0]) + Number(polyineArray[0][0])) / 2
|
let x = (Number(polyineArray[polyineArray.length - 1][0]) + Number(polyineArray[0][0])) / 2
|
||||||
let y = (Number(polyineArray[polyineArray.length - 1][1]) + Number(polyineArray[0][1])) / 2
|
let y = (Number(polyineArray[polyineArray.length - 1][1]) + Number(polyineArray[0][1])) / 2
|
||||||
let line = ''
|
let line
|
||||||
let text = ''
|
let text
|
||||||
//只要线路上有sec_id 就显示线路上的文字 p q v i 参数
|
//只要线路上有sec_id 就显示线路上的文字 p q v i 参数
|
||||||
if (data['sec_id']) {
|
if (data['sec_id']) {
|
||||||
// 引出线
|
// 引出线
|
||||||
|
@ -1787,10 +1787,12 @@ let handleAnimate = async (result: any) => {
|
||||||
y: y + 5,
|
y: y + 5,
|
||||||
id: 'load_text' + data.psrId,
|
id: 'load_text' + data.psrId,
|
||||||
'font-size': '1',
|
'font-size': '1',
|
||||||
leading: '0.1',
|
|
||||||
})
|
})
|
||||||
.fill('green')
|
.fill('green')
|
||||||
console.log(text, 'texttexttext')
|
text.node.children[0].setAttribute('dy', '1')
|
||||||
|
text.node.children[1].setAttribute('dy', '1')
|
||||||
|
text.node.children[2].setAttribute('dy', '1')
|
||||||
|
text.node.children[3].setAttribute('dy', '1')
|
||||||
}
|
}
|
||||||
|
|
||||||
lineDom.add(line)
|
lineDom.add(line)
|
||||||
|
@ -2766,7 +2768,8 @@ const styleVar = computed(() => {
|
||||||
// background: url("@/assets/images/osPage/xixiaozhantp.png") no-repeat;
|
// background: url("@/assets/images/osPage/xixiaozhantp.png") no-repeat;
|
||||||
// background: url("@/assets/images/osPage/xuetp.png") no-repeat;
|
// background: url("@/assets/images/osPage/xuetp.png") no-repeat;
|
||||||
background: url('@/assets/images/osPage/svgB.png') no-repeat;
|
background: url('@/assets/images/osPage/svgB.png') no-repeat;
|
||||||
background-size: 100% 100%;
|
background-size: 80% 100%;
|
||||||
|
background-position-x: 50%;
|
||||||
// background-image: url(".png");
|
// background-image: url(".png");
|
||||||
}
|
}
|
||||||
.box {
|
.box {
|
||||||
|
|
Loading…
Reference in New Issue