Giter VIP home page Giter VIP logo

Comments (3)

Phoenix616 avatar Phoenix616 commented on July 19, 2024

Tbh. when I read wrapping I think more of the width in characters of a line and not the pixel width. Imo. both have their use cases (and normal character count might be easier to implement first) and it would probably be good to properly differentiate those two methods.

Main issue with wrapping would be components that don't have a specific length (e.g. translatable ones, for those the default locale or a user provided one could be used to determine the length/width though), best would probably to split before that component in case it gets close to the end (maybe half-width with a minimum assumed per component or something like that)

from adventure.

zml2008 avatar zml2008 commented on July 19, 2024

Based on discussions in #262, we've decided this makes more sense to be released as an external library, unless Mojang changes what they offer us.

from adventure.

Minikloon avatar Minikloon commented on July 19, 2024

https://gist.github.com/Minikloon/e6a7679d171b90dc4e0731db46d77c84

from adventure.

Related Issues (20)

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.