import*as SDK from"../sdk/sdk.js";export class CLSRect{constructor([e,t,i,n]){this.x=e,this.y=t,this.width=i,this.height=n,this.color={r:238,g:111,b:99,a:.4},this.outlineColor={r:238,g:111,b:99,a:.7}}}let linkifierInstance;export class Linkifier{static instance(e={forceNew:null}){const{forceNew:t}=e;return linkifierInstance&&!t||(linkifierInstance=new Linkifier),linkifierInstance}linkify(e,t){const i=document.createElement("span"),n=e,{x:r,y:s,width:l,height:o}=n;return i.textContent=`Location: [${r},${s}], Size: [${l}x${o}]`,i.addEventListener("mouseover",(()=>SDK.OverlayModel.OverlayModel.highlightRect(n))),i.addEventListener("mouseleave",(()=>SDK.OverlayModel.OverlayModel.clearHighlight())),i}}