Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
807 commits
Select commit Hold shift + click to select a range
b91b024
fix: block modes at the same time
seankmartin Jun 26, 2026
50d9eb5
refactor: update command naming
seankmartin Jun 26, 2026
d8fd732
chore: update func to async
seankmartin Jun 26, 2026
b2822ec
feat: update edit tool behaviour
seankmartin Jun 28, 2026
2334c12
refactor: use correct actions pattern following recolor
seankmartin Jun 29, 2026
fc5bae8
fix: set skeleton state watchable
seankmartin Jun 29, 2026
ac6883d
revert: remove mac bind based code
seankmartin Aug 12, 2026
8a32715
Merge pull request #219 from MetaCell/feat/combine-skeleton-edit-tools
seankmartin Aug 12, 2026
00be8ca
feat: Enhance find path tool to support multiple spatial skeleton sou…
afonsobspinto Aug 12, 2026
eecaff1
Merge branch 'feature/edit-mode' into feature/find-path
afonsobspinto Aug 12, 2026
ea6a271
feat: block splitting at root from FE
seankmartin Jun 5, 2026
a8c2254
fix: check in UI before commit if description changed
seankmartin Jun 5, 2026
4eb8321
feat: add custom cursors for tracing and override base crosshair
seankmartin Jun 30, 2026
5154c74
feat: update cursors
seankmartin Jun 30, 2026
c795125
fix: correct crosshair
seankmartin Jun 30, 2026
899c13d
feat: better tool status
seankmartin Jul 1, 2026
b8d325d
refactor: use rspack to preload cursor svgs
seankmartin Jul 3, 2026
f997df9
Merge of MetaCell/feat/use-d-to-delete-tool
seankmartin Jul 7, 2026
b50e7e8
Merge of MetaCell/feat/clearer-merge-split-actions
seankmartin Jul 7, 2026
2063d2d
Merge of MetaCell/feat/avoid-download-data-if-skeletons-hidden
seankmartin Jul 7, 2026
324f83e
Merge of MetaCell/feat/hide-selected-node-merge-split
seankmartin Jul 7, 2026
74d077b
feat: Tell CATMAID to keep the upstream annotations by default while …
afonsobspinto Jul 7, 2026
0c5e38e
Merge of MetaCell/feat/better-perf-skeleton-highlight
afonsobspinto Jul 10, 2026
abd84d3
Merge of MetaCell/feat/improve-skeleton-ui
seankmartin Jul 10, 2026
4bb3337
feat: only use cursors in a mode
seankmartin Aug 13, 2026
5940920
fix: correct license and included files
seankmartin Aug 13, 2026
eae0a9f
chore: lint and format
seankmartin Aug 13, 2026
df50c44
Merge pull request #222 from MetaCell/feat/queue-and-ui
seankmartin Aug 13, 2026
87ff913
Merge of MetaCell/feature/optimistic-preview
afonsobspinto Jul 10, 2026
25187f3
Merge of MetaCell/feature/optimistic-preview-2
seankmartin Jul 14, 2026
55f6e74
Merge pull request #223 from MetaCell/feature/queue
seankmartin Aug 13, 2026
141ad54
Merge pull request from MetaCell/feat/update-tool-state
afonsobspinto Jul 10, 2026
bc1c0b3
Merge pull request from MetaCell/refactor/remove-unused-state
afonsobspinto Jul 10, 2026
1045806
Merge pull request from MetaCell/fix/node-scroll
afonsobspinto Jul 10, 2026
4b5c2df
Merge pull request from MetaCell/feat/skeleton-cylinder-rendering
afonsobspinto Jul 14, 2026
6c95308
Merge pull request from MetaCell/feature/NGLASS-2012
seankmartin Jul 15, 2026
ac9b44f
Merge pull request from MetaCell/perf/skeleton-memory
afonsobspinto Jul 15, 2026
8f62c35
Merge pull request from MetaCell/fix/overlay-pool-recency
afonsobspinto Jul 22, 2026
b75bad0
chore: restore deleted color test
seankmartin Aug 11, 2026
47b3cb4
Merge pull request from MetaCell/fix/canary
seankmartin Aug 11, 2026
d8531cc
Merge pull request from MetaCell/feat/tool-bind-precedence
seankmartin Aug 13, 2026
0599871
fix: correct merge conflict
seankmartin Aug 13, 2026
7b90fe0
Merge pull request #224 from MetaCell/feat/skeleton-state-and-memory
seankmartin Aug 13, 2026
7aa913b
fix: repair dropped lines from consolidation
seankmartin Aug 13, 2026
9197b59
Merge pull request #225 from MetaCell/fix/edit-mode-merges
seankmartin Aug 13, 2026
092db8b
Merge branch 'feature/edit-mode' into feature/find-path
afonsobspinto Sep 2, 2026
c1f2736
fix: Fix find-path state handling and improve CSS for tool button
afonsobspinto Sep 2, 2026
637be5a
feat: Add shader configuration for SpatialSkeletonFindPathAnnotationC…
afonsobspinto Sep 2, 2026
e50a85d
refactor: Simplify find path support to single skeleton datasource pe…
afonsobspinto Sep 2, 2026
8bbd06e
refactor: Simplify find path validations
afonsobspinto Sep 3, 2026
f402a28
refactor: Simplify find path annotation controller for skeletons
afonsobspinto Sep 3, 2026
8899c02
style: Rollback refactoring that changed indentation
afonsobspinto Sep 3, 2026
95d708f
feat: Improve Find Path usability and result clarity; Update serializ…
afonsobspinto Sep 4, 2026
4db974c
feat: Enhance Find Path rendering with non-pickable overlays and dept…
afonsobspinto Sep 4, 2026
d500422
feat: Remove promotion of secondary Find Path datasource
afonsobspinto Sep 4, 2026
8b8ded5
feat: Remove depth test options and related logic for Find Path annot…
afonsobspinto Sep 15, 2026
c69fd2f
Merge pull request #221 from MetaCell/feature/find-path
seankmartin Sep 15, 2026
e19735c
feat: add insert mode to skeleton edit tool
seankmartin Sep 15, 2026
b4b0216
fix: check visibilty of skeleton
seankmartin Sep 15, 2026
8d7f4d0
Merge branch 'master' into feature/edit-mode
seankmartin Sep 24, 2026
4b4c0d2
feat: remove picking indicator
seankmartin Sep 24, 2026
31a9571
fix: correct issues after merge
seankmartin Sep 24, 2026
45d7ef7
Merge branch 'feature/edit-mode' into feature/edit-mode-panel-overlay
seankmartin Sep 24, 2026
d060e8d
refactor: reduce comment bloat
seankmartin Sep 24, 2026
dc347a7
Merge pull request #233 from MetaCell/feature/edit-mode-panel-overlay
seankmartin Sep 24, 2026
b2c927d
fix: remove more mac binds
seankmartin Sep 24, 2026
3aba5b7
fix(test): add to registry for hide skeleton
seankmartin Sep 24, 2026
f23f230
Merge pull request #228 from MetaCell/feat/insert-skeleton-node
seankmartin Sep 25, 2026
e848727
feat: remove outdated cylinder drawing and circle outline
seankmartin Sep 25, 2026
02b3cab
fix: correct insert anchor issues
seankmartin Sep 28, 2026
15be182
fix: prevent node highlight supression if tool closed then opened
seankmartin Oct 1, 2026
813242d
feat: remove hide skeleton command
seankmartin Oct 2, 2026
26c4241
feat: remove second skeleton source
seankmartin Oct 2, 2026
210239f
feat: more reliably check catmaid paths
seankmartin Oct 2, 2026
2c30595
refactor: clean up pattern for annotation message check
seankmartin Oct 2, 2026
a28fed5
refactor: clearer render scale histogram for skeletons
seankmartin Oct 2, 2026
fe27d2d
refactor: remove source invalidation
seankmartin Oct 2, 2026
d13f9df
Merge pull request #237 from MetaCell/feat/skeleton-clean-up
seankmartin Oct 6, 2026
a62798f
Merge pull request #235 from MetaCell/fix/insert-mode-fixes
seankmartin Oct 6, 2026
9656fa9
Merge branch 'feature/edit-mode' into feature/edit-mode-remove-comple…
seankmartin Oct 6, 2026
fc0a077
Merge pull request #236 from MetaCell/feature/edit-mode-remove-comple…
seankmartin Oct 6, 2026
66674a3
refactor: attempt to avoid cases of hardcoded binds in code
seankmartin Oct 6, 2026
938b45b
Merge pull request #239 from MetaCell/refactor/fix-tool-message-patterns
seankmartin Oct 9, 2026
8ff195d
Merge pull request from MetaCell/feature/optimistic-preview-3
afonsobspinto Oct 6, 2026
f2b1f40
feat(skeleton): keep selection on a node's new skeleton after edits
afonsobspinto Oct 6, 2026
6d922eb
feat(skeleton): resolve picks by inspected node ownership
afonsobspinto Oct 6, 2026
7cbcef3
feat(skeleton): follow remapped IDs in the pinned selection
afonsobspinto Oct 7, 2026
945f2af
refactor: remove small embedder queue control
seankmartin Oct 9, 2026
7495900
fix(skeleton): ask to inspect only when dragging an uninspected node
afonsobspinto Oct 7, 2026
1c45192
feat(skeleton): load queue inputs on demand and prefetch merge targets
afonsobspinto Oct 7, 2026
119ae65
fix: correct e2e tests after merge
seankmartin Oct 9, 2026
b939d37
docs: remove images from commit
seankmartin Oct 9, 2026
2fd0fc0
Merge pull request #240 from MetaCell/feat/queue-merge
seankmartin Oct 12, 2026
72e432d
refactor: remove dead code
seankmartin Oct 12, 2026
a31c29e
fix: replace uint32 usages and number usages by bigint for uint64
seankmartin Oct 12, 2026
ac76233
fix: correct download bytes and fallback ID
seankmartin Oct 12, 2026
25e6163
feat(test): use catmaid mock for manual test
seankmartin Oct 12, 2026
ff4396a
Merge pull request #242 from MetaCell/feat/catmaid-demo-launch
seankmartin Oct 12, 2026
32abc9e
Merge branch 'feat/catmaid-demo-launch' into fix/uint64-spatial-skele…
seankmartin Oct 12, 2026
7f7db07
refactor: simpler cases with bigint
seankmartin Oct 12, 2026
a830f74
fix: correct phantom edges, highlight color and highlight size on cli…
seankmartin Oct 12, 2026
399d2dc
Merge pull request #243 from MetaCell/fix/highlight
seankmartin Oct 12, 2026
5ea0879
Merge branch 'feature/edit-mode' into fix/uint64-spatial-skeletons
seankmartin Oct 12, 2026
89de818
fix(test): correct test to use bigint
seankmartin Oct 12, 2026
b493ceb
refactor: change <= 0 checks on ID to === 0n
seankmartin Oct 12, 2026
6905fc3
Merge pull request #241 from MetaCell/fix/uint64-spatial-skeletons
seankmartin Oct 12, 2026
b1ee1c4
fix: track skeleton sys mem and gpu mem
seankmartin Oct 12, 2026
f187858
feat: remove inaccurate texture warning
seankmartin Oct 12, 2026
4ec8b5a
docs: catch case of non bigint
seankmartin Oct 12, 2026
3a29e8e
refactor: name fn more clearly
seankmartin Oct 12, 2026
4deff2c
Merge pull request #244 from MetaCell/refactor/minor-segment-skeleton…
seankmartin Oct 12, 2026
54b4aa0
fix: only show edit skeleton with editable source
seankmartin Oct 13, 2026
143c63b
Merge pull request #245 from MetaCell/fix/hide-ui-elements-skeleton-n…
seankmartin Oct 13, 2026
3b4dd06
feat: clearer missing display dims message
seankmartin Oct 13, 2026
17d25f0
refactor: make skeleton edit tools compatible
seankmartin Oct 13, 2026
67008d0
Merge pull request #247 from MetaCell/refactor/minor-segment-skeleton…
seankmartin Oct 13, 2026
912cb4d
feat: show limit 0 LOD on histogram left
seankmartin Oct 13, 2026
748551b
Merge pull request #248 from MetaCell/fix/max-lod-shows-unknown
seankmartin Oct 13, 2026
90bd5f5
Merge pull request #246 from MetaCell/fix/dims-message-skeleton
seankmartin Oct 13, 2026
1ca2e04
refactor: more global tool cursor control
seankmartin Oct 13, 2026
f5d2fee
feat: move skeleton bindings to new pattern
seankmartin Oct 13, 2026
8d27710
Merge pull request #249 from MetaCell/refactor/skeleton-cursors
seankmartin Oct 13, 2026
b8f5020
Merge pull request #250 from MetaCell/fix/remove-incorrect-bindings-p…
seankmartin Oct 13, 2026
e78636c
feat: introduce skeleton manifest to API
seankmartin Oct 14, 2026
ca0c7d4
feat: don't set mode to lines and points on edit activate
seankmartin Oct 14, 2026
b1125b4
feat, refactor: allow precomputed skeletons to use skeleton browser
seankmartin Oct 14, 2026
32f15b9
fix: add back cell and metadata to generic API
seankmartin Oct 14, 2026
1c58aad
fix: infer precomputed topology
seankmartin Oct 14, 2026
e09b51c
feat: allow fragments to have links
seankmartin Oct 14, 2026
a11e2be
refactor: rename non spatial parts of api away from spatial
seankmartin Oct 14, 2026
0a4fdcb
feat: make editable skeleton attrs regular vertex attrs
seankmartin Oct 15, 2026
248cba7
fix: add node attr handler helpers
seankmartin Oct 15, 2026
503f0a4
feat: remove catmaid bounds from public API
seankmartin Oct 15, 2026
1efbb15
chore: format
seankmartin Oct 15, 2026
4e96ea8
refactor: rename API elements and mark node readonly as well
seankmartin Oct 15, 2026
6865935
refactor: match names in API and try simplify after new API
seankmartin Oct 15, 2026
7188f8e
feat: remove node drawing on edit and error message change
seankmartin Oct 15, 2026
ef3d40a
Merge pull request #253 from MetaCell/feat/remove-complex-skeleton-fe…
seankmartin Oct 15, 2026
bcc910f
refactor: small removals and returning back to master version
seankmartin Oct 16, 2026
b3eb837
refactor: remove core helpers for segment visibility adding/removing
seankmartin Oct 16, 2026
12ba42a
refactor: move color code for skeletons and register redraw in correc…
seankmartin Oct 16, 2026
e61df71
refactor: revise naming on known skeleton node (vertex) attrs
seankmartin Oct 16, 2026
0d0d9be
refactor: remove new core signal error handling
seankmartin Oct 16, 2026
12d5182
feat: updated precomputed with new skeleton API
seankmartin Oct 16, 2026
d9366d8
refactor: small changes to reduce core
seankmartin Oct 16, 2026
38d5318
Merge branch 'feat/skeleton-revise-api' into refactor/skeleton-explor…
seankmartin Oct 19, 2026
fc3756d
refactor: remove core datasource cleanup
seankmartin Oct 19, 2026
4bb9609
Merge pull request #252 from MetaCell/refactor/skeleton-explore-preco…
seankmartin Oct 19, 2026
5dbc24e
Merge branch 'feature/edit-mode' into feat/skeleton-revise-api
seankmartin Oct 19, 2026
3c31e65
refactor: queue clearing uses same subsource method on seg layer
seankmartin Oct 19, 2026
7ae4ad9
refactor: port new overlay and add mouse move option
seankmartin Oct 19, 2026
e9e8b65
Merge pull request #255 from MetaCell/refactor/NA-962-port-overlay
seankmartin Oct 19, 2026
207e49e
refactor: move skeleton tool binds to tools.ts
seankmartin Oct 19, 2026
ee54f17
refactor: combine two duplicate calls
seankmartin Oct 19, 2026
8b68e99
Merge pull request #256 from MetaCell/refactor/NA-961-core-changes-sk…
seankmartin Oct 19, 2026
cab89d9
refactor: clarify edges in API
seankmartin Oct 19, 2026
0e2e24e
fix: handle seg IDs with labels/equiv
seankmartin Oct 19, 2026
c7b0688
feat(ui): add indicator for inferred topology
seankmartin Oct 19, 2026
f446565
refactor: remove dead code after bringing in the queue
seankmartin Oct 19, 2026
289139c
Merge pull request #258 from MetaCell/refactor/skeleton-queue-dead-code
seankmartin Oct 19, 2026
4818782
Merge branch 'feature/edit-mode' into feat/skeleton-revise-api
seankmartin Oct 19, 2026
8dffc29
feat: block equivalence subsource with editable skeletons
seankmartin Oct 19, 2026
fd72b15
feat: block linking editable skeletons to layers with equivalences
seankmartin Oct 19, 2026
b87e4ea
Merge pull request #257 from MetaCell/feat/block-skeleton-equiv
seankmartin Oct 19, 2026
031a271
chore: lint and format
seankmartin Oct 19, 2026
703fae1
chore: fix lint issues
seankmartin Oct 19, 2026
218ad42
refactor: split up segmentation/index.ts
seankmartin Oct 20, 2026
f9655c7
refactor: move skeleton source to new spatialSkeleton
seankmartin Oct 20, 2026
dcdaec0
refactor: use bindSkeletonNodeCommands like other binds
seankmartin Oct 20, 2026
cb98fdb
refactor: remove hardcoded comment binds
seankmartin Oct 20, 2026
d8f6d60
refactor: move pure functions so no fake gl context in tests
seankmartin Oct 20, 2026
4913019
refactor: reduce scope of skeleton/frontend,base,backend.ts
seankmartin Oct 20, 2026
d895a1a
refactor: reorganise files to remove GL imports in .spec files
seankmartin Oct 21, 2026
5aab559
refactor: move skeleton files to edit/ edit_queue/ find_path/
seankmartin Oct 22, 2026
3e80d06
refactor: consolidate new files
seankmartin Oct 22, 2026
681a0be
refactor: narrow where edit queue needs access to edit commands
seankmartin Oct 22, 2026
662aaa1
refactor: rename skeleton edit symbols after what they hold
seankmartin Oct 22, 2026
0eb0ee1
refactor: combine tests after reorg of files
seankmartin Oct 22, 2026
c691a5f
test: trim skeleton edit queue specs
seankmartin Oct 22, 2026
84e2a4f
test: trim skeleton edit session and UI specs
seankmartin Oct 22, 2026
7bfb2cb
test: trim submit_edits spec
seankmartin Oct 22, 2026
a5a39a2
test: run submit_edits spec against the real edit session
seankmartin Oct 22, 2026
29c7755
test: move the skeleton edit test harness to harness/ and run the fak…
seankmartin Oct 23, 2026
0848768
fix: release spatially indexed skeleton chunk sources exactly once
seankmartin Oct 23, 2026
b9fd9ce
feat(json_state): attempt to finalise many key names in skeleton
seankmartin Oct 23, 2026
90837b3
fix(skeleton_render): restore feather weight being panel dependent
seankmartin Oct 23, 2026
8315cb1
fix: remove unused redraw and bug with vertex attr types
seankmartin Oct 23, 2026
7031d24
Merge pull request #262 from MetaCell/refactor/check-core-skeleton-ch…
seankmartin Oct 23, 2026
11e16c0
test: restore tests after refactor
seankmartin Oct 25, 2026
671ec63
fix: capture node position in pin
seankmartin Oct 25, 2026
cc3e486
fix: update dependent view widget on blur
seankmartin Oct 25, 2026
9767b0d
Merge pull request #261 from MetaCell/refactor/reduce-core-changes
seankmartin Oct 26, 2026
b2be605
Merge branch 'master' into feature/edit-mode
seankmartin Oct 26, 2026
f54d692
feat: remove repeated info from node details
seankmartin Oct 26, 2026
dc201a1
Merge remote-tracking branch 'upstream/master' into feature/edit-mode
seankmartin Oct 26, 2026
26279bd
Revert "fix: general fix, protect against credentials on no provider"
seankmartin Oct 26, 2026
4d8a86b
refactor: merge tests instead of xyz.spec.ts with no xyz.ts
seankmartin Oct 26, 2026
65bd71d
docs: add @file summaries for new files
seankmartin Oct 26, 2026
8d4cb59
Merge branch 'refactor/skeleton-file-descriptions' into feature/edit-…
seankmartin Oct 26, 2026
41393cd
test: remove dead tests and fix two that could not fail
seankmartin Oct 26, 2026
fc2b207
Merge branch 'refactor/skeleton-file-descriptions' into feature/edit-…
seankmartin Oct 26, 2026
55271c5
refactor: split skeleton cache out from session
seankmartin Oct 26, 2026
ac6922d
Merge branch 'refactor/skeleton-file-descriptions' into feature/edit-…
seankmartin Oct 26, 2026
083ca4e
refactor: rename endpoints to ops
seankmartin Oct 27, 2026
23794da
docs: add info for making new editable source
seankmartin Oct 27, 2026
ad81759
refactor: clarify catmaid default chunk
seankmartin Oct 27, 2026
eaa4fbc
refactor: remove uneeded style change
seankmartin Oct 27, 2026
083f55d
refactor: rename node selection file
seankmartin Oct 27, 2026
9db8df7
refactor: update spec
seankmartin Oct 27, 2026
e436d9d
fix: update hasX on seg/index checks
seankmartin Oct 27, 2026
b55e589
refactor: combine if statements
seankmartin Oct 27, 2026
42ae2a0
feat: mark two spatial skeleton sources as unsupported
seankmartin Oct 27, 2026
cf03d96
refactor: undo v small uneeded diff for clarity
seankmartin Oct 27, 2026
a57df07
refactor: rename node_highlight to indicate increased scope
seankmartin Oct 27, 2026
d0690da
refactor: update imports
seankmartin Oct 27, 2026
60bfd4a
docs: clarify which web worker in file
seankmartin Oct 27, 2026
e3366bc
refactor: move exported interfaces/types closer to top
seankmartin Oct 27, 2026
37eab94
refactor: draw all skeletons through renderHelper
seankmartin Oct 27, 2026
a6b0617
feat: handle loops properly in browsing
seankmartin Oct 28, 2026
d5d1196
docs: clarify node ID meaning
seankmartin Oct 28, 2026
42a6d2b
Merge pull request #264 from MetaCell/feat/NA-966
seankmartin Oct 28, 2026
32add4a
perf: combine two GPU hash maps into one
seankmartin Oct 28, 2026
1a203a6
refactor: clarify loop operation
seankmartin Oct 28, 2026
24bb6ae
refactor: clarify segment states
seankmartin Oct 28, 2026
3f7deb4
refactor: clarify skeleton draw pass
seankmartin Oct 28, 2026
655f039
refactor: consolidate files
seankmartin Oct 28, 2026
c4b78e0
refactor: consolidate files
seankmartin Oct 28, 2026
72f0572
refactor: move edit commands, rename skel tab render
seankmartin Oct 28, 2026
2f7fdb5
Fix spatial skeleton overview selection and inactive projection counts
afonsobspinto Nov 5, 2026
81d646b
Remove projected-area skeleton selection change
afonsobspinto Nov 5, 2026
7d09cda
Merge pull request #268 from MetaCell/fix/spatial-skeleton-overview-a…
seankmartin Nov 5, 2026
a9a5819
NGLASS-2431 Clear rejected CATMAID merge previews from Seg (#270)
afonsobspinto Nov 13, 2026
ef7c3bc
NGLASS-2381 Fix restored layer selection and Queue scrolling (#269)
afonsobspinto Nov 13, 2026
9d72036
fix(skeleton): correct premultiplication for node circles and RGB out…
chrisj Nov 13, 2026
8c57244
fix(voxel_editing/benchmark): add missing cache invalidation methods …
chrisj Nov 13, 2026
3b355cd
fix: undo only editable visible skeleton layers with history
seankmartin Nov 13, 2026
329588e
fix: use ActionCommand for skeleton node commands
seankmartin Nov 13, 2026
8502928
fix: apply emitRGBA transparent check to spatial skeleton
seankmartin Nov 13, 2026
7a04f24
refactor: simplfiy skeleton nav
seankmartin Nov 13, 2026
100641f
feat: change browse behaviour with equivalences
seankmartin Nov 13, 2026
2ad39af
fix(python): decode annotation properties in encoded order and fix sp…
0z5a Nov 16, 2026
3925295
feat(segmentation_user_layer): add user shader for segmentation layer…
chrisj Nov 16, 2026
0b0b261
fix: call onMouseout on touchend/touchcancel (#1155)
seankmartin Nov 17, 2026
7b7f4e8
Merge branch 'master' into feature/edit-mode
seankmartin Nov 17, 2026
922efe8
feat(viewer): move the chrome into a ViewerChrome class (#1147)
Le0C Nov 17, 2026
2d7f258
feat(ui): unify editors and dialogs under dark color scheme (#1157)
chrisj Nov 17, 2026
1702c32
fix: protect against stale color lookup
seankmartin Nov 17, 2026
5c391d5
feat: add overlay of to be split edge (#273)
seankmartin Nov 18, 2026
d255f98
fix: don't show cancelled edits if none cancelled
seankmartin Nov 18, 2026
0749052
Merge branch 'master' into feature/edit-mode
seankmartin Nov 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,24 @@ jobs:
path: |
playwright-report/
examples/*/*/dist/
skeleton-browser-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: 24.x
cache: "npm"
cache-dependency-path: |
package-lock.json
- run: npm ci
- run: npm run test:skeleton:browser -- --reporter=html
- name: Upload report
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
if: ${{ !cancelled() }}
with:
name: skeleton-browser-integration-results
path: playwright-report/

# Builds Python package and runs Python tests
#
Expand Down
66 changes: 66 additions & 0 deletions docs/datasource/catmaid/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
.. _catmaid-datasource:

CATMAID
=======

The CATMAID data service driver exposes skeletons from a CATMAID project,
including spatially indexed skeleton loading and optional editing.

URL syntax
----------

- :file:`catmaid://https://{host}/{project-id}`
- :file:`catmaid://http://{host}/{project-id}`

Browser authentication
----------------------

Neuroglancer first requests CATMAID's anonymous API token so public projects
continue to load without interaction. If the anonymous account cannot access a
project, Neuroglancer asks for a personal CATMAID API token.

Open the CATMAID server, use the account menu to obtain an API token, and paste
it into the Neuroglancer prompt. The token is cached for the current browser tab
under the CATMAID base URL, allowing other projects on the same server to reuse
it. A rejected token is removed automatically and requested again. Tokens are
not included in datasource URLs or serialized viewer state.

Because an API token has the same permissions as its CATMAID account, use HTTPS
for authenticated deployments and do not share the token.

Python authentication
---------------------

Python-hosted viewers obtain credentials on the Python server. Configure a
token before adding CATMAID layers:

.. code-block:: python

import neuroglancer

neuroglancer.set_catmaid_token(
"https://catmaid.example",
"your-api-token",
)

Pass ``None`` as the token to remove a configured value. Deployments may
instead set ``CATMAID_CREDENTIALS`` to a JSON object keyed by CATMAID base
URL:

.. code-block:: shell

export CATMAID_CREDENTIALS='{"https://catmaid.example": "your-api-token"}'

Tokens configured with ``set_catmaid_token`` take precedence over the
environment. If neither is present, the Python provider attempts anonymous
access.

Server requirements
-------------------

The CATMAID deployment must allow the Neuroglancer origin to make cross-origin
``GET`` and ``POST`` requests and must allow the ``Authorization`` and
``Content-Type`` request headers. Project read and edit access is determined
by the CATMAID account associated with the token. Separately, Neuroglancer only
enables editing when the linked stack metadata sets ``read_only`` to
``false``; see :ref:`skeleton-editing-sources`.
1 change: 1 addition & 0 deletions docs/datasource/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -127,5 +127,6 @@ Data services
:maxdepth: 1

boss/index
catmaid/index
dvid/index
render/index
8 changes: 4 additions & 4 deletions docs/user-guide/annotation_shaders.rst
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ interpolation**) will help us do that.

.. code-block:: glsl

#uicontrol float red invlerp(range=[10,30], window=[0,1000])
#uicontrol invlerp red(range=[10,30], window=[0,1000])
void main() {
vec3 mycolor = vec3(red(), 0.0, 0.0);
setColor(mycolor);
Expand All @@ -94,7 +94,7 @@ property goes from low to high.

.. code-block:: glsl

#uicontrol float intensity invlerp(range=[10,30], window=[0,1000])
#uicontrol invlerp intensity(range=[10,30], window=[0,1000])
#uicontrol vec3 mycolor color(default="red")
void main() {
setColor(intensity()*mycolor);
Expand Down Expand Up @@ -166,7 +166,7 @@ we might use the ``invlerp`` control again.

.. code-block:: glsl

#uicontrol float intensity invlerp(range=[10,30], window=[0,1000])
#uicontrol invlerp intensity(range=[10,30], window=[0,1000])
void main() {
setColor(defaultColor());
setPointMarkerSize(1.0 + 19.0*intensity());
Expand All @@ -177,7 +177,7 @@ control.

.. code-block:: glsl

#uicontrol float intensity invlerp(range=[10,30], window=[0,1000])
#uicontrol invlerp intensity(range=[10,30], window=[0,1000])
#uicontrol float maxsize slider(min=1.0, max=50.0, step=1.0)
void main() {
setColor(defaultColor());
Expand Down
6 changes: 6 additions & 0 deletions docs/user-guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,19 @@ Topics
to segmentation layers.
- :doc:`annotation_shaders` — writing custom GLSL shader code to drive
the visual appearance of annotations from their properties.
- :doc:`skeleton_editing` — tracing, navigation, visual previews, saving,
Undo/Redo, failure recovery, and source setup.
- :doc:`voxel_annotation` — painting, erasing and flood filling voxels of
image and segmentation layers.
- :doc:`segmentation_shaders` — writing custom GLSL shader code to color
segmentation layers from segment ids and segment properties.

.. toctree::
:hidden:

navigation
annotations
annotation_shaders
skeleton_editing
voxel_annotation
segmentation_shaders
199 changes: 199 additions & 0 deletions docs/user-guide/segmentation_shaders.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
Segmentation Shaders
--------------------

Segmentation layers can use custom GLSL code to change how segments are colored.
The technical reference for the shader API is in
`the segmentation rendering guide <https://github.com/google/neuroglancer/blob/master/src/layer/segmentation/rendering.md>`_.
This page is a gentler introduction to the same ideas.

The Segment Color Function
~~~~~~~~~~~~~~~~~~~~~~~~~~

A segmentation shader defines a ``segmentColor`` function. The default shader
keeps Neuroglancer's existing segment color unchanged:

.. code-block:: text

vec3 segmentColor(vec3 color, bool hasProperties, bool isStated) {
return color;
}

The ``color`` argument is the color Neuroglancer would normally use for the
segment. It may come from the segment color hash, the layer's default segment
color, or an explicit color assigned to that segment. The ``isStated`` argument
is ``true`` when ``color`` came from an explicit segment color. The
``hasProperties`` argument is ``true`` when Neuroglancer found segment property
data for the current segment.

To make every visible segment red, return a red ``vec3``:

.. code-block:: text

vec3 segmentColor(vec3 color, bool hasProperties, bool isStated) {
return vec3(1.0, 0.0, 0.0);
}

If you want to preserve explicit per-segment colors but recolor everything
else, use ``isStated``:

.. code-block:: text

vec3 segmentColor(vec3 color, bool hasProperties, bool isStated) {
if (isStated) {
return color;
}
return vec3(0.0, 0.6, 1.0);
}

Opacity
~~~~~~~

Use a ``vec4`` return type to adjust opacity. The alpha channel is the fourth
component. It is multiplied by **Opacity (on)** or **Opacity (off)** in slice
views. For meshes and skeletons, it is multiplied by **Opacity (3d)**.

.. code-block:: text

vec4 segmentColor(vec4 color, bool hasProperties, bool isStated) {
if (isStated) {
return color;
}
return vec4(color.rgb, 0.35);
}

Segment Properties
~~~~~~~~~~~~~~~~~~

Segment properties can drive color choices. If a segment property map is
available, a shader can read tags and properties directly by name:

.. code-block:: text

vec3 segmentColor(vec3 color, bool hasProperties, bool isStated) {
if (!hasProperties) {
return vec3(0.5, 0.5, 0.5);
}
if (tag("axon")) {
return vec3(1.0, 0.4, 0.0);
}
if (prop("size") > 100u) {
return vec3(1.0, 1.0, 0.0);
}
return color;
}

``tag("axon")`` returns ``true`` when the current segment has that tag.
``prop("size")`` reads a numerical property named ``size``. For string
properties, compare the value with a string literal:

.. code-block:: text

vec3 segmentColor(vec3 color, bool hasProperties, bool isStated) {
if (!hasProperties) {
return vec3(0.5, 0.5, 0.5);
}
if (prop("class") == "interneuron") {
return vec3(0.0, 1.0, 0.6);
}
return color;
}

Property Controls
~~~~~~~~~~~~~~~~~

A ``property`` UI control lets the user choose which segment property a shader
uses. The control can be filtered to tags, numerical properties, or string
properties.

.. code-block:: text

#uicontrol property selectedTag(type="tag")
#uicontrol property selectedSize(type="number")
#uicontrol property selectedClass(type="string")

vec3 segmentColor(vec3 color, bool hasProperties, bool isStated) {
if (!hasProperties) {
return vec3(0.5, 0.5, 0.5);
}
if (selectedTag) {
return vec3(1.0, 0.0, 0.0);
}
if (selectedSize > 100u) {
return vec3(1.0, 1.0, 0.0);
}
if (selectedClass == "interneuron") {
return vec3(0.0, 1.0, 0.6);
}
return color;
}

A ``type="tag"`` control lets the user choose an individual tag and evaluates
to a ``bool`` indicating whether the current segment has that tag. A
``type="string"`` control lets the user choose a string property and evaluates
to that property's value, which can be compared with a string literal.
``type="number"`` and ``type="numerical"`` both select numerical properties;
the control's GLSL type matches the selected property's data type.

Data Mapping
~~~~~~~~~~~~

For continuous numerical properties, an ``invlerp`` control maps a property
range to ``0-1``. The user can adjust the selected property and range from the
shader UI.

.. code-block:: glsl

#uicontrol invlerp intensity(property="size", range=[0, 1000])

vec3 segmentColor(vec3 color, bool hasProperties, bool isStated) {
if (!hasProperties) {
return vec3(0.5, 0.5, 0.5);
}
return intensity() * vec3(1.0, 0.2, 0.0);
}

If ``property`` is omitted, Neuroglancer selects the first available numerical
segment property as the default. ``range`` controls the data values mapped to
``0`` and ``1``. ``window`` can be added to control the range shown by the UI
widget.

Colormaps
~~~~~~~~~

The remapped value from an ``invlerp`` control can be passed to a colormap:

.. code-block:: glsl

#uicontrol invlerp intensity(property="size", range=[0, 1000])

vec3 segmentColor(vec3 color, bool hasProperties, bool isStated) {
if (!hasProperties) {
return vec3(0.5, 0.5, 0.5);
}
if (isStated) {
return color;
}
return colormapJet(intensity());
}

This pattern is useful when a numerical segment property should control color
continuously while still respecting explicitly assigned segment colors.

Relationship to the Skeleton Shader
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

A segmentation layer may have both a segment color shader and a skeleton user
shader. The segment color shader determines the per-segment color used by slice
views, meshes, and skeletons.

The default skeleton shader preserves the result of the segment color shader:

.. code-block:: glsl

void main() {
emitDefault();
}

Here, ``emitDefault()`` emits the color and alpha returned by the segment color
shader. A custom skeleton shader can also access that result through
``vec4 segmentColor()``, or emit its own color.
Loading
Loading