import { t as e } from "../../utils-C_mWfcFX.js";
//#region src/display/aspect-ratio/index.ts
var t = class {
	el;
	contentEl;
	constructor(t) {
		let n = t.ratio ?? 1;
		this.el = document.createElement("div"), this.el.className = "cmm-aspect-ratio", this.el.style.setProperty("--cmm-aspect-ratio", String(n)), t.className && this.el.classList.add(t.className), this.contentEl = document.createElement("div"), this.contentEl.className = "cmm-aspect-ratio__content", this.el.appendChild(this.contentEl), t.container !== void 0 && e(t.container).appendChild(this.el);
	}
	getContent() {
		return this.contentEl;
	}
	setRatio(e) {
		this.el.style.setProperty("--cmm-aspect-ratio", String(e));
	}
	destroy() {
		this.el.remove();
	}
};
//#endregion
export { t as AspectRatio };

//# sourceMappingURL=index.js.map