【北京一号线】这个提示位置修改下,11G是那个圆弧

This commit is contained in:
fan 2022-12-16 10:23:31 +08:00
parent 66153cc09d
commit 687ffa563a
2 changed files with 16 additions and 8 deletions

View File

@ -618,12 +618,20 @@ export default class Section extends Group {
/** 计算提示位置*/
getShapeTipPoint() {
const rect = this.getBoundingRect();
const distance = this.style.Section.line.width / 2;
return {
x: rect.x + rect.width / 2,
y: rect.y + rect.height / 2.7 - distance
};
if (this.model.curve) {
const rect = this.name.getBoundingRect();
return {
x: rect.x + rect.width / 2,
y: rect.y + rect.height / 2.7
};
} else {
const rect = this.getBoundingRect();
const distance = this.style.Section.line.width / 2;
return {
x: rect.x + rect.width / 2,
y: rect.y + rect.height / 2.7 - distance
};
}
}
getBoundingRect() {

View File

@ -23,7 +23,7 @@ export function handlerUrl() {
let OSS_URL;
if (process.env.NODE_ENV === 'development') {
// 开发分支
// BASE_API = 'http://192.168.3.233/rtss-server';
BASE_API = 'http://192.168.3.233/rtss-server';
// BASE_API = 'https://joylink.club/jlcloud';
// BASE_API = 'https://test.joylink.club/jlcloud';
// BASE_API = 'http://114.116.51.125/jlcloud';
@ -31,7 +31,7 @@ export function handlerUrl() {
// BASE_API = 'http://192.168.3.94:9000'; // 旭强
// BASE_API = 'http://192.168.3.15:9000'; // 张赛
// BASE_API = 'http://192.168.3.5:9000'; // 夏增彬
BASE_API = 'http://192.168.3.37:9000'; // 卫志宏
// BASE_API = 'http://192.168.3.37:9000'; // 卫志宏
// BASE_API = 'http://b29z135112.zicp.vip';
// BASE_API = 'http://2925963m2a.zicp.vip'; // 杜康
// BASE_API = 'http://2i38984j47.qicp.vip'; // 张赛