0.18.1: editor-hide cascades to groups + rename for layers & clip tracks
Track groups get the same editor-hide affordance as layer and clip tracks: new eye button on the group header, setGroupEditorHidden action (clears selection pointing inside the group), and a cascade through the Konva stackItems + render.ts so every child track in a hidden group vanishes in the editor. Track renaming via right-click context menu now covers layers and clip tracks too — setLayerName / setClipTrackName actions, new i18n strings, and end-to-end UI tests driving the menu → promptDialog → rename flow. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
6784b76607
commit
5af0cdb3d4
9 files changed
+382
-2
No files matched your search
@@ -821,11 +821,20 @@ const stackItems = computed<StackItem[]>(() => {
|
||||
instancesByTrack.set(ci.clipTrackId, arr)
|
||||
}
|
||||
|
||||
// Tracks whose parent TrackGroup is editor-hidden — same cascade
|
||||
// as the Timeline's lockedGroupChildIds logic, just for the eye
|
||||
// toggle. A child with its own editorHidden flag unset still
|
||||
// disappears if its group carries one.
|
||||
const hiddenGroupChildIds = new Set<string>()
|
||||
for (const g of store.scene.groups ?? []) {
|
||||
if (g.editorHidden) for (const cid of g.childIds) hiddenGroupChildIds.add(cid)
|
||||
}
|
||||
const expanded = expandedTrackOrder(store.scene)
|
||||
const order = expanded.length ? expanded : store.scene.layers.map((l) => l.id)
|
||||
// iterate bottom → top: reverse the array
|
||||
for (let i = order.length - 1; i >= 0; i--) {
|
||||
const id = order[i]
|
||||
if (hiddenGroupChildIds.has(id)) continue
|
||||
const layer = layerById.get(id)
|
||||
if (layer) {
|
||||
// Editor-only hide: skip on the Konva stage while the scene
|
||||
|
||||
Reference in new issue
Block a user