Browse Source

update(brush): add offset value

RoyLiu 4 years ago
parent
commit
3f29879b58
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/Ink/index.tsx

+ 2 - 2
components/Ink/index.tsx

@@ -51,11 +51,11 @@ const Ink: React.FC<AnnotationElementPropsType> = ({
           let x = (ele.x + dx) * rx;
           let y = (ele.y - dy) * ry;
 
-          if (rx !== 1 || ry !== 1) {
+          if (rx !== 1) {
             x = x - disX;
           }
           if (ry !== 1) {
-            y = y - disY;
+            y = y - disY + 5;
           }
 
           return {