@copilotkitnext/react 0.0.22-alpha.7 → 0.0.22-alpha.8
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/package.json +4 -4
- package/dist/KaTeX_AMS-Regular-CYEKBG2K.woff +0 -0
- package/dist/KaTeX_AMS-Regular-JKX5W2C4.ttf +0 -0
- package/dist/KaTeX_AMS-Regular-U6PRYMIZ.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-5QL5CMTE.woff2 +0 -0
- package/dist/KaTeX_Caligraphic-Bold-WZ3QSGD3.woff +0 -0
- package/dist/KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-3LKEU76G.woff +0 -0
- package/dist/KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf +0 -0
- package/dist/KaTeX_Caligraphic-Regular-KX5MEWCF.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-2QVFK6NQ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Bold-T4SWXBMT.woff +0 -0
- package/dist/KaTeX_Fraktur-Bold-WGHVTYOR.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-2PEIFJSJ.woff2 +0 -0
- package/dist/KaTeX_Fraktur-Regular-5U4OPH2X.ttf +0 -0
- package/dist/KaTeX_Fraktur-Regular-PQMHCIK6.woff +0 -0
- package/dist/KaTeX_Main-Bold-2GA4IZIN.woff +0 -0
- package/dist/KaTeX_Main-Bold-W5FBVCZM.ttf +0 -0
- package/dist/KaTeX_Main-Bold-YP5VVQRP.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-4P4C7HJH.woff +0 -0
- package/dist/KaTeX_Main-BoldItalic-N4V3DX7S.woff2 +0 -0
- package/dist/KaTeX_Main-BoldItalic-ODMLBJJQ.ttf +0 -0
- package/dist/KaTeX_Main-Italic-I43T2HSR.ttf +0 -0
- package/dist/KaTeX_Main-Italic-RELBIK7M.woff2 +0 -0
- package/dist/KaTeX_Main-Italic-SASNQFN2.woff +0 -0
- package/dist/KaTeX_Main-Regular-ARRPAO67.woff2 +0 -0
- package/dist/KaTeX_Main-Regular-P5I74A2A.woff +0 -0
- package/dist/KaTeX_Main-Regular-W74P5G27.ttf +0 -0
- package/dist/KaTeX_Math-BoldItalic-6EBV3DK5.woff +0 -0
- package/dist/KaTeX_Math-BoldItalic-K4WTGH3J.woff2 +0 -0
- package/dist/KaTeX_Math-BoldItalic-VB447A4D.ttf +0 -0
- package/dist/KaTeX_Math-Italic-6KGCHLFN.woff2 +0 -0
- package/dist/KaTeX_Math-Italic-KKK3USB2.woff +0 -0
- package/dist/KaTeX_Math-Italic-SON4MRCA.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-RRNVJFFW.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Bold-STQ6RXC7.ttf +0 -0
- package/dist/KaTeX_SansSerif-Bold-X5M5EMOD.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-HMPFTM52.woff2 +0 -0
- package/dist/KaTeX_SansSerif-Italic-PSN4QKYX.woff +0 -0
- package/dist/KaTeX_SansSerif-Italic-WTBAZBGY.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-2TL3USAE.ttf +0 -0
- package/dist/KaTeX_SansSerif-Regular-OQCII6EP.woff +0 -0
- package/dist/KaTeX_SansSerif-Regular-XIQ62X4E.woff2 +0 -0
- package/dist/KaTeX_Script-Regular-72OLXYNA.ttf +0 -0
- package/dist/KaTeX_Script-Regular-A5IFOEBS.woff +0 -0
- package/dist/KaTeX_Script-Regular-APUWIHLP.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-4HRHTS65.woff +0 -0
- package/dist/KaTeX_Size1-Regular-5LRUTBFT.woff2 +0 -0
- package/dist/KaTeX_Size1-Regular-7K6AASVL.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-222HN3GT.ttf +0 -0
- package/dist/KaTeX_Size2-Regular-K5ZHAIS6.woff +0 -0
- package/dist/KaTeX_Size2-Regular-LELKET5D.woff2 +0 -0
- package/dist/KaTeX_Size3-Regular-TLFPAHDE.woff +0 -0
- package/dist/KaTeX_Size3-Regular-UFCO6WCA.ttf +0 -0
- package/dist/KaTeX_Size3-Regular-WQRQ47UD.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-7PGNVPQK.ttf +0 -0
- package/dist/KaTeX_Size4-Regular-CDMV7U5C.woff2 +0 -0
- package/dist/KaTeX_Size4-Regular-PKMWZHNC.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-3F5K6SQ6.ttf +0 -0
- package/dist/KaTeX_Typewriter-Regular-MJMFSK64.woff +0 -0
- package/dist/KaTeX_Typewriter-Regular-VBYJ4NRC.woff2 +0 -0
- package/dist/angular-html-LD6QEAZE.mjs +0 -7
- package/dist/angular-html-LD6QEAZE.mjs.map +0 -1
- package/dist/angular-ts-FGK7I2F5.mjs +0 -37
- package/dist/angular-ts-FGK7I2F5.mjs.map +0 -1
- package/dist/angular-ts-XZTE5LQS.mjs +0 -37
- package/dist/angular-ts-XZTE5LQS.mjs.map +0 -1
- package/dist/apl-VB2EG5RZ.mjs +0 -22
- package/dist/apl-VB2EG5RZ.mjs.map +0 -1
- package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs +0 -8712
- package/dist/architectureDiagram-VXUJARFQ-PPLKSFYC.mjs.map +0 -1
- package/dist/blade-EZDWULER.mjs +0 -26
- package/dist/blade-EZDWULER.mjs.map +0 -1
- package/dist/blade-HS4Z7O3Y.mjs +0 -26
- package/dist/blade-HS4Z7O3Y.mjs.map +0 -1
- package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs +0 -3618
- package/dist/blockDiagram-VD42YOAC-7SIEWHYD.mjs.map +0 -1
- package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs +0 -2495
- package/dist/c4Diagram-YG6GDRKO-G2UUBRHQ.mjs.map +0 -1
- package/dist/chunk-2BAFECUC.mjs +0 -28
- package/dist/chunk-2BAFECUC.mjs.map +0 -1
- package/dist/chunk-BF5LDW2L.mjs +0 -65
- package/dist/chunk-BF5LDW2L.mjs.map +0 -1
- package/dist/chunk-BUEC2HNL.mjs +0 -762
- package/dist/chunk-BUEC2HNL.mjs.map +0 -1
- package/dist/chunk-CRGJ2YCV.mjs +0 -109
- package/dist/chunk-CRGJ2YCV.mjs.map +0 -1
- package/dist/chunk-DKZXT4VQ.mjs +0 -19
- package/dist/chunk-DKZXT4VQ.mjs.map +0 -1
- package/dist/chunk-DYQXFOGA.mjs +0 -34
- package/dist/chunk-DYQXFOGA.mjs.map +0 -1
- package/dist/chunk-ENI667QL.mjs +0 -806
- package/dist/chunk-ENI667QL.mjs.map +0 -1
- package/dist/chunk-GEUZOPED.mjs +0 -1834
- package/dist/chunk-GEUZOPED.mjs.map +0 -1
- package/dist/chunk-GU7334FJ.mjs +0 -538
- package/dist/chunk-GU7334FJ.mjs.map +0 -1
- package/dist/chunk-HNKEYT4A.mjs +0 -4693
- package/dist/chunk-HNKEYT4A.mjs.map +0 -1
- package/dist/chunk-HTMHAYGC.mjs +0 -14
- package/dist/chunk-HTMHAYGC.mjs.map +0 -1
- package/dist/chunk-JRLFMJ6U.mjs +0 -1923
- package/dist/chunk-JRLFMJ6U.mjs.map +0 -1
- package/dist/chunk-JYRND4DC.mjs +0 -22
- package/dist/chunk-JYRND4DC.mjs.map +0 -1
- package/dist/chunk-KFEPUFID.mjs +0 -52
- package/dist/chunk-KFEPUFID.mjs.map +0 -1
- package/dist/chunk-M3UH7XZX.mjs +0 -6222
- package/dist/chunk-M3UH7XZX.mjs.map +0 -1
- package/dist/chunk-ND4RYWG7.mjs +0 -12
- package/dist/chunk-ND4RYWG7.mjs.map +0 -1
- package/dist/chunk-VLSLBZME.mjs +0 -51
- package/dist/chunk-VLSLBZME.mjs.map +0 -1
- package/dist/chunk-WJBV3P3K.mjs +0 -55
- package/dist/chunk-WJBV3P3K.mjs.map +0 -1
- package/dist/chunk-X2TQ2HDS.mjs +0 -44
- package/dist/chunk-X2TQ2HDS.mjs.map +0 -1
- package/dist/chunk-YIDZOZG3.mjs +0 -103
- package/dist/chunk-YIDZOZG3.mjs.map +0 -1
- package/dist/chunk-YLW7IP7V.mjs +0 -14525
- package/dist/chunk-YLW7IP7V.mjs.map +0 -1
- package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs +0 -38
- package/dist/classDiagram-2ON5EDUG-WUV4PTK5.mjs.map +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs +0 -38
- package/dist/classDiagram-v2-WZHVMYZB-J4QNVYPE.mjs.map +0 -1
- package/dist/cobol-PNTKRG5I.mjs +0 -17
- package/dist/cobol-PNTKRG5I.mjs.map +0 -1
- package/dist/crystal-BSMHK65A.mjs +0 -23
- package/dist/crystal-BSMHK65A.mjs.map +0 -1
- package/dist/dagre-6UL2VRFP-XN667C7N.mjs +0 -710
- package/dist/dagre-6UL2VRFP-XN667C7N.mjs.map +0 -1
- package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs +0 -538
- package/dist/diagram-PSM6KHXK-VA2CF5LZ.mjs.map +0 -1
- package/dist/diagram-QEK2KX5R-H3EHES33.mjs +0 -319
- package/dist/diagram-QEK2KX5R-H3EHES33.mjs.map +0 -1
- package/dist/diagram-S2PKOQOG-FOQYPB22.mjs +0 -231
- package/dist/diagram-S2PKOQOG-FOQYPB22.mjs.map +0 -1
- package/dist/edge-JOI74UJM.mjs +0 -19
- package/dist/edge-JOI74UJM.mjs.map +0 -1
- package/dist/elixir-FEL6DDPJ.mjs +0 -15
- package/dist/elixir-FEL6DDPJ.mjs.map +0 -1
- package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs +0 -1175
- package/dist/erDiagram-Q2GNP2WA-IXNJSD2A.mjs.map +0 -1
- package/dist/erb-Q2D6FWX3.mjs +0 -32
- package/dist/erb-Q2D6FWX3.mjs.map +0 -1
- package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs +0 -2349
- package/dist/flowDiagram-NV44I4VS-ISKGEBMD.mjs.map +0 -1
- package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs +0 -2344
- package/dist/ganttDiagram-LVOFAZNH-OAL7V7IR.mjs.map +0 -1
- package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs +0 -1221
- package/dist/gitGraphDiagram-NY62KEGX-RKN2CCAZ.mjs.map +0 -1
- package/dist/glimmer-js-B32LCGFA.mjs +0 -19
- package/dist/glimmer-js-B32LCGFA.mjs.map +0 -1
- package/dist/glimmer-ts-4PHFAQCG.mjs +0 -19
- package/dist/glimmer-ts-4PHFAQCG.mjs.map +0 -1
- package/dist/hack-3ZNSL4KD.mjs +0 -17
- package/dist/hack-3ZNSL4KD.mjs.map +0 -1
- package/dist/handlebars-ICBC3AZK.mjs +0 -19
- package/dist/handlebars-ICBC3AZK.mjs.map +0 -1
- package/dist/html-BGY5P773.mjs +0 -6
- package/dist/html-BGY5P773.mjs.map +0 -1
- package/dist/html-derivative-3HGXHHFE.mjs +0 -7
- package/dist/html-derivative-3HGXHHFE.mjs.map +0 -1
- package/dist/index.css +0 -2385
- package/dist/index.css.map +0 -1
- package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs +0 -49
- package/dist/infoDiagram-F6ZHWCRC-Z7KMJJ45.mjs.map +0 -1
- package/dist/jinja-WL6HNMB5.mjs +0 -22
- package/dist/jinja-WL6HNMB5.mjs.map +0 -1
- package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs +0 -1259
- package/dist/journeyDiagram-XKPGCS4Q-BMTOBHZ4.mjs.map +0 -1
- package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs +0 -1062
- package/dist/kanban-definition-3W4ZIXB7-MVFRARF4.mjs.map +0 -1
- package/dist/katex-4R42CMCB.mjs +0 -4
- package/dist/katex-4R42CMCB.mjs.map +0 -1
- package/dist/liquid-YS3YPW54.mjs +0 -19
- package/dist/liquid-YS3YPW54.mjs.map +0 -1
- package/dist/logo-mark-OHF64HAY.svg +0 -8
- package/dist/mdc-A66KLOT4.mjs +0 -20
- package/dist/mdc-A66KLOT4.mjs.map +0 -1
- package/dist/mermaid.core-4OWTNZSL.mjs +0 -1587
- package/dist/mermaid.core-4OWTNZSL.mjs.map +0 -1
- package/dist/mermaid.core-7AUE4M6E.mjs +0 -1587
- package/dist/mermaid.core-7AUE4M6E.mjs.map +0 -1
- package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs +0 -1112
- package/dist/mindmap-definition-VGOIOE7T-7FMA2CPY.mjs.map +0 -1
- package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs +0 -1112
- package/dist/mindmap-definition-VGOIOE7T-VNF7JZOY.mjs.map +0 -1
- package/dist/nim-HUBKBJHZ.mjs +0 -26
- package/dist/nim-HUBKBJHZ.mjs.map +0 -1
- package/dist/perl-QHAMWWQ5.mjs +0 -22
- package/dist/perl-QHAMWWQ5.mjs.map +0 -1
- package/dist/php-FS5GKSPN.mjs +0 -11
- package/dist/php-FS5GKSPN.mjs.map +0 -1
- package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs +0 -200
- package/dist/pieDiagram-ADFJNKIX-EER3WTCU.mjs.map +0 -1
- package/dist/pug-WTY5FMEA.mjs +0 -17
- package/dist/pug-WTY5FMEA.mjs.map +0 -1
- package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs +0 -1344
- package/dist/quadrantDiagram-AYHSOK5B-WQCIRJOK.mjs.map +0 -1
- package/dist/razor-BAB7LFWZ.mjs +0 -17
- package/dist/razor-BAB7LFWZ.mjs.map +0 -1
- package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs +0 -1179
- package/dist/requirementDiagram-UZGBJVZJ-RVM6Q2TT.mjs.map +0 -1
- package/dist/rst-AY7U27YM.mjs +0 -41
- package/dist/rst-AY7U27YM.mjs.map +0 -1
- package/dist/rst-Y2VLYMJI.mjs +0 -41
- package/dist/rst-Y2VLYMJI.mjs.map +0 -1
- package/dist/ruby-K4BNEYWG.mjs +0 -22
- package/dist/ruby-K4BNEYWG.mjs.map +0 -1
- package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs +0 -1230
- package/dist/sankeyDiagram-TZEHDZUN-H7BVEXGO.mjs.map +0 -1
- package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs +0 -3885
- package/dist/sequenceDiagram-WL72ISMW-XBGZSOYI.mjs.map +0 -1
- package/dist/soy-5QMQV2KL.mjs +0 -15
- package/dist/soy-5QMQV2KL.mjs.map +0 -1
- package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs +0 -467
- package/dist/stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs.map +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs +0 -37
- package/dist/stateDiagram-v2-4FDKWEC3-SPDO7R6D.mjs.map +0 -1
- package/dist/templ-VSARRSO2.mjs +0 -17
- package/dist/templ-VSARRSO2.mjs.map +0 -1
- package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs +0 -1226
- package/dist/timeline-definition-IT6M3QCI-PX4A2RIH.mjs.map +0 -1
- package/dist/ts-tags-YK3Q2LIW.mjs +0 -68
- package/dist/ts-tags-YK3Q2LIW.mjs.map +0 -1
- package/dist/twig-HNMWLN6H.mjs +0 -40
- package/dist/twig-HNMWLN6H.mjs.map +0 -1
- package/dist/vue-7OSX6ZY5.mjs +0 -10
- package/dist/vue-7OSX6ZY5.mjs.map +0 -1
- package/dist/vue-html-AQH2V2EU.mjs +0 -20
- package/dist/vue-html-AQH2V2EU.mjs.map +0 -1
- package/dist/vue-vine-GCYT2IGV.mjs +0 -29
- package/dist/vue-vine-GCYT2IGV.mjs.map +0 -1
- package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs +0 -1865
- package/dist/xychartDiagram-PRI3JC2R-65KZQZDU.mjs.map +0 -1
package/dist/soy-5QMQV2KL.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { html_default } from './chunk-HTMHAYGC.mjs';
|
|
2
|
-
import './chunk-YE6B5S5H.mjs';
|
|
3
|
-
import './chunk-ACXAQWRF.mjs';
|
|
4
|
-
import './chunk-SH6YXSHR.mjs';
|
|
5
|
-
|
|
6
|
-
// ../../node_modules/.pnpm/@shikijs+langs@3.13.0/node_modules/@shikijs/langs/dist/soy.mjs
|
|
7
|
-
var lang = Object.freeze(JSON.parse(`{"displayName":"Closure Templates","fileTypes":["soy"],"injections":{"meta.tag":{"patterns":[{"include":"#body"}]}},"name":"soy","patterns":[{"include":"#alias"},{"include":"#delpackage"},{"include":"#namespace"},{"include":"#template"},{"include":"#comment"}],"repository":{"alias":{"captures":{"1":{"name":"storage.type.soy"},"2":{"name":"entity.name.type.soy"},"3":{"name":"storage.type.soy"},"4":{"name":"entity.name.type.soy"}},"match":"\\\\{(alias)\\\\s+([.\\\\w]+)(?:\\\\s+(as)\\\\s+(\\\\w+))?}"},"attribute":{"captures":{"1":{"name":"storage.other.attribute.soy"},"2":{"name":"string.double.quoted.soy"}},"match":"(\\\\w+)=(\\"(?:\\\\\\\\?.)*?\\")"},"body":{"patterns":[{"include":"#comment"},{"include":"#let"},{"include":"#call"},{"include":"#css"},{"include":"#xid"},{"include":"#condition"},{"include":"#condition-control"},{"include":"#for"},{"include":"#literal"},{"include":"#msg"},{"include":"#special-character"},{"include":"#print"},{"include":"text.html.basic"}]},"boolean":{"match":"true|false","name":"language.constant.boolean.soy"},"call":{"patterns":[{"begin":"\\\\{((?:del)?call)\\\\s+([.\\\\w]+)(?=[^/]*?})","beginCaptures":{"1":{"name":"storage.type.function.soy"},"2":{"name":"entity.name.function.soy"}},"end":"\\\\{/(\\\\1)}","endCaptures":{"1":{"name":"storage.type.function.soy"}},"patterns":[{"include":"#comment"},{"include":"#variant"},{"include":"#attribute"},{"include":"#param"}]},{"begin":"\\\\{((?:del)?call)(\\\\s+[.\\\\w]+)","beginCaptures":{"1":{"name":"storage.type.function.soy"},"2":{"name":"entity.name.function.soy"}},"end":"/}","patterns":[{"include":"#variant"},{"include":"#attribute"}]}]},"comment":{"patterns":[{"begin":"/\\\\*","end":"\\\\*/","name":"comment.block.documentation.soy","patterns":[{"captures":{"1":{"name":"keyword.parameter.soy"},"2":{"name":"variable.parameter.soy"}},"match":"(@param\\\\??)\\\\s+(\\\\S+)"}]},{"match":"^\\\\s*(//.*)$","name":"comment.line.double-slash.soy"}]},"condition":{"begin":"\\\\{/?(if|elseif|switch|case)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.soy"}},"end":"}","patterns":[{"include":"#attribute"},{"include":"#expression"}]},"condition-control":{"captures":{"1":{"name":"keyword.control.soy"}},"match":"\\\\{(else|ifempty|default)}"},"css":{"begin":"\\\\{(css)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.soy"}},"end":"}","patterns":[{"include":"#expression"}]},"delpackage":{"captures":{"1":{"name":"storage.type.soy"},"2":{"name":"entity.name.type.soy"}},"match":"\\\\{(delpackage)\\\\s+([.\\\\w]+)}"},"expression":{"patterns":[{"include":"#boolean"},{"include":"#number"},{"include":"#function"},{"include":"#null"},{"include":"#string"},{"include":"#variable-ref"},{"include":"#operator"}]},"for":{"begin":"\\\\{/?(for(?:each|))(?=[}\\\\s])","beginCaptures":{"1":{"name":"keyword.control.soy"}},"end":"}","patterns":[{"match":"in","name":"keyword.control.soy"},{"include":"#expression"},{"include":"#body"}]},"function":{"begin":"(\\\\w+)\\\\(","beginCaptures":{"1":{"name":"support.function.soy"}},"end":"\\\\)","patterns":[{"include":"#expression"}]},"let":{"patterns":[{"begin":"\\\\{(let)\\\\s+(\\\\$\\\\w+\\\\s*:)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"variable.soy"}},"end":"/}","patterns":[{"include":"#comment"},{"include":"#expression"}]},{"begin":"\\\\{(let)\\\\s+(\\\\$\\\\w+)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"variable.soy"}},"end":"\\\\{/(\\\\1)}","endCaptures":{"1":{"name":"storage.type.soy"}},"patterns":[{"include":"#attribute"},{"include":"#body"}]}]},"literal":{"begin":"\\\\{(literal)}","beginCaptures":{"1":{"name":"keyword.other.soy"}},"end":"\\\\{/(\\\\1)}","endCaptures":{"1":{"name":"keyword.other.soy"}},"name":"meta.literal"},"msg":{"captures":{"1":{"name":"keyword.other.soy"}},"end":"}","match":"\\\\{/?((?:|fallback)msg)","patterns":[{"include":"#attribute"}]},"namespace":{"captures":{"1":{"name":"storage.type.soy"},"2":{"name":"entity.name.type.soy"}},"match":"\\\\{(namespace)\\\\s+([.\\\\w]+)}"},"null":{"match":"null","name":"language.constant.null.soy"},"number":{"match":"-?\\\\.?\\\\d+|\\\\d[.\\\\d]*","name":"language.constant.numeric"},"operator":{"match":"-|not|[%*+/]|<=|>=|[<>]|==|!=|and|or|\\\\?:|[:?]","name":"keyword.operator.soy"},"param":{"patterns":[{"begin":"\\\\{(param)\\\\s+(\\\\w+\\\\s*:)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"variable.parameter.soy"}},"end":"/}","patterns":[{"include":"#expression"}]},{"begin":"\\\\{(param)\\\\s+(\\\\w+)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"variable.parameter.soy"}},"end":"\\\\{/(\\\\1)}","endCaptures":{"1":{"name":"storage.type.soy"}},"patterns":[{"include":"#attribute"},{"include":"#body"}]}]},"print":{"begin":"\\\\{(print)?\\\\s*","beginCaptures":{"1":{"name":"keyword.other.soy"}},"end":"}","patterns":[{"captures":{"1":{"name":"support.function.soy"}},"match":"\\\\|\\\\s*(changeNewlineToBr|truncate|bidiSpanWrap|bidiUnicodeWrap)"},{"include":"#expression"}]},"special-character":{"captures":{"1":{"name":"language.support.constant"}},"match":"\\\\{(sp|nil|\\\\\\\\r|\\\\\\\\n|\\\\\\\\t|lb|rb)}"},"string":{"begin":"'","end":"'","name":"string.quoted.single.soy","patterns":[{"match":"\\\\\\\\(?:[\\"'\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.soy"}]},"template":{"begin":"\\\\{((?:|del)template)\\\\s([.\\\\w]+)","beginCaptures":{"1":{"name":"storage.type.soy"},"2":{"name":"entity.name.function.soy"}},"end":"\\\\{(/\\\\1)}","endCaptures":{"1":{"name":"storage.type.soy"}},"patterns":[{"begin":"\\\\{(@param)(\\\\??)\\\\s+(\\\\S+\\\\s*:)","beginCaptures":{"1":{"name":"keyword.parameter.soy"},"2":{"name":"storage.modifier.keyword.operator.soy"},"3":{"name":"variable.parameter.soy"}},"end":"}","name":"meta.parameter.soy","patterns":[{"include":"#type"}]},{"include":"#variant"},{"include":"#body"},{"include":"#attribute"}]},"type":{"patterns":[{"match":"any|null|\\\\?|string|bool|int|float|number|html|uri|js|css|attributes","name":"support.type.soy"},{"begin":"(list|map)(<)","beginCaptures":{"1":{"name":"support.type.soy"},"2":{"name":"support.type.punctuation.soy"}},"end":"(>)","endCaptures":{"1":{"name":"support.type.modifier.soy"}},"patterns":[{"include":"#type"}]}]},"variable-ref":{"match":"\\\\$[\\\\a-z][.\\\\w]*","name":"variable.other.soy"},"variant":{"begin":"(variant)=(\\")","beginCaptures":{"1":{"name":"storage.other.attribute.soy"},"2":{"name":"string.double.quoted.soy"}},"contentName":"string.double.quoted.soy","end":"(\\")","endCaptures":{"1":{"name":"string.double.quoted.soy"}},"patterns":[{"include":"#expression"}]},"xid":{"begin":"\\\\{(xid)\\\\s+","beginCaptures":{"1":{"name":"keyword.other.soy"}},"end":"}","patterns":[{"include":"#expression"}]}},"scopeName":"text.html.soy","embeddedLangs":["html"],"aliases":["closure-templates"]}`));
|
|
8
|
-
var soy_default = [
|
|
9
|
-
...html_default,
|
|
10
|
-
lang
|
|
11
|
-
];
|
|
12
|
-
|
|
13
|
-
export { soy_default as default };
|
|
14
|
-
//# sourceMappingURL=soy-5QMQV2KL.mjs.map
|
|
15
|
-
//# sourceMappingURL=soy-5QMQV2KL.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../node_modules/.pnpm/@shikijs+langs@3.13.0/node_modules/@shikijs/langs/dist/soy.mjs"],"names":[],"mappings":";;;;;;AAEA,IAAM,OAAO,MAAA,CAAO,MAAA,CAAO,IAAA,CAAK,KAAA,CAAM,mqNAAgqP,CAAC,CAAA;AAEvsP,IAAO,WAAA,GAAQ;AAAA,EACf,GAAG,YAAA;AAAA,EACH;AACA","file":"soy-5QMQV2KL.mjs","sourcesContent":["import html from './html.mjs'\n\nconst lang = Object.freeze(JSON.parse(\"{\\\"displayName\\\":\\\"Closure Templates\\\",\\\"fileTypes\\\":[\\\"soy\\\"],\\\"injections\\\":{\\\"meta.tag\\\":{\\\"patterns\\\":[{\\\"include\\\":\\\"#body\\\"}]}},\\\"name\\\":\\\"soy\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#alias\\\"},{\\\"include\\\":\\\"#delpackage\\\"},{\\\"include\\\":\\\"#namespace\\\"},{\\\"include\\\":\\\"#template\\\"},{\\\"include\\\":\\\"#comment\\\"}],\\\"repository\\\":{\\\"alias\\\":{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"entity.name.type.soy\\\"},\\\"3\\\":{\\\"name\\\":\\\"storage.type.soy\\\"},\\\"4\\\":{\\\"name\\\":\\\"entity.name.type.soy\\\"}},\\\"match\\\":\\\"\\\\\\\\{(alias)\\\\\\\\s+([.\\\\\\\\w]+)(?:\\\\\\\\s+(as)\\\\\\\\s+(\\\\\\\\w+))?}\\\"},\\\"attribute\\\":{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.other.attribute.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"string.double.quoted.soy\\\"}},\\\"match\\\":\\\"(\\\\\\\\w+)=(\\\\\\\"(?:\\\\\\\\\\\\\\\\?.)*?\\\\\\\")\\\"},\\\"body\\\":{\\\"patterns\\\":[{\\\"include\\\":\\\"#comment\\\"},{\\\"include\\\":\\\"#let\\\"},{\\\"include\\\":\\\"#call\\\"},{\\\"include\\\":\\\"#css\\\"},{\\\"include\\\":\\\"#xid\\\"},{\\\"include\\\":\\\"#condition\\\"},{\\\"include\\\":\\\"#condition-control\\\"},{\\\"include\\\":\\\"#for\\\"},{\\\"include\\\":\\\"#literal\\\"},{\\\"include\\\":\\\"#msg\\\"},{\\\"include\\\":\\\"#special-character\\\"},{\\\"include\\\":\\\"#print\\\"},{\\\"include\\\":\\\"text.html.basic\\\"}]},\\\"boolean\\\":{\\\"match\\\":\\\"true|false\\\",\\\"name\\\":\\\"language.constant.boolean.soy\\\"},\\\"call\\\":{\\\"patterns\\\":[{\\\"begin\\\":\\\"\\\\\\\\{((?:del)?call)\\\\\\\\s+([.\\\\\\\\w]+)(?=[^/]*?})\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.function.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"entity.name.function.soy\\\"}},\\\"end\\\":\\\"\\\\\\\\{/(\\\\\\\\1)}\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.function.soy\\\"}},\\\"patterns\\\":[{\\\"include\\\":\\\"#comment\\\"},{\\\"include\\\":\\\"#variant\\\"},{\\\"include\\\":\\\"#attribute\\\"},{\\\"include\\\":\\\"#param\\\"}]},{\\\"begin\\\":\\\"\\\\\\\\{((?:del)?call)(\\\\\\\\s+[.\\\\\\\\w]+)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.function.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"entity.name.function.soy\\\"}},\\\"end\\\":\\\"/}\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#variant\\\"},{\\\"include\\\":\\\"#attribute\\\"}]}]},\\\"comment\\\":{\\\"patterns\\\":[{\\\"begin\\\":\\\"/\\\\\\\\*\\\",\\\"end\\\":\\\"\\\\\\\\*/\\\",\\\"name\\\":\\\"comment.block.documentation.soy\\\",\\\"patterns\\\":[{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.parameter.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"variable.parameter.soy\\\"}},\\\"match\\\":\\\"(@param\\\\\\\\??)\\\\\\\\s+(\\\\\\\\S+)\\\"}]},{\\\"match\\\":\\\"^\\\\\\\\s*(//.*)$\\\",\\\"name\\\":\\\"comment.line.double-slash.soy\\\"}]},\\\"condition\\\":{\\\"begin\\\":\\\"\\\\\\\\{/?(if|elseif|switch|case)\\\\\\\\s*\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.soy\\\"}},\\\"end\\\":\\\"}\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#attribute\\\"},{\\\"include\\\":\\\"#expression\\\"}]},\\\"condition-control\\\":{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.soy\\\"}},\\\"match\\\":\\\"\\\\\\\\{(else|ifempty|default)}\\\"},\\\"css\\\":{\\\"begin\\\":\\\"\\\\\\\\{(css)\\\\\\\\s+\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.other.soy\\\"}},\\\"end\\\":\\\"}\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#expression\\\"}]},\\\"delpackage\\\":{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"entity.name.type.soy\\\"}},\\\"match\\\":\\\"\\\\\\\\{(delpackage)\\\\\\\\s+([.\\\\\\\\w]+)}\\\"},\\\"expression\\\":{\\\"patterns\\\":[{\\\"include\\\":\\\"#boolean\\\"},{\\\"include\\\":\\\"#number\\\"},{\\\"include\\\":\\\"#function\\\"},{\\\"include\\\":\\\"#null\\\"},{\\\"include\\\":\\\"#string\\\"},{\\\"include\\\":\\\"#variable-ref\\\"},{\\\"include\\\":\\\"#operator\\\"}]},\\\"for\\\":{\\\"begin\\\":\\\"\\\\\\\\{/?(for(?:each|))(?=[}\\\\\\\\s])\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.control.soy\\\"}},\\\"end\\\":\\\"}\\\",\\\"patterns\\\":[{\\\"match\\\":\\\"in\\\",\\\"name\\\":\\\"keyword.control.soy\\\"},{\\\"include\\\":\\\"#expression\\\"},{\\\"include\\\":\\\"#body\\\"}]},\\\"function\\\":{\\\"begin\\\":\\\"(\\\\\\\\w+)\\\\\\\\(\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"support.function.soy\\\"}},\\\"end\\\":\\\"\\\\\\\\)\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#expression\\\"}]},\\\"let\\\":{\\\"patterns\\\":[{\\\"begin\\\":\\\"\\\\\\\\{(let)\\\\\\\\s+(\\\\\\\\$\\\\\\\\w+\\\\\\\\s*:)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"variable.soy\\\"}},\\\"end\\\":\\\"/}\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#comment\\\"},{\\\"include\\\":\\\"#expression\\\"}]},{\\\"begin\\\":\\\"\\\\\\\\{(let)\\\\\\\\s+(\\\\\\\\$\\\\\\\\w+)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"variable.soy\\\"}},\\\"end\\\":\\\"\\\\\\\\{/(\\\\\\\\1)}\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"}},\\\"patterns\\\":[{\\\"include\\\":\\\"#attribute\\\"},{\\\"include\\\":\\\"#body\\\"}]}]},\\\"literal\\\":{\\\"begin\\\":\\\"\\\\\\\\{(literal)}\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.other.soy\\\"}},\\\"end\\\":\\\"\\\\\\\\{/(\\\\\\\\1)}\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.other.soy\\\"}},\\\"name\\\":\\\"meta.literal\\\"},\\\"msg\\\":{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.other.soy\\\"}},\\\"end\\\":\\\"}\\\",\\\"match\\\":\\\"\\\\\\\\{/?((?:|fallback)msg)\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#attribute\\\"}]},\\\"namespace\\\":{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"entity.name.type.soy\\\"}},\\\"match\\\":\\\"\\\\\\\\{(namespace)\\\\\\\\s+([.\\\\\\\\w]+)}\\\"},\\\"null\\\":{\\\"match\\\":\\\"null\\\",\\\"name\\\":\\\"language.constant.null.soy\\\"},\\\"number\\\":{\\\"match\\\":\\\"-?\\\\\\\\.?\\\\\\\\d+|\\\\\\\\d[.\\\\\\\\d]*\\\",\\\"name\\\":\\\"language.constant.numeric\\\"},\\\"operator\\\":{\\\"match\\\":\\\"-|not|[%*+/]|<=|>=|[<>]|==|!=|and|or|\\\\\\\\?:|[:?]\\\",\\\"name\\\":\\\"keyword.operator.soy\\\"},\\\"param\\\":{\\\"patterns\\\":[{\\\"begin\\\":\\\"\\\\\\\\{(param)\\\\\\\\s+(\\\\\\\\w+\\\\\\\\s*:)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"variable.parameter.soy\\\"}},\\\"end\\\":\\\"/}\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#expression\\\"}]},{\\\"begin\\\":\\\"\\\\\\\\{(param)\\\\\\\\s+(\\\\\\\\w+)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"variable.parameter.soy\\\"}},\\\"end\\\":\\\"\\\\\\\\{/(\\\\\\\\1)}\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"}},\\\"patterns\\\":[{\\\"include\\\":\\\"#attribute\\\"},{\\\"include\\\":\\\"#body\\\"}]}]},\\\"print\\\":{\\\"begin\\\":\\\"\\\\\\\\{(print)?\\\\\\\\s*\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.other.soy\\\"}},\\\"end\\\":\\\"}\\\",\\\"patterns\\\":[{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"support.function.soy\\\"}},\\\"match\\\":\\\"\\\\\\\\|\\\\\\\\s*(changeNewlineToBr|truncate|bidiSpanWrap|bidiUnicodeWrap)\\\"},{\\\"include\\\":\\\"#expression\\\"}]},\\\"special-character\\\":{\\\"captures\\\":{\\\"1\\\":{\\\"name\\\":\\\"language.support.constant\\\"}},\\\"match\\\":\\\"\\\\\\\\{(sp|nil|\\\\\\\\\\\\\\\\r|\\\\\\\\\\\\\\\\n|\\\\\\\\\\\\\\\\t|lb|rb)}\\\"},\\\"string\\\":{\\\"begin\\\":\\\"'\\\",\\\"end\\\":\\\"'\\\",\\\"name\\\":\\\"string.quoted.single.soy\\\",\\\"patterns\\\":[{\\\"match\\\":\\\"\\\\\\\\\\\\\\\\(?:[\\\\\\\"'\\\\\\\\\\\\\\\\bfnrt]|u\\\\\\\\h{4})\\\",\\\"name\\\":\\\"constant.character.escape.soy\\\"}]},\\\"template\\\":{\\\"begin\\\":\\\"\\\\\\\\{((?:|del)template)\\\\\\\\s([.\\\\\\\\w]+)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"entity.name.function.soy\\\"}},\\\"end\\\":\\\"\\\\\\\\{(/\\\\\\\\1)}\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.type.soy\\\"}},\\\"patterns\\\":[{\\\"begin\\\":\\\"\\\\\\\\{(@param)(\\\\\\\\??)\\\\\\\\s+(\\\\\\\\S+\\\\\\\\s*:)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.parameter.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"storage.modifier.keyword.operator.soy\\\"},\\\"3\\\":{\\\"name\\\":\\\"variable.parameter.soy\\\"}},\\\"end\\\":\\\"}\\\",\\\"name\\\":\\\"meta.parameter.soy\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#type\\\"}]},{\\\"include\\\":\\\"#variant\\\"},{\\\"include\\\":\\\"#body\\\"},{\\\"include\\\":\\\"#attribute\\\"}]},\\\"type\\\":{\\\"patterns\\\":[{\\\"match\\\":\\\"any|null|\\\\\\\\?|string|bool|int|float|number|html|uri|js|css|attributes\\\",\\\"name\\\":\\\"support.type.soy\\\"},{\\\"begin\\\":\\\"(list|map)(<)\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"support.type.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"support.type.punctuation.soy\\\"}},\\\"end\\\":\\\"(>)\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"support.type.modifier.soy\\\"}},\\\"patterns\\\":[{\\\"include\\\":\\\"#type\\\"}]}]},\\\"variable-ref\\\":{\\\"match\\\":\\\"\\\\\\\\$[\\\\\\\\a-z][.\\\\\\\\w]*\\\",\\\"name\\\":\\\"variable.other.soy\\\"},\\\"variant\\\":{\\\"begin\\\":\\\"(variant)=(\\\\\\\")\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"storage.other.attribute.soy\\\"},\\\"2\\\":{\\\"name\\\":\\\"string.double.quoted.soy\\\"}},\\\"contentName\\\":\\\"string.double.quoted.soy\\\",\\\"end\\\":\\\"(\\\\\\\")\\\",\\\"endCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"string.double.quoted.soy\\\"}},\\\"patterns\\\":[{\\\"include\\\":\\\"#expression\\\"}]},\\\"xid\\\":{\\\"begin\\\":\\\"\\\\\\\\{(xid)\\\\\\\\s+\\\",\\\"beginCaptures\\\":{\\\"1\\\":{\\\"name\\\":\\\"keyword.other.soy\\\"}},\\\"end\\\":\\\"}\\\",\\\"patterns\\\":[{\\\"include\\\":\\\"#expression\\\"}]}},\\\"scopeName\\\":\\\"text.html.soy\\\",\\\"embeddedLangs\\\":[\\\"html\\\"],\\\"aliases\\\":[\\\"closure-templates\\\"]}\"))\n\nexport default [\n...html,\nlang\n]\n"]}
|
|
@@ -1,467 +0,0 @@
|
|
|
1
|
-
import { styles_default, stateDiagram_default, StateDB } from './chunk-JRLFMJ6U.mjs';
|
|
2
|
-
import { layout } from './chunk-FBQVHKGO.mjs';
|
|
3
|
-
import { Graph } from './chunk-IKZEAGWG.mjs';
|
|
4
|
-
import './chunk-GKV77NWJ.mjs';
|
|
5
|
-
import './chunk-JIP2SELZ.mjs';
|
|
6
|
-
import './chunk-7EWC2ACY.mjs';
|
|
7
|
-
import './chunk-2BAFECUC.mjs';
|
|
8
|
-
import './chunk-BF5LDW2L.mjs';
|
|
9
|
-
import './chunk-ENI667QL.mjs';
|
|
10
|
-
import './chunk-KFMFHSJF.mjs';
|
|
11
|
-
import './chunk-M3UH7XZX.mjs';
|
|
12
|
-
import './chunk-6WA5F2SG.mjs';
|
|
13
|
-
import './chunk-YIDZOZG3.mjs';
|
|
14
|
-
import './chunk-BUEC2HNL.mjs';
|
|
15
|
-
import { utils_default } from './chunk-GU7334FJ.mjs';
|
|
16
|
-
import './chunk-ZGPFSRJJ.mjs';
|
|
17
|
-
import { getConfig2, configureSvgSize, common_default, getUrl } from './chunk-HNKEYT4A.mjs';
|
|
18
|
-
import './chunk-7O6EKIFY.mjs';
|
|
19
|
-
import { __name, select_default, log, line_default, basis_default } from './chunk-WHXHCOFP.mjs';
|
|
20
|
-
import './chunk-RAC6KEKF.mjs';
|
|
21
|
-
import './chunk-SH6YXSHR.mjs';
|
|
22
|
-
|
|
23
|
-
// ../../node_modules/.pnpm/mermaid@11.12.0/node_modules/mermaid/dist/chunks/mermaid.core/stateDiagram-FKZM4ZOC.mjs
|
|
24
|
-
var drawStartState = /* @__PURE__ */ __name((g) => g.append("circle").attr("class", "start-state").attr("r", getConfig2().state.sizeUnit).attr("cx", getConfig2().state.padding + getConfig2().state.sizeUnit).attr("cy", getConfig2().state.padding + getConfig2().state.sizeUnit), "drawStartState");
|
|
25
|
-
var drawDivider = /* @__PURE__ */ __name((g) => g.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", getConfig2().state.textHeight).attr("class", "divider").attr("x2", getConfig2().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider");
|
|
26
|
-
var drawSimpleState = /* @__PURE__ */ __name((g, stateDef) => {
|
|
27
|
-
const state = g.append("text").attr("x", 2 * getConfig2().state.padding).attr("y", getConfig2().state.textHeight + 2 * getConfig2().state.padding).attr("font-size", getConfig2().state.fontSize).attr("class", "state-title").text(stateDef.id);
|
|
28
|
-
const classBox = state.node().getBBox();
|
|
29
|
-
g.insert("rect", ":first-child").attr("x", getConfig2().state.padding).attr("y", getConfig2().state.padding).attr("width", classBox.width + 2 * getConfig2().state.padding).attr("height", classBox.height + 2 * getConfig2().state.padding).attr("rx", getConfig2().state.radius);
|
|
30
|
-
return state;
|
|
31
|
-
}, "drawSimpleState");
|
|
32
|
-
var drawDescrState = /* @__PURE__ */ __name((g, stateDef) => {
|
|
33
|
-
const addTspan = /* @__PURE__ */ __name(function(textEl, txt, isFirst2) {
|
|
34
|
-
const tSpan = textEl.append("tspan").attr("x", 2 * getConfig2().state.padding).text(txt);
|
|
35
|
-
if (!isFirst2) {
|
|
36
|
-
tSpan.attr("dy", getConfig2().state.textHeight);
|
|
37
|
-
}
|
|
38
|
-
}, "addTspan");
|
|
39
|
-
const title = g.append("text").attr("x", 2 * getConfig2().state.padding).attr("y", getConfig2().state.textHeight + 1.3 * getConfig2().state.padding).attr("font-size", getConfig2().state.fontSize).attr("class", "state-title").text(stateDef.descriptions[0]);
|
|
40
|
-
const titleBox = title.node().getBBox();
|
|
41
|
-
const titleHeight = titleBox.height;
|
|
42
|
-
const description = g.append("text").attr("x", getConfig2().state.padding).attr(
|
|
43
|
-
"y",
|
|
44
|
-
titleHeight + getConfig2().state.padding * 0.4 + getConfig2().state.dividerMargin + getConfig2().state.textHeight
|
|
45
|
-
).attr("class", "state-description");
|
|
46
|
-
let isFirst = true;
|
|
47
|
-
let isSecond = true;
|
|
48
|
-
stateDef.descriptions.forEach(function(descr) {
|
|
49
|
-
if (!isFirst) {
|
|
50
|
-
addTspan(description, descr, isSecond);
|
|
51
|
-
isSecond = false;
|
|
52
|
-
}
|
|
53
|
-
isFirst = false;
|
|
54
|
-
});
|
|
55
|
-
const descrLine = g.append("line").attr("x1", getConfig2().state.padding).attr("y1", getConfig2().state.padding + titleHeight + getConfig2().state.dividerMargin / 2).attr("y2", getConfig2().state.padding + titleHeight + getConfig2().state.dividerMargin / 2).attr("class", "descr-divider");
|
|
56
|
-
const descrBox = description.node().getBBox();
|
|
57
|
-
const width = Math.max(descrBox.width, titleBox.width);
|
|
58
|
-
descrLine.attr("x2", width + 3 * getConfig2().state.padding);
|
|
59
|
-
g.insert("rect", ":first-child").attr("x", getConfig2().state.padding).attr("y", getConfig2().state.padding).attr("width", width + 2 * getConfig2().state.padding).attr("height", descrBox.height + titleHeight + 2 * getConfig2().state.padding).attr("rx", getConfig2().state.radius);
|
|
60
|
-
return g;
|
|
61
|
-
}, "drawDescrState");
|
|
62
|
-
var addTitleAndBox = /* @__PURE__ */ __name((g, stateDef, altBkg) => {
|
|
63
|
-
const pad = getConfig2().state.padding;
|
|
64
|
-
const dblPad = 2 * getConfig2().state.padding;
|
|
65
|
-
const orgBox = g.node().getBBox();
|
|
66
|
-
const orgWidth = orgBox.width;
|
|
67
|
-
const orgX = orgBox.x;
|
|
68
|
-
const title = g.append("text").attr("x", 0).attr("y", getConfig2().state.titleShift).attr("font-size", getConfig2().state.fontSize).attr("class", "state-title").text(stateDef.id);
|
|
69
|
-
const titleBox = title.node().getBBox();
|
|
70
|
-
const titleWidth = titleBox.width + dblPad;
|
|
71
|
-
let width = Math.max(titleWidth, orgWidth);
|
|
72
|
-
if (width === orgWidth) {
|
|
73
|
-
width = width + dblPad;
|
|
74
|
-
}
|
|
75
|
-
let startX;
|
|
76
|
-
const graphBox = g.node().getBBox();
|
|
77
|
-
if (stateDef.doc) ;
|
|
78
|
-
startX = orgX - pad;
|
|
79
|
-
if (titleWidth > orgWidth) {
|
|
80
|
-
startX = (orgWidth - width) / 2 + pad;
|
|
81
|
-
}
|
|
82
|
-
if (Math.abs(orgX - graphBox.x) < pad && titleWidth > orgWidth) {
|
|
83
|
-
startX = orgX - (titleWidth - orgWidth) / 2;
|
|
84
|
-
}
|
|
85
|
-
const lineY = 1 - getConfig2().state.textHeight;
|
|
86
|
-
g.insert("rect", ":first-child").attr("x", startX).attr("y", lineY).attr("class", altBkg ? "alt-composit" : "composit").attr("width", width).attr(
|
|
87
|
-
"height",
|
|
88
|
-
graphBox.height + getConfig2().state.textHeight + getConfig2().state.titleShift + 1
|
|
89
|
-
).attr("rx", "0");
|
|
90
|
-
title.attr("x", startX + pad);
|
|
91
|
-
if (titleWidth <= orgWidth) {
|
|
92
|
-
title.attr("x", orgX + (width - dblPad) / 2 - titleWidth / 2 + pad);
|
|
93
|
-
}
|
|
94
|
-
g.insert("rect", ":first-child").attr("x", startX).attr(
|
|
95
|
-
"y",
|
|
96
|
-
getConfig2().state.titleShift - getConfig2().state.textHeight - getConfig2().state.padding
|
|
97
|
-
).attr("width", width).attr("height", getConfig2().state.textHeight * 3).attr("rx", getConfig2().state.radius);
|
|
98
|
-
g.insert("rect", ":first-child").attr("x", startX).attr(
|
|
99
|
-
"y",
|
|
100
|
-
getConfig2().state.titleShift - getConfig2().state.textHeight - getConfig2().state.padding
|
|
101
|
-
).attr("width", width).attr("height", graphBox.height + 3 + 2 * getConfig2().state.textHeight).attr("rx", getConfig2().state.radius);
|
|
102
|
-
return g;
|
|
103
|
-
}, "addTitleAndBox");
|
|
104
|
-
var drawEndState = /* @__PURE__ */ __name((g) => {
|
|
105
|
-
g.append("circle").attr("class", "end-state-outer").attr("r", getConfig2().state.sizeUnit + getConfig2().state.miniPadding).attr(
|
|
106
|
-
"cx",
|
|
107
|
-
getConfig2().state.padding + getConfig2().state.sizeUnit + getConfig2().state.miniPadding
|
|
108
|
-
).attr(
|
|
109
|
-
"cy",
|
|
110
|
-
getConfig2().state.padding + getConfig2().state.sizeUnit + getConfig2().state.miniPadding
|
|
111
|
-
);
|
|
112
|
-
return g.append("circle").attr("class", "end-state-inner").attr("r", getConfig2().state.sizeUnit).attr("cx", getConfig2().state.padding + getConfig2().state.sizeUnit + 2).attr("cy", getConfig2().state.padding + getConfig2().state.sizeUnit + 2);
|
|
113
|
-
}, "drawEndState");
|
|
114
|
-
var drawForkJoinState = /* @__PURE__ */ __name((g, stateDef) => {
|
|
115
|
-
let width = getConfig2().state.forkWidth;
|
|
116
|
-
let height = getConfig2().state.forkHeight;
|
|
117
|
-
if (stateDef.parentId) {
|
|
118
|
-
let tmp = width;
|
|
119
|
-
width = height;
|
|
120
|
-
height = tmp;
|
|
121
|
-
}
|
|
122
|
-
return g.append("rect").style("stroke", "black").style("fill", "black").attr("width", width).attr("height", height).attr("x", getConfig2().state.padding).attr("y", getConfig2().state.padding);
|
|
123
|
-
}, "drawForkJoinState");
|
|
124
|
-
var _drawLongText = /* @__PURE__ */ __name((_text, x, y, g) => {
|
|
125
|
-
let textHeight = 0;
|
|
126
|
-
const textElem = g.append("text");
|
|
127
|
-
textElem.style("text-anchor", "start");
|
|
128
|
-
textElem.attr("class", "noteText");
|
|
129
|
-
let text = _text.replace(/\r\n/g, "<br/>");
|
|
130
|
-
text = text.replace(/\n/g, "<br/>");
|
|
131
|
-
const lines = text.split(common_default.lineBreakRegex);
|
|
132
|
-
let tHeight = 1.25 * getConfig2().state.noteMargin;
|
|
133
|
-
for (const line2 of lines) {
|
|
134
|
-
const txt = line2.trim();
|
|
135
|
-
if (txt.length > 0) {
|
|
136
|
-
const span = textElem.append("tspan");
|
|
137
|
-
span.text(txt);
|
|
138
|
-
if (tHeight === 0) {
|
|
139
|
-
const textBounds = span.node().getBBox();
|
|
140
|
-
tHeight += textBounds.height;
|
|
141
|
-
}
|
|
142
|
-
textHeight += tHeight;
|
|
143
|
-
span.attr("x", x + getConfig2().state.noteMargin);
|
|
144
|
-
span.attr("y", y + textHeight + 1.25 * getConfig2().state.noteMargin);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
return { textWidth: textElem.node().getBBox().width, textHeight };
|
|
148
|
-
}, "_drawLongText");
|
|
149
|
-
var drawNote = /* @__PURE__ */ __name((text, g) => {
|
|
150
|
-
g.attr("class", "state-note");
|
|
151
|
-
const note = g.append("rect").attr("x", 0).attr("y", getConfig2().state.padding);
|
|
152
|
-
const rectElem = g.append("g");
|
|
153
|
-
const { textWidth, textHeight } = _drawLongText(text, 0, 0, rectElem);
|
|
154
|
-
note.attr("height", textHeight + 2 * getConfig2().state.noteMargin);
|
|
155
|
-
note.attr("width", textWidth + getConfig2().state.noteMargin * 2);
|
|
156
|
-
return note;
|
|
157
|
-
}, "drawNote");
|
|
158
|
-
var drawState = /* @__PURE__ */ __name(function(elem, stateDef) {
|
|
159
|
-
const id = stateDef.id;
|
|
160
|
-
const stateInfo = {
|
|
161
|
-
id,
|
|
162
|
-
label: stateDef.id,
|
|
163
|
-
width: 0,
|
|
164
|
-
height: 0
|
|
165
|
-
};
|
|
166
|
-
const g = elem.append("g").attr("id", id).attr("class", "stateGroup");
|
|
167
|
-
if (stateDef.type === "start") {
|
|
168
|
-
drawStartState(g);
|
|
169
|
-
}
|
|
170
|
-
if (stateDef.type === "end") {
|
|
171
|
-
drawEndState(g);
|
|
172
|
-
}
|
|
173
|
-
if (stateDef.type === "fork" || stateDef.type === "join") {
|
|
174
|
-
drawForkJoinState(g, stateDef);
|
|
175
|
-
}
|
|
176
|
-
if (stateDef.type === "note") {
|
|
177
|
-
drawNote(stateDef.note.text, g);
|
|
178
|
-
}
|
|
179
|
-
if (stateDef.type === "divider") {
|
|
180
|
-
drawDivider(g);
|
|
181
|
-
}
|
|
182
|
-
if (stateDef.type === "default" && stateDef.descriptions.length === 0) {
|
|
183
|
-
drawSimpleState(g, stateDef);
|
|
184
|
-
}
|
|
185
|
-
if (stateDef.type === "default" && stateDef.descriptions.length > 0) {
|
|
186
|
-
drawDescrState(g, stateDef);
|
|
187
|
-
}
|
|
188
|
-
const stateBox = g.node().getBBox();
|
|
189
|
-
stateInfo.width = stateBox.width + 2 * getConfig2().state.padding;
|
|
190
|
-
stateInfo.height = stateBox.height + 2 * getConfig2().state.padding;
|
|
191
|
-
return stateInfo;
|
|
192
|
-
}, "drawState");
|
|
193
|
-
var edgeCount = 0;
|
|
194
|
-
var drawEdge = /* @__PURE__ */ __name(function(elem, path, relation) {
|
|
195
|
-
const getRelationType = /* @__PURE__ */ __name(function(type) {
|
|
196
|
-
switch (type) {
|
|
197
|
-
case StateDB.relationType.AGGREGATION:
|
|
198
|
-
return "aggregation";
|
|
199
|
-
case StateDB.relationType.EXTENSION:
|
|
200
|
-
return "extension";
|
|
201
|
-
case StateDB.relationType.COMPOSITION:
|
|
202
|
-
return "composition";
|
|
203
|
-
case StateDB.relationType.DEPENDENCY:
|
|
204
|
-
return "dependency";
|
|
205
|
-
}
|
|
206
|
-
}, "getRelationType");
|
|
207
|
-
path.points = path.points.filter((p) => !Number.isNaN(p.y));
|
|
208
|
-
const lineData = path.points;
|
|
209
|
-
const lineFunction = line_default().x(function(d) {
|
|
210
|
-
return d.x;
|
|
211
|
-
}).y(function(d) {
|
|
212
|
-
return d.y;
|
|
213
|
-
}).curve(basis_default);
|
|
214
|
-
const svgPath = elem.append("path").attr("d", lineFunction(lineData)).attr("id", "edge" + edgeCount).attr("class", "transition");
|
|
215
|
-
let url = "";
|
|
216
|
-
if (getConfig2().state.arrowMarkerAbsolute) {
|
|
217
|
-
url = getUrl(true);
|
|
218
|
-
}
|
|
219
|
-
svgPath.attr(
|
|
220
|
-
"marker-end",
|
|
221
|
-
"url(" + url + "#" + getRelationType(StateDB.relationType.DEPENDENCY) + "End)"
|
|
222
|
-
);
|
|
223
|
-
if (relation.title !== void 0) {
|
|
224
|
-
const label = elem.append("g").attr("class", "stateLabel");
|
|
225
|
-
const { x, y } = utils_default.calcLabelPosition(path.points);
|
|
226
|
-
const rows = common_default.getRows(relation.title);
|
|
227
|
-
let titleHeight = 0;
|
|
228
|
-
const titleRows = [];
|
|
229
|
-
let maxWidth = 0;
|
|
230
|
-
let minX = 0;
|
|
231
|
-
for (let i = 0; i <= rows.length; i++) {
|
|
232
|
-
const title = label.append("text").attr("text-anchor", "middle").text(rows[i]).attr("x", x).attr("y", y + titleHeight);
|
|
233
|
-
const boundsTmp = title.node().getBBox();
|
|
234
|
-
maxWidth = Math.max(maxWidth, boundsTmp.width);
|
|
235
|
-
minX = Math.min(minX, boundsTmp.x);
|
|
236
|
-
log.info(boundsTmp.x, x, y + titleHeight);
|
|
237
|
-
if (titleHeight === 0) {
|
|
238
|
-
const titleBox = title.node().getBBox();
|
|
239
|
-
titleHeight = titleBox.height;
|
|
240
|
-
log.info("Title height", titleHeight, y);
|
|
241
|
-
}
|
|
242
|
-
titleRows.push(title);
|
|
243
|
-
}
|
|
244
|
-
let boxHeight = titleHeight * rows.length;
|
|
245
|
-
if (rows.length > 1) {
|
|
246
|
-
const heightAdj = (rows.length - 1) * titleHeight * 0.5;
|
|
247
|
-
titleRows.forEach((title, i) => title.attr("y", y + i * titleHeight - heightAdj));
|
|
248
|
-
boxHeight = titleHeight * rows.length;
|
|
249
|
-
}
|
|
250
|
-
const bounds = label.node().getBBox();
|
|
251
|
-
label.insert("rect", ":first-child").attr("class", "box").attr("x", x - maxWidth / 2 - getConfig2().state.padding / 2).attr("y", y - boxHeight / 2 - getConfig2().state.padding / 2 - 3.5).attr("width", maxWidth + getConfig2().state.padding).attr("height", boxHeight + getConfig2().state.padding);
|
|
252
|
-
log.info(bounds);
|
|
253
|
-
}
|
|
254
|
-
edgeCount++;
|
|
255
|
-
}, "drawEdge");
|
|
256
|
-
var conf;
|
|
257
|
-
var transformationLog = {};
|
|
258
|
-
var setConf = /* @__PURE__ */ __name(function() {
|
|
259
|
-
}, "setConf");
|
|
260
|
-
var insertMarkers = /* @__PURE__ */ __name(function(elem) {
|
|
261
|
-
elem.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
262
|
-
}, "insertMarkers");
|
|
263
|
-
var draw = /* @__PURE__ */ __name(function(text, id, _version, diagObj) {
|
|
264
|
-
conf = getConfig2().state;
|
|
265
|
-
const securityLevel = getConfig2().securityLevel;
|
|
266
|
-
let sandboxElement;
|
|
267
|
-
if (securityLevel === "sandbox") {
|
|
268
|
-
sandboxElement = select_default("#i" + id);
|
|
269
|
-
}
|
|
270
|
-
const root = securityLevel === "sandbox" ? select_default(sandboxElement.nodes()[0].contentDocument.body) : select_default("body");
|
|
271
|
-
const doc = securityLevel === "sandbox" ? sandboxElement.nodes()[0].contentDocument : document;
|
|
272
|
-
log.debug("Rendering diagram " + text);
|
|
273
|
-
const diagram2 = root.select(`[id='${id}']`);
|
|
274
|
-
insertMarkers(diagram2);
|
|
275
|
-
const rootDoc = diagObj.db.getRootDoc();
|
|
276
|
-
renderDoc(rootDoc, diagram2, void 0, false, root, doc, diagObj);
|
|
277
|
-
const padding = conf.padding;
|
|
278
|
-
const bounds = diagram2.node().getBBox();
|
|
279
|
-
const width = bounds.width + padding * 2;
|
|
280
|
-
const height = bounds.height + padding * 2;
|
|
281
|
-
const svgWidth = width * 1.75;
|
|
282
|
-
configureSvgSize(diagram2, height, svgWidth, conf.useMaxWidth);
|
|
283
|
-
diagram2.attr(
|
|
284
|
-
"viewBox",
|
|
285
|
-
`${bounds.x - conf.padding} ${bounds.y - conf.padding} ` + width + " " + height
|
|
286
|
-
);
|
|
287
|
-
}, "draw");
|
|
288
|
-
var getLabelWidth = /* @__PURE__ */ __name((text) => {
|
|
289
|
-
return text ? text.length * conf.fontSizeFactor : 1;
|
|
290
|
-
}, "getLabelWidth");
|
|
291
|
-
var renderDoc = /* @__PURE__ */ __name((doc, diagram2, parentId, altBkg, root, domDocument, diagObj) => {
|
|
292
|
-
const graph = new Graph({
|
|
293
|
-
compound: true,
|
|
294
|
-
multigraph: true
|
|
295
|
-
});
|
|
296
|
-
let i;
|
|
297
|
-
let edgeFreeDoc = true;
|
|
298
|
-
for (i = 0; i < doc.length; i++) {
|
|
299
|
-
if (doc[i].stmt === "relation") {
|
|
300
|
-
edgeFreeDoc = false;
|
|
301
|
-
break;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
if (parentId) {
|
|
305
|
-
graph.setGraph({
|
|
306
|
-
rankdir: "LR",
|
|
307
|
-
multigraph: true,
|
|
308
|
-
compound: true,
|
|
309
|
-
// acyclicer: 'greedy',
|
|
310
|
-
ranker: "tight-tree",
|
|
311
|
-
ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,
|
|
312
|
-
nodeSep: edgeFreeDoc ? 1 : 50,
|
|
313
|
-
isMultiGraph: true
|
|
314
|
-
// ranksep: 5,
|
|
315
|
-
// nodesep: 1
|
|
316
|
-
});
|
|
317
|
-
} else {
|
|
318
|
-
graph.setGraph({
|
|
319
|
-
rankdir: "TB",
|
|
320
|
-
multigraph: true,
|
|
321
|
-
compound: true,
|
|
322
|
-
// isCompound: true,
|
|
323
|
-
// acyclicer: 'greedy',
|
|
324
|
-
// ranker: 'longest-path'
|
|
325
|
-
ranksep: edgeFreeDoc ? 1 : conf.edgeLengthFactor,
|
|
326
|
-
nodeSep: edgeFreeDoc ? 1 : 50,
|
|
327
|
-
ranker: "tight-tree",
|
|
328
|
-
// ranker: 'network-simplex'
|
|
329
|
-
isMultiGraph: true
|
|
330
|
-
});
|
|
331
|
-
}
|
|
332
|
-
graph.setDefaultEdgeLabel(function() {
|
|
333
|
-
return {};
|
|
334
|
-
});
|
|
335
|
-
const states = diagObj.db.getStates();
|
|
336
|
-
const relations = diagObj.db.getRelations();
|
|
337
|
-
const keys = Object.keys(states);
|
|
338
|
-
for (const key of keys) {
|
|
339
|
-
const stateDef = states[key];
|
|
340
|
-
if (parentId) {
|
|
341
|
-
stateDef.parentId = parentId;
|
|
342
|
-
}
|
|
343
|
-
let node;
|
|
344
|
-
if (stateDef.doc) {
|
|
345
|
-
let sub = diagram2.append("g").attr("id", stateDef.id).attr("class", "stateGroup");
|
|
346
|
-
node = renderDoc(stateDef.doc, sub, stateDef.id, !altBkg, root, domDocument, diagObj);
|
|
347
|
-
{
|
|
348
|
-
sub = addTitleAndBox(sub, stateDef, altBkg);
|
|
349
|
-
let boxBounds = sub.node().getBBox();
|
|
350
|
-
node.width = boxBounds.width;
|
|
351
|
-
node.height = boxBounds.height + conf.padding / 2;
|
|
352
|
-
transformationLog[stateDef.id] = { y: conf.compositTitleSize };
|
|
353
|
-
}
|
|
354
|
-
} else {
|
|
355
|
-
node = drawState(diagram2, stateDef, graph);
|
|
356
|
-
}
|
|
357
|
-
if (stateDef.note) {
|
|
358
|
-
const noteDef = {
|
|
359
|
-
descriptions: [],
|
|
360
|
-
id: stateDef.id + "-note",
|
|
361
|
-
note: stateDef.note,
|
|
362
|
-
type: "note"
|
|
363
|
-
};
|
|
364
|
-
const note = drawState(diagram2, noteDef, graph);
|
|
365
|
-
if (stateDef.note.position === "left of") {
|
|
366
|
-
graph.setNode(node.id + "-note", note);
|
|
367
|
-
graph.setNode(node.id, node);
|
|
368
|
-
} else {
|
|
369
|
-
graph.setNode(node.id, node);
|
|
370
|
-
graph.setNode(node.id + "-note", note);
|
|
371
|
-
}
|
|
372
|
-
graph.setParent(node.id, node.id + "-group");
|
|
373
|
-
graph.setParent(node.id + "-note", node.id + "-group");
|
|
374
|
-
} else {
|
|
375
|
-
graph.setNode(node.id, node);
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
log.debug("Count=", graph.nodeCount(), graph);
|
|
379
|
-
let cnt = 0;
|
|
380
|
-
relations.forEach(function(relation) {
|
|
381
|
-
cnt++;
|
|
382
|
-
log.debug("Setting edge", relation);
|
|
383
|
-
graph.setEdge(
|
|
384
|
-
relation.id1,
|
|
385
|
-
relation.id2,
|
|
386
|
-
{
|
|
387
|
-
relation,
|
|
388
|
-
width: getLabelWidth(relation.title),
|
|
389
|
-
height: conf.labelHeight * common_default.getRows(relation.title).length,
|
|
390
|
-
labelpos: "c"
|
|
391
|
-
},
|
|
392
|
-
"id" + cnt
|
|
393
|
-
);
|
|
394
|
-
});
|
|
395
|
-
layout(graph);
|
|
396
|
-
log.debug("Graph after layout", graph.nodes());
|
|
397
|
-
const svgElem = diagram2.node();
|
|
398
|
-
graph.nodes().forEach(function(v) {
|
|
399
|
-
if (v !== void 0 && graph.node(v) !== void 0) {
|
|
400
|
-
log.warn("Node " + v + ": " + JSON.stringify(graph.node(v)));
|
|
401
|
-
root.select("#" + svgElem.id + " #" + v).attr(
|
|
402
|
-
"transform",
|
|
403
|
-
"translate(" + (graph.node(v).x - graph.node(v).width / 2) + "," + (graph.node(v).y + (transformationLog[v] ? transformationLog[v].y : 0) - graph.node(v).height / 2) + " )"
|
|
404
|
-
);
|
|
405
|
-
root.select("#" + svgElem.id + " #" + v).attr("data-x-shift", graph.node(v).x - graph.node(v).width / 2);
|
|
406
|
-
const dividers = domDocument.querySelectorAll("#" + svgElem.id + " #" + v + " .divider");
|
|
407
|
-
dividers.forEach((divider) => {
|
|
408
|
-
const parent = divider.parentElement;
|
|
409
|
-
let pWidth = 0;
|
|
410
|
-
let pShift = 0;
|
|
411
|
-
if (parent) {
|
|
412
|
-
if (parent.parentElement) {
|
|
413
|
-
pWidth = parent.parentElement.getBBox().width;
|
|
414
|
-
}
|
|
415
|
-
pShift = parseInt(parent.getAttribute("data-x-shift"), 10);
|
|
416
|
-
if (Number.isNaN(pShift)) {
|
|
417
|
-
pShift = 0;
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
divider.setAttribute("x1", 0 - pShift + 8);
|
|
421
|
-
divider.setAttribute("x2", pWidth - pShift - 8);
|
|
422
|
-
});
|
|
423
|
-
} else {
|
|
424
|
-
log.debug("No Node " + v + ": " + JSON.stringify(graph.node(v)));
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
let stateBox = svgElem.getBBox();
|
|
428
|
-
graph.edges().forEach(function(e) {
|
|
429
|
-
if (e !== void 0 && graph.edge(e) !== void 0) {
|
|
430
|
-
log.debug("Edge " + e.v + " -> " + e.w + ": " + JSON.stringify(graph.edge(e)));
|
|
431
|
-
drawEdge(diagram2, graph.edge(e), graph.edge(e).relation);
|
|
432
|
-
}
|
|
433
|
-
});
|
|
434
|
-
stateBox = svgElem.getBBox();
|
|
435
|
-
const stateInfo = {
|
|
436
|
-
id: parentId ? parentId : "root",
|
|
437
|
-
label: parentId ? parentId : "root",
|
|
438
|
-
width: 0,
|
|
439
|
-
height: 0
|
|
440
|
-
};
|
|
441
|
-
stateInfo.width = stateBox.width + 2 * conf.padding;
|
|
442
|
-
stateInfo.height = stateBox.height + 2 * conf.padding;
|
|
443
|
-
log.debug("Doc rendered", stateInfo, graph);
|
|
444
|
-
return stateInfo;
|
|
445
|
-
}, "renderDoc");
|
|
446
|
-
var stateRenderer_default = {
|
|
447
|
-
setConf,
|
|
448
|
-
draw
|
|
449
|
-
};
|
|
450
|
-
var diagram = {
|
|
451
|
-
parser: stateDiagram_default,
|
|
452
|
-
get db() {
|
|
453
|
-
return new StateDB(1);
|
|
454
|
-
},
|
|
455
|
-
renderer: stateRenderer_default,
|
|
456
|
-
styles: styles_default,
|
|
457
|
-
init: /* @__PURE__ */ __name((cnf) => {
|
|
458
|
-
if (!cnf.state) {
|
|
459
|
-
cnf.state = {};
|
|
460
|
-
}
|
|
461
|
-
cnf.state.arrowMarkerAbsolute = cnf.arrowMarkerAbsolute;
|
|
462
|
-
}, "init")
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
export { diagram };
|
|
466
|
-
//# sourceMappingURL=stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs.map
|
|
467
|
-
//# sourceMappingURL=stateDiagram-FKZM4ZOC-WRIBVFSJ.mjs.map
|