Skip to content

Commit 1ee2eed

Browse files
committed
🐛 修复涂鸦画直线重新打开文件后消失的问题
1 parent 2558355 commit 1ee2eed

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

app/src/assets/projectGraphTips.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@
757757
},
758758
{
759759
"location": [1609, -1159],
760-
"size": [775, 513],
760+
"size": [784, 513],
761761
"uuid": "8e0f17f9-09a3-4328-9eb9-e35bd7cae71e",
762762
"text": "质点/折线",
763763
"color": [0, 0, 0, 0],
@@ -1318,7 +1318,7 @@
13181318
},
13191319
{
13201320
"location": [2916, 2931],
1321-
"size": [54.879974365234375, 76],
1321+
"size": [65.53125, 76],
13221322
"text": "11",
13231323
"uuid": "cb21f7f3-c12b-4c8f-b8c1-c23fc645a070",
13241324
"details": "",
@@ -1327,7 +1327,7 @@
13271327
},
13281328
{
13291329
"location": [2771, 2757],
1330-
"size": [229.87997436523438, 280],
1330+
"size": [240.53125, 280],
13311331
"uuid": "56b6efc9-7ea0-47ab-93be-c265f57b3945",
13321332
"text": "Section_6",
13331333
"color": [0, 0, 0, 0],
@@ -1639,7 +1639,7 @@
16391639
},
16401640
{
16411641
"location": [3420, -643],
1642-
"size": [65.53125, 76],
1642+
"size": [60.67198181152344, 76],
16431643
"text": "14",
16441644
"uuid": "24634376-56f5-4a39-a880-34938236a9a1",
16451645
"details": "",
@@ -2244,7 +2244,7 @@
22442244
},
22452245
{
22462246
"location": [2916, 2192],
2247-
"size": [54.879974365234375, 76],
2247+
"size": [65.53125, 76],
22482248
"text": "11",
22492249
"uuid": "28c8267a-b186-411e-8ab1-03839a11c6ab",
22502250
"details": "",
@@ -3256,8 +3256,8 @@
32563256
"details": ""
32573257
},
32583258
{
3259-
"location": [7789, -1032],
3260-
"size": [330, 509],
3259+
"location": [7797, -1032],
3260+
"size": [322, 518],
32613261
"uuid": "6a08d73c-7084-4296-b89c-60ecb31933c1",
32623262
"text": "连线颜色含义",
32633263
"color": [0, 0, 0, 0],

app/src/core/service/controlService/controller/concrete/ControllerPenStrokeDrawing.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class ControllerDrawingClass extends ControllerClass {
105105
const strokeStringList: string[] = [
106106
`${Math.round(startLocation.x)},${Math.round(startLocation.y)},${this.currentStrokeWidth}`,
107107
`${Math.round(endLocation.x)},${Math.round(endLocation.y)},${this.currentStrokeWidth}`,
108+
`${Math.round(endLocation.x)},${Math.round(endLocation.y)},${this.currentStrokeWidth}`,
108109
];
109110
const contentString = strokeStringList.join("~");
110111
const stroke = new PenStroke({

0 commit comments

Comments
 (0)