injectStyles function
Last updated: 2026-03-05T12:56:18.445Z
Metrics
LOC: 23
Complexity: 2
Params: 0
Signature
injectStyles(): : void
Source Code
function injectStyles(): void {
if (document.getElementById("fill-all-effect-spotlight-styles")) return;
const style = document.createElement("style");
style.id = "fill-all-effect-spotlight-styles";
style.textContent = `
#${OVERLAY_ID} {
position: fixed;
inset: 0;
z-index: 2147483644;
pointer-events: none;
transition: opacity 300ms ease;
}
#${HOLE_ID} {
position: fixed;
z-index: 2147483645;
pointer-events: none;
border-radius: 8px;
box-shadow: 0 0 0 4px rgba(255,255,255,0.6), 0 0 0 8px rgba(255,255,255,0.15);
transition: all 300ms ease;
}
`;
document.head.appendChild(style);
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| SpotlightEffect | uses |
Impact (Incoming)
| Source | Type |
|---|---|
| initFieldIcon | uses |
| showCaption | calls |
| applyLabelEffect | calls |
| applyPinEffect | calls |
| applySpotlightEffect | calls |