MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / getZIndex

Function getZIndex

packages/parsers/src/htmlParser.ts:89–97  ·  view source on GitHub ↗
(el: Element)

Source from the content-addressed store, hash-verified

87}
88
89function getZIndex(el: Element): number {
90 const dataLayer = el.getAttribute("data-layer");
91 if (dataLayer) return parseInt(dataLayer, 10) || 0;
92
93 const style = (el as HTMLElement).style?.zIndex;
94 if (style) return parseInt(style, 10) || 0;
95
96 return 0;
97}
98
99function parseResolutionFromCss(doc: Document, cssText: string | null): CanvasResolution {
100 const stage = doc.getElementById("stage") || doc.querySelector("#stage");

Callers 1

parseHtmlFunction · 0.85

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected