-
Notifications
You must be signed in to change notification settings - Fork 507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix Ellipse Circle Rectangle edit bug fix #1160 #1162 #1161
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1161 +/- ##
==========================================
+ Coverage 87.65% 87.67% +0.01%
==========================================
Files 149 149
Lines 14189 14188 -1
==========================================
+ Hits 12438 12439 +1
+ Misses 1751 1749 -2
Continue to review full report at Codecov.
|
const center = geometryToEdit.getCenter(); | ||
const mouseCoordinate = map.viewPointToCoordinate(targetPoint); | ||
let wline = new LineString([[center.x, center.y], [mouseCoordinate.x, center.y]]); | ||
let hline = new LineString([[center.x, center.y], [center.x, mouseCoordinate.y]]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const hline
改为 let hline
是什么原因? 还能省略掉下面的 wline = hline = null
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
主要怕其不会自动销毁,怕占用内存
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
噢,这个不用担心,还是改回const吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
No description provided.