Replies: 4 comments 6 replies
-
Could you give an example of another case? |
Beta Was this translation helpful? Give feedback.
-
|
Per our off-thread conversation, I think option 2 is best of the above. One note, we might want to avoid using 'visibility' as there has been some confusion in the past with end users (and occasionally in code) over enabling features (annotations on/off, etc.) vs the visibility of the feature UI (annotation button visible, etc.). |
Beta Was this translation helpful? Give feedback.
-
|
I don't mind using another word, though I have trouble thinking about something clearer than "visibility". I could write some comments to make it clear this is not about UI visibility but whether the feature is enabled. state could be an option. So for example, for annotations, we would have :
But without looking at the documentation, I would tend to expect annotations properties such as their positions, colors, etc... Another idea might be using enable, but then setters and getters don't start by "set..." and "get...." which is not coherent with the rest of the API:
Last one could have a default state value of |
Beta Was this translation helpful? Give feedback.
-
|
Hello, Jumping into the conversation but I also need a function to be sure that the "visibility" of a feature is set to a specific value. Since that's what I already done for annotations in #445, I'll go with "enable..." functions described by @Inao0. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, the Feature Methods API offers toggle mechanics for annotations, the reader, tours, tools and measurements visibility. This may be practical to implement toggle buttons, but in any other case, this is ambiguous as there is no way to know the current state of these UI elements, if they are visible or not.
Adding getters for the visibility of UI elements
I would like to add some setters corresponding to these :
Regarding setters for the visibility of UI elements
I see three options :
I can work on any of these options but thought it would be best to tackle it at the same time as adding getters, hence this discussion before proposing a pull request.
Beta Was this translation helpful? Give feedback.
All reactions