Skip to content
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

Merged
merged 5 commits into from
Jul 14, 2020

Conversation

deyihu
Copy link
Collaborator

@deyihu deyihu commented Jul 13, 2020

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jul 13, 2020

Codecov Report

Merging #1161 into master will increase coverage by 0.01%.
The diff coverage is 92.30%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
src/geometry/editor/GeometryEditor.js 92.73% <91.66%> (+0.18%) ⬆️
src/geometry/Path.js 92.42% <100.00%> (-0.04%) ⬇️
...enderer/layer/tilelayer/TileLayerCanvasRenderer.js 87.32% <0.00%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c647ad2...c13b14b. Read the comment docs.

@deyihu deyihu changed the title fix geometry.getOutline error fix #1160 fix Ellipse Circle Rectangle edit bug fix #1160 #1162 Jul 14, 2020
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]]);
Copy link
Member

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

主要怕其不会自动销毁,怕占用内存

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

噢,这个不用担心,还是改回const吧

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@fuzhenn fuzhenn merged commit fa62135 into maptalks:master Jul 14, 2020
@deyihu deyihu deleted the issue1160 branch May 26, 2021 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants