diff --git a/src/ibp/shape/key.js b/src/ibp/shape/key.js index 23b83dea3..a06eda6aa 100644 --- a/src/ibp/shape/key.js +++ b/src/ibp/shape/key.js @@ -52,9 +52,9 @@ export default class key extends Group { z: model.z, shape: { x1: model.width+2, - y1: 10, + y1: model.width/361*336/2, x2: model.width+12, - y2: 10 + y2: model.width/361*336/2 }, style: { lineWidth: 3, @@ -67,9 +67,9 @@ export default class key extends Group { draggable: false, shape: { y1: model.width/361*336+2, - x1: 10, + x1: model.width/2, y2: model.width/361*336+12, - x2: 10 + x2: model.width/2 }, style: { lineWidth: 3, @@ -81,7 +81,7 @@ export default class key extends Group { zlevel: model.zlevel, z: model.z, style: { - x: 10, + x: model.width/2, y: model.width/361*336+12, fontWeight: 600, fontSize: 10, @@ -100,7 +100,7 @@ export default class key extends Group { z: model.z, style: { x: model.width+14, - y: 5, + y: model.width/361*336/2-4, fontWeight: 600, fontSize: 10, fontFamily: model.fontFamily,