Commit f86d1bab authored by limingzhe's avatar limingzhe

fix: debug

parent e4088136
...@@ -1121,8 +1121,8 @@ cc.Class({ ...@@ -1121,8 +1121,8 @@ cc.Class({
const tempR = scaleRate * (checkLetter.unitY * unitH); const tempR = scaleRate * (checkLetter.unitY * unitH);
const newR = r - tempR; const newR = r - tempR;
const newW = w - tempR; let newW = w - tempR;
const newH = h - tempR; let newH = h - tempR;
const rate = newR / r; const rate = newR / r;
...@@ -1135,8 +1135,18 @@ cc.Class({ ...@@ -1135,8 +1135,18 @@ cc.Class({
x = x + tempX * (1-rate); x = x + tempX * (1-rate);
// const dot = this.getColorDot(x, -y, newR, newR);
const newScale = 1.4;
const edgeOff = (newScale - 1) / 2;
x -= edgeOff * newW;
y -= edgeOff * newH;
newW *= newScale;
newH *= newScale;
const dot = this.getColorDot(x, -y, newW, newH); const dot = this.getColorDot(x, -y, newW, newH);
// const dot = this.getColorDot(x, -y, newR, newR);
this.debugDrawLayer.addChild(dot, 5); this.debugDrawLayer.addChild(dot, 5);
dot.key = centerItemArr[i].index + 1; dot.key = centerItemArr[i].index + 1;
......
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