cc-viewer 1.6.192 → 1.6.193
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/App-BCmqNn2_.js +1 -0
- package/dist/assets/AppHeader.module-wVvzNXcQ.js +2 -0
- package/dist/assets/Mobile-D8gW8cio.js +1 -0
- package/dist/assets/_baseUniq-ob5WCjfq.js +1 -0
- package/dist/assets/arc-tZK_aa2R.js +1 -0
- package/dist/assets/architectureDiagram-Q4EWVU46-CLUEAtql.js +1 -0
- package/dist/assets/blockDiagram-DXYQGD6D-xDM5WOZm.js +1 -0
- package/dist/assets/c4Diagram-AHTNJAMY-B6RZf0_O.js +1 -0
- package/dist/assets/{channel-G3S1FOvm.js → channel-yPGVmk7J.js} +1 -1
- package/dist/assets/chunk-4BX2VUAB-CEnrJ8lf.js +1 -0
- package/dist/assets/chunk-4TB4RGXK-rbexG5yC.js +1 -0
- package/dist/assets/chunk-55IACEB6-blt2QS_L.js +1 -0
- package/dist/assets/chunk-EDXVE4YY-CJab02SL.js +1 -0
- package/dist/assets/chunk-FMBD7UC4-b2SvZGni.js +1 -0
- package/dist/assets/chunk-OYMX7WX6-CTafJWoH.js +1 -0
- package/dist/assets/chunk-QZHKN3VN-DocThykI.js +1 -0
- package/dist/assets/{chunk-YZCP3GAM-BYW1PNda.js → chunk-YZCP3GAM-ntU--N7q.js} +1 -1
- package/dist/assets/classDiagram-6PBFFD2Q-RlKigyDm.js +1 -0
- package/dist/assets/classDiagram-v2-HSJHXN6E-RlKigyDm.js +1 -0
- package/dist/assets/clone-zoFVytWa.js +1 -0
- package/dist/assets/cose-bilkent-S5V4N54A-DOA8531R.js +1 -0
- package/dist/assets/cytoscape.esm-CT1mZavR.js +9 -0
- package/dist/assets/dagre-KV5264BT-B9TB-rx0.js +1 -0
- package/dist/assets/defaultLocale-DZ7E7S9R.js +1 -0
- package/dist/assets/diagram-5BDNPKRD-d4f64tiM.js +1 -0
- package/dist/assets/diagram-G4DWMVQ6-DAHZ4eKZ.js +1 -0
- package/dist/assets/diagram-MMDJMWI5-Dw-VpXtN.js +1 -0
- package/dist/assets/diagram-TYMM5635-BMF1VNan.js +1 -0
- package/dist/assets/erDiagram-SMLLAGMA-DARFHI5n.js +1 -0
- package/dist/assets/flowDiagram-DWJPFMVM-4zgN2SRF.js +1 -0
- package/dist/assets/ganttDiagram-T4ZO3ILL-DnxYMHQX.js +1 -0
- package/dist/assets/gitGraphDiagram-UUTBAWPF-Tkkak6GE.js +1 -0
- package/dist/assets/graph-C8koNCFy.js +1 -0
- package/dist/assets/html2canvas.esm-HFdlUwfn.js +20 -0
- package/dist/assets/index-Cg7laj9Y.js +2 -0
- package/dist/assets/infoDiagram-42DDH7IO-B3fxENEb.js +1 -0
- package/dist/assets/{init-C7FSzFHJ.js → init-DMZMl1PR.js} +1 -1
- package/dist/assets/ishikawaDiagram-UXIWVN3A-DSYRAz6c.js +1 -0
- package/dist/assets/journeyDiagram-VCZTEJTY-C1ULMq89.js +1 -0
- package/dist/assets/kanban-definition-6JOO6SKY-DiS9f1Ou.js +1 -0
- package/dist/assets/katex-DSO9-KAp.js +1 -0
- package/dist/assets/layout-Dw7PqMj_.js +1 -0
- package/dist/assets/linear-CzxAHmCK.js +1 -0
- package/dist/assets/mermaid.core-DaRhWNVu.js +7 -0
- package/dist/assets/min-CYyUMv00.js +1 -0
- package/dist/assets/mindmap-definition-QFDTVHPH-BSnxqws_.js +1 -0
- package/dist/assets/ordinal-DA-_8pMy.js +1 -0
- package/dist/assets/pieDiagram-DEJITSTG-DLqzHBqi.js +1 -0
- package/dist/assets/quadrantDiagram-34T5L4WZ-BxGLS3JO.js +1 -0
- package/dist/assets/requirementDiagram-MS252O5E-CFH2qTHK.js +1 -0
- package/dist/assets/sankeyDiagram-XADWPNL6-CbI11f-J.js +1 -0
- package/dist/assets/sequenceDiagram-FGHM5R23-WQeKqjGD.js +1 -0
- package/dist/assets/stateDiagram-FHFEXIEX--nhFK-dR.js +1 -0
- package/dist/assets/stateDiagram-v2-QKLJ7IA2-DpubT_1_.js +1 -0
- package/dist/assets/timeline-definition-GMOUNBTQ-Dvcn0Sjo.js +1 -0
- package/dist/assets/vendor-antd-n6I8Q8WX.js +17 -0
- package/dist/assets/vendor-codemirror-CXzpjiCu.js +1 -0
- package/dist/assets/vendor-highlight-IFTJ9nxW.js +1 -0
- package/dist/assets/vendor-markdown-Bpu4AByL.js +1 -0
- package/dist/assets/vendor-qrcode-CVdDMI3Y.js +6 -0
- package/dist/assets/vendor-virtuoso-bstsOWAx.js +1 -0
- package/dist/assets/vendor-xterm-DckPrCx1.js +37 -0
- package/dist/assets/vennDiagram-DHZGUBPP-Bjjoa-3c.js +1 -0
- package/dist/assets/wardley-RL74JXVD-D8p4v9Ts.js +1 -0
- package/dist/assets/wardleyDiagram-NUSXRM2D-DoGm-2Kz.js +1 -0
- package/dist/assets/xychartDiagram-5P7HB3ND-D2jULfQB.js +1 -0
- package/dist/index.html +3 -3
- package/package.json +2 -1
- package/dist/assets/App-DuGHwadX.js +0 -31
- package/dist/assets/AppHeader.module-CozRDKfP.js +0 -573
- package/dist/assets/Mobile-Bab634xx.js +0 -10
- package/dist/assets/_baseUniq-DJPPdHyT.js +0 -1
- package/dist/assets/arc-DZ3Bjq-l.js +0 -1
- package/dist/assets/architectureDiagram-Q4EWVU46-xy0J2lr0.js +0 -36
- package/dist/assets/blockDiagram-DXYQGD6D-CoUm8UC5.js +0 -132
- package/dist/assets/c4Diagram-AHTNJAMY-CFHX4Dfx.js +0 -10
- package/dist/assets/chunk-4BX2VUAB-CiktxOyY.js +0 -1
- package/dist/assets/chunk-4TB4RGXK-DHl7ZlQV.js +0 -206
- package/dist/assets/chunk-55IACEB6-DcgWxDD5.js +0 -1
- package/dist/assets/chunk-EDXVE4YY-DeUzWpQx.js +0 -1
- package/dist/assets/chunk-FMBD7UC4-BCaKpugk.js +0 -15
- package/dist/assets/chunk-OYMX7WX6-DKMEMbG9.js +0 -231
- package/dist/assets/chunk-QZHKN3VN-BREApeQ-.js +0 -1
- package/dist/assets/classDiagram-6PBFFD2Q-B0-7EUsz.js +0 -1
- package/dist/assets/classDiagram-v2-HSJHXN6E-B0-7EUsz.js +0 -1
- package/dist/assets/clone-CX_D5SrR.js +0 -1
- package/dist/assets/cose-bilkent-S5V4N54A-DpwiMCiq.js +0 -1
- package/dist/assets/cytoscape.esm-BMgRe88L.js +0 -331
- package/dist/assets/dagre-KV5264BT-Dc7qbya2.js +0 -4
- package/dist/assets/defaultLocale-CcTwRAjA.js +0 -1
- package/dist/assets/diagram-5BDNPKRD-v7FsHeLQ.js +0 -10
- package/dist/assets/diagram-G4DWMVQ6-BhKNBlcE.js +0 -24
- package/dist/assets/diagram-MMDJMWI5-C-3cRdzG.js +0 -43
- package/dist/assets/diagram-TYMM5635-HfNcJIfT.js +0 -24
- package/dist/assets/erDiagram-SMLLAGMA-Ckj0dkk7.js +0 -85
- package/dist/assets/flowDiagram-DWJPFMVM-yf315tJr.js +0 -162
- package/dist/assets/ganttDiagram-T4ZO3ILL-Ch2bINVC.js +0 -292
- package/dist/assets/gitGraphDiagram-UUTBAWPF-CesdgsJi.js +0 -106
- package/dist/assets/graph-CRpmapJV.js +0 -1
- package/dist/assets/html2canvas.esm-B8c0f9Wq.js +0 -22
- package/dist/assets/index-DJ0iGKLy.js +0 -2
- package/dist/assets/infoDiagram-42DDH7IO-CuD16P9Y.js +0 -2
- package/dist/assets/ishikawaDiagram-UXIWVN3A-4y8aG54G.js +0 -70
- package/dist/assets/journeyDiagram-VCZTEJTY-B6TtR2Zk.js +0 -139
- package/dist/assets/kanban-definition-6JOO6SKY-DTcNHYUS.js +0 -89
- package/dist/assets/katex-CJRKSY_b.js +0 -257
- package/dist/assets/layout-CX5hpkD2.js +0 -1
- package/dist/assets/linear-tWlC-NXc.js +0 -1
- package/dist/assets/mermaid.core-DNvsWVDx.js +0 -308
- package/dist/assets/min-CDExe3RN.js +0 -1
- package/dist/assets/mindmap-definition-QFDTVHPH-CW0yNQcb.js +0 -96
- package/dist/assets/ordinal-aRyHI6gl.js +0 -1
- package/dist/assets/pieDiagram-DEJITSTG-DNrnOqmz.js +0 -30
- package/dist/assets/quadrantDiagram-34T5L4WZ-Cl176vnh.js +0 -7
- package/dist/assets/requirementDiagram-MS252O5E-DKp3A5f_.js +0 -84
- package/dist/assets/sankeyDiagram-XADWPNL6-BMV0lAz8.js +0 -10
- package/dist/assets/sequenceDiagram-FGHM5R23-CQ4preep.js +0 -157
- package/dist/assets/stateDiagram-FHFEXIEX-BKqYYN8H.js +0 -1
- package/dist/assets/stateDiagram-v2-QKLJ7IA2-C1W1ECmZ.js +0 -1
- package/dist/assets/timeline-definition-GMOUNBTQ-4kgeuumv.js +0 -120
- package/dist/assets/vendor-antd-Dk5s46Ag.js +0 -406
- package/dist/assets/vendor-codemirror-DxvDOrio.js +0 -46
- package/dist/assets/vendor-highlight-DVwgAdJY.js +0 -3
- package/dist/assets/vendor-markdown-DO-Ppp4f.js +0 -60
- package/dist/assets/vendor-qrcode-hI5wlAgK.js +0 -9
- package/dist/assets/vendor-virtuoso-HW77kTCh.js +0 -1
- package/dist/assets/vendor-xterm-D2cUrYEx.js +0 -140
- package/dist/assets/vennDiagram-DHZGUBPP-CqBcUIdK.js +0 -34
- package/dist/assets/wardley-RL74JXVD-CbEnkKx8.js +0 -162
- package/dist/assets/wardleyDiagram-NUSXRM2D-BJrjkZMg.js +0 -20
- package/dist/assets/xychartDiagram-5P7HB3ND-D8aBEz8e.js +0 -7
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Mobile-Bab634xx.js","assets/vendor-codemirror-DxvDOrio.js","assets/vendor-antd-Dk5s46Ag.js","assets/AppHeader.module-CozRDKfP.js","assets/vendor-markdown-DO-Ppp4f.js","assets/vendor-xterm-D2cUrYEx.js","assets/vendor-highlight-DVwgAdJY.js","assets/vendor-virtuoso-HW77kTCh.js","assets/AppHeader-D8MCV07q.css","assets/Mobile-DolwHzoQ.css","assets/App-DuGHwadX.js","assets/vendor-qrcode-hI5wlAgK.js","assets/App-fG2r3jFq.css"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{j as jsxRuntimeExports}from"./vendor-codemirror-DxvDOrio.js";import{k as requireReactDom,g as getDefaultExportFromCjs}from"./vendor-antd-Dk5s46Ag.js";(function(){const relList=document.createElement("link").relList;if(relList&&relList.supports&&relList.supports("modulepreload"))return;for(const link of document.querySelectorAll('link[rel="modulepreload"]'))processPreload(link);new MutationObserver(mutations=>{for(const mutation of mutations)if(mutation.type==="childList")for(const node of mutation.addedNodes)node.tagName==="LINK"&&node.rel==="modulepreload"&&processPreload(node)}).observe(document,{childList:!0,subtree:!0});function getFetchOpts(link){const fetchOpts={};return link.integrity&&(fetchOpts.integrity=link.integrity),link.referrerPolicy&&(fetchOpts.referrerPolicy=link.referrerPolicy),link.crossOrigin==="use-credentials"?fetchOpts.credentials="include":link.crossOrigin==="anonymous"?fetchOpts.credentials="omit":fetchOpts.credentials="same-origin",fetchOpts}function processPreload(link){if(link.ep)return;link.ep=!0;const fetchOpts=getFetchOpts(link);fetch(link.href,fetchOpts)}})();const scriptRel="modulepreload",assetsURL=function(dep){return"/"+dep},seen={},__vitePreload=function(baseModule,deps,importerUrl){let promise=Promise.resolve();if(deps&&deps.length>0){let allSettled2=function(promises){return Promise.all(promises.map(p=>Promise.resolve(p).then(value=>({status:"fulfilled",value}),reason=>({status:"rejected",reason}))))};document.getElementsByTagName("link");const cspNonceMeta=document.querySelector("meta[property=csp-nonce]"),cspNonce=(cspNonceMeta==null?void 0:cspNonceMeta.nonce)||(cspNonceMeta==null?void 0:cspNonceMeta.getAttribute("nonce"));promise=allSettled2(deps.map(dep=>{if(dep=assetsURL(dep),dep in seen)return;seen[dep]=!0;const isCss=dep.endsWith(".css"),cssSelector=isCss?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${dep}"]${cssSelector}`))return;const link=document.createElement("link");if(link.rel=isCss?"stylesheet":scriptRel,isCss||(link.as="script"),link.crossOrigin="",link.href=dep,cspNonce&&link.setAttribute("nonce",cspNonce),document.head.appendChild(link),isCss)return new Promise((res,rej)=>{link.addEventListener("load",res),link.addEventListener("error",()=>rej(new Error(`Unable to preload CSS for ${dep}`)))})}))}function handlePreloadError(err){const e=new Event("vite:preloadError",{cancelable:!0});if(e.payload=err,window.dispatchEvent(e),!e.defaultPrevented)throw err}return promise.then(res=>{for(const item of res||[])item.status==="rejected"&&handlePreloadError(item.reason);return baseModule().catch(handlePreloadError)})};(function(){let token=null;function extractToken(){return token||(token=new URLSearchParams(window.location.search).get("token")||"",token)}function addToken(url){const t=extractToken();if(!t)return url;if(url.startsWith("/")){const separator=url.includes("?")?"&":"?";return`${url}${separator}token=${encodeURIComponent(t)}`}try{const urlObj=new URL(url);if(urlObj.origin===window.location.origin)return urlObj.searchParams.set("token",t),urlObj.toString()}catch{}return url}const originalFetch=window.fetch;window.fetch=function(url,options){return originalFetch(addToken(url),options)};const OriginalEventSource=window.EventSource;window.EventSource=function(url,config){return new OriginalEventSource(addToken(url),config)};const OriginalWebSocket=window.WebSocket;window.WebSocket=function(url,protocols){return new OriginalWebSocket(addToken(url),protocols)},window.WebSocket.prototype=OriginalWebSocket.prototype,window.WebSocket.CONNECTING=OriginalWebSocket.CONNECTING,window.WebSocket.OPEN=OriginalWebSocket.OPEN,window.WebSocket.CLOSING=OriginalWebSocket.CLOSING,window.WebSocket.CLOSED=OriginalWebSocket.CLOSED})();var client={},hasRequiredClient;function requireClient(){if(hasRequiredClient)return client;hasRequiredClient=1;var m=requireReactDom();return client.createRoot=m.createRoot,client.hydrateRoot=m.hydrateRoot,client}var clientExports=requireClient();const ReactDOM=getDefaultExportFromCjs(clientExports),_isIPadOS=navigator.maxTouchPoints>1&&/Macintosh/i.test(navigator.userAgent),_params=new URLSearchParams(window.location.search),_forceMobile=_params.get("mobile")==="1",_forcePad=_params.get("ipad")==="1",_savedMode=!_forceMobile&&!_forcePad?localStorage.getItem("ccv_viewMode"):null,_autoNarrow=!_forceMobile&&!_forcePad&&!_savedMode&&!/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent)&&!_isIPadOS&&window.innerWidth<750,isPad=_forcePad||_savedMode==="pad"||_autoNarrow,isMobile=_forcePad||_forceMobile||_savedMode==="pad"||_autoNarrow||_savedMode!=="pc"&&(/Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent)||_isIPadOS),isIOS=/iPhone|iPad|iPod/i.test(navigator.userAgent)||_isIPadOS;isPad&&document.documentElement.classList.add("pad-mode");isMobile&&isIOS&&!isPad&&document.documentElement.classList.add("mobile-ios");function setViewMode(mode){localStorage.setItem("ccv_viewMode",mode),location.reload()}const root=ReactDOM.createRoot(document.getElementById("root")),onLoadError=err=>{console.error("Failed to load app module:",err),document.getElementById("root").textContent="Loading failed. Please refresh the page."};isMobile?__vitePreload(async()=>{const{default:Mobile}=await import("./Mobile-Bab634xx.js");return{default:Mobile}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(({default:Mobile})=>{root.render(jsxRuntimeExports.jsx(Mobile,{}))}).catch(onLoadError):__vitePreload(async()=>{const{default:App}=await import("./App-DuGHwadX.js");return{default:App}},__vite__mapDeps([10,1,2,3,4,5,6,7,8,11,12])).then(({default:App})=>{root.render(jsxRuntimeExports.jsx(App,{}))}).catch(onLoadError);export{__vitePreload as _,isPad as a,isMobile as b,isIOS as i,setViewMode as s};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{_ as __name,l as log,H as selectSvgElement,e as configureSvgSize}from"./mermaid.core-DNvsWVDx.js";import{p as parse}from"./wardley-RL74JXVD-CbEnkKx8.js";import"./index-DJ0iGKLy.js";import"./vendor-codemirror-DxvDOrio.js";import"./vendor-antd-Dk5s46Ag.js";import"./vendor-markdown-DO-Ppp4f.js";import"./min-CDExe3RN.js";import"./_baseUniq-DJPPdHyT.js";var parser={parse:__name(async input=>{const ast=await parse("info",input);log.debug(ast)},"parse")},DEFAULT_INFO_DB={version:"11.14.0"},getVersion=__name(()=>DEFAULT_INFO_DB.version,"getVersion"),db={getVersion},draw=__name((text,id,version)=>{log.debug(`rendering info diagram
|
|
2
|
-
`+text);const svg=selectSvgElement(id);configureSvgSize(svg,100,400,!0),svg.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${version}`)},"draw"),renderer={draw},diagram={parser,db,renderer};export{diagram};
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import{_ as __name,c as getConfig2,M as parseFontSize,H as selectSvgElement,ar as at,y as clear,k as common_default,p as setDiagramTitle,a as getAccTitle,b as setAccTitle,g as getAccDescription,s as setAccDescription,q as getDiagramTitle,e as configureSvgSize}from"./mermaid.core-DNvsWVDx.js";import"./index-DJ0iGKLy.js";import"./vendor-codemirror-DxvDOrio.js";import"./vendor-antd-Dk5s46Ag.js";import"./vendor-markdown-DO-Ppp4f.js";var parser=(function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,4],$V1=[1,14],$V2=[1,12],$V3=[1,13],$V4=[6,7,8],$V5=[1,20],$V6=[1,18],$V7=[1,19],$V8=[6,7,11],$V9=[1,6,13,14],$Va=[1,23],$Vb=[1,24],$Vc=[1,6,7,11,13,14],parser2={trace:__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 6:case 7:return yy;case 15:yy.addNode($$[$0-1].length,$$[$0].trim());break;case 16:yy.addNode(0,$$[$0].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:$V0},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:$V0},{6:$V1,7:[1,10],9:9,12:11,13:$V2,14:$V3},o($V4,[2,3]),{1:[2,2]},o($V4,[2,4]),o($V4,[2,5]),{1:[2,6],6:$V1,12:15,13:$V2,14:$V3},{6:$V1,9:16,12:11,13:$V2,14:$V3},{6:$V5,7:$V6,10:17,11:$V7},o($V8,[2,18],{14:[1,21]}),o($V8,[2,16]),o($V8,[2,17]),{6:$V5,7:$V6,10:22,11:$V7},{1:[2,7],6:$V1,12:15,13:$V2,14:$V3},o($V9,[2,14],{7:$Va,11:$Vb}),o($Vc,[2,8]),o($Vc,[2,9]),o($Vc,[2,10]),o($V8,[2,15]),o($V9,[2,13],{7:$Va,11:$Vb}),o($Vc,[2,11]),o($Vc,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:__name(function(str,hash){if(hash.recoverable)this.trace(str);else{var error=new Error(str);throw error.hash=hash,error}},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,TERROR=2,EOF=1,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,typeof lexer2.yylloc>"u"&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;typeof sharedState.yy.parseError=="function"?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function popStack(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n}__name(popStack,"popStack");function lex(){var token;return token=tstack.pop()||lexer2.lex()||EOF,typeof token!="number"&&(token instanceof Array&&(tstack=token,token=tstack.pop()),token=self.symbols_[token]||token),token}__name(lex,"lex");for(var symbol,state,action,r,yyval={},p,len,newState,expected;;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:((symbol===null||typeof symbol>"u")&&(symbol=lex()),action=table[state]&&table[state][symbol]),typeof action>"u"||!action.length||!action[0]){var errStr="";expected=[];for(p in table[state])this.terminals_[p]&&p>TERROR&&expected.push("'"+this.terminals_[p]+"'");lexer2.showPosition?errStr="Parse error on line "+(yylineno+1)+`:
|
|
2
|
-
`+lexer2.showPosition()+`
|
|
3
|
-
Expecting `+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":errStr="Parse error on line "+(yylineno+1)+": Unexpected "+(symbol==EOF?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args)),typeof r<"u")return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=(function(){var lexer2={EOF:1,parseError:__name(function(str,hash){if(this.yy.parser)this.yy.parser.parseError(str,hash);else throw new Error(str)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch;var lines=ch.match(/(?:\r\n?|\n).*/g);return lines?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+`
|
|
5
|
-
`+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(backup.yylloc.range=this.yylloc.range.slice(0))),lines=match[0].match(/(?:\r\n?|\n).*/g),lines&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var token,match,tempMatch,index;this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if(tempMatch=this._input.match(this.rules[rules[i]]),tempMatch&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(token=this.test_match(tempMatch,rules[i]),token!==!1)return token;if(this._backtrack){match=!1;continue}else return!1}else if(!this.options.flex)break}return match?(token=this.test_match(match,rules[index]),token!==!1?token:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:__name(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:return 6;case 1:return 8;case 2:return 8;case 3:return 6;case 4:return 7;case 5:return 13;case 6:return 14;case 7:return 11}},"anonymous"),rules:[/^(?:\s*%%.*)/i,/^(?:ishikawa-beta\b)/i,/^(?:ishikawa\b)/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[\s]+)/i,/^(?:[^\n]+)/i,/^(?:$)/i],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7],inclusive:!0}}};return lexer2})();parser2.lexer=lexer;function Parser(){this.yy={}}return __name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser})();parser.parser=parser;var ishikawa_default=parser,_a,IshikawaDB=(_a=class{constructor(){this.stack=[],this.clear=this.clear.bind(this),this.addNode=this.addNode.bind(this),this.getRoot=this.getRoot.bind(this)}clear(){this.root=void 0,this.stack=[],this.baseLevel=void 0,clear()}getRoot(){return this.root}addNode(rawLevel,text){const label=common_default.sanitizeText(text,getConfig2());if(!this.root){this.root={text:label,children:[]},this.stack=[{level:0,node:this.root}],setDiagramTitle(label);return}this.baseLevel??(this.baseLevel=rawLevel);let level=rawLevel-this.baseLevel+1;for(level<=0&&(level=1);this.stack.length>1&&this.stack[this.stack.length-1].level>=level;)this.stack.pop();const parent=this.stack[this.stack.length-1].node,node={text:label,children:[]};parent.children.push(node),this.stack.push({level,node})}getAccTitle(){return getAccTitle()}setAccTitle(title){setAccTitle(title)}getAccDescription(){return getAccDescription()}setAccDescription(description){setAccDescription(description)}getDiagramTitle(){return getDiagramTitle()}setDiagramTitle(title){setDiagramTitle(title)}},__name(_a,"IshikawaDB"),_a),FONT_SIZE_DEFAULT=14,SPINE_BASE_LENGTH=250,BONE_STUB=30,BONE_BASE=60,BONE_PER_CHILD=5,ANGLE=82*Math.PI/180,COS_A=Math.cos(ANGLE),SIN_A=Math.sin(ANGLE),applyPaddedViewBox=__name((svgEl,pad,maxW)=>{const bbox=svgEl.node().getBBox(),w=bbox.width+pad*2,h=bbox.height+pad*2;configureSvgSize(svgEl,h,w,maxW),svgEl.attr("viewBox",`${bbox.x-pad} ${bbox.y-pad} ${w} ${h}`)},"applyPaddedViewBox"),draw=__name((_text,id,_version,diagram2)=>{var _a2,_b;const root=diagram2.db.getRoot();if(!root)return;const drawConfig=getConfig2(),{look,handDrawnSeed,themeVariables}=drawConfig,fontSize=parseFontSize(drawConfig.fontSize)[0]??FONT_SIZE_DEFAULT,isHandDrawn=look==="handDrawn",causes=root.children??[],padding=((_a2=drawConfig.ishikawa)==null?void 0:_a2.diagramPadding)??20,useMaxWidth=((_b=drawConfig.ishikawa)==null?void 0:_b.useMaxWidth)??!1,svg=selectSvgElement(id),g=svg.append("g").attr("class","ishikawa"),roughSvg=isHandDrawn?at.svg(svg.node()):void 0,roughContext=roughSvg?{roughSvg,seed:handDrawnSeed??0,lineColor:(themeVariables==null?void 0:themeVariables.lineColor)??"#333",fillColor:(themeVariables==null?void 0:themeVariables.mainBkg)??"#fff"}:void 0,markerId=`ishikawa-arrow-${id}`;isHandDrawn||g.append("defs").append("marker").attr("id",markerId).attr("viewBox","0 0 10 10").attr("refX",0).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 Z").attr("class","ishikawa-arrow");let spineX=0,spineY=SPINE_BASE_LENGTH;const spineLine=isHandDrawn?void 0:drawLine(g,spineX,spineY,spineX,spineY,"ishikawa-spine");if(drawHead(g,spineX,spineY,root.text,fontSize,roughContext),!causes.length){isHandDrawn&&drawLine(g,spineX,spineY,spineX,spineY,"ishikawa-spine",roughContext),applyPaddedViewBox(svg,padding,useMaxWidth);return}spineX-=20;const upperCauses=causes.filter((_,i)=>i%2===0),lowerCauses=causes.filter((_,i)=>i%2===1),upperStats=sideStats(upperCauses),lowerStats=sideStats(lowerCauses),descendantTotal=upperStats.total+lowerStats.total;let upperLen=SPINE_BASE_LENGTH,lowerLen=SPINE_BASE_LENGTH;if(descendantTotal>0){const pool=SPINE_BASE_LENGTH*2,minLen=SPINE_BASE_LENGTH*.3;upperLen=Math.max(minLen,pool*(upperStats.total/descendantTotal)),lowerLen=Math.max(minLen,pool*(lowerStats.total/descendantTotal))}const minSpacing=fontSize*2;upperLen=Math.max(upperLen,upperStats.max*minSpacing),lowerLen=Math.max(lowerLen,lowerStats.max*minSpacing),spineY=Math.max(upperLen,SPINE_BASE_LENGTH),spineLine&&spineLine.attr("y1",spineY).attr("y2",spineY),g.select(".ishikawa-head-group").attr("transform",`translate(0,${spineY})`);const pairCount=Math.ceil(causes.length/2);for(let p=0;p<pairCount;p++){const pg=g.append("g").attr("class","ishikawa-pair");for(const[cause,dir,len]of[[causes[p*2],-1,upperLen],[causes[p*2+1],1,lowerLen]])cause&&drawBranch(pg,cause,spineX,spineY,dir,len,fontSize,roughContext);spineX=pg.selectAll("text").nodes().reduce((left,n)=>Math.min(left,n.getBBox().x),1/0)}if(isHandDrawn)drawLine(g,spineX,spineY,0,spineY,"ishikawa-spine",roughContext);else{spineLine.attr("x1",spineX);const markerUrl=`url(#${markerId})`;g.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start",markerUrl)}applyPaddedViewBox(svg,padding,useMaxWidth)},"draw"),sideStats=__name(nodes=>{const countDescendants=__name(node=>node.children.reduce((sum,child)=>sum+1+countDescendants(child),0),"countDescendants");return nodes.reduce((stats,node)=>{const descendants=countDescendants(node);return stats.total+=descendants,stats.max=Math.max(stats.max,descendants),stats},{total:0,max:0})},"sideStats"),drawHead=__name((svg,x,y,label,fontSize,roughContext)=>{const maxChars=Math.max(6,Math.floor(110/(fontSize*.6))),headGroup=svg.append("g").attr("class","ishikawa-head-group").attr("transform",`translate(${x},${y})`),textEl=drawMultilineText(headGroup,wrapText(label,maxChars),0,0,"ishikawa-head-label","start",fontSize),tb=textEl.node().getBBox(),w=Math.max(60,tb.width+6),h=Math.max(40,tb.height*2+40),headPath=`M 0 ${-h/2} L 0 ${h/2} Q ${w*2.4} 0 0 ${-h/2} Z`;if(roughContext){const roughNode=roughContext.roughSvg.path(headPath,{roughness:1.5,seed:roughContext.seed,fill:roughContext.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:roughContext.lineColor,strokeWidth:2});headGroup.insert(()=>roughNode,":first-child").attr("class","ishikawa-head")}else headGroup.insert("path",":first-child").attr("class","ishikawa-head").attr("d",headPath);textEl.attr("transform",`translate(${(w-tb.width)/2-tb.x+3},${-tb.y-tb.height/2})`)},"drawHead"),flattenTree=__name((children,direction)=>{const entries=[],yOrder=[],walk=__name((nodes,pid,depth)=>{const ordered=direction===-1?[...nodes].reverse():nodes;for(const child of ordered){const idx=entries.length,gc=child.children??[];entries.push({depth,text:wrapText(child.text,15),parentIndex:pid,childCount:gc.length}),depth%2===0?(yOrder.push(idx),gc.length&&walk(gc,idx,depth+1)):(gc.length&&walk(gc,idx,depth+1),yOrder.push(idx))}},"walk");return walk(children,-1,2),{entries,yOrder}},"flattenTree"),drawCauseLabel=__name((svg,text,x,y,direction,fontSize,roughContext)=>{const lg=svg.append("g").attr("class","ishikawa-label-group"),tb=drawMultilineText(lg,text,x,y+11*direction,"ishikawa-label cause","middle",fontSize).node().getBBox();if(roughContext){const roughNode=roughContext.roughSvg.rectangle(tb.x-20,tb.y-2,tb.width+40,tb.height+4,{roughness:1.5,seed:roughContext.seed,fill:roughContext.fillColor,fillStyle:"hachure",fillWeight:2.5,hachureGap:5,stroke:roughContext.lineColor,strokeWidth:2});lg.insert(()=>roughNode,":first-child").attr("class","ishikawa-label-box")}else lg.insert("rect",":first-child").attr("class","ishikawa-label-box").attr("x",tb.x-20).attr("y",tb.y-2).attr("width",tb.width+40).attr("height",tb.height+4)},"drawCauseLabel"),drawArrowMarker=__name((g,x,y,dx,dy,roughContext)=>{const len=Math.sqrt(dx*dx+dy*dy);if(len===0)return;const ux=dx/len,uy=dy/len,s=6,px=-uy*s,py=ux*s,tipX=x,tipY=y,d=`M ${tipX} ${tipY} L ${tipX-ux*s*2+px} ${tipY-uy*s*2+py} L ${tipX-ux*s*2-px} ${tipY-uy*s*2-py} Z`,roughNode=roughContext.roughSvg.path(d,{roughness:1,seed:roughContext.seed,fill:roughContext.lineColor,fillStyle:"solid",stroke:roughContext.lineColor,strokeWidth:1});g.append(()=>roughNode)},"drawArrowMarker"),drawBranch=__name((svg,node,startX,startY,direction,length,fontSize,roughContext)=>{const children=node.children??[],lineLen=length*(children.length?1:.2),dx=-COS_A*lineLen,dy=SIN_A*lineLen*direction,endX=startX+dx,endY=startY+dy;if(drawLine(svg,startX,startY,endX,endY,"ishikawa-branch",roughContext),roughContext&&drawArrowMarker(svg,startX,startY,startX-endX,startY-endY,roughContext),drawCauseLabel(svg,node.text,endX,endY,direction,fontSize,roughContext),!children.length)return;const{entries,yOrder}=flattenTree(children,direction),entryCount=entries.length,ys=new Array(entryCount);for(const[slot,entryIdx]of yOrder.entries())ys[entryIdx]=startY+dy*((slot+1)/(entryCount+1));const bones=new Map;bones.set(-1,{x0:startX,y0:startY,x1:endX,y1:endY,childCount:children.length,childrenDrawn:0});const diagonalX=-COS_A,diagonalY=SIN_A*direction,oddLabel=direction<0?"ishikawa-label up":"ishikawa-label down";for(const[i,e]of entries.entries()){const y=ys[i],par=bones.get(e.parentIndex),grp=svg.append("g").attr("class","ishikawa-sub-group");let bx0=0,by0=0,bx1=0;if(e.depth%2===0){const dyP=par.y1-par.y0;bx0=lerp(par.x0,par.x1,dyP?(y-par.y0)/dyP:.5),by0=y,bx1=bx0-(e.childCount>0?BONE_BASE+e.childCount*BONE_PER_CHILD:BONE_STUB),drawLine(grp,bx0,y,bx1,y,"ishikawa-sub-branch",roughContext),roughContext&&drawArrowMarker(grp,bx0,y,1,0,roughContext),drawMultilineText(grp,e.text,bx1,y,"ishikawa-label align","end",fontSize)}else{const k=par.childrenDrawn++;bx0=lerp(par.x0,par.x1,(par.childCount-k)/(par.childCount+1)),by0=par.y0,bx1=bx0+diagonalX*((y-by0)/diagonalY),drawLine(grp,bx0,by0,bx1,y,"ishikawa-sub-branch",roughContext),roughContext&&drawArrowMarker(grp,bx0,by0,bx0-bx1,by0-y,roughContext),drawMultilineText(grp,e.text,bx1,y,oddLabel,"end",fontSize)}e.childCount>0&&bones.set(i,{x0:bx0,y0:by0,x1:bx1,y1:y,childCount:e.childCount,childrenDrawn:0})}},"drawBranch"),splitLines=__name(text=>text.split(/<br\s*\/?>|\n/),"splitLines"),wrapText=__name((text,maxChars)=>{if(text.length<=maxChars)return text;const lines=[];for(const word of text.split(/\s+/)){const last=lines.length-1;last>=0&&lines[last].length+1+word.length<=maxChars?lines[last]+=" "+word:lines.push(word)}return lines.join(`
|
|
7
|
-
`)},"wrapText"),drawMultilineText=__name((g,text,x,y,cls,anchor,fontSize)=>{const lines=splitLines(text),lh=fontSize*1.05,el=g.append("text").attr("class",cls).attr("text-anchor",anchor).attr("x",x).attr("y",y-(lines.length-1)*lh/2);for(const[i,line]of lines.entries())el.append("tspan").attr("x",x).attr("dy",i===0?0:lh).text(line);return el},"drawMultilineText"),lerp=__name((a,b,t)=>a+(b-a)*t,"lerp"),drawLine=__name((g,x1,y1,x2,y2,cls,roughContext)=>{if(roughContext){const roughNode=roughContext.roughSvg.line(x1,y1,x2,y2,{roughness:1.5,seed:roughContext.seed,stroke:roughContext.lineColor,strokeWidth:2});g.append(()=>roughNode).attr("class",cls);return}return g.append("line").attr("class",cls).attr("x1",x1).attr("y1",y1).attr("x2",x2).attr("y2",y2)},"drawLine"),renderer={draw},getStyles=__name(options=>`
|
|
8
|
-
.ishikawa .ishikawa-spine,
|
|
9
|
-
.ishikawa .ishikawa-branch,
|
|
10
|
-
.ishikawa .ishikawa-sub-branch {
|
|
11
|
-
stroke: ${options.lineColor};
|
|
12
|
-
stroke-width: 2;
|
|
13
|
-
fill: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.ishikawa .ishikawa-sub-branch {
|
|
17
|
-
stroke-width: 1;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ishikawa .ishikawa-arrow {
|
|
21
|
-
fill: ${options.lineColor};
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.ishikawa .ishikawa-head {
|
|
25
|
-
fill: ${options.mainBkg};
|
|
26
|
-
stroke: ${options.lineColor};
|
|
27
|
-
stroke-width: 2;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ishikawa .ishikawa-label-box {
|
|
31
|
-
fill: ${options.mainBkg};
|
|
32
|
-
stroke: ${options.lineColor};
|
|
33
|
-
stroke-width: 2;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.ishikawa text {
|
|
37
|
-
font-family: ${options.fontFamily};
|
|
38
|
-
font-size: ${options.fontSize};
|
|
39
|
-
fill: ${options.textColor};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ishikawa .ishikawa-head-label {
|
|
43
|
-
font-weight: 600;
|
|
44
|
-
text-anchor: middle;
|
|
45
|
-
dominant-baseline: middle;
|
|
46
|
-
font-size: 14px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.ishikawa .ishikawa-label {
|
|
50
|
-
text-anchor: end;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.ishikawa .ishikawa-label.cause {
|
|
54
|
-
text-anchor: middle;
|
|
55
|
-
dominant-baseline: middle;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.ishikawa .ishikawa-label.align {
|
|
59
|
-
text-anchor: end;
|
|
60
|
-
dominant-baseline: middle;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ishikawa .ishikawa-label.up {
|
|
64
|
-
dominant-baseline: baseline;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.ishikawa .ishikawa-label.down {
|
|
68
|
-
dominant-baseline: hanging;
|
|
69
|
-
}
|
|
70
|
-
`,"getStyles"),ishikawaStyles_default=getStyles,diagram={parser:ishikawa_default,get db(){return new IshikawaDB},renderer,styles:ishikawaStyles_default};export{diagram};
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import{g as getIconStyles}from"./chunk-FMBD7UC4-BCaKpugk.js";import{a as drawBackgroundRect,g as getNoteRect,h as drawText,d as drawRect}from"./chunk-YZCP3GAM-BYW1PNda.js";import{g as getAccDescription,s as setAccDescription,a as getAccTitle,b as setAccTitle,q as getDiagramTitle,p as setDiagramTitle,_ as __name,c as getConfig2,d as select,e as configureSvgSize,y as clear}from"./mermaid.core-DNvsWVDx.js";import{d as d3arc}from"./arc-DZ3Bjq-l.js";import"./index-DJ0iGKLy.js";import"./vendor-codemirror-DxvDOrio.js";import"./vendor-antd-Dk5s46Ag.js";import"./vendor-markdown-DO-Ppp4f.js";var parser=(function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[6,8,10,11,12,14,16,17,18],$V1=[1,9],$V2=[1,10],$V3=[1,11],$V4=[1,12],$V5=[1,13],$V6=[1,14],parser2={trace:__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 1:return $$[$0-1];case 2:this.$=[];break;case 3:$$[$0-1].push($$[$0]),this.$=$$[$0-1];break;case 4:case 5:this.$=$$[$0];break;case 6:case 7:this.$=[];break;case 8:yy.setDiagramTitle($$[$0].substr(6)),this.$=$$[$0].substr(6);break;case 9:this.$=$$[$0].trim(),yy.setAccTitle(this.$);break;case 10:case 11:this.$=$$[$0].trim(),yy.setAccDescription(this.$);break;case 12:yy.addSection($$[$0].substr(8)),this.$=$$[$0].substr(8);break;case 13:yy.addTask($$[$0-1],$$[$0]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},o($V0,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:$V1,12:$V2,14:$V3,16:$V4,17:$V5,18:$V6},o($V0,[2,7],{1:[2,1]}),o($V0,[2,3]),{9:15,11:$V1,12:$V2,14:$V3,16:$V4,17:$V5,18:$V6},o($V0,[2,5]),o($V0,[2,6]),o($V0,[2,8]),{13:[1,16]},{15:[1,17]},o($V0,[2,11]),o($V0,[2,12]),{19:[1,18]},o($V0,[2,4]),o($V0,[2,9]),o($V0,[2,10]),o($V0,[2,13])],defaultActions:{},parseError:__name(function(str,hash){if(hash.recoverable)this.trace(str);else{var error=new Error(str);throw error.hash=hash,error}},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,TERROR=2,EOF=1,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,typeof lexer2.yylloc>"u"&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;typeof sharedState.yy.parseError=="function"?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function popStack(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n}__name(popStack,"popStack");function lex(){var token;return token=tstack.pop()||lexer2.lex()||EOF,typeof token!="number"&&(token instanceof Array&&(tstack=token,token=tstack.pop()),token=self.symbols_[token]||token),token}__name(lex,"lex");for(var symbol,state,action,r,yyval={},p,len,newState,expected;;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:((symbol===null||typeof symbol>"u")&&(symbol=lex()),action=table[state]&&table[state][symbol]),typeof action>"u"||!action.length||!action[0]){var errStr="";expected=[];for(p in table[state])this.terminals_[p]&&p>TERROR&&expected.push("'"+this.terminals_[p]+"'");lexer2.showPosition?errStr="Parse error on line "+(yylineno+1)+`:
|
|
2
|
-
`+lexer2.showPosition()+`
|
|
3
|
-
Expecting `+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":errStr="Parse error on line "+(yylineno+1)+": Unexpected "+(symbol==EOF?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args)),typeof r<"u")return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=(function(){var lexer2={EOF:1,parseError:__name(function(str,hash){if(this.yy.parser)this.yy.parser.parseError(str,hash);else throw new Error(str)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch;var lines=ch.match(/(?:\r\n?|\n).*/g);return lines?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+`
|
|
5
|
-
`+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(backup.yylloc.range=this.yylloc.range.slice(0))),lines=match[0].match(/(?:\r\n?|\n).*/g),lines&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var token,match,tempMatch,index;this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if(tempMatch=this._input.match(this.rules[rules[i]]),tempMatch&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(token=this.test_match(tempMatch,rules[i]),token!==!1)return token;if(this._backtrack){match=!1;continue}else return!1}else if(!this.options.flex)break}return match?(token=this.test_match(match,rules[index]),token!==!1?token:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:__name(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:break;case 1:break;case 2:return 10;case 3:break;case 4:break;case 5:return 4;case 6:return 11;case 7:return this.begin("acc_title"),12;case 8:return this.popState(),"acc_title_value";case 9:return this.begin("acc_descr"),14;case 10:return this.popState(),"acc_descr_value";case 11:this.begin("acc_descr_multiline");break;case 12:this.popState();break;case 13:return"acc_descr_multiline_value";case 14:return 17;case 15:return 18;case 16:return 19;case 17:return":";case 18:return 6;case 19:return"INVALID"}},"anonymous"),rules:[/^(?:%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n]+)/i,/^(?:\s+)/i,/^(?:#[^\n]*)/i,/^(?:journey\b)/i,/^(?:title\s[^#\n;]+)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?:section\s[^#:\n;]+)/i,/^(?:[^#:\n;]+)/i,/^(?::[^#\n;]+)/i,/^(?::)/i,/^(?:$)/i,/^(?:.)/i],conditions:{acc_descr_multiline:{rules:[12,13],inclusive:!1},acc_descr:{rules:[10],inclusive:!1},acc_title:{rules:[8],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,7,9,11,14,15,16,17,18,19],inclusive:!0}}};return lexer2})();parser2.lexer=lexer;function Parser(){this.yy={}}return __name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser})();parser.parser=parser;var journey_default=parser,currentSection="",sections=[],tasks=[],rawTasks=[],clear2=__name(function(){sections.length=0,tasks.length=0,currentSection="",rawTasks.length=0,clear()},"clear"),addSection=__name(function(txt){currentSection=txt,sections.push(txt)},"addSection"),getSections=__name(function(){return sections},"getSections"),getTasks=__name(function(){let allItemsProcessed=compileTasks();const maxDepth=100;let iterationCount=0;for(;!allItemsProcessed&&iterationCount<maxDepth;)allItemsProcessed=compileTasks(),iterationCount++;return tasks.push(...rawTasks),tasks},"getTasks"),updateActors=__name(function(){const tempActors=[];return tasks.forEach(task=>{task.people&&tempActors.push(...task.people)}),[...new Set(tempActors)].sort()},"updateActors"),addTask=__name(function(descr,taskData){const pieces=taskData.substr(1).split(":");let score=0,peeps=[];pieces.length===1?(score=Number(pieces[0]),peeps=[]):(score=Number(pieces[0]),peeps=pieces[1].split(","));const peopleList=peeps.map(s=>s.trim()),rawTask={section:currentSection,type:currentSection,people:peopleList,task:descr,score};rawTasks.push(rawTask)},"addTask"),addTaskOrg=__name(function(descr){const newTask={section:currentSection,type:currentSection,description:descr,task:descr,classes:[]};tasks.push(newTask)},"addTaskOrg"),compileTasks=__name(function(){const compileTask=__name(function(pos){return rawTasks[pos].processed},"compileTask");let allProcessed=!0;for(const[i,rawTask]of rawTasks.entries())compileTask(i),allProcessed=allProcessed&&rawTask.processed;return allProcessed},"compileTasks"),getActors=__name(function(){return updateActors()},"getActors"),journeyDb_default={getConfig:__name(()=>getConfig2().journey,"getConfig"),clear:clear2,setDiagramTitle,getDiagramTitle,setAccTitle,getAccTitle,setAccDescription,getAccDescription,addSection,getSections,getTasks,addTask,addTaskOrg,getActors},getStyles=__name(options=>`.label {
|
|
7
|
-
font-family: ${options.fontFamily};
|
|
8
|
-
color: ${options.textColor};
|
|
9
|
-
}
|
|
10
|
-
.mouth {
|
|
11
|
-
stroke: #666;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
line {
|
|
15
|
-
stroke: ${options.textColor}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.legend {
|
|
19
|
-
fill: ${options.textColor};
|
|
20
|
-
font-family: ${options.fontFamily};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.label text {
|
|
24
|
-
fill: #333;
|
|
25
|
-
}
|
|
26
|
-
.label {
|
|
27
|
-
color: ${options.textColor}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.face {
|
|
31
|
-
${options.faceColor?`fill: ${options.faceColor}`:"fill: #FFF8DC"};
|
|
32
|
-
stroke: #999;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.node rect,
|
|
36
|
-
.node circle,
|
|
37
|
-
.node ellipse,
|
|
38
|
-
.node polygon,
|
|
39
|
-
.node path {
|
|
40
|
-
fill: ${options.mainBkg};
|
|
41
|
-
stroke: ${options.nodeBorder};
|
|
42
|
-
stroke-width: 1px;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.node .label {
|
|
46
|
-
text-align: center;
|
|
47
|
-
}
|
|
48
|
-
.node.clickable {
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.arrowheadPath {
|
|
53
|
-
fill: ${options.arrowheadColor};
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.edgePath .path {
|
|
57
|
-
stroke: ${options.lineColor};
|
|
58
|
-
stroke-width: 1.5px;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.flowchart-link {
|
|
62
|
-
stroke: ${options.lineColor};
|
|
63
|
-
fill: none;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.edgeLabel {
|
|
67
|
-
background-color: ${options.edgeLabelBackground};
|
|
68
|
-
rect {
|
|
69
|
-
opacity: 0.5;
|
|
70
|
-
}
|
|
71
|
-
text-align: center;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.cluster rect {
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.cluster text {
|
|
78
|
-
fill: ${options.titleColor};
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
div.mermaidTooltip {
|
|
82
|
-
position: absolute;
|
|
83
|
-
text-align: center;
|
|
84
|
-
max-width: 200px;
|
|
85
|
-
padding: 2px;
|
|
86
|
-
font-family: ${options.fontFamily};
|
|
87
|
-
font-size: 12px;
|
|
88
|
-
background: ${options.tertiaryColor};
|
|
89
|
-
border: 1px solid ${options.border2};
|
|
90
|
-
border-radius: 2px;
|
|
91
|
-
pointer-events: none;
|
|
92
|
-
z-index: 100;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.task-type-0, .section-type-0 {
|
|
96
|
-
${options.fillType0?`fill: ${options.fillType0}`:""};
|
|
97
|
-
}
|
|
98
|
-
.task-type-1, .section-type-1 {
|
|
99
|
-
${options.fillType0?`fill: ${options.fillType1}`:""};
|
|
100
|
-
}
|
|
101
|
-
.task-type-2, .section-type-2 {
|
|
102
|
-
${options.fillType0?`fill: ${options.fillType2}`:""};
|
|
103
|
-
}
|
|
104
|
-
.task-type-3, .section-type-3 {
|
|
105
|
-
${options.fillType0?`fill: ${options.fillType3}`:""};
|
|
106
|
-
}
|
|
107
|
-
.task-type-4, .section-type-4 {
|
|
108
|
-
${options.fillType0?`fill: ${options.fillType4}`:""};
|
|
109
|
-
}
|
|
110
|
-
.task-type-5, .section-type-5 {
|
|
111
|
-
${options.fillType0?`fill: ${options.fillType5}`:""};
|
|
112
|
-
}
|
|
113
|
-
.task-type-6, .section-type-6 {
|
|
114
|
-
${options.fillType0?`fill: ${options.fillType6}`:""};
|
|
115
|
-
}
|
|
116
|
-
.task-type-7, .section-type-7 {
|
|
117
|
-
${options.fillType0?`fill: ${options.fillType7}`:""};
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.actor-0 {
|
|
121
|
-
${options.actor0?`fill: ${options.actor0}`:""};
|
|
122
|
-
}
|
|
123
|
-
.actor-1 {
|
|
124
|
-
${options.actor1?`fill: ${options.actor1}`:""};
|
|
125
|
-
}
|
|
126
|
-
.actor-2 {
|
|
127
|
-
${options.actor2?`fill: ${options.actor2}`:""};
|
|
128
|
-
}
|
|
129
|
-
.actor-3 {
|
|
130
|
-
${options.actor3?`fill: ${options.actor3}`:""};
|
|
131
|
-
}
|
|
132
|
-
.actor-4 {
|
|
133
|
-
${options.actor4?`fill: ${options.actor4}`:""};
|
|
134
|
-
}
|
|
135
|
-
.actor-5 {
|
|
136
|
-
${options.actor5?`fill: ${options.actor5}`:""};
|
|
137
|
-
}
|
|
138
|
-
${getIconStyles()}
|
|
139
|
-
`,"getStyles"),styles_default=getStyles,drawRect2=__name(function(elem,rectData){return drawRect(elem,rectData)},"drawRect"),drawFace=__name(function(element,faceData){const circleElement=element.append("circle").attr("cx",faceData.cx).attr("cy",faceData.cy).attr("class","face").attr("r",15).attr("stroke-width",2).attr("overflow","visible"),face=element.append("g");face.append("circle").attr("cx",faceData.cx-15/3).attr("cy",faceData.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666"),face.append("circle").attr("cx",faceData.cx+15/3).attr("cy",faceData.cy-15/3).attr("r",1.5).attr("stroke-width",2).attr("fill","#666").attr("stroke","#666");function smile(face2){const arc=d3arc().startAngle(Math.PI/2).endAngle(3*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);face2.append("path").attr("class","mouth").attr("d",arc).attr("transform","translate("+faceData.cx+","+(faceData.cy+2)+")")}__name(smile,"smile");function sad(face2){const arc=d3arc().startAngle(3*Math.PI/2).endAngle(5*(Math.PI/2)).innerRadius(7.5).outerRadius(6.8181818181818175);face2.append("path").attr("class","mouth").attr("d",arc).attr("transform","translate("+faceData.cx+","+(faceData.cy+7)+")")}__name(sad,"sad");function ambivalent(face2){face2.append("line").attr("class","mouth").attr("stroke",2).attr("x1",faceData.cx-5).attr("y1",faceData.cy+7).attr("x2",faceData.cx+5).attr("y2",faceData.cy+7).attr("class","mouth").attr("stroke-width","1px").attr("stroke","#666")}return __name(ambivalent,"ambivalent"),faceData.score>3?smile(face):faceData.score<3?sad(face):ambivalent(face),circleElement},"drawFace"),drawCircle=__name(function(element,circleData){const circleElement=element.append("circle");return circleElement.attr("cx",circleData.cx),circleElement.attr("cy",circleData.cy),circleElement.attr("class","actor-"+circleData.pos),circleElement.attr("fill",circleData.fill),circleElement.attr("stroke",circleData.stroke),circleElement.attr("r",circleData.r),circleElement.class!==void 0&&circleElement.attr("class",circleElement.class),circleData.title!==void 0&&circleElement.append("title").text(circleData.title),circleElement},"drawCircle"),drawText2=__name(function(elem,textData){return drawText(elem,textData)},"drawText"),drawLabel=__name(function(elem,txtObject){function genPoints(x,y,width,height,cut){return x+","+y+" "+(x+width)+","+y+" "+(x+width)+","+(y+height-cut)+" "+(x+width-cut*1.2)+","+(y+height)+" "+x+","+(y+height)}__name(genPoints,"genPoints");const polygon=elem.append("polygon");polygon.attr("points",genPoints(txtObject.x,txtObject.y,50,20,7)),polygon.attr("class","labelBox"),txtObject.y=txtObject.y+txtObject.labelMargin,txtObject.x=txtObject.x+.5*txtObject.labelMargin,drawText2(elem,txtObject)},"drawLabel"),drawSection=__name(function(elem,section,conf2){const g=elem.append("g"),rect=getNoteRect();rect.x=section.x,rect.y=section.y,rect.fill=section.fill,rect.width=conf2.width*section.taskCount+conf2.diagramMarginX*(section.taskCount-1),rect.height=conf2.height,rect.class="journey-section section-type-"+section.num,rect.rx=3,rect.ry=3,drawRect2(g,rect),_drawTextCandidateFunc(conf2)(section.text,g,rect.x,rect.y,rect.width,rect.height,{class:"journey-section section-type-"+section.num},conf2,section.colour)},"drawSection"),taskCount=-1,drawTask=__name(function(elem,task,conf2,diagramId){const center=task.x+conf2.width/2,g=elem.append("g");taskCount++,g.append("line").attr("id",diagramId+"-task"+taskCount).attr("x1",center).attr("y1",task.y).attr("x2",center).attr("y2",450).attr("class","task-line").attr("stroke-width","1px").attr("stroke-dasharray","4 2").attr("stroke","#666"),drawFace(g,{cx:center,cy:300+(5-task.score)*30,score:task.score});const rect=getNoteRect();rect.x=task.x,rect.y=task.y,rect.fill=task.fill,rect.width=conf2.width,rect.height=conf2.height,rect.class="task task-type-"+task.num,rect.rx=3,rect.ry=3,drawRect2(g,rect);let xPos=task.x+14;task.people.forEach(person=>{const colour=task.actors[person].color,circle={cx:xPos,cy:task.y,r:7,fill:colour,stroke:"#000",title:person,pos:task.actors[person].position};drawCircle(g,circle),xPos+=10}),_drawTextCandidateFunc(conf2)(task.task,g,rect.x,rect.y,rect.width,rect.height,{class:"task"},conf2,task.colour)},"drawTask"),drawBackgroundRect2=__name(function(elem,bounds2){drawBackgroundRect(elem,bounds2)},"drawBackgroundRect"),_drawTextCandidateFunc=(function(){function byText(content,g,x,y,width,height,textAttrs,colour){const text=g.append("text").attr("x",x+width/2).attr("y",y+height/2+5).style("font-color",colour).style("text-anchor","middle").text(content);_setTextAttrs(text,textAttrs)}__name(byText,"byText");function byTspan(content,g,x,y,width,height,textAttrs,conf2,colour){const{taskFontSize,taskFontFamily}=conf2,lines=content.split(/<br\s*\/?>/gi);for(let i=0;i<lines.length;i++){const dy=i*taskFontSize-taskFontSize*(lines.length-1)/2,text=g.append("text").attr("x",x+width/2).attr("y",y).attr("fill",colour).style("text-anchor","middle").style("font-size",taskFontSize).style("font-family",taskFontFamily);text.append("tspan").attr("x",x+width/2).attr("dy",dy).text(lines[i]),text.attr("y",y+height/2).attr("dominant-baseline","central").attr("alignment-baseline","central"),_setTextAttrs(text,textAttrs)}}__name(byTspan,"byTspan");function byFo(content,g,x,y,width,height,textAttrs,conf2){const body=g.append("switch"),text=body.append("foreignObject").attr("x",x).attr("y",y).attr("width",width).attr("height",height).attr("position","fixed").append("xhtml:div").style("display","table").style("height","100%").style("width","100%");text.append("div").attr("class","label").style("display","table-cell").style("text-align","center").style("vertical-align","middle").text(content),byTspan(content,body,x,y,width,height,textAttrs,conf2),_setTextAttrs(text,textAttrs)}__name(byFo,"byFo");function _setTextAttrs(toText,fromTextAttrsDict){for(const key in fromTextAttrsDict)key in fromTextAttrsDict&&toText.attr(key,fromTextAttrsDict[key])}return __name(_setTextAttrs,"_setTextAttrs"),function(conf2){return conf2.textPlacement==="fo"?byFo:conf2.textPlacement==="old"?byText:byTspan}})(),initGraphics=__name(function(graphics,id){taskCount=-1,graphics.append("defs").append("marker").attr("id",id+"-arrowhead").attr("refX",5).attr("refY",2).attr("markerWidth",6).attr("markerHeight",4).attr("orient","auto").append("path").attr("d","M 0,0 V 4 L6,2 Z")},"initGraphics"),svgDraw_default={drawRect:drawRect2,drawCircle,drawSection,drawText:drawText2,drawLabel,drawTask,drawBackgroundRect:drawBackgroundRect2,initGraphics},setConf=__name(function(cnf){Object.keys(cnf).forEach(function(key){conf[key]=cnf[key]})},"setConf"),actors={},maxWidth=0;function drawActorLegend(diagram2){const conf2=getConfig2().journey,maxLabelWidth=conf2.maxLabelWidth;maxWidth=0;let yPos=60;Object.keys(actors).forEach(person=>{const colour=actors[person].color,circleData={cx:20,cy:yPos,r:7,fill:colour,stroke:"#000",pos:actors[person].position};svgDraw_default.drawCircle(diagram2,circleData);let measureText=diagram2.append("text").attr("visibility","hidden").text(person);const fullTextWidth=measureText.node().getBoundingClientRect().width;measureText.remove();let lines=[];if(fullTextWidth<=maxLabelWidth)lines=[person];else{const words=person.split(" ");let currentLine="";measureText=diagram2.append("text").attr("visibility","hidden"),words.forEach(word=>{const testLine=currentLine?`${currentLine} ${word}`:word;if(measureText.text(testLine),measureText.node().getBoundingClientRect().width>maxLabelWidth){if(currentLine&&lines.push(currentLine),currentLine=word,measureText.text(word),measureText.node().getBoundingClientRect().width>maxLabelWidth){let brokenWord="";for(const char of word)brokenWord+=char,measureText.text(brokenWord+"-"),measureText.node().getBoundingClientRect().width>maxLabelWidth&&(lines.push(brokenWord.slice(0,-1)+"-"),brokenWord=char);currentLine=brokenWord}}else currentLine=testLine}),currentLine&&lines.push(currentLine),measureText.remove()}lines.forEach((line,index)=>{const labelData={x:40,y:yPos+7+index*20,fill:"#666",text:line,textMargin:conf2.boxTextMargin??5},lineWidth=svgDraw_default.drawText(diagram2,labelData).node().getBoundingClientRect().width;lineWidth>maxWidth&&lineWidth>conf2.leftMargin-lineWidth&&(maxWidth=lineWidth)}),yPos+=Math.max(20,lines.length*20)})}__name(drawActorLegend,"drawActorLegend");var conf=getConfig2().journey,leftMargin=0,draw=__name(function(text,id,version,diagObj){const configObject=getConfig2(),titleColor=configObject.journey.titleColor,titleFontSize=configObject.journey.titleFontSize,titleFontFamily=configObject.journey.titleFontFamily,securityLevel=configObject.securityLevel;let sandboxElement;securityLevel==="sandbox"&&(sandboxElement=select("#i"+id));const root=securityLevel==="sandbox"?select(sandboxElement.nodes()[0].contentDocument.body):select("body");bounds.init();const diagram2=root.select("#"+id);svgDraw_default.initGraphics(diagram2,id);const tasks2=diagObj.db.getTasks(),title=diagObj.db.getDiagramTitle(),actorNames=diagObj.db.getActors();for(const member in actors)delete actors[member];let actorPos=0;actorNames.forEach(actorName=>{actors[actorName]={color:conf.actorColours[actorPos%conf.actorColours.length],position:actorPos},actorPos++}),drawActorLegend(diagram2),leftMargin=conf.leftMargin+maxWidth,bounds.insert(0,0,leftMargin,Object.keys(actors).length*50),drawTasks(diagram2,tasks2,0,id);const box=bounds.getBounds();title&&diagram2.append("text").text(title).attr("x",leftMargin).attr("font-size",titleFontSize).attr("font-weight","bold").attr("y",25).attr("fill",titleColor).attr("font-family",titleFontFamily);const height=box.stopy-box.starty+2*conf.diagramMarginY,width=leftMargin+box.stopx+2*conf.diagramMarginX;configureSvgSize(diagram2,height,width,conf.useMaxWidth),diagram2.append("line").attr("x1",leftMargin).attr("y1",conf.height*4).attr("x2",width-leftMargin-4).attr("y2",conf.height*4).attr("stroke-width",4).attr("stroke","black").attr("marker-end","url(#"+id+"-arrowhead)");const extraVertForTitle=title?70:0;diagram2.attr("viewBox",`${box.startx} -25 ${width} ${height+extraVertForTitle}`),diagram2.attr("preserveAspectRatio","xMinYMin meet"),diagram2.attr("height",height+extraVertForTitle+25)},"draw"),bounds={data:{startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},verticalPos:0,sequenceItems:[],init:__name(function(){this.sequenceItems=[],this.data={startx:void 0,stopx:void 0,starty:void 0,stopy:void 0},this.verticalPos=0},"init"),updateVal:__name(function(obj,key,val,fun){obj[key]===void 0?obj[key]=val:obj[key]=fun(val,obj[key])},"updateVal"),updateBounds:__name(function(startx,starty,stopx,stopy){const conf2=getConfig2().journey,_self=this;let cnt=0;function updateFn(type){return __name(function(item){cnt++;const n=_self.sequenceItems.length-cnt+1;_self.updateVal(item,"starty",starty-n*conf2.boxMargin,Math.min),_self.updateVal(item,"stopy",stopy+n*conf2.boxMargin,Math.max),_self.updateVal(bounds.data,"startx",startx-n*conf2.boxMargin,Math.min),_self.updateVal(bounds.data,"stopx",stopx+n*conf2.boxMargin,Math.max),type!=="activation"&&(_self.updateVal(item,"startx",startx-n*conf2.boxMargin,Math.min),_self.updateVal(item,"stopx",stopx+n*conf2.boxMargin,Math.max),_self.updateVal(bounds.data,"starty",starty-n*conf2.boxMargin,Math.min),_self.updateVal(bounds.data,"stopy",stopy+n*conf2.boxMargin,Math.max))},"updateItemBounds")}__name(updateFn,"updateFn"),this.sequenceItems.forEach(updateFn())},"updateBounds"),insert:__name(function(startx,starty,stopx,stopy){const _startx=Math.min(startx,stopx),_stopx=Math.max(startx,stopx),_starty=Math.min(starty,stopy),_stopy=Math.max(starty,stopy);this.updateVal(bounds.data,"startx",_startx,Math.min),this.updateVal(bounds.data,"starty",_starty,Math.min),this.updateVal(bounds.data,"stopx",_stopx,Math.max),this.updateVal(bounds.data,"stopy",_stopy,Math.max),this.updateBounds(_startx,_starty,_stopx,_stopy)},"insert"),bumpVerticalPos:__name(function(bump){this.verticalPos=this.verticalPos+bump,this.data.stopy=this.verticalPos},"bumpVerticalPos"),getVerticalPos:__name(function(){return this.verticalPos},"getVerticalPos"),getBounds:__name(function(){return this.data},"getBounds")},fills=conf.sectionFills,textColours=conf.sectionColours,drawTasks=__name(function(diagram2,tasks2,verticalPos,diagramId){const conf2=getConfig2().journey;let lastSection="";const sectionVHeight=conf2.height*2+conf2.diagramMarginY,taskPos=verticalPos+sectionVHeight;let sectionNumber=0,fill="#CCC",colour="black",num=0;for(const[i,task]of tasks2.entries()){if(lastSection!==task.section){fill=fills[sectionNumber%fills.length],num=sectionNumber%fills.length,colour=textColours[sectionNumber%textColours.length];let taskInSectionCount=0;const currentSection2=task.section;for(let taskIndex=i;taskIndex<tasks2.length&&tasks2[taskIndex].section==currentSection2;taskIndex++)taskInSectionCount=taskInSectionCount+1;const section={x:i*conf2.taskMargin+i*conf2.width+leftMargin,y:50,text:task.section,fill,num,colour,taskCount:taskInSectionCount};svgDraw_default.drawSection(diagram2,section,conf2),lastSection=task.section,sectionNumber++}const taskActors=task.people.reduce((acc,actorName)=>(actors[actorName]&&(acc[actorName]=actors[actorName]),acc),{});task.x=i*conf2.taskMargin+i*conf2.width+leftMargin,task.y=taskPos,task.width=conf2.diagramMarginX,task.height=conf2.diagramMarginY,task.colour=colour,task.fill=fill,task.num=num,task.actors=taskActors,svgDraw_default.drawTask(diagram2,task,conf2,diagramId),bounds.insert(task.x,task.y,task.x+task.width+conf2.taskMargin,450)}},"drawTasks"),journeyRenderer_default={setConf,draw},diagram={parser:journey_default,db:journeyDb_default,renderer:journeyRenderer_default,styles:styles_default,init:__name(cnf=>{journeyRenderer_default.setConf(cnf.journey),journeyDb_default.clear()},"init")};export{diagram};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import{_ as __name,l as log,c as getConfig2,H as selectSvgElement,ae as insertCluster,af as insertNode,ag as positionNode,X as setupGraphViewbox,F as defaultConfig_default,i as sanitizeText,t as load,J as JSON_SCHEMA,U as isDark,V as lighten,W as darken}from"./mermaid.core-DNvsWVDx.js";import{g as getIconStyles}from"./chunk-FMBD7UC4-BCaKpugk.js";import"./index-DJ0iGKLy.js";import"./vendor-codemirror-DxvDOrio.js";import"./vendor-antd-Dk5s46Ag.js";import"./vendor-markdown-DO-Ppp4f.js";var parser=(function(){var o=__name(function(k,v,o2,l){for(o2=o2||{},l=k.length;l--;o2[k[l]]=v);return o2},"o"),$V0=[1,4],$V1=[1,13],$V2=[1,12],$V3=[1,15],$V4=[1,16],$V5=[1,20],$V6=[1,19],$V7=[6,7,8],$V8=[1,26],$V9=[1,24],$Va=[1,25],$Vb=[6,7,11],$Vc=[1,31],$Vd=[6,7,11,24],$Ve=[1,6,13,16,17,20,23],$Vf=[1,35],$Vg=[1,36],$Vh=[1,6,7,11,13,16,17,20,23],$Vi=[1,38],parser2={trace:__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:__name(function(yytext,yyleng,yylineno,yy,yystate,$$,_$){var $0=$$.length-1;switch(yystate){case 6:case 7:return yy;case 8:yy.getLogger().trace("Stop NL ");break;case 9:yy.getLogger().trace("Stop EOF ");break;case 11:yy.getLogger().trace("Stop NL2 ");break;case 12:yy.getLogger().trace("Stop EOF2 ");break;case 15:yy.getLogger().info("Node: ",$$[$0-1].id),yy.addNode($$[$0-2].length,$$[$0-1].id,$$[$0-1].descr,$$[$0-1].type,$$[$0]);break;case 16:yy.getLogger().info("Node: ",$$[$0].id),yy.addNode($$[$0-1].length,$$[$0].id,$$[$0].descr,$$[$0].type);break;case 17:yy.getLogger().trace("Icon: ",$$[$0]),yy.decorateNode({icon:$$[$0]});break;case 18:case 23:yy.decorateNode({class:$$[$0]});break;case 19:yy.getLogger().trace("SPACELIST");break;case 20:yy.getLogger().trace("Node: ",$$[$0-1].id),yy.addNode(0,$$[$0-1].id,$$[$0-1].descr,$$[$0-1].type,$$[$0]);break;case 21:yy.getLogger().trace("Node: ",$$[$0].id),yy.addNode(0,$$[$0].id,$$[$0].descr,$$[$0].type);break;case 22:yy.decorateNode({icon:$$[$0]});break;case 27:yy.getLogger().trace("node found ..",$$[$0-2]),this.$={id:$$[$0-1],descr:$$[$0-1],type:yy.getType($$[$0-2],$$[$0])};break;case 28:this.$={id:$$[$0],descr:$$[$0],type:0};break;case 29:yy.getLogger().trace("node found ..",$$[$0-3]),this.$={id:$$[$0-3],descr:$$[$0-1],type:yy.getType($$[$0-2],$$[$0])};break;case 30:this.$=$$[$0-1]+$$[$0];break;case 31:this.$=$$[$0];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:$V0},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:$V0},{6:$V1,7:[1,10],9:9,12:11,13:$V2,14:14,16:$V3,17:$V4,18:17,19:18,20:$V5,23:$V6},o($V7,[2,3]),{1:[2,2]},o($V7,[2,4]),o($V7,[2,5]),{1:[2,6],6:$V1,12:21,13:$V2,14:14,16:$V3,17:$V4,18:17,19:18,20:$V5,23:$V6},{6:$V1,9:22,12:11,13:$V2,14:14,16:$V3,17:$V4,18:17,19:18,20:$V5,23:$V6},{6:$V8,7:$V9,10:23,11:$Va},o($Vb,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:$V5,23:$V6}),o($Vb,[2,19]),o($Vb,[2,21],{15:30,24:$Vc}),o($Vb,[2,22]),o($Vb,[2,23]),o($Vd,[2,25]),o($Vd,[2,26]),o($Vd,[2,28],{20:[1,32]}),{21:[1,33]},{6:$V8,7:$V9,10:34,11:$Va},{1:[2,7],6:$V1,12:21,13:$V2,14:14,16:$V3,17:$V4,18:17,19:18,20:$V5,23:$V6},o($Ve,[2,14],{7:$Vf,11:$Vg}),o($Vh,[2,8]),o($Vh,[2,9]),o($Vh,[2,10]),o($Vb,[2,16],{15:37,24:$Vc}),o($Vb,[2,17]),o($Vb,[2,18]),o($Vb,[2,20],{24:$Vi}),o($Vd,[2,31]),{21:[1,39]},{22:[1,40]},o($Ve,[2,13],{7:$Vf,11:$Vg}),o($Vh,[2,11]),o($Vh,[2,12]),o($Vb,[2,15],{24:$Vi}),o($Vd,[2,30]),{22:[1,41]},o($Vd,[2,27]),o($Vd,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:__name(function(str,hash){if(hash.recoverable)this.trace(str);else{var error=new Error(str);throw error.hash=hash,error}},"parseError"),parse:__name(function(input){var self=this,stack=[0],tstack=[],vstack=[null],lstack=[],table=this.table,yytext="",yylineno=0,yyleng=0,TERROR=2,EOF=1,args=lstack.slice.call(arguments,1),lexer2=Object.create(this.lexer),sharedState={yy:{}};for(var k in this.yy)Object.prototype.hasOwnProperty.call(this.yy,k)&&(sharedState.yy[k]=this.yy[k]);lexer2.setInput(input,sharedState.yy),sharedState.yy.lexer=lexer2,sharedState.yy.parser=this,typeof lexer2.yylloc>"u"&&(lexer2.yylloc={});var yyloc=lexer2.yylloc;lstack.push(yyloc);var ranges=lexer2.options&&lexer2.options.ranges;typeof sharedState.yy.parseError=="function"?this.parseError=sharedState.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function popStack(n){stack.length=stack.length-2*n,vstack.length=vstack.length-n,lstack.length=lstack.length-n}__name(popStack,"popStack");function lex(){var token;return token=tstack.pop()||lexer2.lex()||EOF,typeof token!="number"&&(token instanceof Array&&(tstack=token,token=tstack.pop()),token=self.symbols_[token]||token),token}__name(lex,"lex");for(var symbol,state,action,r,yyval={},p,len,newState,expected;;){if(state=stack[stack.length-1],this.defaultActions[state]?action=this.defaultActions[state]:((symbol===null||typeof symbol>"u")&&(symbol=lex()),action=table[state]&&table[state][symbol]),typeof action>"u"||!action.length||!action[0]){var errStr="";expected=[];for(p in table[state])this.terminals_[p]&&p>TERROR&&expected.push("'"+this.terminals_[p]+"'");lexer2.showPosition?errStr="Parse error on line "+(yylineno+1)+`:
|
|
2
|
-
`+lexer2.showPosition()+`
|
|
3
|
-
Expecting `+expected.join(", ")+", got '"+(this.terminals_[symbol]||symbol)+"'":errStr="Parse error on line "+(yylineno+1)+": Unexpected "+(symbol==EOF?"end of input":"'"+(this.terminals_[symbol]||symbol)+"'"),this.parseError(errStr,{text:lexer2.match,token:this.terminals_[symbol]||symbol,line:lexer2.yylineno,loc:yyloc,expected})}if(action[0]instanceof Array&&action.length>1)throw new Error("Parse Error: multiple actions possible at state: "+state+", token: "+symbol);switch(action[0]){case 1:stack.push(symbol),vstack.push(lexer2.yytext),lstack.push(lexer2.yylloc),stack.push(action[1]),symbol=null,yyleng=lexer2.yyleng,yytext=lexer2.yytext,yylineno=lexer2.yylineno,yyloc=lexer2.yylloc;break;case 2:if(len=this.productions_[action[1]][1],yyval.$=vstack[vstack.length-len],yyval._$={first_line:lstack[lstack.length-(len||1)].first_line,last_line:lstack[lstack.length-1].last_line,first_column:lstack[lstack.length-(len||1)].first_column,last_column:lstack[lstack.length-1].last_column},ranges&&(yyval._$.range=[lstack[lstack.length-(len||1)].range[0],lstack[lstack.length-1].range[1]]),r=this.performAction.apply(yyval,[yytext,yyleng,yylineno,sharedState.yy,action[1],vstack,lstack].concat(args)),typeof r<"u")return r;len&&(stack=stack.slice(0,-1*len*2),vstack=vstack.slice(0,-1*len),lstack=lstack.slice(0,-1*len)),stack.push(this.productions_[action[1]][0]),vstack.push(yyval.$),lstack.push(yyval._$),newState=table[stack[stack.length-2]][stack[stack.length-1]],stack.push(newState);break;case 3:return!0}}return!0},"parse")},lexer=(function(){var lexer2={EOF:1,parseError:__name(function(str,hash){if(this.yy.parser)this.yy.parser.parseError(str,hash);else throw new Error(str)},"parseError"),setInput:__name(function(input,yy){return this.yy=yy||this.yy||{},this._input=input,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:__name(function(){var ch=this._input[0];this.yytext+=ch,this.yyleng++,this.offset++,this.match+=ch,this.matched+=ch;var lines=ch.match(/(?:\r\n?|\n).*/g);return lines?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),ch},"input"),unput:__name(function(ch){var len=ch.length,lines=ch.split(/(?:\r\n?|\n)/g);this._input=ch+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-len),this.offset-=len;var oldLines=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),lines.length-1&&(this.yylineno-=lines.length-1);var r=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:lines?(lines.length===oldLines.length?this.yylloc.first_column:0)+oldLines[oldLines.length-lines.length].length-lines[0].length:this.yylloc.first_column-len},this.options.ranges&&(this.yylloc.range=[r[0],r[0]+this.yyleng-len]),this.yyleng=this.yytext.length,this},"unput"),more:__name(function(){return this._more=!0,this},"more"),reject:__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:__name(function(n){this.unput(this.match.slice(n))},"less"),pastInput:__name(function(){var past=this.matched.substr(0,this.matched.length-this.match.length);return(past.length>20?"...":"")+past.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:__name(function(){var next=this.match;return next.length<20&&(next+=this._input.substr(0,20-next.length)),(next.substr(0,20)+(next.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:__name(function(){var pre=this.pastInput(),c=new Array(pre.length+1).join("-");return pre+this.upcomingInput()+`
|
|
5
|
-
`+c+"^"},"showPosition"),test_match:__name(function(match,indexed_rule){var token,lines,backup;if(this.options.backtrack_lexer&&(backup={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(backup.yylloc.range=this.yylloc.range.slice(0))),lines=match[0].match(/(?:\r\n?|\n).*/g),lines&&(this.yylineno+=lines.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:lines?lines[lines.length-1].length-lines[lines.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+match[0].length},this.yytext+=match[0],this.match+=match[0],this.matches=match,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(match[0].length),this.matched+=match[0],token=this.performAction.call(this,this.yy,this,indexed_rule,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),token)return token;if(this._backtrack){for(var k in backup)this[k]=backup[k];return!1}return!1},"test_match"),next:__name(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var token,match,tempMatch,index;this._more||(this.yytext="",this.match="");for(var rules=this._currentRules(),i=0;i<rules.length;i++)if(tempMatch=this._input.match(this.rules[rules[i]]),tempMatch&&(!match||tempMatch[0].length>match[0].length)){if(match=tempMatch,index=i,this.options.backtrack_lexer){if(token=this.test_match(tempMatch,rules[i]),token!==!1)return token;if(this._backtrack){match=!1;continue}else return!1}else if(!this.options.flex)break}return match?(token=this.test_match(match,rules[index]),token!==!1?token:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:__name(function(){var r=this.next();return r||this.lex()},"lex"),begin:__name(function(condition){this.conditionStack.push(condition)},"begin"),popState:__name(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:__name(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:__name(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:__name(function(condition){this.begin(condition)},"pushState"),stateStackSize:__name(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:__name(function(yy,yy_,$avoiding_name_collisions,YY_START){switch($avoiding_name_collisions){case 0:return this.pushState("shapeData"),yy_.yytext="",24;case 1:return this.pushState("shapeDataStr"),24;case 2:return this.popState(),24;case 3:const re=/\n\s*/g;return yy_.yytext=yy_.yytext.replace(re,"<br/>"),24;case 4:return 24;case 5:this.popState();break;case 6:return yy.getLogger().trace("Found comment",yy_.yytext),6;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;case 10:this.popState();break;case 11:yy.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return yy.getLogger().trace("SPACELINE"),6;case 13:return 7;case 14:return 16;case 15:yy.getLogger().trace("end icon"),this.popState();break;case 16:return yy.getLogger().trace("Exploding node"),this.begin("NODE"),20;case 17:return yy.getLogger().trace("Cloud"),this.begin("NODE"),20;case 18:return yy.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;case 19:return yy.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;case 20:return this.begin("NODE"),20;case 21:return this.begin("NODE"),20;case 22:return this.begin("NODE"),20;case 23:return this.begin("NODE"),20;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:yy.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return yy.getLogger().trace("description:",yy_.yytext),"NODE_DESCR";case 32:this.popState();break;case 33:return this.popState(),yy.getLogger().trace("node end ))"),"NODE_DEND";case 34:return this.popState(),yy.getLogger().trace("node end )"),"NODE_DEND";case 35:return this.popState(),yy.getLogger().trace("node end ...",yy_.yytext),"NODE_DEND";case 36:return this.popState(),yy.getLogger().trace("node end (("),"NODE_DEND";case 37:return this.popState(),yy.getLogger().trace("node end (-"),"NODE_DEND";case 38:return this.popState(),yy.getLogger().trace("node end (-"),"NODE_DEND";case 39:return this.popState(),yy.getLogger().trace("node end (("),"NODE_DEND";case 40:return this.popState(),yy.getLogger().trace("node end (("),"NODE_DEND";case 41:return yy.getLogger().trace("Long description:",yy_.yytext),21;case 42:return yy.getLogger().trace("Long description:",yy_.yytext),21}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return lexer2})();parser2.lexer=lexer;function Parser(){this.yy={}}return __name(Parser,"Parser"),Parser.prototype=parser2,parser2.Parser=Parser,new Parser})();parser.parser=parser;var kanban_default=parser,nodes=[],sections=[],cnt=0,elements={},clear=__name(()=>{nodes=[],sections=[],cnt=0,elements={}},"clear"),getSection=__name(level=>{if(nodes.length===0)return null;const sectionLevel=nodes[0].level;let lastSection=null;for(let i=nodes.length-1;i>=0;i--)if(nodes[i].level===sectionLevel&&!lastSection&&(lastSection=nodes[i]),nodes[i].level<sectionLevel)throw new Error('Items without section detected, found section ("'+nodes[i].label+'")');return level===(lastSection==null?void 0:lastSection.level)?null:lastSection},"getSection"),getSections=__name(function(){return sections},"getSections"),getData=__name(function(){const edges=[],_nodes=[],sections2=getSections(),conf=getConfig2();for(const section of sections2){const node={id:section.id,label:sanitizeText(section.label??"",conf),labelType:"markdown",isGroup:!0,ticket:section.ticket,shape:"kanbanSection",level:section.level,look:conf.look};_nodes.push(node);const children=nodes.filter(n=>n.parentId===section.id);for(const item of children){const childNode={id:item.id,parentId:section.id,label:sanitizeText(item.label??"",conf),labelType:"markdown",isGroup:!1,ticket:item==null?void 0:item.ticket,priority:item==null?void 0:item.priority,assigned:item==null?void 0:item.assigned,icon:item==null?void 0:item.icon,shape:"kanbanItem",level:item.level,rx:5,ry:5,cssStyles:["text-align: left"]};_nodes.push(childNode)}}return{nodes:_nodes,edges,other:{},config:getConfig2()}},"getData"),addNode=__name((level,id,descr,type,shapeData)=>{var _a,_b;const conf=getConfig2();let padding=((_a=conf.mindmap)==null?void 0:_a.padding)??defaultConfig_default.mindmap.padding;switch(type){case nodeType.ROUNDED_RECT:case nodeType.RECT:case nodeType.HEXAGON:padding*=2}const node={id:sanitizeText(id,conf)||"kbn"+cnt++,level,label:sanitizeText(descr,conf),width:((_b=conf.mindmap)==null?void 0:_b.maxNodeWidth)??defaultConfig_default.mindmap.maxNodeWidth,padding,isGroup:!1};if(shapeData!==void 0){let yamlData;shapeData.includes(`
|
|
7
|
-
`)?yamlData=shapeData+`
|
|
8
|
-
`:yamlData=`{
|
|
9
|
-
`+shapeData+`
|
|
10
|
-
}`;const doc=load(yamlData,{schema:JSON_SCHEMA});if(doc.shape&&(doc.shape!==doc.shape.toLowerCase()||doc.shape.includes("_")))throw new Error(`No such shape: ${doc.shape}. Shape names should be lowercase.`);doc!=null&&doc.shape&&doc.shape==="kanbanItem"&&(node.shape=doc==null?void 0:doc.shape),doc!=null&&doc.label&&(node.label=doc==null?void 0:doc.label),doc!=null&&doc.icon&&(node.icon=doc==null?void 0:doc.icon.toString()),doc!=null&&doc.assigned&&(node.assigned=doc==null?void 0:doc.assigned.toString()),doc!=null&&doc.ticket&&(node.ticket=doc==null?void 0:doc.ticket.toString()),doc!=null&&doc.priority&&(node.priority=doc==null?void 0:doc.priority)}const section=getSection(level);section?node.parentId=section.id||"kbn"+cnt++:sections.push(node),nodes.push(node)},"addNode"),nodeType={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},getType=__name((startStr,endStr)=>{switch(log.debug("In get type",startStr,endStr),startStr){case"[":return nodeType.RECT;case"(":return endStr===")"?nodeType.ROUNDED_RECT:nodeType.CLOUD;case"((":return nodeType.CIRCLE;case")":return nodeType.CLOUD;case"))":return nodeType.BANG;case"{{":return nodeType.HEXAGON;default:return nodeType.DEFAULT}},"getType"),setElementForId=__name((id,element)=>{elements[id]=element},"setElementForId"),decorateNode=__name(decoration=>{if(!decoration)return;const config=getConfig2(),node=nodes[nodes.length-1];decoration.icon&&(node.icon=sanitizeText(decoration.icon,config)),decoration.class&&(node.cssClasses=sanitizeText(decoration.class,config))},"decorateNode"),type2Str=__name(type=>{switch(type){case nodeType.DEFAULT:return"no-border";case nodeType.RECT:return"rect";case nodeType.ROUNDED_RECT:return"rounded-rect";case nodeType.CIRCLE:return"circle";case nodeType.CLOUD:return"cloud";case nodeType.BANG:return"bang";case nodeType.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),getLogger=__name(()=>log,"getLogger"),getElementById=__name(id=>elements[id],"getElementById"),db={clear,addNode,getSections,getData,nodeType,getType,setElementForId,decorateNode,type2Str,getLogger,getElementById},kanbanDb_default=db,draw=__name(async(text,id,_version,diagObj)=>{var _a,_b,_c,_d,_e;log.debug(`Rendering kanban diagram
|
|
11
|
-
`+text);const data4Layout=diagObj.db.getData(),conf=getConfig2();conf.htmlLabels=!1;const svg=selectSvgElement(id);for(const node of data4Layout.nodes)node.domId=`${id}-${node.id}`;const sectionsElem=svg.append("g");sectionsElem.attr("class","sections");const nodesElem=svg.append("g");nodesElem.attr("class","items");const sections2=data4Layout.nodes.filter(node=>node.isGroup);let cnt2=0;const padding=10,sectionObjects=[];let maxLabelHeight=25;for(const section of sections2){const WIDTH=((_a=conf==null?void 0:conf.kanban)==null?void 0:_a.sectionWidth)||200;cnt2=cnt2+1,section.x=WIDTH*cnt2+(cnt2-1)*padding/2,section.width=WIDTH,section.y=0,section.height=WIDTH*3,section.rx=5,section.ry=5,section.cssClasses=section.cssClasses+" section-"+cnt2;const sectionObj=await insertCluster(sectionsElem,section);maxLabelHeight=Math.max(maxLabelHeight,(_b=sectionObj==null?void 0:sectionObj.labelBBox)==null?void 0:_b.height),sectionObjects.push(sectionObj)}let i=0;for(const section of sections2){const sectionObj=sectionObjects[i];i=i+1;const WIDTH=((_c=conf==null?void 0:conf.kanban)==null?void 0:_c.sectionWidth)||200,top=-WIDTH*3/2+maxLabelHeight;let y=top;const sectionItems=data4Layout.nodes.filter(node=>node.parentId===section.id);for(const item of sectionItems){if(item.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");item.x=section.x,item.width=WIDTH-1.5*padding;const bbox=(await insertNode(nodesElem,item,{config:conf})).node().getBBox();item.y=y+bbox.height/2,await positionNode(item),y=item.y+bbox.height/2+padding/2}const rect=sectionObj.cluster.select("rect"),height=Math.max(y-top+3*padding,50)+(maxLabelHeight-25);rect.attr("height",height)}setupGraphViewbox(void 0,svg,((_d=conf.mindmap)==null?void 0:_d.padding)??defaultConfig_default.kanban.padding,((_e=conf.mindmap)==null?void 0:_e.useMaxWidth)??defaultConfig_default.kanban.useMaxWidth)},"draw"),kanbanRenderer_default={draw},genSections=__name(options=>{let sections2="";for(let i=0;i<options.THEME_COLOR_LIMIT;i++)options["lineColor"+i]=options["lineColor"+i]||options["cScaleInv"+i],isDark(options["lineColor"+i])?options["lineColor"+i]=lighten(options["lineColor"+i],20):options["lineColor"+i]=darken(options["lineColor"+i],20);const adjuster=__name((color,level)=>options.darkMode?darken(color,level):lighten(color,level),"adjuster");for(let i=0;i<options.THEME_COLOR_LIMIT;i++){const sw=""+(17-3*i);sections2+=`
|
|
12
|
-
.section-${i-1} rect, .section-${i-1} path, .section-${i-1} circle, .section-${i-1} polygon, .section-${i-1} path {
|
|
13
|
-
fill: ${adjuster(options["cScale"+i],10)};
|
|
14
|
-
stroke: ${adjuster(options["cScale"+i],10)};
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
.section-${i-1} text {
|
|
18
|
-
fill: ${options["cScaleLabel"+i]};
|
|
19
|
-
}
|
|
20
|
-
.node-icon-${i-1} {
|
|
21
|
-
font-size: 40px;
|
|
22
|
-
color: ${options["cScaleLabel"+i]};
|
|
23
|
-
}
|
|
24
|
-
.section-edge-${i-1}{
|
|
25
|
-
stroke: ${options["cScale"+i]};
|
|
26
|
-
}
|
|
27
|
-
.edge-depth-${i-1}{
|
|
28
|
-
stroke-width: ${sw};
|
|
29
|
-
}
|
|
30
|
-
.section-${i-1} line {
|
|
31
|
-
stroke: ${options["cScaleInv"+i]} ;
|
|
32
|
-
stroke-width: 3;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.disabled, .disabled circle, .disabled text {
|
|
36
|
-
fill: lightgray;
|
|
37
|
-
}
|
|
38
|
-
.disabled text {
|
|
39
|
-
fill: #efefef;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.node rect,
|
|
43
|
-
.node circle,
|
|
44
|
-
.node ellipse,
|
|
45
|
-
.node polygon,
|
|
46
|
-
.node path {
|
|
47
|
-
fill: ${options.background};
|
|
48
|
-
stroke: ${options.nodeBorder};
|
|
49
|
-
stroke-width: 1px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.kanban-ticket-link {
|
|
53
|
-
fill: ${options.background};
|
|
54
|
-
stroke: ${options.nodeBorder};
|
|
55
|
-
text-decoration: underline;
|
|
56
|
-
}
|
|
57
|
-
`}return sections2},"genSections"),getStyles=__name(options=>`
|
|
58
|
-
.edge {
|
|
59
|
-
stroke-width: 3;
|
|
60
|
-
}
|
|
61
|
-
${genSections(options)}
|
|
62
|
-
.section-root rect, .section-root path, .section-root circle, .section-root polygon {
|
|
63
|
-
fill: ${options.git0};
|
|
64
|
-
}
|
|
65
|
-
.section-root text {
|
|
66
|
-
fill: ${options.gitBranchLabel0};
|
|
67
|
-
}
|
|
68
|
-
.icon-container {
|
|
69
|
-
height:100%;
|
|
70
|
-
display: flex;
|
|
71
|
-
justify-content: center;
|
|
72
|
-
align-items: center;
|
|
73
|
-
}
|
|
74
|
-
.edge {
|
|
75
|
-
fill: none;
|
|
76
|
-
}
|
|
77
|
-
.cluster-label, .label {
|
|
78
|
-
color: ${options.textColor};
|
|
79
|
-
fill: ${options.textColor};
|
|
80
|
-
}
|
|
81
|
-
.kanban-label {
|
|
82
|
-
dy: 1em;
|
|
83
|
-
alignment-baseline: middle;
|
|
84
|
-
text-anchor: middle;
|
|
85
|
-
dominant-baseline: middle;
|
|
86
|
-
text-align: center;
|
|
87
|
-
}
|
|
88
|
-
${getIconStyles()}
|
|
89
|
-
`,"getStyles"),styles_default=getStyles,diagram={db:kanbanDb_default,renderer:kanbanRenderer_default,parser:kanban_default,styles:styles_default};export{diagram};
|