Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-6338

[Lienzo] Text wrapping: Pluggable line splitter

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 7.4.1.Final
    • 7.2.0.Final
    • Designer
    • 2017 Week 34-35, 2017 Week 36-37, 2017 Week 38-39, 2017 Week 40-41-42

      cchianel has done a great job with the text wrapping in Lienzo however it'd be nice if this could be further enhanced to support different (pluggable) "splitters". At the moment it splits a String onto new lines when the bounding box necessitates a wrap; however there are other scenarios when splitting onto new lines would be advantageous. For example when a String contains line-breaks it would be good to preserve them (indeed the "DMN Editor" allows text entry with a TextArea with which the User can enter line-breaks. These need to be preserved when the text is rendered to the canvas.

      I don't mind if you want to only support wrapping and/or line-breaks but I thought moving Text to support a pluggable mechanism would be the most flexible with two (or three?) default implementations for "word wrap", "line break" (and "word-wrap and line-break"?)

              manstis@redhat.com Michael Anstis
              manstis@redhat.com Michael Anstis
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: