Comments (4)
I'll be the first to admit the the UX for these features is clunky.
When you create a box or a line, the cursor that is placed on the screen is not the exactly the same as the one you get when clicking an arbitrary location. The text typed there is actually a child of the box or line. This allows the container to grow as needed when the text content grows.
An unfortunate artifact of this is that using the arrow keys or PgUp/PgDown to adjust styles will only impact the outer container. There is not a way to adjust the styles of the text attached to a line or box.
A possible workaround is:
- Create a line
- Create text somewhere else with the style you want
- Move it into position over the line
At some point in the future, I'd like to add a few more features to this application. I honestly didn't envision text styles being very useful initially, but I wanted them included in the data format so that I could eventually make it easy to add large emojis to diagrams to create things like this.
from box-line-text.
No it's ok it works quite well actually when you just position the cursor in a free space and use the arrow.
from box-line-text.
from box-line-text.
Great! I'm glad that it is working well for you.
from box-line-text.
Related Issues (11)
- Auto-alignement helper HOT 1
- Add MacOS mode using Cmd instead of Ctrl
- Delete or backspace in an empty element should delete it
- Hand drawn effects HOT 3
- Persist data HOT 8
- Normalize text content across browsers
- Drag and drop HOT 7
- Adjust box height to text content HOT 4
- Add line-break at Enter key press in Box? HOT 5
- Text superposition HOT 2
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 box-line-text.