@macrostrat/column-components
Version:
React rendering primitives for stratigraphic columns
3 lines (2 loc) • 2.34 kB
JavaScript
import"./column-components.b2a20dc1.js";import"./column-components.d8adac4c.js";import"./column-components.30bb6ff8.js";import"./column-components.fac5b590.js";import e from"@macrostrat/hyper";import{forwardRef as r,createElement as t}from"react";import{expandInnerSize as a,extractPadding as n,extractMargin as o,removeMargin as c,removePadding as d}from"@macrostrat/ui-components";import s from"classnames";function i(e,r){return Object.keys(r).forEach(function(t){"default"===t||"__esModule"===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}),e}function f(e,r,t,a){Object.defineProperty(e,r,{get:t,set:a,enumerable:!0,configurable:!0})}var l=globalThis,p={},m={},b=l.parcelRequirea149;null==b&&((b=function(e){if(e in p)return p[e].exports;if(e in m){var r=m[e];delete m[e];var t={id:e,exports:{}};return p[e]=t,r.call(t.exports,t,t.exports),t.exports}var a=Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}).register=function(e,r){m[e]=r},l.parcelRequirea149=b),b.register;var g={};f(g,"SVGNamespaces",()=>w),f(g,"SVG",()=>S),f(g,"ForeignObject",()=>j),f(g,"ColumnSVG",()=>H);var u=b("aVUB5"),$=b("kfx9r"),x=b("42xfs"),h=b("9TRyj");let w={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},S=r((r,t)=>{let{children:s,innerRef:i,...f}=r,{style:l,...p}=a(f),{paddingLeft:m,paddingTop:b}=n(r),g=o(r),u=c(d(p));return e("svg",{ref:t,style:{...g,...l},...u,...w},e("g",{transform:`translate(${m},${b})`},s))}),j=e=>t("foreignObject",e),H=function(r){let{children:t,className:n,innerRef:o,style:c,...d}=r,{pixelHeight:i}=(0,u.useColumn)(),{paddingLeft:f,paddingTop:l,innerHeight:p,innerWidth:m,height:b,width:g,...$}=a({innerHeight:i,...d});return e(S,{className:s(n,"section"),height:b,width:g,innerRef:o,...$,style:c},e("g.backdrop",{transform:`translate(${f},${l})`},t))};i(g,$),i(g,x),i(g,h);export{w as SVGNamespaces,S as SVG,j as ForeignObject,H as ColumnSVG,$e150464fe9c7cb95$export$19fffca37ef3e106 as LocalStorage,$4a0ea9dcf1a07b76$export$32a0ad71237b9760 as ColumnBox,$4a0ea9dcf1a07b76$export$3043bd3cc20d22a5 as zigZagBoxPath,$4a0ea9dcf1a07b76$export$2cf300d53db8f1c as drawZigZagAtConstantHeight,$4cfd4c889e62287b$export$e60368c40bae9fd4 as ColumnScroller};
//# sourceMappingURL=column-components.e7f1a130.js.map