Comments (2)
For long pencil strokes deleting the entire object is usually a bit too much.
Boils down to what is already mentioned in the eraser.js //TODO: add the ability to erase only some points in a line
.
Thoughts:
- Add function to boolean-subtract a shape from the drawing (there must be many libraries, e.g. https://github.com/w8r/GreinerHormann, or https://sourceforge.net/p/jsclipper/wiki/Home%206/)
- Add rectangle-eraser: click to mark corner of rectangle, drag to diagonal corner, upon release clip the drawing against rectangle
- Add a pen-like eraser:
- option1: At every position, clip drawing against a circle-like polygon around cursor position
- option2 (optimized): Tool draws a white shape to give user feedback; upon release, the shape is used to clip the drawing
Potential issues:
- performance: clipping a large drawing might require good algorithms (partitioning)
- cutting a line into segments will not look nice for thick lines because the end points have no information about at what angle the line was cut. (Draw line as polygon?)
from whitebophir.
Yes, these are good ideas. But all of them require a significant refactoring of the existing code. There is currently no spacial index of the shapes.
from whitebophir.
Related Issues (20)
- Keyboard Shortcuts HOT 2
- How delete a board? HOT 1
- Note: There is now a Sandstorm package for this app! HOT 4
- Linting and Formatting HOT 5
- Formatting and Add formatting to CI workflow HOT 3
- Implement ESLint to the project and resolve the ESLint errors HOT 13
- Docker WBO KO sur Synology HOT 8
- Run on Public IP Address HOT 1
- Pen/tablet pressure support
- The whiteboard is freezing sometimes if selected items
- After moving the screen, writing renders incorrect.
- From a certain size, the whiteboard becomes too slow to handle. HOT 1
- Is there a way to disable the public board? HOT 2
- Board "pages" HOT 1
- Adding option for default color HOT 1
- Set default tool as ENV or URL-parameter HOT 1
- Shortcut for changing the size of the line is ambiguous. HOT 1
- Impossible to write with the pencil tool inside a partly deleted ellipsis with "Chrome"
- Printing differences among browsers
- Whiteboard is not always synchronized.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whitebophir.