Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OMERO.figure standalone labels #101

Open
will-moore opened this issue Mar 27, 2019 · 0 comments
Open

OMERO.figure standalone labels #101

will-moore opened this issue Mar 27, 2019 · 0 comments

Comments

@will-moore
Copy link
Member

will-moore commented Mar 27, 2019

See https://trello.com/c/wtu7IVuN/10-stand-alone-labels

Standalone labels have been a long-requested feature. Need to consider:

  • How to add labels?
  • What attributes do labels have?
  • What does the UI look like if we select labels AND panels?
  • Alignment, rotation, text-justification, resize or expand
  • Borders? Background?

Adding labels

  • Powerpoint supports double-clicking on the canvas to add a text box (of flexible width). Also there is a "Text box" tool. When selected, you can click anywhere to add a label there.
  • Illustrator also has "Text box" tool.
  • For Figure, certainly double-clicking on an empty spot of canvas could add a Text-box, but we probably need other ways too, to aid discoverability etc.
  • When no panels are selected, the Add Labels form should still be visible and should add "stand-alone labels" to the current centre of the figure viewport. This means we're using the same UI widgets and method for adding labels to Panels or to the Figure. Don't need any new buttons etc. When panels are selected, the form could be titled Add Labels to Panels.

Label attributes

Labels should have common attributes for panels for position and size as well as unique font attributes:

  • Layout (share with panels): x, y, width, height, rotation
  • Existing Label attributes: text, color, size
  • NEW Label attribute: text-align
  • Border: NB-allow to set top, left, right or bottom independently via css attrs: border-top-color, border-right-width etc.
  • Background: background-color

NB: Need to define padding and rotation-anchor behaviour. Do we allow users to choose? Best if we can work out nice default behaviour for common use cases.

Select labels AND panels

  • We should be able to select labels and/or panels in the same way we can now (clicking or drag-select).
  • Align-left, Align-top and snap-to-grid should work in the same way.

Examples

Screen Shot 2019-03-27 at 22 21 18

Screen Shot 2019-03-27 at 23 06 00

From http://jcb.rupress.org/content/early/2019/03/25/jcb.201807165/tab-figures-data

Screen Shot 2019-03-27 at 23 11 04

From http://jcb.rupress.org/content/early/2019/03/19/jcb.201809161/tab-figures-data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant