"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAnchoredItemTop = void 0;
const sdk_1 = require("@cntrl-site/sdk");
function getAnchoredItemTop(top, sectionHeight, anchorSide) {
    const styleTop = `${top * 100}vw`;
    switch (anchorSide) {
        case sdk_1.AnchorSide.Center: return `calc(${styleTop} + ${sectionHeight} / 2)`;
        case sdk_1.AnchorSide.Bottom: return `calc(${styleTop} + ${sectionHeight})`;
        case sdk_1.AnchorSide.Top:
        default:
            return styleTop;
    }
}
exports.getAnchoredItemTop = getAnchoredItemTop;
