UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 3.04 kB
(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.13.4`}}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]=`0cc3821f-9e87-4129-b311-228f4708a996`,e._sentryDebugIdIdentifier=`sentry-dbid-0cc3821f-9e87-4129-b311-228f4708a996`)})()}catch{}import{o as e}from"./chunk-DxpFCn6T.js";import{C as t}from"./_MapCache-CUJwh2qp.js";import{t as n}from"./merge-BqvKZ38d.js";import{t as r}from"./smartDecimal-CsR7Dvbd.js";var i=e(n(),1);const 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-CB90P002.js.map