Book a Demo

Author Topic: Connector labels and shape scripts  (Read 3024 times)

Uffe

  • EA Practitioner
  • ***
  • Posts: 1859
  • Karma: +133/-14
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Connector labels and shape scripts
« on: April 14, 2020, 08:09:56 pm »
Hi all,


Does anyone know how to read the shape script API documentation vis-à-vis the Label Visibility dialog?

If I right-click a connector and select Visibility - Set Label Visibility, I am presented with eight labels -- but the API documentation only lists six. In addition, the dialog and API use different language to define the labels.

The dialog allows you to switch the following labels on/off:
  • Source Bottom/Top
  • Middle Bottom/Top
  • Target Bottom/Top
  • Realized Item Source/Destination
The API allows you to create the following shapes:
  • LeftTopLabel
  • MiddleTopLabel
  • RightTopLabel
  • LeftBottomLabel
  • MiddleBottomLabel
  • RightBottomLabel

Top, Bottom and Middle seem to translate directly between these two conceptual domains. But what is Left and Right in relation to Source and Target, and is it at all possible to write to the Realized Item labels from a shape script?


/Uffe
My theories are always correct, just apply them to the right reality.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Connector labels and shape scripts
« Reply #1 on: April 14, 2020, 08:54:40 pm »
Well, V15 -> report a bug.

q.