{"ast":null,"code":"export function isPointerInBounds(view, _ref) {\n  var x = _ref.x,\n    y = _ref.y;\n  var rect = view.getBoundingClientRect();\n  return x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom;\n}","map":{"version":3,"sources":["utils.ts"],"names":["isPointerInBounds","view","x","y","rect","getBoundingClientRect","left","right","top","bottom"],"mappings":"AAAA,OAAO,SAASA,iBAAT,CACLC,IADK,EAAA,IAAA,EAGI;EAAA,IADPC,CAAF,GAAA,IAAA,CAAEA,CAAF;IAAKC,CAAAA,GAAAA,IAAAA,CAAAA,CAAAA;EAEL,IAAMC,IAAa,GAAGH,IAAI,CAACI,qBAALJ,CAAAA,CAAtB;EAEA,OAAOC,CAAC,IAAIE,IAAI,CAACE,IAAVJ,IAAkBA,CAAC,IAAIE,IAAI,CAACG,KAA5BL,IAAqCC,CAAC,IAAIC,IAAI,CAACI,GAA/CN,IAAsDC,CAAC,IAAIC,IAAI,CAACK,MAAvE;AACD","sourcesContent":["export function isPointerInBounds(\n  view: HTMLElement,\n  { x, y }: { x: number; y: number }\n): boolean {\n  const rect: DOMRect = view.getBoundingClientRect();\n\n  return x >= rect.left && x <= rect.right && y >= rect.top && y <= rect.bottom;\n}\n"]},"metadata":{},"sourceType":"module"}