Giter Club home page Giter Club logo

Comments (4)

jncraton avatar jncraton commented on May 30, 2024

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:

  1. Create a line
  2. Create text somewhere else with the style you want
  3. 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.

NicolasUmiastowski avatar NicolasUmiastowski commented on May 30, 2024

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.

NicolasUmiastowski avatar NicolasUmiastowski commented on May 30, 2024

from box-line-text.

jncraton avatar jncraton commented on May 30, 2024

Great! I'm glad that it is working well for you.

from box-line-text.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.