Is alphaTab A Single Layer SVG or Multiple Layers? #2529
Replies: 2 comments
-
@Danielku15 The other issue I am seeing is I cannot figure out why the Cursor height will not extend even as a Custom Cursor above the High E string or staff line. Nothing I do seems to show any visible changes. Is it possible to make a Custom Cursor extend above the staff or High E String? Here are current things we tried putting in the container and wrapping outside the container and also this: Update your MasterCursor.tsx with these 3 surgical changes: Use a Portal: Wrap the return in a createPortal. And this was something also we tried:
But still is clipped at the top. |
Beta Was this translation helpful? Give feedback.
-
alphaTab is single-layered and there is no plan to change this. alphaTab has multiple rendering backends, SVG being one of them, but the majority being raster graphics.
alphaTab positions cursors according to the boundsLookup https://alphatab.net/docs/reference/api/boundslookup using CSS transforms. I cannot give you support for any private code you built for your project to have custom cursors. As I highlighted so often: you need to share code (properly as projects which devs can look at, not PDFs). |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
@Danielku15 I am playing around with the Custom Songsterr Cursor and noticed something interesting. The Cursor is a nice clean most full opacity, but it still clearly shows the fret numbers with no color contrast difference, and also the notations. Yet somehow it is hiding the staff lines underneath it. Mine doesn't have to be exact but was curious how they were doing it.
is alphaTab a single layer SVG or does it also have multiple layers?
🎯 The Songsterr "Code" Explained
Songsterr uses 3 separate layers:
Bottom: Staff lines (gray, thin, low z-index)
Middle: Cursor (opaque, blocks staff lines)
Top: Fret numbers & notation (high z-index, always visible)
But here's our challenge: AlphaTab renders everything in ONE SVG layer - staff lines, numbers, and notation are all baked together.
Beta Was this translation helpful? Give feedback.
All reactions