jodit-pro
Version:
PRO Version of Jodit Editor
2 lines (1 loc) • 832 B
JavaScript
var f=Object.defineProperty;var l=(r,t)=>f(r,"name",{value:t,configurable:!0});import{css as v}from"jodit/esm/core/helpers/utils/css.js";function i(r){switch(r){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top"}}l(i,"invertMode");function P(r,t,u,s){var e,n,o,c;if(t==="dialog"||t==="flight")return;(t==="left"||t==="right")&&((e=r.currentPlace.slots[i(t)])===null||e===void 0||e.style.setProperty(`--jd-slot-${i(t)}-width`,"auto"),(n=r.currentPlace.slots[t])===null||n===void 0||n.style.setProperty(`--jd-slot-${t}-width`,`${u}px`));const h=(o=v(r.currentPlace.workplace,"height"))!==null&&o!==void 0?o:0;(c=r.currentPlace.slots[t])===null||c===void 0||c.style.setProperty("min-height",`${Math.min(h,s)}px`)}l(P,"resizeInPanelView");export{i as invertMode,P as resizeInPanelView};