mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-12 07:09:59 +00:00
Merge pull request #2068 from heygen-com/worktree-fix-timeline-zindex-reorder
feat(studio): lane-model timeline — vertical drag restacks via z-index
This commit is contained in:
@@ -192,9 +192,12 @@ function domSiblingClips(
|
||||
start: host.start,
|
||||
duration: host.duration,
|
||||
track: host.track,
|
||||
zIndex: 0,
|
||||
stackingContextId: host.stackingContextId ?? host.domId ?? host.id ?? null,
|
||||
kind: "element",
|
||||
tagName: null,
|
||||
compositionId: null,
|
||||
compositionAncestors: host.compositionAncestors ?? [],
|
||||
parentCompositionId: host.id ?? null,
|
||||
compositionSrc: host.compositionSrc ?? null,
|
||||
assetUrl: null,
|
||||
|
||||
@@ -243,7 +243,10 @@ describe("buildStandaloneRootTimelineElement", () => {
|
||||
iframeSrc: "http://127.0.0.1:4173/api/projects/demo/preview/comp/scenes/hero.html?_t=123",
|
||||
selector: '[data-composition-id="hero"]',
|
||||
}),
|
||||
).toEqual({
|
||||
// toMatchObject (not toEqual): asserts the selector/source metadata this
|
||||
// test is about, without re-pinning the full element shape (stacking
|
||||
// metadata like hasExplicitZIndex is covered in timelineDOM.test.ts).
|
||||
).toMatchObject({
|
||||
id: "hero",
|
||||
label: "hero",
|
||||
key: 'scenes/hero.html:[data-composition-id="hero"]:0',
|
||||
|
||||
Reference in New Issue
Block a user