Commit 3ef49e6b authored by xinzhedeai's avatar xinzhedeai

add:警戒线溢出显示优化处理10->20

parent 4a4fea58
...@@ -1036,7 +1036,7 @@ export default { ...@@ -1036,7 +1036,7 @@ export default {
color: "#8b8b8b" color: "#8b8b8b"
}); });
// 新增:生成10个采样点并添加到边坡线数组(平坡) // 新增:生成10个采样点并添加到边坡线数组(平坡)
const stepPoints1 = this.getSampledPoints(cumulationX, cumulationY, fEndX, cumulationY, 10); const stepPoints1 = this.getSampledPoints(cumulationX, cumulationY, fEndX, cumulationY, 20);
this.bianpoLinePoinArr.push(...stepPoints1); this.bianpoLinePoinArr.push(...stepPoints1);
this.drawLiner({ this.drawLiner({
...@@ -1050,7 +1050,7 @@ export default { ...@@ -1050,7 +1050,7 @@ export default {
// 新增:生成10个采样点并添加到边坡线数组(平坡间过渡连接线) // 新增:生成10个采样点并添加到边坡线数组(平坡间过渡连接线)
const stepPoints2 = this.getSampledPoints(fEndX, cumulationY, lEndX, lEndY, 10); const stepPoints2 = this.getSampledPoints(fEndX, cumulationY, lEndX, lEndY, 20);
this.bianpoLinePoinArr.push(...stepPoints2); this.bianpoLinePoinArr.push(...stepPoints2);
this.Cache.ladders[i] = { this.Cache.ladders[i] = {
...@@ -1077,7 +1077,7 @@ export default { ...@@ -1077,7 +1077,7 @@ export default {
// 新增:生成10个采样点并添加到边坡线数组(最后平坡收尾线) // 新增:生成10个采样点并添加到边坡线数组(最后平坡收尾线)
const stepPoints3 = this.getSampledPoints(cumulationX, cumulationY, damLength, damDepth, 10); const stepPoints3 = this.getSampledPoints(cumulationX, cumulationY, damLength, damDepth, 20);
this.bianpoLinePoinArr.push(...stepPoints3); this.bianpoLinePoinArr.push(...stepPoints3);
console.log('bianpoLinePoinArr', JSON.stringify(this.bianpoLinePoinArr)) console.log('bianpoLinePoinArr', JSON.stringify(this.bianpoLinePoinArr))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment