n8n-editor-ui
Version:
Workflow Editor UI for n8n
2 lines • 3.03 kB
JavaScript
(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{};e.SENTRY_RELEASE={id:`n8n@2.16.1`}}catch{}})();try{(function(){var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`25e58867-0631-4db0-a115-5e2632a57136`,e._sentryDebugIdIdentifier=`sentry-dbid-25e58867-0631-4db0-a115-5e2632a57136`)})()}catch{}import{o as e}from"./chunk-CACdhNlC.js";import{l as t}from"./core-Bz5WjPxS.js";import{t as n}from"./merge-DFZxC2wo.js";import{t as r}from"./smartDecimal-DntD9qTh.js";var i=e(n(),1),a=(e,t)=>{let n=e.createLinearGradient(0,0,0,t);return n.addColorStop(0,`rgba(255, 111,92, 1)`),n.addColorStop(.8,`rgba(255, 111, 92, 0.25)`),n.addColorStop(1,`rgba(255, 111, 92, 0)`),n},o=(e={})=>{let n=t(`--color--text--shade-1`,document.body),a=t(`--color--background--light-3`,document.body),o=t(`--color--foreground`,document.body),s=t(`--color--text--tint-1`,document.body);return(0,i.default)({responsive:!0,maintainAspectRatio:!1,animation:!1,plugins:{legend:{display:!1},tooltip:{caretSize:0,xAlign:`center`,yAlign:`bottom`,padding:16,titleFont:{size:14},bodyFont:{size:14},backgroundColor:a.value,titleColor:n.value,bodyColor:n.value,borderWidth:1,borderColor:o.value,callbacks:{label(e){return`${e.dataset.label??``} ${r(e.parsed.y).toLocaleString(`en-US`)}`},labelColor(e){return{borderColor:`rgba(0, 0, 0, 0)`,backgroundColor:e.dataset.backgroundColor,borderWidth:0,borderRadius:2}}}}},interaction:{mode:`nearest`,axis:`x`,intersect:!1},scales:{x:{grid:{display:!1},stacked:!0,beginAtZero:!0,border:{display:!1},ticks:{color:s.value}},y:{grid:{color:o.value},stacked:!0,border:{display:!1},ticks:{maxTicksLimit:3,color:s.value}}}},e)},s=(e={})=>{let n=t(`--color--text--tint-1`,document.body),r=t(`--color--text--shade-1`,document.body),a=t(`--color--background--light-3`,document.body),o=t(`--color--foreground`,document.body);return(0,i.default)({responsive:!0,maintainAspectRatio:!1,animation:!1,plugins:{legend:{display:!0,align:`end`,reverse:!0,position:`top`,labels:{boxWidth:8,boxHeight:8,borderRadius:2,useBorderRadius:!0,color:n.value}},tooltip:{caretSize:0,xAlign:`center`,yAlign:`bottom`,padding:16,titleFont:{size:14},bodyFont:{size:14},backgroundColor:a.value,titleColor:r.value,bodyColor:r.value,borderWidth:1,borderColor:o.value,callbacks:{label(e){return`${e.dataset.label??``} ${e.parsed.y}`},labelColor(e){return{borderColor:`rgba(0, 0, 0, 0)`,backgroundColor:e.dataset.backgroundColor,borderWidth:0,borderRadius:2}}}}},interaction:{mode:`nearest`,axis:`x`,intersect:!1},datasets:{bar:{maxBarThickness:32,borderRadius:4}},scales:{x:{grid:{display:!1},stacked:!0,beginAtZero:!0,border:{display:!1},ticks:{color:n.value}},y:{grid:{color:o.value},stacked:!0,border:{display:!1},ticks:{maxTicksLimit:3,color:n.value}}}},e)};export{o as n,a as r,s as t};
//# sourceMappingURL=chartjs.utils-Bw-74clp.js.map