mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 14:48:08 +02:00
[Editor] Improve curve smoothing for Ink tool (bug 1789443)
- Remove the dependency on fit-curve; - Improve the way to draw the current line in using a Path2D and in clearing only the last part of the curve instead of clearing all the canvas; - Smooth the curve when drawing to avoid to have some changes after the drawing ends; - Make the smoothing a bit less agressive.
This commit is contained in:
parent
094fb3c783
commit
d2b4ed3cea
10 changed files with 225 additions and 216 deletions
|
@ -25,7 +25,6 @@
|
|||
"eslint-plugin-prettier": "^4.2.1",
|
||||
"eslint-plugin-sort-exports": "^0.8.0",
|
||||
"eslint-plugin-unicorn": "^47.0.0",
|
||||
"fit-curve": "^0.2.0",
|
||||
"globals": "^13.20.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-postcss": "^9.0.1",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue