@fengwk/kchart 0.1.1 → 0.2.0
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/CHANGELOG.md +35 -0
- package/README.md +31 -2
- package/README.zh-CN.md +31 -2
- package/dist/esm/_virtual/_kchart-families.js +2 -1
- package/dist/esm/chart/composition.js +7 -5
- package/dist/esm/chart/maps.js +9 -7
- package/dist/esm/chart/mindmap.js +19 -5
- package/dist/esm/chart/multivariate.js +49 -14
- package/dist/esm/chart/relations.js +15 -7
- package/dist/esm/chart/spec.js +5 -2
- package/dist/esm/core/context.js +29 -10
- package/dist/esm/core/scene.js +238 -21
- package/dist/esm/core/text.js +1 -1
- package/dist/esm/diagram/block.js +287 -295
- package/dist/esm/diagram/blocks.js +541 -605
- package/dist/esm/diagram/board-paint.js +594 -0
- package/dist/esm/diagram/board-route.js +60 -0
- package/dist/esm/diagram/c4.js +75 -35
- package/dist/esm/diagram/class.js +3 -2
- package/dist/esm/diagram/cynefin.js +55 -9
- package/dist/esm/diagram/eventmodeling.js +4 -2
- package/dist/esm/diagram/gantt.js +37 -15
- package/dist/esm/diagram/gitgraph.js +26 -5
- package/dist/esm/diagram/graph-layout.js +39 -2
- package/dist/esm/diagram/graph-route.js +296 -38
- package/dist/esm/diagram/info.js +32 -0
- package/dist/esm/diagram/journey.js +5 -5
- package/dist/esm/diagram/kanban.js +3 -3
- package/dist/esm/diagram/layers.js +9 -7
- package/dist/esm/diagram/mindmap.js +5 -1
- package/dist/esm/diagram/numeric-composition.js +24 -4
- package/dist/esm/diagram/numeric-model.js +1 -1
- package/dist/esm/diagram/numeric-radar.js +25 -7
- package/dist/esm/diagram/numeric-sankey.js +4 -3
- package/dist/esm/diagram/numeric-xy.js +12 -2
- package/dist/esm/diagram/packet.js +4 -4
- package/dist/esm/diagram/quadrant.js +12 -5
- package/dist/esm/diagram/railroad-parse.js +20 -10
- package/dist/esm/diagram/railroad.js +1 -1
- package/dist/esm/diagram/registry.js +46 -8
- package/dist/esm/diagram/sequence.js +43 -6
- package/dist/esm/diagram/swimlane.js +2 -2
- package/dist/esm/diagram/time.js +3 -3
- package/dist/esm/diagram/timeline.js +5 -5
- package/dist/esm/diagram/treeview.js +5 -3
- package/dist/esm/diagram/venn.js +35 -15
- package/dist/esm/diagram/wardley.js +61 -26
- package/dist/esm/diagram/zenuml.js +338 -0
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/mermaid.d.ts +1 -1
- package/dist/esm/mermaid.js +2 -1
- package/dist/esm/node.js +8 -2
- package/dist/esm/src/families.js +6 -1
- package/dist/units/chart/composition.js +1 -1
- package/dist/units/chart/maps.js +1 -1
- package/dist/units/chart/mindmap.js +1 -1
- package/dist/units/chart/multivariate.js +1 -1
- package/dist/units/chart/relations.js +1 -1
- package/dist/units/chart/spec.js +1 -1
- package/dist/units/core/context.js +1 -1
- package/dist/units/core/scene.js +1 -1
- package/dist/units/core/text.js +1 -1
- package/dist/units/diagram/block.js +2 -2
- package/dist/units/diagram/blocks.js +2 -2
- package/dist/units/diagram/board-paint.js +1 -0
- package/dist/units/diagram/board-route.js +1 -0
- package/dist/units/diagram/c4.js +1 -1
- package/dist/units/diagram/class.js +2 -2
- package/dist/units/diagram/cynefin.js +2 -2
- package/dist/units/diagram/eventmodeling.js +1 -1
- package/dist/units/diagram/gantt.js +3 -3
- package/dist/units/diagram/gitgraph.js +2 -1
- package/dist/units/diagram/graph-layout.js +1 -1
- package/dist/units/diagram/graph-route.js +1 -1
- package/dist/units/diagram/info.js +2 -0
- package/dist/units/diagram/journey.js +3 -3
- package/dist/units/diagram/kanban.js +1 -1
- package/dist/units/diagram/layers.js +1 -1
- package/dist/units/diagram/mindmap.js +1 -1
- package/dist/units/diagram/numeric-composition.js +1 -1
- package/dist/units/diagram/numeric-model.js +1 -1
- package/dist/units/diagram/numeric-radar.js +2 -2
- package/dist/units/diagram/numeric-sankey.js +1 -1
- package/dist/units/diagram/numeric-xy.js +1 -1
- package/dist/units/diagram/packet.js +1 -1
- package/dist/units/diagram/quadrant.js +1 -1
- package/dist/units/diagram/railroad-parse.js +2 -2
- package/dist/units/diagram/railroad.js +1 -1
- package/dist/units/diagram/registry.js +2 -2
- package/dist/units/diagram/sequence.js +1 -1
- package/dist/units/diagram/swimlane.js +2 -2
- package/dist/units/diagram/time.js +1 -1
- package/dist/units/diagram/timeline.js +1 -1
- package/dist/units/diagram/treeview.js +1 -1
- package/dist/units/diagram/venn.js +1 -1
- package/dist/units/diagram/wardley.js +4 -4
- package/dist/units/diagram/zenuml.js +2 -0
- package/dist/units.json +79 -51
- package/package.json +1 -1
- package/dist/esm/diagram/relations.js +0 -966
- package/dist/units/diagram/relations.js +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
KChartUnits["diagram/wardley"]=(function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=String.raw`\d+\.\d+`,i=String.raw`\d+(?:\.\d+)?`,a=String.raw`"(?:\\.|[^"\\])*"`,o=String.raw`(?:${a}|[A-Za-z_](?:[\w()&]|-(?![-.>]))*(?:[ \t]+[A-Za-z(](?:[\w()&]|-(?![-.>]))*)*)`,s=e=>String.raw`\[\s*(${e})\s*,\s*(${e})\s*\]`,c=String.raw`(?:\s+label\s*${s(`-?\\d+`)})?`,l=new RegExp(String.raw`^size\s*${s(`\\d+`)}$`),u=new RegExp(String.raw`^(component|anchor|note|accelerator|deaccelerator)\s+(${o})\s*${s(r)}${c}(?:\s+\((build|buy|outsource|market)\))?(?:\s+(inertia|\(inertia\)))?$`),d=new RegExp(String.raw`^component\s+(${o})\s*\[\s*(${r})\s*\]${c}$`),f=new RegExp(String.raw`^(${o})(?:\s*@\s*(${r}))?(?:\s*/\s*(${o}))?$`),p=new RegExp(String.raw`^pipeline\s+(${o})\s*\{$`),m=new RegExp(String.raw`^evolve\s+(${o})\s+(${r})$`),h=new RegExp(String.raw`^annotation\s+(\d+)\s*,\s*${s(i)}\s+(${a})$`),g=new RegExp(String.raw`^annotations\s*${s(i)}$`),_=new RegExp(String.raw`^(${o})\s*(\+<>|\+>|\+<)?\s*(-->|-\.->|->|>|\+'([^']*)'(<>|<|>))?\s*(${o})\s*(\+<>|\+>|\+<)?\s*(?:;\s*(.+))?$`),v=[[`起源`,`Genesis`],[`定制`,`Custom Built`],[`产品`,`Product`],[`商品`,`Commodity`]],y={visibility:[`可见度`,`Visibility`],evolution:[`演化`,`Evolution`],annotations:[`注释`,`Annotations`],build:[`自建`,`build`],buy:[`采购`,`buy`],outsource:[`外包`,`outsource`],market:[`市场`,`market`]},b=(e,n)=>(0,t.message)(e,...y[n]),x={build:`B`,buy:`Y`,outsource:`O`,market:`M`},S={build:`tone1`,buy:`tone2`,outsource:`tone3`,market:`tone4`},C=e=>e.startsWith(`"`)?e.slice(1,-1).replace(/\\(["\\])/g,`$1`):e;function w(e,{lang:r,firstLine:i=2,title:a=``,headerLine:o=1}={}){let s={type:`wardley`,title:a,size:null,stages:v.map(e=>({name:e[+!!(0,t.isEn)(r)],secondName:null,boundary:null})),nodes:[],pipelines:[],links:[],trends:[],notes:[],annotations:[],annotationBox:null,forces:[]},c=[],y=new Set,b=new Map,x=(0,n.mapLabels)(r,e=>c.push(e)),S=(e,t)=>x(C(e),t);a&&({text:s.title,icon:s.titleIcon}=x(a,o));let w=(e,n,i)=>c.push((0,t.error)(r,e,n,i
|
|
2
|
-
`).entries()){let e=n.match(/^(?:"(?:\\.|[^"\\])*"|\+'[^']*'|%(?!%)|[^"%])*/)[0].trim(),r=i+t;if(!e)continue;let o;if(j){if(e===`}`)j.children.length||w(r,`演进管道没有组件`,`Pipeline needs at least one component`),j=null;else if(o=d.exec(e)){let[,e,t,n,i]=o,{text:a,icon:s}=S(e,r);j.children.push({id:`${j.parent}_${C(e)}`,name:C(e),label:a,icon:s,evolution:E(t,r),labelOffset:O(n,i),kind:`pipeline`,parent:j.parent,line:r})}else w(r,`无效的演进管道组件`,`Invalid pipeline component`)}else if(M)e.includes(`}`)&&(M=!1);else if(o=/^title\s*:?[ \t]+(.+)$/.exec(e))a||({text:s.title,icon:s.titleIcon}=S(o[1],r));else if(/^acc(?:Title|Descr)\s*:/.test(e))continue;else if(/^accDescr\s*\{/.test(e))M=!e.includes(`}`);else if(o=l.exec(e))s.size={width:Number(o[1]),height:Number(o[2])},Object.values(s.size).some(e=>e>16e3)&&w(r,`地图尺寸超过 16000 像素`,`Map size exceeds 16,000 pixels`);else if(e.startsWith(`evolution `)){let t=e.slice(10).match(/"(?:\\.|[^"\\])*"|->|[^"-]+|-/g)||[],n=[``];for(let e of t)e===`->`?n.push(``):n[n.length-1]+=e;let i=n.map(e=>f.exec(e.trim()));if(i.length<2||i.some(e=>!e))w(r,`无效的演进阶段`,`Invalid evolution stages`);else{s.stages=i.map(([,e,t,n])=>{let i=S(e,r),a=n?S(n,r):null;return{name:i.text,icon:i.icon,secondName:a?.text??null,secondIcon:a?.icon,boundary:t==null?null:E(t,r)}});let e=s.stages.map(e=>e.boundary);if(e.some(e=>e!==null)&&(e.some((t,n)=>t===null||t<=(e[n-1]??0))||e.at(-1)!==100)){T(`stages`,r,`阶段边界不完整或未递增至 100;使用等宽阶段`,`Incomplete or unordered stage boundaries; using equal bands`);for(let e of s.stages)e.boundary=null}}}else if(o=u.exec(e)){let[,e,t,n,i,a,c,l,u]=o,{text:d,icon:f}=S(t,r),p=D(n,i,r);e!==`component`&&(a!=null||l||u)||e===`note`&&!t.startsWith(`"`)?w(r,`无效的装饰或备注`,`Invalid decorator or note`):e===`note`?s.notes.push({text:d,icon:f,...p,line:r}):e.endsWith(`accelerator`)?s.forces.push({kind:e,name:d,icon:f,...p,line:r}):k({id:C(t),label:d,icon:f,kind:e,...p,labelOffset:O(a,c),strategy:l??null,inertia:!!u,line:r})}else if(o=p.exec(e))j={parent:C(o[1]),children:[],line:r},s.pipelines.push(j);else if(o=m.exec(e))s.trends.push({nodeId:C(o[1]),targetEvolution:E(o[2],r),line:r});else if(o=h.exec(e))s.annotations.push({number:o[1],...D(o[2],o[3],r),...S(o[4],r),line:r});else if(o=g.exec(e))s.annotationBox?T(`box`,r,`只使用第一个注释框`,`Only the first annotation box is used`):s.annotationBox=D(o[1],o[2],r);else if((o=_.exec(e))&&(o[2]||o[3]||o[7]||o[8]||o[1].startsWith(`"`)||o[6].startsWith(`"`))){let[,e,t,n,i,a,c,l,u]=o,d=t||l||a&&`+${a}`,{text:f,icon:p}=S(i??u??``,r);s.links.push({from:C(e),to:C(c),dashed:n===`-.->`,flow:{"+>":`forward`,"+<":`backward`,"+<>":`bidirectional`}[d]||`none`,label:f,icon:p,line:r})}else A.push({text:e,line:r})}j&&w(j.line,`演进管道缺少结束括号`,`Unclosed pipeline`);for(let e of s.pipelines){let t=b.get(e.parent);if(t?.kind!==`component`)w(e.line,`管道父级「${e.parent}」不是组件`,`Pipeline parent "${e.parent}" is not a component`);else for(let n of e.children)k({...n,visibility:t.visibility})}let N=new Map;for(let e of s.nodes)e.parent&&!N.has(e.name)&&N.set(e.name,e.id);let P=e=>b.has(e)?e:N.get(e)??e;for(let{text:e,line:t}of A){let n;for(let{index:t,0:r}of e.matchAll(/\s+/g)){let i=e.slice(0,t),a=e.slice(t+r.length);if(b.has(P(i))&&b.has(P(a))){n=[i,a];break}}n?s.links.push({from:n[0],to:n[1],dashed:!1,flow:`none`,label:``,line:t}):w(t,`无法识别 Wardley 地图语句`,`Unrecognized Wardley map statement`)}s.links.sort((e,t)=>e.line-t.line);for(let e of s.links)e.from=P(e.from),e.to=P(e.to),
|
|
3
|
-
`).map((e,n)=>({text:e,icons:n===0?t:[]})))),
|
|
4
|
-
`)))return t;let r={text:t.map(e=>e.text).join(` `),icons:t.flatMap(e=>e.icons)};return
|
|
1
|
+
KChartUnits["diagram/wardley"]=(function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=String.raw`\d+\.\d+`,i=String.raw`\d+(?:\.\d+)?`,a=String.raw`"(?:\\.|[^"\\])*"`,o=String.raw`(?:${a}|[A-Za-z_](?:[\w()&]|-(?![-.>]))*(?:[ \t]+[A-Za-z(](?:[\w()&]|-(?![-.>]))*)*)`,s=e=>String.raw`\[\s*(${e})\s*,\s*(${e})\s*\]`,c=String.raw`(?:\s+label\s*${s(`-?\\d+`)})?`,l=new RegExp(String.raw`^size\s*${s(`\\d+`)}$`),u=new RegExp(String.raw`^(component|anchor|note|accelerator|deaccelerator)\s+(${o})\s*${s(r)}${c}(?:\s+\((build|buy|outsource|market)\))?(?:\s+(inertia|\(inertia\)))?$`),d=new RegExp(String.raw`^component\s+(${o})\s*\[\s*(${r})\s*\]${c}$`),f=new RegExp(String.raw`^(${o})(?:\s*@\s*(${r}))?(?:\s*/\s*(${o}))?$`),p=new RegExp(String.raw`^pipeline\s+(${o})\s*\{$`),m=new RegExp(String.raw`^evolve\s+(${o})\s+(${r})$`),h=new RegExp(String.raw`^annotation\s+(\d+)\s*,\s*${s(i)}\s+(${a})$`),g=new RegExp(String.raw`^annotations\s*${s(i)}$`),_=new RegExp(String.raw`^(${o})\s*(\+<>|\+>|\+<)?\s*(-->|-\.->|->|>|\+'([^']*)'(<>|<|>))?\s*(${o})\s*(\+<>|\+>|\+<)?\s*(?:;\s*(.+))?$`),v=[[`起源`,`Genesis`],[`定制`,`Custom Built`],[`产品`,`Product`],[`商品`,`Commodity`]],y={visibility:[`可见度`,`Visibility`],evolution:[`演化`,`Evolution`],annotations:[`注释`,`Annotations`],build:[`自建`,`build`],buy:[`采购`,`buy`],outsource:[`外包`,`outsource`],market:[`市场`,`market`]},b=(e,n)=>(0,t.message)(e,...y[n]),x={build:`B`,buy:`Y`,outsource:`O`,market:`M`},S={build:`tone1`,buy:`tone2`,outsource:`tone3`,market:`tone4`},C=e=>e.startsWith(`"`)?e.slice(1,-1).replace(/\\(["\\])/g,`$1`):e;function w(e,{lang:r,firstLine:i=2,title:a=``,headerLine:o=1}={}){let s={type:`wardley`,title:a,size:null,stages:v.map(e=>({name:e[+!!(0,t.isEn)(r)],secondName:null,boundary:null})),nodes:[],pipelines:[],links:[],trends:[],notes:[],annotations:[],annotationBox:null,forces:[]},c=[],y=new Set,b=new Map,x=(0,n.mapLabels)(r,e=>c.push(e)),S=(e,t)=>x(C(e),t);a&&({text:s.title,icon:s.titleIcon}=x(a,o));let w=(e,n,i,a,o)=>c.push((0,t.error)(r,e,n,i,a,o)),T=(e,n,i,a,o,s)=>{y.has(e)||(y.add(e),c.push((0,t.warning)(`DIAGRAM_HINT`,r,n,i,a,o,s)))},E=(e,t)=>{let n=Number(e);return n>100&&w(t,`坐标超出 0–100 范围`,`Coordinate is outside 0–100`,`使用 0.0–1.0 的比例或 0.0–100.0 的百分数,例如 0.3`,`Use a decimal fraction from 0.0 to 1.0 or a percentage up to 100.0, such as 0.3`),n<=1?n*100:n},D=(e,t,n)=>({visibility:E(e,n),evolution:E(t,n)}),O=(e,t)=>e==null?null:{dx:+e,dy:+t},k=e=>{let t=b.get(e.id);t?(t.visibility!==e.visibility||t.evolution!==e.evolution)&&w(e.line,`「${e.id}」有不同的坐标`,`Conflicting coordinates for "${e.id}"`,`保留一处声明,或给不同的节点使用不同的名称`,`Keep one declaration or give distinct nodes different names`):(b.set(e.id,e),s.nodes.push(e))};if(e.length>2e5)return w(i,`地图源文本过长`,`Map source exceeds 200,000 characters`,`拆成多张地图,每张最多 200,000 个字符`,`Split into maps of at most 200,000 characters each`),{model:s,errors:c};let A=[],j=null,M=!1;for(let[t,n]of e.split(`
|
|
2
|
+
`).entries()){let e=n.match(/^(?:"(?:\\.|[^"\\])*"|\+'[^']*'|%(?!%)|[^"%])*/)[0].trim(),r=i+t;if(!e)continue;let o;if(j){if(e===`}`)j.children.length||w(r,`演进管道没有组件`,`Pipeline needs at least one component`,`在 } 前添加组件,例如 component Child [0.4]`,`Add a component before }, for example component Child [0.4]`),j=null;else if(o=d.exec(e)){let[,e,t,n,i]=o,{text:a,icon:s}=S(e,r);j.children.push({id:`${j.parent}_${C(e)}`,name:C(e),label:a,icon:s,evolution:E(t,r),labelOffset:O(n,i),kind:`pipeline`,parent:j.parent,line:r})}else w(r,`无效的演进管道组件`,`Invalid pipeline component`,`管道内只填写演进坐标,例如 component Child [0.4]`,`Use one evolution coordinate inside a pipeline, as in component Child [0.4]`)}else if(M)e.includes(`}`)&&(M=!1);else if(o=/^title\s*:?[ \t]+(.+)$/.exec(e))a||({text:s.title,icon:s.titleIcon}=S(o[1],r));else if(/^acc(?:Title|Descr)\s*:/.test(e))continue;else if(/^accDescr\s*\{/.test(e))M=!e.includes(`}`);else if(o=l.exec(e))s.size={width:Number(o[1]),height:Number(o[2])},Object.values(s.size).some(e=>e>16e3)&&w(r,`地图尺寸超过 16000 像素`,`Map size exceeds 16,000 pixels`,`减小 size [宽, 高],两项均不得超过 16000`,`Reduce both dimensions in size [width, height] to at most 16000`);else if(e.startsWith(`evolution `)){let t=e.slice(10).match(/"(?:\\.|[^"\\])*"|->|[^"-]+|-/g)||[],n=[``];for(let e of t)e===`->`?n.push(``):n[n.length-1]+=e;let i=n.map(e=>f.exec(e.trim()));if(i.length<2||i.some(e=>!e))w(r,`无效的演进阶段`,`Invalid evolution stages`,`用 -> 分隔至少两个阶段,例如 evolution Genesis -> Product`,`Separate at least two stages with ->, as in evolution Genesis -> Product`);else{s.stages=i.map(([,e,t,n])=>{let i=S(e,r),a=n?S(n,r):null;return{name:i.text,icon:i.icon,secondName:a?.text??null,secondIcon:a?.icon,boundary:t==null?null:E(t,r)}});let e=s.stages.map(e=>e.boundary);if(e.some(e=>e!==null)&&(e.some((t,n)=>t===null||t<=(e[n-1]??0))||e.at(-1)!==100)){T(`stages`,r,`阶段边界不完整或未递增至 100;使用等宽阶段`,`Incomplete or unordered stage boundaries; using equal bands`,`为每个阶段写递增边界,例如 evolution Genesis @ 0.4 -> Product @ 1.0`,`Give each stage an increasing boundary, as in evolution Genesis @ 0.4 -> Product @ 1.0`);for(let e of s.stages)e.boundary=null}}}else if(o=u.exec(e)){let[,e,t,n,i,a,c,l,u]=o,{text:d,icon:f}=S(t,r),p=D(n,i,r);e!==`component`&&(a!=null||l||u)||e===`note`&&!t.startsWith(`"`)?w(r,`无效的装饰或备注`,`Invalid decorator or note`,`只给 component 添加装饰;备注使用 note "文字" [0.3, 0.2]`,`Apply decorators only to component; write notes as note "Text" [0.3, 0.2]`):e===`note`?s.notes.push({text:d,icon:f,...p,line:r}):e.endsWith(`accelerator`)?s.forces.push({kind:e,name:d,icon:f,...p,line:r}):k({id:C(t),label:d,icon:f,kind:e,...p,labelOffset:O(a,c),strategy:l??null,inertia:!!u,line:r})}else if(o=p.exec(e))j={parent:C(o[1]),children:[],line:r},s.pipelines.push(j);else if(o=m.exec(e))s.trends.push({nodeId:C(o[1]),targetEvolution:E(o[2],r),line:r});else if(o=h.exec(e))s.annotations.push({number:o[1],...D(o[2],o[3],r),...S(o[4],r),line:r});else if(o=g.exec(e))s.annotationBox?T(`box`,r,`只使用第一个注释框`,`Only the first annotation box is used`,`只保留一条 annotations [x, y] 语句`,`Keep only one annotations [x, y] statement`):s.annotationBox=D(o[1],o[2],r);else if((o=_.exec(e))&&(o[2]||o[3]||o[7]||o[8]||o[1].startsWith(`"`)||o[6].startsWith(`"`))){let[,e,t,n,i,a,c,l,u]=o,d=t||l||a&&`+${a}`,{text:f,icon:p}=S(i??u??``,r);s.links.push({from:C(e),to:C(c),dashed:n===`-.->`,flow:{"+>":`forward`,"+<":`backward`,"+<>":`bidirectional`}[d]||`none`,label:f,icon:p,line:r})}else A.push({text:e,line:r})}j&&w(j.line,`演进管道缺少结束括号`,`Unclosed pipeline`,`在管道的最后一个组件之后单独写一行 }`,`Add } on its own line after the last pipeline component`);for(let e of s.pipelines){let t=b.get(e.parent);if(t?.kind!==`component`)w(e.line,`管道父级「${e.parent}」不是组件`,`Pipeline parent "${e.parent}" is not a component`,`先声明同名 component,例如 component Parent [0.3, 0.2]`,`Declare a component with the same name, as in component Parent [0.3, 0.2]`);else for(let n of e.children)k({...n,visibility:t.visibility})}let N=new Map;for(let e of s.nodes)e.parent&&!N.has(e.name)&&N.set(e.name,e.id);let P=e=>b.has(e)?e:N.get(e)??e;for(let{text:e,line:t}of A){let n;for(let{index:t,0:r}of e.matchAll(/\s+/g)){let i=e.slice(0,t),a=e.slice(t+r.length);if(b.has(P(i))&&b.has(P(a))){n=[i,a];break}}n?s.links.push({from:n[0],to:n[1],dashed:!1,flow:`none`,label:``,line:t}):w(t,`无法识别 Wardley 地图语句`,`Unrecognized Wardley map statement`,`用 component "需求" [0.3, 0.2] 声明组件;连线使用 "需求" --> "网关",名称外不要加方括号`,`Declare components as component "Demand" [0.3, 0.2]; link them as "Demand" --> "Gateway" without square brackets around names`)}s.links.sort((e,t)=>e.line-t.line);for(let e of s.links){e.from=P(e.from),e.to=P(e.to);let t=[e.from,e.to].find(e=>!b.has(e));t!==void 0&&w(e.line,`依赖引用未定义的节点「${t}」`,`Dependency references undefined node "${t}"`,`声明同名组件,例如 component Gateway [0.4, 0.3],或更正连线端点名称`,`Declare a matching component, as in component Gateway [0.4, 0.3], or correct the endpoint name`)}for(let e of s.trends)e.nodeId=P(e.nodeId),b.has(e.nodeId)||T(`trend`,e.line,`演进引用未定义的组件`,`Evolution references an undefined component`,`将 evolve 后的名称改为已声明的组件,例如 evolve Gateway 0.7`,`Use a declared component name after evolve, as in evolve Gateway 0.7`);return(s.nodes.length>300||s.links.length+s.trends.length>600)&&w(i,`地图超过 300 个节点或 600 条连线,请拆分`,`Map exceeds 300 nodes or 600 connections`,`按主题拆分地图,每张最多 300 个节点、600 条连线`,`Split the map by topic into maps of at most 300 nodes and 600 connections`),{model:s,errors:c}}var T=(e,t,n,r)=>({x:e,y:t,w:n,h:r}),E=(e,t,n,r)=>T(e-n/2,t-r/2,n,r),D=(e,t)=>e.x<t.x+t.w&&t.x<e.x+e.w&&e.y<t.y+t.h&&t.y<e.y+e.h,O=(e,t)=>T(e.x-t,e.y-t,e.w+t*2,e.h+t*2),k=(e,t)=>Math.hypot(t.x-e.x,t.y-e.y);function A(e,t,n){let r=0,i=1;for(let[a,o]of[[`x`,`w`],[`y`,`h`]]){let s=t[a]-e[a];if(!s){if(e[a]<n[a]||e[a]>n[a]+n[o])return!1;continue}let c=(n[a]-e[a])/s,l=(n[a]+n[o]-e[a])/s;if(r=Math.max(r,Math.min(c,l)),i=Math.min(i,Math.max(c,l)),r>i)return!1}return[r,i]}var j=(e,t,n)=>!!A(e,t,n);function M(e,t,n,r){let i=t.x-e.x,a=t.y-e.y,o=i*i+a*a;if(!o)return[];let s=n.map(n=>A(e,t,n)).filter(Boolean);for(let t of r){if(!t.every(t=>Math.abs(i*(t.y-e.y)-a*(t.x-e.x))<1e-5))continue;let[n,r]=t.map(t=>(i*(t.x-e.x)+a*(t.y-e.y))/o).sort((e,t)=>e-t);n<1&&r>0&&s.push([Math.max(0,n),Math.min(1,r)])}let c=0,l=[];for(let[e,t]of[...s.sort((e,t)=>e[0]-t[0]),[1,1]])e-c>1e-7&&l.push([c,e]),c=Math.max(c,t);return l.map(t=>t.map(t=>({x:e.x+t*i,y:e.y+t*a})))}var N=(e,t,n)=>{let r=n/(k(e,t)||1);return{x:e.x+(t.x-e.x)*r,y:e.y+(t.y-e.y)*r}},P=(e,t,n,r)=>{let i=N(n,t,7),a=i.y-n.y,o=n.x-i.x;return e.path(`M${n.x} ${n.y} L${i.x+a*.48} ${i.y+o*.48} L${i.x-a*.48} ${i.y-o*.48} Z`,{fill:r})};function F(e,{width:r,lang:i,ctx:a,compact:o=!1,embedHeading:s},c={}){let l=(0,t.appearance)(a),u=a.color(`muted`),d=a.color(`grid`),f=l.fg4,p=o?{...t.FONT.title,size:13}:t.FONT.title,m=(0,n.mapConfig)(c.config,`wardley`),h=e.stages.map(e=>[{text:e.name+(e.secondName===null?``:` /`),icons:[e.icon].filter(Boolean)},...e.secondName===null?[]:[{text:e.secondName,icons:[e.secondIcon].filter(Boolean)}]].flatMap(({text:e,icons:t})=>e.split(`
|
|
3
|
+
`).map((e,n)=>({text:e,icons:n===0?t:[]})))),g=e=>e?20:0,_=({text:e,icons:n})=>a.measure(e,t.FONT.label.size,400)+n.length*20,v=e.stages.map((e,t)=>(e.boundary??100*(t+1)/h.length)/100),y=e=>v[e]-(v[e-1]||0),C=Math.max(...h.map((e,t)=>(Math.max(...e.map(_))+22)/y(t))),w=(e,t)=>typeof e==`number`&&Number.isFinite(e)?Math.max(0,Math.min(16e3,e)):t,A=Math.max(96+C,Math.min(720,540+e.nodes.length*4+e.links.length*2)),F=o?A:Math.max(96+C,420,w(e.size?.width??(0,n.mapConfig)(m,`width`),900)),I=F-48,L=I-48,R=h.map((t,n)=>{if(t.length!==2||e.stages[n].secondName===null||[e.stages[n].name,e.stages[n].secondName].some(e=>e.includes(`
|
|
4
|
+
`)))return t;let r={text:t.map(e=>e.text).join(` `),icons:t.flatMap(e=>e.icons)};return _(r)+22<=L*y(n)?[r]:t}),z=!s&&(e.title||e.titleIcon)?a.wrap(e.title,L-g(e.titleIcon),p.size,p.weight):[],B=48+Math.max(0,z.length-1)*16,ee=Math.max(0,...R.map(e=>e.length-2))*16,te=Math.max(B+212+ee,Math.min(540,400+e.nodes.length*2+e.links.length)),ne=o?te:Math.max(B+212+ee,w(e.size?.height??(0,n.mapConfig)(m,`height`),600)),V=ne-86-ee,re=V-B,H=({evolution:e,visibility:t})=>({x:48+L*e/100,y:V-re*t/100}),U=new Map(e.nodes.map(e=>[e.id,{...e,...H(e),r:e.strategy?10:5}])),W=[],ie=[],ae=[],G=[],K=[],oe=[],q=[],J=[],Y=[],se=e.annotations.slice().sort((e,t)=>Number(e.number)-Number(t.number)),X=(e,t={})=>({stroke:e,"stroke-width":1,...t}),ce=(e,t,n,r)=>a.line(e.x,e.y,t.x,t.y,X(n,r)),le=(e,t)=>{oe.push(ce(e,t,l.fg4,{"stroke-dasharray":`2 3`,meta:{kind:`leader`}})),Y.push([e,t])},Z=(e,n,r,i=t.FONT.label,o=l.fg1,s=`middle`,c)=>(0,t.textBlock)(a,{x:e,y:n,lines:r,font:i,fill:o,anchor:s,lineHeight:16,meta:c}),ue=(e,t,r,i,o,s=l.fg1,c=`middle`)=>{if(!i)return Z(e,t,r,o,s,c);let u=Math.max(0,...r.map(e=>a.measure(e,o.size,o.weight))),d=g(i);return a.el(`g`,{},[Z(e+d*(c===`middle`?.5:1),t,r,o,s,c),(0,n.mapIcon)(a,i,e-(c===`middle`?(u+d)/2:0)+7,t,s)])},Q={...t.FONT.label,weight:650},de=[],fe=[];for(let t of e.pipelines){let e=U.get(t.parent),n=t.children.map(e=>U.get(e.id)).filter(Boolean).sort((e,t)=>e.x-t.x);if(!e||!n.length)continue;let r=n[0].x-16,i=n.at(-1).x-r+16;e.x=r+i/2,e.y-=25,e.square=!0,ie.push(a.rect(r,n[0].y-15,i,30,{rx:l.smallRadius,fill:a.tint(l.bg,a.frameTone(a.color(`tone1`)),.07),stroke:a.tint(l.bg,a.frameTone(a.color(`tone1`)),.45),meta:{kind:`frame`,id:t.parent}})),fe.push({children:n,bottom:n[0].y+15});for(let e=1;e<n.length;e++)de.push({from:n[e-1].id,to:n[e].id,dashed:!0})}for(let e of U.values())q.push(E(e.x,e.y,e.r*2,e.r*2)),e.inertia&&q.push(E(e.x+e.r+6,e.y,3,20));let pe=(e,t)=>{let n=H(e),r=[n];for(let e of[t+5,22,32,46,64])for(let[t,i]of[[0,-1],[1,0],[-1,0],[0,1],[1,-1],[-1,-1],[1,1],[-1,1]])r.push({x:n.x+t*e,y:n.y+i*e});let i=[...q,...J],{x:a,y:o}=r.find(e=>{let r=O(E(e.x,e.y,t*2,t*2),3);return!i.some(e=>D(r,e))&&!Y.some(([e,t])=>j(e,t,r))&&(e===n||!J.some(t=>j(n,e,O(t,2))))})||n;return q.push(E(a,o,t*2,t*2)),(a!==n.x||o!==n.y)&&le(n,N({x:a,y:o},n,t)),{...e,x:a,y:o,radius:t}},me=e.forces.map(e=>{let t=H(e);return q.push(E(t.x,t.y,40,20)),{...e,...t}}),$=ne;function he(e,n,r={}){let{font:i=t.FONT.label,fill:s=l.fg1,radius:c=6,preferred:u,fixed:f,plate:p,meta:m,icon:h,clearance:_=2}=r,v=a.wrap(e,Math.min(260,L/2)-g(h),i.size,i.weight),y=Math.max(...v.map(e=>a.measure(e,i.size,i.weight)))+g(h)+(p?14:4),b=v.length*16+(p?6:2),x=c+y/2+6,S=c+b/2+6,C=u?[u]:[];for(let e of[0,12,26,44,68,98,136]){let t=[[x+e,-e/4],[x+e,-S-e/2],[-x-e,0],[0,S+e],[0,-S-e],[-x-e,-S-e/2],[x+e,S+e/2],[-x-e,S+e/2]];r.above&&t.unshift(t.splice(4,1)[0]);for(let[e,r]of t)C.push({x:n.x+e,y:n.y+r})}let w=e=>{if(k(n,e)<=Math.hypot(x,S)+10)return null;let t=Math.min((y/2+1)/Math.abs(e.x-n.x),(b/2+1)/Math.abs(e.y-n.y));return[N(n,e,c+3),N(e,n,k(n,e)*t)]},T=f&&o&&(()=>{let e=[[0,0],[0,-1],[1,0],[-1,0],[0,1],[1,-1],[-1,-1],[1,1],[-1,1]],t=[f];for(let n of[12,24,36,52,72])for(let[r,i]of e.slice(1))t.push({x:f.x+r*n,y:f.y+i*n});return t.find(({x:e,y:t})=>{let n=O(E(e,t,y,b),_);return n.x>31&&n.x+n.w<F-8&&n.y>B-20&&n.y+n.h<V+9&&!q.some(e=>D(n,e))&&!J.some(e=>D(n,e))})})()||f||C.find(e=>{let{x:t,y:n}=e,r=w(e);if(r&&[...q,...J].some(e=>j(...r,O(e,2))))return!1;let i=O(E(t,n,y,b),_);return i.x>31&&i.x+i.w<F-8&&i.y>B-20&&i.y+i.h<V+9&&!q.some(e=>D(i,e))&&!J.some(e=>D(i,e))&&!Y.some(([e,t])=>j(e,t,i))}),A=!f&&T&&w(T);A&&le(...A),T||(T={x:48+y/2,y:$+b/2+4},$+=b+8);let{x:M,y:P}=T,I=E(M,P,y,b);J.push(I);let R=ue(M,P,v,h,i,s);f&&Y.some(([e,t])=>j(e,t,I))&&K.push(a.rect(I.x,I.y,I.w,I.h,{fill:l.bg,rx:l.smallRadius})),K.push(p?{...a.el(`g`,{},[a.rect(I.x,I.y,I.w,I.h,{fill:l.bg,stroke:d,rx:l.smallRadius}),R]),...m?{meta:m}:{}}:R)}let ge=[],_e=[],ve=[...U.values()].map(e=>({id:e.id,...O(E(e.x,e.y,e.r*2,e.r*2),2)}));function ye(e,t,n,r=!1){let i=r?l.danger:u,o=k(e,t),s=(e,t)=>e.r?Math.min(o/2,(e.square||e.kind===`anchor`?e.r*o/Math.max(Math.abs(e.x-t.x),Math.abs(e.y-t.y),1e-9):e.r)+1):0,c=N(e,t,s(e,t)),d=N(t,e,s(t,e)),f=M(c,d,ve.filter(n=>n.id!==e.id&&n.id!==t.id),_e);_e.push(...f),Y.push(...f);let p=f.map(([e,t])=>`M${e.x} ${e.y} L${t.x} ${t.y}`).join(` `);if(p){let o=a.path(p,{fill:`none`,...X(i,{"stroke-width":r?1.5:1.2,...n.dashed||r?{"stroke-dasharray":r?`5 4`:`3 4`}:{},meta:{kind:`edge`,from:e.id,to:t.id??`trend:${e.id}`}})}),s=f.length!==1||k(f[0][0],c)>1e-5||k(f[0][1],d)>1e-5;ae.push(!r&&s?a.titled(o,`${e.label} → ${t.label}`):o)}(r||n.flow===`forward`||n.flow===`bidirectional`)&&ae.push(P(a,c,d,i)),(n.flow===`backward`||n.flow===`bidirectional`)&&ae.push(P(a,d,c,i)),(n.label||n.icon)&&ge.push({link:n,point:N(c,d,k(c,d)/2)})}let be=[...de,...e.links].map(e=>({link:e,a:U.get(e.from),b:U.get(e.to)})).filter(({a:e,b:t})=>e&&t&&e.parent!==t.id&&t.parent!==e.id);be.sort((e,t)=>k(e.a,e.b)-k(t.a,t.b));for(let{a:e,b:t,link:n}of be)ye(e,t,n);for(let{nodeId:t,targetEvolution:n}of e.trends){let e=U.get(t);e&&ye(e,{x:H({evolution:n,visibility:e.visibility}).x,y:e.y},{},!0)}z.length&&W.push(ue(F/2,23+(z.length-1)*8,z,e.titleIcon,p)),W.push(a.line(48,B,48,V,X(f)),a.line(48,V,I,V,X(f)));let xe=(B+V)/2;W.push(a.el(`g`,{transform:`rotate(-90 18 ${xe})`},[Z(18,xe,[b(i,`visibility`)],Q,l.fg2)])),W.push(Z((48+I)/2,V+64+ee,[b(i,`evolution`)],Q,l.fg2)),R.forEach((e,r)=>{let i=48+L*(v[r-1]||0),o=48+L*v[r];r&&W.push(a.line(i,B,i,V,X(d)));let s=(i+o)/2;e.forEach(({text:e,icons:r},i)=>{let o=V+25+i*16;W.push(Z(s+r.length*10,o,[e],t.FONT.label,l.fg2)),r.forEach((t,i)=>W.push((0,n.mapIcon)(a,t,s-_({text:e,icons:r})/2+i*20+7,o,l.fg2)))})});let Se=e=>{let n=e.labelOffset&&{x:e.x+e.labelOffset.dx,y:e.y+e.labelOffset.dy},r=e.kind===`anchor`||e.square;he(e.label,e,{radius:e.r,fixed:n,icon:e.icon,above:r,font:r?Q:t.FONT.label})};for(let e of U.values())e.labelOffset&&Se(e);let Ce=new Set;for(let e of fe){let n=e.children.filter(e=>!e.labelOffset).map(e=>{let t=Math.min(260,L/2)-g(e.icon),n=a.wrap(e.label,t,12);return{node:e,rows:n,w:Math.max(...n.map(e=>a.measure(e,12,400)))+g(e.icon)+8}});if(!n.length)continue;let r=Math.max(...n.map(e=>e.rows.length))*16,i=n.reduce((e,t)=>e+t.w,0),o=48,s=i,c=n.map(({node:e,w:t})=>{let n=Math.max(o,Math.min(e.x-t/2,I-s));return s-=t,o=n+t,n+t/2}),l=e.bottom+8+r/2,u=e=>n.map(({w:t},n)=>E(c[n],e,t,r)),d=l;for(;d+r/2<V&&u(d).some(e=>[...q,...J].some(t=>D(e,t))||Y.some(([t,n])=>j(t,n,e)));)d+=12;(d+r/2>=V||i>L)&&(d=$+r/2+4,$+=r+8),J.push(...u(d)),n.forEach(({node:e,rows:n},i)=>{Ce.add(e.id),K.push(ue(c[i],d-(r-n.length*16)/2,n,e.icon,t.FONT.label))})}let we=se.map(e=>pe(e,Math.max(9,a.measure(e.number,12,650)/2+4))),Te=e.notes.map(e=>pe(e,2));for(let{link:e,point:t}of ge)he(e.label,t,{plate:!0,above:!0,radius:0,icon:e.icon,meta:{kind:`edge-label-group`,from:e.from,to:e.to}});for(let e of U.values()){let{x:t,y:n,r,id:i,strategy:o,inertia:s,square:c}=e,d=e.kind===`anchor`,f={kind:`node`,id:i},p=a.frameTone(a.color(S[o]||`tone1`)),m={fill:d?l.fg1:o?a.tint(l.bg,p,.16):l.node,stroke:a.frameTone(u),"stroke-width":1.4,meta:f};c?G.push(a.rect(t-r,n-r,2*r,2*r,{...m,rx:2})):d?G.push(a.rect(t-r,n-r,2*r,2*r,{...m,rx:3})):G.push(a.circle(t,n,r,m)),o&&G.push(a.titled(Z(t,n,[x[o]],Q,a.textOn(m.fill)),o)),s&&G.push(a.rect(t+r+4.5,n-10,3,20,{rx:1,fill:u})),!e.labelOffset&&!Ce.has(i)&&Se(e)}for(let e of Te)G.push(a.circle(e.x,e.y,2,{fill:u})),he(e.text,e,{plate:!0,radius:2,clearance:12,fill:l.fg2,icon:e.icon});for(let e of me){let t=e.kind===`accelerator`?1:-1,n=[[-20,-5],[6,-5],[6,-10],[20,0],[6,10],[6,5],[-20,5]].map(([n,r])=>`${e.x+n*t},${e.y+r}`);G.push(a.shape(`polygon`,{points:n.join(` `),fill:l.node,stroke:u,"stroke-width":1.3})),he(e.name,e,{preferred:{x:e.x,y:e.y+24},radius:20,icon:e.icon})}for(let e of we)G.push(a.circle(e.x,e.y,e.radius,{fill:l.bg,stroke:u,"stroke-width":1.4})),G.push(Z(e.x,e.y,[e.number],Q));if(se.length){let n=se.flatMap(({number:e,text:t,icon:n})=>a.wrap(`${e}. ${t}`,Math.min(270,L/2)-g(n),12).map((e,t)=>({row:e,icon:t===0?n:null}))),o=Math.max(...n.map(({row:e,icon:t})=>a.measure(e,12,400)+g(t)))+28,s=n.length*16+35,c=e.annotationBox?H(e.annotationBox):{x:I,y:V},u=T(Math.max(34,Math.min(F-o-10,c.x)),Math.min(V-s-5,c.y),o,s),f=r>=480&&u.y>=B&&![...q,...J].some(e=>D(O(u,4),e))&&!Y.some(([e,t])=>j(e,t,O(u,3))),p=f?u:T(48,$,o,s);f||($+=s+8),K.push(a.rect(p.x,p.y,p.w,p.h,{rx:l.radius,fill:l.node,stroke:d,meta:{kind:`frame`,id:`annotations`}}),Z(p.x+14,p.y+14,[b(i,`annotations`)],Q,l.fg1,`start`),...n.map(({row:e,icon:n},r)=>ue(p.x+14,p.y+35+r*16,[e],n,t.FONT.label,l.fg2,`start`)))}let Ee=Object.keys(x).filter(t=>e.nodes.some(e=>e.strategy===t));if(Ee.length){let e=a.wrap(Ee.map(e=>`${x[e]} · ${b(i,e)}`).join(` / `),L,12);K.push(Z(48,$+e.length*8,e,t.FONT.label,l.fg2,`start`)),$+=e.length*16+8}let De=F>r*2||U.size>60?[(0,t.warning)(`LARGE_DIAGRAM`,i,c.headerLine||1,`地图较大,可在图框内滚动`,`Large map; scroll inside the frame`,`按主题拆分组件及其依赖`,`Split components and their dependencies into maps by topic`)]:[];return{scene:{width:F,height:$+8,title:e.title||void 0,...s?{heading:e.title}:{},children:[...W,...ie,...ae,...oe,...G,...K]},errors:De}}return e.implementations={"wardley-beta":{parse:w,layout:F,honoredConfig:[`wardley.width`,`wardley.height`]}},e})({},KChartUnits[`diagram/support`],KChartUnits[`diagram/map-label`]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
KChartUnits["diagram/zenuml"]=(function(e,t,n,r){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var i=`[\\p{L}\\p{N}_$][\\p{L}\\p{N}_$-]*`,a=RegExp(`^(?:@(\\w+)\\s+)?(${i})(?:\\s+as\\s+(.+))?$`,`u`),o=RegExp(`^@(\\w+)\\s*\\(\\s*(${i})\\s*\\)$`,`u`),s=RegExp(`^(${i}?)\\s*(-->>|-->|->>|->|<<--|<--|<-|==>|=>|\\.\\.>)\\s*(${i})\\s*:\\s*(.*)$`,`u`),c=RegExp(`^(?:(?:[\\w.$<>\\[\\]]+\\s+)?(${i})\\s*=\\s*)?(?:(${i}?)\\s*->\\s*)?(${i})\\.(${i})(?:\\s*\\((.*)\\))?$`,`u`),l=RegExp(`^new\\s+(${i})(?:\\s*\\((.*)\\))?$`,`u`),u=/^(while|for|foreach|loop|if|opt|par|try|else\s+if|else|catch|finally)\s*(?:\((.*)\))?$/iu,d=new Set([`actor`,`boundary`,`control`,`entity`,`database`,`collections`,`queue`,`participant`]),f=`:starter`,p=240,m=40;function h(e,t){let n=[];for(let[r,i]of e.entries()){let e=t+r,a=i.trim(),o=0,s=``,c=0,l=t=>{t.trim()&&n.push({text:t.trim(),line:e})};if(/^title\s/i.test(a))l(a);else{for(let e=0;e<a.length;e++){let t=a[e];if(s)t===`\\`?e++:t===s&&(s=``);else if(t===`"`||t===`'`&&c)s=t;else if(t===`(`)c++;else if(t===`)`)c=Math.max(0,c-1);else if(!c){if(t===`:`)break;if(t===`/`&&a[e+1]===`/`){l(a.slice(o,e)),l(a.slice(e)),o=a.length;break}`{};`.includes(t)&&(l(a.slice(o,e)),t!==`;`&&l(t),o=e+1)}}l(a.slice(o))}}return n}function g(e,i){let{lang:g=`zh`,firstLine:_=2}=i,v=new Map,y=[],b=[],x=[],S=new Set,C=i.title||``,w=[],T,E,D=0,O=(e,n,r,i,a)=>b.push((0,t.error)(g,e,n,r,i,a)),k=(e,t)=>O(e,`无法识别 ZenUML 语句:「${t}」`,`Unrecognized ZenUML statement: "${t}"`,`例如:@Actor Client、Client->API: 请求 或 API.call()`,`For example: @Actor Client, Client->API: request, or API.call()`),A=(e,t)=>(v.has(e)||v.set(e,{id:e,name:e===f?``:e,kind:e===f?`actor`:`participant`,line:t}),v.get(e)),j=()=>x.findLast(e=>e.call),M=e=>{let t=x.at(-1);if(t?.keyword===`par`&&t.units++){let n={type:`section`,keyword:``,line:e};t.event.sections.push(n),y.push(n)}},N=(e,t,r)=>{let i=(0,n.stripEmphasis)(w.join(`
|
|
2
|
+
`));i&&y.push({type:`note`,place:`over`,ids:e===t?[e]:[e,t],text:i,line:r}),w=[]},P=(e,t,n,r,i={})=>{A(e,r).used=!0,A(t,r).used=!0,D++,y.push({type:`message`,from:e,to:t,text:n,line:r,arrow:{head:`open`,dashed:!1},...i})},F=(e,t,n,r)=>P(e,t,n,r,{arrow:{head:`open`,dashed:!0}}),I=(e,t)=>{e.assignment&&F(e.to,e.from,e.assignment,t),y.push({type:`deactivate`,id:e.to,line:t})},L=e=>O(e,`ZenUML 语句缺少花括号块`,`ZenUML statement is missing a brace block`,`在语句后添加 { … }`,`Add { … } after the statement`),R=e=>O(e,`回复注解后缺少消息`,`Expected a message after the reply annotation`,`写成 @return A->B: 结果`,`Write @return A->B: result`);for(let e of Object.keys(i.options||{}))O(_-1,`ZenUML 头行不接受选项「${e}」`,`The ZenUML header does not accept option "${e}"`,`头行只保留 zenuml`,`Use only zenuml on the header line`);let z=String(e).split(/\r\n?|\n/u);z.length>p&&O(_+p,`ZenUML 正文超过 ${p} 行`,`ZenUML body exceeds ${p} lines`,`拆分为多张图`,`Split into several diagrams`);let B=h(z.slice(0,p),_);for(let e=0;e<B.length;e++){let{text:t,line:n}=B[e];if(t.startsWith(`//`)){w.push(t.slice(2).trim());continue}let i=t,p=/^@(?:return|reply)(?:\s+(.*))?$/iu.exec(t);if(p){if(T&&R(T),T=n,!p[1])continue;i=p[1]}let m=s.exec(i),h=!!T;if(T&&!m&&R(T),T=void 0,m){let[,e,t,r,i]=m;if(t!==`->`){let a=`${e}->${r}: ${i}`;O(n,`ZenUML 消息箭头写法无效:「${t}」`,`Invalid ZenUML message arrow "${t}"`,`异步消息用 ${a};回复用 @return ${a} 或调用块内的 return`,`For an async message use ${a}; for a reply use @return ${a} or return inside a call block`)}else M(n),N(e,r,n),h?F(e,r,i,n):P(e,r,i,n)}else if(i===`}`){let t=x.at(-1);if(!t)O(n,`ZenUML 多余的 }`,`Unexpected } in ZenUML`,`删除多余的 }`,`Remove the unmatched }`);else if(t.call)x.pop(),I(t,n);else{let r=B.slice(e+1).find(e=>!e.text.startsWith(`//`)),i=r&&u.exec(r.text)?.[1].toLowerCase().replace(/\s+/g,` `);t.keyword===`if`&&t.branch!==`else`&&(i===`else`||i===`else if`)||t.keyword===`try`&&t.branch!==`finally`&&(i===`catch`||i===`finally`)?t.awaitingBranch=!0:(x.pop(),y.push({type:`end`,line:n}))}}else if(m=u.exec(i)){let t=m[1].toLowerCase().replace(/\s+/g,` `),a=m[2]?.trim()||``,o=x.at(-1),s=/^(else|catch|finally)/u.test(t);if(B[e+1]?.text!==`{`)L(n);else if(s&&!o?.awaitingBranch)k(n,i);else if(x.length>=r.LIMITS.fragmentDepth&&!s)O(n,`ZenUML 块嵌套过深`,`ZenUML blocks are nested too deeply`,`减少块的嵌套层数`,`Reduce block nesting`);else if(e++,s){let e={type:`section`,keyword:t,text:a,line:n};o.event.sections.push(e),y.push(e),Object.assign(o,{branch:t,awaitingBranch:!1})}else{M(n);let e={type:`fragment`,keyword:t===`if`?`alt`:/^(while|for|foreach)$/u.test(t)?`loop`:t,text:a,sections:[],line:n};y.push(e),x.push({event:e,keyword:t,line:n,units:0})}}else if(m=/^return(?:\s+(.*))?$/u.exec(i)){let e=j();e?(M(n),N(e.to,e.from,n),F(e.to,e.from,m[1]||``,n)):O(n,`return 应放在 ZenUML 同步调用块内`,`Put return inside a ZenUML synchronous call block`,`在调用的 { … } 内使用 return,或用 @return A->B: 结果`,`Use return inside the call’s { … }, or use @return A->B: result`)}else if(m=l.exec(i)){let[,e,t]=m,r=j()?.to||f;A(e,n).used||r===e?O(n,`应在首次使用「${e}」前创建它`,`Create "${e}" before its first message`,`将 new 移到该参与者的其他消息前`,`Move new before other messages involving this participant`):(M(n),N(r,e,n),P(r,e,t?.trim()?`«${t.trim()}»`:`«create»`,n,{create:e,activateOn:e,arrow:{head:`open`,dashed:!0}}),I({to:e},n))}else if(m=c.exec(i)){let[,t,i,a,o,s]=m,c=i||j()?.to||f;M(n),N(c,a,n),P(c,a,s===void 0?o:`${o}(${s})`,n,{activateOn:a,arrow:{head:`arrow`,dashed:!1}});let l={call:!0,from:c,to:a,assignment:t,line:n};B[e+1]?.text===`{`?x.length>=r.LIMITS.fragmentDepth?O(n,`ZenUML 块嵌套过深`,`ZenUML blocks are nested too deeply`,`减少块的嵌套层数`,`Reduce block nesting`):(e++,x.push(l)):I(l,n)}else if(m=/^title\s+(.+)$/iu.exec(i))C?O(n,`ZenUML 标题重复`,`Duplicate ZenUML title`,`只保留一个 title 或前置元数据标题`,`Keep one title statement or front-matter title`):C=m[1];else if(!/^@(?:startuml|enduml)$/iu.test(i)){if(m=o.exec(i)){let e=`@${m[1]} ${m[2]}`;O(n,`ZenUML 参与者注解写法无效:「${i}」`,`Invalid ZenUML participant annotation "${i}"`,`去掉括号,写成 ${e}`,`Remove the parentheses: ${e}`)}else if(m=a.exec(i)){let[,e,t,r]=m,i=A(t,n),a=e?.toLowerCase()||`participant`;i.declared?O(n,`ZenUML 参与者「${t}」重复声明`,`Duplicate ZenUML participant "${t}"`,`删除重复声明`,`Remove the duplicate declaration`):Object.assign(i,{declared:!0,name:r?.replace(/^(["'])(.*)\1$/u,`$2`)||t,kind:d.has(a)?a:`participant`,line:n}),d.has(a)||(S.add(`@${e}`),E??=n)}else k(n,i)}w=[]}T&&R(T);for(let e of x)O(e.line,`ZenUML 块缺少 }`,`ZenUML block is missing }`,`添加匹配的 }`,`Add a matching }`);!v.size&&!b.length&&O(_,`ZenUML 缺少参与者`,`ZenUML needs at least one participant`,`添加参与者 Client 或消息 Client->API: 请求`,`Add a participant Client or a message Client->API: request`);let V=[...v.values()];if(V.length>m&&O(V[m].line,`ZenUML 参与者超过 ${m} 个`,`ZenUML has more than ${m} participants`,`拆分为多张图`,`Split into several diagrams`),S.size){let e=[...S].join(`, `);b.push((0,t.warning)(`DIAGRAM_HINT`,g,E,`以下注解使用普通参与者外观:${e}`,`Using standard participants for these annotations: ${e}`,`如需图标,使用受支持的参与者类型`,`Use a supported participant type if an icon is needed`))}return v.has(f)&&V.unshift(V.splice(V.indexOf(v.get(f)),1)[0]),V.forEach((e,t)=>{e.index=t}),{model:{type:`sequence`,title:C,participants:V,statements:y,messages:D,zenuml:!0},errors:b}}var _=r.implementations.sequenceDiagram;return e.implementations={zenuml:{parse:g,layout:(e,t,n)=>_.layout(e,{...t,compact:!0},{...n,config:{sequence:{mirrorActors:!1}}}),scene:_.scene}},e})({},KChartUnits[`diagram/support`],KChartUnits[`diagram/emphasis`],KChartUnits[`diagram/sequence`]);
|
package/dist/units.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"deps": [
|
|
17
17
|
"chart/registry"
|
|
18
18
|
],
|
|
19
|
-
"bytes":
|
|
19
|
+
"bytes": 17340
|
|
20
20
|
},
|
|
21
21
|
"chart/context": {
|
|
22
22
|
"file": "units/chart/context.js",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"deps": [
|
|
48
48
|
"chart/registry"
|
|
49
49
|
],
|
|
50
|
-
"bytes":
|
|
50
|
+
"bytes": 12459
|
|
51
51
|
},
|
|
52
52
|
"chart/mindmap": {
|
|
53
53
|
"file": "units/chart/mindmap.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"chart/registry",
|
|
56
56
|
"core/theme"
|
|
57
57
|
],
|
|
58
|
-
"bytes":
|
|
58
|
+
"bytes": 11906
|
|
59
59
|
},
|
|
60
60
|
"chart/multivariate": {
|
|
61
61
|
"file": "units/chart/multivariate.js",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"core/geometry",
|
|
65
65
|
"core/color"
|
|
66
66
|
],
|
|
67
|
-
"bytes":
|
|
67
|
+
"bytes": 29274
|
|
68
68
|
},
|
|
69
69
|
"chart/registry": {
|
|
70
70
|
"file": "units/chart/registry.js",
|
|
@@ -83,14 +83,14 @@
|
|
|
83
83
|
"chart/registry",
|
|
84
84
|
"chart/spec"
|
|
85
85
|
],
|
|
86
|
-
"bytes":
|
|
86
|
+
"bytes": 21077
|
|
87
87
|
},
|
|
88
88
|
"chart/spec": {
|
|
89
89
|
"file": "units/chart/spec.js",
|
|
90
90
|
"deps": [
|
|
91
91
|
"chart/catalog"
|
|
92
92
|
],
|
|
93
|
-
"bytes":
|
|
93
|
+
"bytes": 40656
|
|
94
94
|
},
|
|
95
95
|
"chart/stat-compare": {
|
|
96
96
|
"file": "units/chart/stat-compare.js",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"core/geometry",
|
|
153
153
|
"core/diagnostics"
|
|
154
154
|
],
|
|
155
|
-
"bytes":
|
|
155
|
+
"bytes": 4957
|
|
156
156
|
},
|
|
157
157
|
"core/diagnostics": {
|
|
158
158
|
"file": "units/core/diagnostics.js",
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"core/scene": {
|
|
192
192
|
"file": "units/core/scene.js",
|
|
193
193
|
"deps": [],
|
|
194
|
-
"bytes":
|
|
194
|
+
"bytes": 8574
|
|
195
195
|
},
|
|
196
196
|
"core/svg": {
|
|
197
197
|
"file": "units/core/svg.js",
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"core/text": {
|
|
205
205
|
"file": "units/core/text.js",
|
|
206
206
|
"deps": [],
|
|
207
|
-
"bytes":
|
|
207
|
+
"bytes": 2966
|
|
208
208
|
},
|
|
209
209
|
"core/theme": {
|
|
210
210
|
"file": "units/core/theme.js",
|
|
@@ -242,19 +242,39 @@
|
|
|
242
242
|
"file": "units/diagram/block.js",
|
|
243
243
|
"deps": [
|
|
244
244
|
"core/icons",
|
|
245
|
+
"diagram/board-paint",
|
|
246
|
+
"diagram/board-route",
|
|
247
|
+
"diagram/graph-route",
|
|
245
248
|
"diagram/label",
|
|
246
249
|
"diagram/presentation",
|
|
247
250
|
"diagram/support"
|
|
248
251
|
],
|
|
249
|
-
"bytes":
|
|
252
|
+
"bytes": 17177
|
|
250
253
|
},
|
|
251
254
|
"diagram/blocks": {
|
|
252
255
|
"file": "units/diagram/blocks.js",
|
|
253
256
|
"deps": [
|
|
254
257
|
"diagram/support",
|
|
255
|
-
"core/icons"
|
|
258
|
+
"core/icons",
|
|
259
|
+
"diagram/board-paint",
|
|
260
|
+
"diagram/board-route"
|
|
261
|
+
],
|
|
262
|
+
"bytes": 17022
|
|
263
|
+
},
|
|
264
|
+
"diagram/board-paint": {
|
|
265
|
+
"file": "units/diagram/board-paint.js",
|
|
266
|
+
"deps": [
|
|
267
|
+
"core/color",
|
|
268
|
+
"diagram/support"
|
|
256
269
|
],
|
|
257
|
-
"bytes":
|
|
270
|
+
"bytes": 10108
|
|
271
|
+
},
|
|
272
|
+
"diagram/board-route": {
|
|
273
|
+
"file": "units/diagram/board-route.js",
|
|
274
|
+
"deps": [
|
|
275
|
+
"diagram/graph-route"
|
|
276
|
+
],
|
|
277
|
+
"bytes": 1013
|
|
258
278
|
},
|
|
259
279
|
"diagram/c4": {
|
|
260
280
|
"file": "units/diagram/c4.js",
|
|
@@ -265,7 +285,7 @@
|
|
|
265
285
|
"diagram/presentation",
|
|
266
286
|
"diagram/support"
|
|
267
287
|
],
|
|
268
|
-
"bytes":
|
|
288
|
+
"bytes": 18446
|
|
269
289
|
},
|
|
270
290
|
"diagram/class": {
|
|
271
291
|
"file": "units/diagram/class.js",
|
|
@@ -277,7 +297,7 @@
|
|
|
277
297
|
"diagram/graph-layout",
|
|
278
298
|
"core/geometry"
|
|
279
299
|
],
|
|
280
|
-
"bytes":
|
|
300
|
+
"bytes": 22063
|
|
281
301
|
},
|
|
282
302
|
"diagram/cynefin": {
|
|
283
303
|
"file": "units/diagram/cynefin.js",
|
|
@@ -287,7 +307,7 @@
|
|
|
287
307
|
"diagram/presentation",
|
|
288
308
|
"diagram/support"
|
|
289
309
|
],
|
|
290
|
-
"bytes":
|
|
310
|
+
"bytes": 14665
|
|
291
311
|
},
|
|
292
312
|
"diagram/emphasis": {
|
|
293
313
|
"file": "units/diagram/emphasis.js",
|
|
@@ -312,7 +332,7 @@
|
|
|
312
332
|
"diagram/support",
|
|
313
333
|
"diagram/map-label"
|
|
314
334
|
],
|
|
315
|
-
"bytes":
|
|
335
|
+
"bytes": 19963
|
|
316
336
|
},
|
|
317
337
|
"diagram/gantt-date": {
|
|
318
338
|
"file": "units/diagram/gantt-date.js",
|
|
@@ -328,7 +348,7 @@
|
|
|
328
348
|
"diagram/support",
|
|
329
349
|
"diagram/gantt-date"
|
|
330
350
|
],
|
|
331
|
-
"bytes":
|
|
351
|
+
"bytes": 16542
|
|
332
352
|
},
|
|
333
353
|
"diagram/gitgraph": {
|
|
334
354
|
"file": "units/diagram/gitgraph.js",
|
|
@@ -337,7 +357,7 @@
|
|
|
337
357
|
"diagram/presentation",
|
|
338
358
|
"diagram/support"
|
|
339
359
|
],
|
|
340
|
-
"bytes":
|
|
360
|
+
"bytes": 10672
|
|
341
361
|
},
|
|
342
362
|
"diagram/graph-layout": {
|
|
343
363
|
"file": "units/diagram/graph-layout.js",
|
|
@@ -346,7 +366,7 @@
|
|
|
346
366
|
"diagram/graph-route",
|
|
347
367
|
"diagram/shapes"
|
|
348
368
|
],
|
|
349
|
-
"bytes":
|
|
369
|
+
"bytes": 71382
|
|
350
370
|
},
|
|
351
371
|
"diagram/graph-parse": {
|
|
352
372
|
"file": "units/diagram/graph-parse.js",
|
|
@@ -364,7 +384,7 @@
|
|
|
364
384
|
"deps": [
|
|
365
385
|
"diagram/shapes"
|
|
366
386
|
],
|
|
367
|
-
"bytes":
|
|
387
|
+
"bytes": 14317
|
|
368
388
|
},
|
|
369
389
|
"diagram/graph": {
|
|
370
390
|
"file": "units/diagram/graph.js",
|
|
@@ -377,6 +397,13 @@
|
|
|
377
397
|
],
|
|
378
398
|
"bytes": 11487
|
|
379
399
|
},
|
|
400
|
+
"diagram/info": {
|
|
401
|
+
"file": "units/diagram/info.js",
|
|
402
|
+
"deps": [
|
|
403
|
+
"diagram/support"
|
|
404
|
+
],
|
|
405
|
+
"bytes": 783
|
|
406
|
+
},
|
|
380
407
|
"diagram/ishikawa": {
|
|
381
408
|
"file": "units/diagram/ishikawa.js",
|
|
382
409
|
"deps": [
|
|
@@ -396,7 +423,7 @@
|
|
|
396
423
|
"diagram/label",
|
|
397
424
|
"diagram/presentation"
|
|
398
425
|
],
|
|
399
|
-
"bytes":
|
|
426
|
+
"bytes": 12370
|
|
400
427
|
},
|
|
401
428
|
"diagram/kanban": {
|
|
402
429
|
"file": "units/diagram/kanban.js",
|
|
@@ -406,7 +433,7 @@
|
|
|
406
433
|
"diagram/presentation",
|
|
407
434
|
"diagram/support"
|
|
408
435
|
],
|
|
409
|
-
"bytes":
|
|
436
|
+
"bytes": 6727
|
|
410
437
|
},
|
|
411
438
|
"diagram/label": {
|
|
412
439
|
"file": "units/diagram/label.js",
|
|
@@ -422,7 +449,7 @@
|
|
|
422
449
|
"deps": [
|
|
423
450
|
"diagram/support"
|
|
424
451
|
],
|
|
425
|
-
"bytes":
|
|
452
|
+
"bytes": 9932
|
|
426
453
|
},
|
|
427
454
|
"diagram/map-label": {
|
|
428
455
|
"file": "units/diagram/map-label.js",
|
|
@@ -442,7 +469,7 @@
|
|
|
442
469
|
"chart/spec",
|
|
443
470
|
"chart/mindmap"
|
|
444
471
|
],
|
|
445
|
-
"bytes":
|
|
472
|
+
"bytes": 6518
|
|
446
473
|
},
|
|
447
474
|
"diagram/numeric-composition": {
|
|
448
475
|
"file": "units/diagram/numeric-composition.js",
|
|
@@ -454,7 +481,7 @@
|
|
|
454
481
|
"chart/spec",
|
|
455
482
|
"diagram/support"
|
|
456
483
|
],
|
|
457
|
-
"bytes":
|
|
484
|
+
"bytes": 2394
|
|
458
485
|
},
|
|
459
486
|
"diagram/numeric-model": {
|
|
460
487
|
"file": "units/diagram/numeric-model.js",
|
|
@@ -465,7 +492,7 @@
|
|
|
465
492
|
"chart/registry",
|
|
466
493
|
"core/diagnostics"
|
|
467
494
|
],
|
|
468
|
-
"bytes":
|
|
495
|
+
"bytes": 1926
|
|
469
496
|
},
|
|
470
497
|
"diagram/numeric-parse": {
|
|
471
498
|
"file": "units/diagram/numeric-parse.js",
|
|
@@ -482,9 +509,10 @@
|
|
|
482
509
|
"deps": [
|
|
483
510
|
"diagram/support",
|
|
484
511
|
"diagram/numeric-model",
|
|
512
|
+
"chart/spec",
|
|
485
513
|
"chart/multivariate"
|
|
486
514
|
],
|
|
487
|
-
"bytes":
|
|
515
|
+
"bytes": 10490
|
|
488
516
|
},
|
|
489
517
|
"diagram/numeric-sankey": {
|
|
490
518
|
"file": "units/diagram/numeric-sankey.js",
|
|
@@ -496,7 +524,7 @@
|
|
|
496
524
|
"chart/registry",
|
|
497
525
|
"chart/spec"
|
|
498
526
|
],
|
|
499
|
-
"bytes":
|
|
527
|
+
"bytes": 5835
|
|
500
528
|
},
|
|
501
529
|
"diagram/numeric-xy": {
|
|
502
530
|
"file": "units/diagram/numeric-xy.js",
|
|
@@ -506,7 +534,7 @@
|
|
|
506
534
|
"chart/basic",
|
|
507
535
|
"chart/multivariate"
|
|
508
536
|
],
|
|
509
|
-
"bytes":
|
|
537
|
+
"bytes": 13602
|
|
510
538
|
},
|
|
511
539
|
"diagram/packet": {
|
|
512
540
|
"file": "units/diagram/packet.js",
|
|
@@ -515,7 +543,7 @@
|
|
|
515
543
|
"diagram/presentation",
|
|
516
544
|
"diagram/support"
|
|
517
545
|
],
|
|
518
|
-
"bytes":
|
|
546
|
+
"bytes": 4103
|
|
519
547
|
},
|
|
520
548
|
"diagram/presentation": {
|
|
521
549
|
"file": "units/diagram/presentation.js",
|
|
@@ -532,7 +560,7 @@
|
|
|
532
560
|
"diagram/presentation",
|
|
533
561
|
"diagram/support"
|
|
534
562
|
],
|
|
535
|
-
"bytes":
|
|
563
|
+
"bytes": 7226
|
|
536
564
|
},
|
|
537
565
|
"diagram/railroad-parse": {
|
|
538
566
|
"file": "units/diagram/railroad-parse.js",
|
|
@@ -542,7 +570,7 @@
|
|
|
542
570
|
"diagram/presentation",
|
|
543
571
|
"diagram/support"
|
|
544
572
|
],
|
|
545
|
-
"bytes":
|
|
573
|
+
"bytes": 11303
|
|
546
574
|
},
|
|
547
575
|
"diagram/railroad": {
|
|
548
576
|
"file": "units/diagram/railroad.js",
|
|
@@ -551,7 +579,7 @@
|
|
|
551
579
|
"diagram/support",
|
|
552
580
|
"diagram/railroad-parse"
|
|
553
581
|
],
|
|
554
|
-
"bytes":
|
|
582
|
+
"bytes": 6732
|
|
555
583
|
},
|
|
556
584
|
"diagram/registry": {
|
|
557
585
|
"file": "units/diagram/registry.js",
|
|
@@ -561,19 +589,10 @@
|
|
|
561
589
|
"core/context",
|
|
562
590
|
"core/scene",
|
|
563
591
|
"core/svg",
|
|
592
|
+
"core/text",
|
|
564
593
|
"core/diagnostics"
|
|
565
594
|
],
|
|
566
|
-
"bytes":
|
|
567
|
-
},
|
|
568
|
-
"diagram/relations": {
|
|
569
|
-
"file": "units/diagram/relations.js",
|
|
570
|
-
"deps": [
|
|
571
|
-
"diagram/support",
|
|
572
|
-
"diagram/graph-parse",
|
|
573
|
-
"diagram/graph-layout",
|
|
574
|
-
"core/geometry"
|
|
575
|
-
],
|
|
576
|
-
"bytes": 20623
|
|
595
|
+
"bytes": 8280
|
|
577
596
|
},
|
|
578
597
|
"diagram/requirement": {
|
|
579
598
|
"file": "units/diagram/requirement.js",
|
|
@@ -592,7 +611,7 @@
|
|
|
592
611
|
"diagram/presentation",
|
|
593
612
|
"diagram/support"
|
|
594
613
|
],
|
|
595
|
-
"bytes":
|
|
614
|
+
"bytes": 27823
|
|
596
615
|
},
|
|
597
616
|
"diagram/shapes": {
|
|
598
617
|
"file": "units/diagram/shapes.js",
|
|
@@ -630,14 +649,14 @@
|
|
|
630
649
|
"diagram/support",
|
|
631
650
|
"diagram/graph-parse"
|
|
632
651
|
],
|
|
633
|
-
"bytes":
|
|
652
|
+
"bytes": 27186
|
|
634
653
|
},
|
|
635
654
|
"diagram/time": {
|
|
636
655
|
"file": "units/diagram/time.js",
|
|
637
656
|
"deps": [
|
|
638
657
|
"diagram/support"
|
|
639
658
|
],
|
|
640
|
-
"bytes":
|
|
659
|
+
"bytes": 15043
|
|
641
660
|
},
|
|
642
661
|
"diagram/timeline": {
|
|
643
662
|
"file": "units/diagram/timeline.js",
|
|
@@ -647,7 +666,7 @@
|
|
|
647
666
|
"diagram/presentation",
|
|
648
667
|
"diagram/support"
|
|
649
668
|
],
|
|
650
|
-
"bytes":
|
|
669
|
+
"bytes": 7884
|
|
651
670
|
},
|
|
652
671
|
"diagram/tree-family-icon": {
|
|
653
672
|
"file": "units/diagram/tree-family-icon.js",
|
|
@@ -663,7 +682,7 @@
|
|
|
663
682
|
"core/icons",
|
|
664
683
|
"diagram/tree-family-icon"
|
|
665
684
|
],
|
|
666
|
-
"bytes":
|
|
685
|
+
"bytes": 6508
|
|
667
686
|
},
|
|
668
687
|
"diagram/usecase": {
|
|
669
688
|
"file": "units/diagram/usecase.js",
|
|
@@ -687,7 +706,7 @@
|
|
|
687
706
|
"diagram/presentation",
|
|
688
707
|
"diagram/tree-family-icon"
|
|
689
708
|
],
|
|
690
|
-
"bytes":
|
|
709
|
+
"bytes": 19138
|
|
691
710
|
},
|
|
692
711
|
"diagram/wardley": {
|
|
693
712
|
"file": "units/diagram/wardley.js",
|
|
@@ -695,7 +714,16 @@
|
|
|
695
714
|
"diagram/support",
|
|
696
715
|
"diagram/map-label"
|
|
697
716
|
],
|
|
698
|
-
"bytes":
|
|
717
|
+
"bytes": 20921
|
|
718
|
+
},
|
|
719
|
+
"diagram/zenuml": {
|
|
720
|
+
"file": "units/diagram/zenuml.js",
|
|
721
|
+
"deps": [
|
|
722
|
+
"diagram/support",
|
|
723
|
+
"diagram/emphasis",
|
|
724
|
+
"diagram/sequence"
|
|
725
|
+
],
|
|
726
|
+
"bytes": 8012
|
|
699
727
|
},
|
|
700
728
|
"interaction": {
|
|
701
729
|
"file": "units/interaction.js",
|