UNPKG

@macrostrat/column-components

Version:

React rendering primitives for stratigraphic columns

3 lines (2 loc) 884 B
import{forwardRef as e,useContext as r}from"react";var t=globalThis,i={},n={},o=t.parcelRequire94c2;null==o&&((o=function(e){if(e in i)return i[e].exports;if(e in n){var r=n[e];delete n[e];var t={id:e,exports:{}};return i[e]=t,r.call(t.exports,t,t.exports),t.exports}var o=Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}).register=function(e,r){n[e]=r},t.parcelRequire94c2=o),o.register;var a=o("4bJ9d"),l=o("dl5CL");o("daZiC").getBundleURL("iIchK");var d=o("fwzVu");e(function(e,t){let{offsetY:i,noteHeight:n,children:o}=e,{width:u,paddingLeft:f}=r(l.NoteLayoutContext);null==n&&(n=0);let s=i-n/2-5;return navigator.userAgent.includes("Safari")&&(s+=5),(0,a.default)(d.ForeignObject,{width:u-f+10,x:f-5,y:s,height:n+10,style:{overflowY:"visible"}},[(0,a.default)("div.note-inner",{ref:t,style:{margin:5}},o)])}); //# sourceMappingURL=connector.85e75ccf.js.map