Menu

#884 Annotation anchor box should have style controls

open
nobody
None
5
13 hours ago
6 days ago
No

Ivar asked about more controls for the annotations, like being able to have dotted lines. The anchor box should have controls for:

  • thickness
  • color
  • style (dotted, dashed)
  • fill
  • fillStyle (hash)
  • shape (rectangle, rounded corners, ellipse)
  • outer glow, reverse (shade region outside anchor box)

These are a lot of controls, and I wonder if a "anchorStyle" string property and GUI editor would keep it all managable. Also looking at HTML CSS style sheets might be useful, since they have a single line with all the controls.

Discussion

  • Jeremy Faden

    Jeremy Faden - 5 days ago

    I think the thing to do is to introduce "anchorStyle" which controls how the anchor box (area) will be rendered. This would be a semicolon-delimited string of name=value pairs like:

    color=blue;lineWidth=2px;lineStyle=dashed;fillColor=#400000ff
    

    The goal would be to have a generic style which will be useful in other parts of Autoplot, eventually, and there could be an editor to support these.

     
  • Jeremy Faden

    Jeremy Faden - 13 hours ago
    • summary: Annotation box should have style controls --> Annotation anchor box should have style controls