Commit bb89fb8
authored
Set mesh opacity via frontend API (#9011)
### Steps to test:
- Open a DS or an annotation in webknossos and load any segments mesh
- Open the browser console and insert (with any color or opacity)
```
window.webknossos.apiReady(3).then((api) => {
api.data.setSegmentColor(<segmentId>, [0.3,0.5,0.7],<layerName>,0.5)
});
```
- check that the meshes opacity is changed accordingly.
### Issues:
- fixes #8974
------
(Please delete unneeded items, merge only when none are left open)
- [x] Added changelog entry (create a `$PR_NUMBER.md` file in
`unreleased_changes` or use `./tools/create-changelog-entry.py`)
- [ ] Added migration guide entry if applicable (edit the same file as
for the changelog)
- [ ] Updated [documentation](../blob/master/docs) if applicable
- [ ] ~~Adapted [wk-libs python
client](https://github.com/scalableminds/webknossos-libs/tree/master/webknossos/webknossos/client)
if relevant API parts change~~ -> not needed, as the new function is
backwards-compatible
- [x] Removed dev-only changes like prints and application.conf edits
- [x] Considered [common edge
cases](../blob/master/.github/common_edge_cases.md)
- [ ] Needs datastore update after deployment1 parent e53f54c commit bb89fb8
File tree
2 files changed
+27
-4
lines changed- frontend/javascripts/viewer/api
- unreleased_changes
2 files changed
+27
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
2756 | 2757 | | |
2757 | 2758 | | |
2758 | 2759 | | |
2759 | | - | |
| 2760 | + | |
2760 | 2761 | | |
2761 | 2762 | | |
2762 | | - | |
| 2763 | + | |
2763 | 2764 | | |
2764 | | - | |
| 2765 | + | |
| 2766 | + | |
| 2767 | + | |
| 2768 | + | |
2765 | 2769 | | |
2766 | | - | |
| 2770 | + | |
2767 | 2771 | | |
2768 | 2772 | | |
2769 | 2773 | | |
| |||
2778 | 2782 | | |
2779 | 2783 | | |
2780 | 2784 | | |
| 2785 | + | |
| 2786 | + | |
| 2787 | + | |
| 2788 | + | |
| 2789 | + | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
2781 | 2802 | | |
2782 | 2803 | | |
2783 | 2804 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments