[{"data":1,"prerenderedAt":2973,"buildId":2974},["ShallowReactive",2],{"$f1buor15gdjq21":3,"$f3aewya0vmof39":80,"$fb4noos773mvz":115,"-docs-components-context-menu-description":150,"-docs-components-context-menu-prop-offset-description":163,"-docs-components-context-menu-prop-target-description":179,"component-example-contextMenuOffsetExample":196,"component-example-contextMenuOffsetExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":200,"component-example-contextMenuSlotExample":836,"component-example-contextMenuSlotExampleiITTVDKu8vbgUe_TUgdINcUFLxSEv3-4WBWBKFaeKFs":840,"component-example-contextMenuTargetExample":1815,"component-example-contextMenuTargetExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":1819,"component-meta-SigmaContextMenu":2301,"component-meta-sigmaContextMenu":2352,"docs--docs-components-context-menu":2376,"docs-navigation-zh-CN":2726,"mdc--kyryde-key":2954,"surround--docs-components-context-menu":2970},{"attributes":4,"options":5,"nodes":9,"edges":51},{},{"type":6,"multi":7,"allowSelfLoops":8},"mixed",false,true,[10,17,25,32,38,44],{"key":11,"attributes":12},"a",{"label":13,"x":14,"y":14,"size":15,"color":16},"A",0,20,"#e22653",{"key":18,"attributes":19},"b",{"label":20,"x":21,"y":22,"size":23,"color":24},"B",100,-100,40,"#e28b53",{"key":26,"attributes":27},"c",{"label":28,"x":29,"y":30,"size":15,"color":31},"C",300,-200,"#9be225",{"key":33,"attributes":34},"d",{"label":35,"x":21,"y":36,"size":15,"color":37},"D",-300,"#53a4e2",{"key":39,"attributes":40},"e",{"label":41,"x":29,"y":42,"size":23,"color":43},"E",-400,"#7553e2",{"key":45,"attributes":46},"f",{"label":47,"x":48,"y":49,"size":15,"color":50},"F",400,-500,"#e253d5",[52,56,59,62,65,68,71,74,77],{"source":11,"target":18,"attributes":53},{"size":54,"label":55},10,"A-B",{"source":18,"target":26,"attributes":57},{"size":54,"label":58},"B-C",{"source":18,"target":33,"attributes":60},{"size":54,"label":61},"B-D",{"source":26,"target":18,"attributes":63},{"size":54,"label":64},"C-B",{"source":26,"target":39,"attributes":66},{"size":54,"label":67},"C-E",{"source":33,"target":26,"attributes":69},{"size":54,"label":70},"D-C",{"source":33,"target":39,"attributes":72},{"size":54,"label":73},"D-E",{"source":39,"target":33,"attributes":75},{"size":54,"label":76},"E-D",{"source":45,"target":39,"attributes":78},{"size":54,"label":79},"F-E",{"attributes":81,"options":82,"nodes":83,"edges":96},{},{"type":6,"multi":7,"allowSelfLoops":8},[84,86,88,90,92,94],{"key":11,"attributes":85},{"label":13,"x":14,"y":14,"size":15,"color":16},{"key":18,"attributes":87},{"label":20,"x":21,"y":22,"size":23,"color":24},{"key":26,"attributes":89},{"label":28,"x":29,"y":30,"size":15,"color":31},{"key":33,"attributes":91},{"label":35,"x":21,"y":36,"size":15,"color":37},{"key":39,"attributes":93},{"label":41,"x":29,"y":42,"size":23,"color":43},{"key":45,"attributes":95},{"label":47,"x":48,"y":49,"size":15,"color":50},[97,99,101,103,105,107,109,111,113],{"source":11,"target":18,"attributes":98},{"size":54,"label":55},{"source":18,"target":26,"attributes":100},{"size":54,"label":58},{"source":18,"target":33,"attributes":102},{"size":54,"label":61},{"source":26,"target":18,"attributes":104},{"size":54,"label":64},{"source":26,"target":39,"attributes":106},{"size":54,"label":67},{"source":33,"target":26,"attributes":108},{"size":54,"label":70},{"source":33,"target":39,"attributes":110},{"size":54,"label":73},{"source":39,"target":33,"attributes":112},{"size":54,"label":76},{"source":45,"target":39,"attributes":114},{"size":54,"label":79},{"attributes":116,"options":117,"nodes":118,"edges":131},{},{"type":6,"multi":7,"allowSelfLoops":8},[119,121,123,125,127,129],{"key":11,"attributes":120},{"label":13,"x":14,"y":14,"size":15,"color":16},{"key":18,"attributes":122},{"label":20,"x":21,"y":22,"size":23,"color":24},{"key":26,"attributes":124},{"label":28,"x":29,"y":30,"size":15,"color":31},{"key":33,"attributes":126},{"label":35,"x":21,"y":36,"size":15,"color":37},{"key":39,"attributes":128},{"label":41,"x":29,"y":42,"size":23,"color":43},{"key":45,"attributes":130},{"label":47,"x":48,"y":49,"size":15,"color":50},[132,134,136,138,140,142,144,146,148],{"source":11,"target":18,"attributes":133},{"size":54,"label":55},{"source":18,"target":26,"attributes":135},{"size":54,"label":58},{"source":18,"target":33,"attributes":137},{"size":54,"label":61},{"source":26,"target":18,"attributes":139},{"size":54,"label":64},{"source":26,"target":39,"attributes":141},{"size":54,"label":67},{"source":33,"target":26,"attributes":143},{"size":54,"label":70},{"source":33,"target":39,"attributes":145},{"size":54,"label":73},{"source":39,"target":33,"attributes":147},{"size":54,"label":76},{"source":45,"target":39,"attributes":149},{"size":54,"label":79},{"data":151,"body":152},{},{"type":153,"children":154},"root",[155],{"type":156,"tag":157,"props":158,"children":159},"element","p",{},[160],{"type":161,"value":162},"text","右键节点、边或空白处弹出的菜单，自动压掉浏览器原生菜单。",{"data":164,"body":165},{},{"type":153,"children":166},[167],{"type":156,"tag":157,"props":168,"children":169},{},[170,172],{"type":161,"value":171},"相对锚点的像素偏移 ",{"type":156,"tag":173,"props":174,"children":176},"code",{"className":175},[],[177],{"type":161,"value":178},"[x, y]",{"data":180,"body":181},{},{"type":153,"children":182},[183],{"type":156,"tag":157,"props":184,"children":185},{},[186,188,194],{"type":161,"value":187},"响应的图元类型。",{"type":156,"tag":173,"props":189,"children":191},{"className":190},[],[192],{"type":161,"value":193},"stage",{"type":161,"value":195}," 即空白处右键",{"code":197,"filePath":198,"pascalName":199},"\u003Cscript setup lang=\"ts\">\nconst props = withDefaults(defineProps\u003C{\n  offsetX?: number | string\n  offsetY?: number | string\n}>(), {\n  offsetX: 4,\n  offsetY: 4\n})\n\nconst offset = computed\u003C[number, number]>(() => [Number(props.offsetX), Number(props.offsetY)])\n\nconst { data } = await useFetch('\u002Fapi\u002Fsmall.json')\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CSigmaGraph :data=\"data\">\n    \u003CSigmaContextMenu :offset=\"offset\">\n      \u003Ctemplate #default=\"{ attributes }\">\n        \u003Cspan class=\"text-xs\">{{ attributes.label }} 的菜单\u003C\u002Fspan>\n      \u003C\u002Ftemplate>\n    \u003C\u002FSigmaContextMenu>\n  \u003C\u002FSigmaGraph>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002FContextMenuOffsetExample.vue","ContextMenuOffsetExample",{"data":201,"body":203,"toc":834},{"title":202,"description":202},"",{"type":153,"children":204},[205,828],{"type":156,"tag":206,"props":207,"children":211},"pre",{"className":208,"code":209,"language":210,"meta":202,"style":202},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript setup lang=\"ts\">\nconst props = withDefaults(defineProps\u003C{\n  offsetX?: number | string\n  offsetY?: number | string\n}>(), {\n  offsetX: 4,\n  offsetY: 4\n})\n\nconst offset = computed\u003C[number, number]>(() => [Number(props.offsetX), Number(props.offsetY)])\n\nconst { data } = await useFetch('\u002Fapi\u002Fsmall.json')\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CSigmaGraph :data=\"data\">\n    \u003CSigmaContextMenu :offset=\"offset\">\n      \u003Ctemplate #default=\"{ attributes }\">\n        \u003Cspan class=\"text-xs\">{{ attributes.label }} 的菜单\u003C\u002Fspan>\n      \u003C\u002Ftemplate>\n    \u003C\u002FSigmaContextMenu>\n  \u003C\u002FSigmaGraph>\n\u003C\u002Ftemplate>\n\n","vue",[212],{"type":156,"tag":173,"props":213,"children":214},{"__ignoreMap":202},[215,260,301,331,356,365,384,398,407,416,490,498,549,566,574,591,635,678,722,762,778,795,812],{"type":156,"tag":216,"props":217,"children":220},"span",{"class":218,"line":219},"line",1,[221,227,233,239,244,249,255],{"type":156,"tag":216,"props":222,"children":224},{"style":223},"--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8",[225],{"type":161,"value":226},"\u003C",{"type":156,"tag":216,"props":228,"children":230},{"style":229},"--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D",[231],{"type":161,"value":232},"script",{"type":156,"tag":216,"props":234,"children":236},{"style":235},"--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0",[237],{"type":161,"value":238}," setup",{"type":156,"tag":216,"props":240,"children":241},{"style":235},[242],{"type":161,"value":243}," lang",{"type":156,"tag":216,"props":245,"children":246},{"style":223},[247],{"type":161,"value":248},"=",{"type":156,"tag":216,"props":250,"children":252},{"style":251},"--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF",[253],{"type":161,"value":254},"\"ts\"",{"type":156,"tag":216,"props":256,"children":257},{"style":223},[258],{"type":161,"value":259},">\n",{"type":156,"tag":216,"props":261,"children":263},{"class":218,"line":262},2,[264,270,276,281,286,291,296],{"type":156,"tag":216,"props":265,"children":267},{"style":266},"--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583",[268],{"type":161,"value":269},"const",{"type":156,"tag":216,"props":271,"children":273},{"style":272},"--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF",[274],{"type":161,"value":275}," props",{"type":156,"tag":216,"props":277,"children":278},{"style":266},[279],{"type":161,"value":280}," =",{"type":156,"tag":216,"props":282,"children":283},{"style":235},[284],{"type":161,"value":285}," withDefaults",{"type":156,"tag":216,"props":287,"children":288},{"style":223},[289],{"type":161,"value":290},"(",{"type":156,"tag":216,"props":292,"children":293},{"style":235},[294],{"type":161,"value":295},"defineProps",{"type":156,"tag":216,"props":297,"children":298},{"style":223},[299],{"type":161,"value":300},"\u003C{\n",{"type":156,"tag":216,"props":302,"children":304},{"class":218,"line":303},3,[305,311,316,321,326],{"type":156,"tag":216,"props":306,"children":308},{"style":307},"--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70",[309],{"type":161,"value":310},"  offsetX",{"type":156,"tag":216,"props":312,"children":313},{"style":266},[314],{"type":161,"value":315},"?:",{"type":156,"tag":216,"props":317,"children":318},{"style":272},[319],{"type":161,"value":320}," number",{"type":156,"tag":216,"props":322,"children":323},{"style":266},[324],{"type":161,"value":325}," |",{"type":156,"tag":216,"props":327,"children":328},{"style":272},[329],{"type":161,"value":330}," string\n",{"type":156,"tag":216,"props":332,"children":334},{"class":218,"line":333},4,[335,340,344,348,352],{"type":156,"tag":216,"props":336,"children":337},{"style":307},[338],{"type":161,"value":339},"  offsetY",{"type":156,"tag":216,"props":341,"children":342},{"style":266},[343],{"type":161,"value":315},{"type":156,"tag":216,"props":345,"children":346},{"style":272},[347],{"type":161,"value":320},{"type":156,"tag":216,"props":349,"children":350},{"style":266},[351],{"type":161,"value":325},{"type":156,"tag":216,"props":353,"children":354},{"style":272},[355],{"type":161,"value":330},{"type":156,"tag":216,"props":357,"children":359},{"class":218,"line":358},5,[360],{"type":156,"tag":216,"props":361,"children":362},{"style":223},[363],{"type":161,"value":364},"}>(), {\n",{"type":156,"tag":216,"props":366,"children":368},{"class":218,"line":367},6,[369,374,379],{"type":156,"tag":216,"props":370,"children":371},{"style":223},[372],{"type":161,"value":373},"  offsetX: ",{"type":156,"tag":216,"props":375,"children":376},{"style":272},[377],{"type":161,"value":378},"4",{"type":156,"tag":216,"props":380,"children":381},{"style":223},[382],{"type":161,"value":383},",\n",{"type":156,"tag":216,"props":385,"children":387},{"class":218,"line":386},7,[388,393],{"type":156,"tag":216,"props":389,"children":390},{"style":223},[391],{"type":161,"value":392},"  offsetY: ",{"type":156,"tag":216,"props":394,"children":395},{"style":272},[396],{"type":161,"value":397},"4\n",{"type":156,"tag":216,"props":399,"children":401},{"class":218,"line":400},8,[402],{"type":156,"tag":216,"props":403,"children":404},{"style":223},[405],{"type":161,"value":406},"})\n",{"type":156,"tag":216,"props":408,"children":410},{"class":218,"line":409},9,[411],{"type":156,"tag":216,"props":412,"children":413},{"emptyLinePlaceholder":8},[414],{"type":161,"value":415},"\n",{"type":156,"tag":216,"props":417,"children":418},{"class":218,"line":54},[419,423,428,432,437,442,447,452,456,461,466,471,476,481,485],{"type":156,"tag":216,"props":420,"children":421},{"style":266},[422],{"type":161,"value":269},{"type":156,"tag":216,"props":424,"children":425},{"style":272},[426],{"type":161,"value":427}," offset",{"type":156,"tag":216,"props":429,"children":430},{"style":266},[431],{"type":161,"value":280},{"type":156,"tag":216,"props":433,"children":434},{"style":235},[435],{"type":161,"value":436}," computed",{"type":156,"tag":216,"props":438,"children":439},{"style":223},[440],{"type":161,"value":441},"\u003C[",{"type":156,"tag":216,"props":443,"children":444},{"style":272},[445],{"type":161,"value":446},"number",{"type":156,"tag":216,"props":448,"children":449},{"style":223},[450],{"type":161,"value":451},", ",{"type":156,"tag":216,"props":453,"children":454},{"style":272},[455],{"type":161,"value":446},{"type":156,"tag":216,"props":457,"children":458},{"style":223},[459],{"type":161,"value":460},"]>(() ",{"type":156,"tag":216,"props":462,"children":463},{"style":266},[464],{"type":161,"value":465},"=>",{"type":156,"tag":216,"props":467,"children":468},{"style":223},[469],{"type":161,"value":470}," [",{"type":156,"tag":216,"props":472,"children":473},{"style":235},[474],{"type":161,"value":475},"Number",{"type":156,"tag":216,"props":477,"children":478},{"style":223},[479],{"type":161,"value":480},"(props.offsetX), ",{"type":156,"tag":216,"props":482,"children":483},{"style":235},[484],{"type":161,"value":475},{"type":156,"tag":216,"props":486,"children":487},{"style":223},[488],{"type":161,"value":489},"(props.offsetY)])\n",{"type":156,"tag":216,"props":491,"children":493},{"class":218,"line":492},11,[494],{"type":156,"tag":216,"props":495,"children":496},{"emptyLinePlaceholder":8},[497],{"type":161,"value":415},{"type":156,"tag":216,"props":499,"children":501},{"class":218,"line":500},12,[502,506,511,516,521,525,530,535,539,544],{"type":156,"tag":216,"props":503,"children":504},{"style":266},[505],{"type":161,"value":269},{"type":156,"tag":216,"props":507,"children":508},{"style":223},[509],{"type":161,"value":510}," { ",{"type":156,"tag":216,"props":512,"children":513},{"style":272},[514],{"type":161,"value":515},"data",{"type":156,"tag":216,"props":517,"children":518},{"style":223},[519],{"type":161,"value":520}," } ",{"type":156,"tag":216,"props":522,"children":523},{"style":266},[524],{"type":161,"value":248},{"type":156,"tag":216,"props":526,"children":527},{"style":266},[528],{"type":161,"value":529}," await",{"type":156,"tag":216,"props":531,"children":532},{"style":235},[533],{"type":161,"value":534}," useFetch",{"type":156,"tag":216,"props":536,"children":537},{"style":223},[538],{"type":161,"value":290},{"type":156,"tag":216,"props":540,"children":541},{"style":251},[542],{"type":161,"value":543},"'\u002Fapi\u002Fsmall.json'",{"type":156,"tag":216,"props":545,"children":546},{"style":223},[547],{"type":161,"value":548},")\n",{"type":156,"tag":216,"props":550,"children":552},{"class":218,"line":551},13,[553,558,562],{"type":156,"tag":216,"props":554,"children":555},{"style":223},[556],{"type":161,"value":557},"\u003C\u002F",{"type":156,"tag":216,"props":559,"children":560},{"style":229},[561],{"type":161,"value":232},{"type":156,"tag":216,"props":563,"children":564},{"style":223},[565],{"type":161,"value":259},{"type":156,"tag":216,"props":567,"children":569},{"class":218,"line":568},14,[570],{"type":156,"tag":216,"props":571,"children":572},{"emptyLinePlaceholder":8},[573],{"type":161,"value":415},{"type":156,"tag":216,"props":575,"children":577},{"class":218,"line":576},15,[578,582,587],{"type":156,"tag":216,"props":579,"children":580},{"style":223},[581],{"type":161,"value":226},{"type":156,"tag":216,"props":583,"children":584},{"style":229},[585],{"type":161,"value":586},"template",{"type":156,"tag":216,"props":588,"children":589},{"style":223},[590],{"type":161,"value":259},{"type":156,"tag":216,"props":592,"children":594},{"class":218,"line":593},16,[595,600,605,610,614,618,623,627,631],{"type":156,"tag":216,"props":596,"children":597},{"style":223},[598],{"type":161,"value":599},"  \u003C",{"type":156,"tag":216,"props":601,"children":602},{"style":229},[603],{"type":161,"value":604},"SigmaGraph",{"type":156,"tag":216,"props":606,"children":607},{"style":223},[608],{"type":161,"value":609}," :",{"type":156,"tag":216,"props":611,"children":612},{"style":235},[613],{"type":161,"value":515},{"type":156,"tag":216,"props":615,"children":616},{"style":223},[617],{"type":161,"value":248},{"type":156,"tag":216,"props":619,"children":620},{"style":251},[621],{"type":161,"value":622},"\"",{"type":156,"tag":216,"props":624,"children":625},{"style":223},[626],{"type":161,"value":515},{"type":156,"tag":216,"props":628,"children":629},{"style":251},[630],{"type":161,"value":622},{"type":156,"tag":216,"props":632,"children":633},{"style":223},[634],{"type":161,"value":259},{"type":156,"tag":216,"props":636,"children":638},{"class":218,"line":637},17,[639,644,649,653,658,662,666,670,674],{"type":156,"tag":216,"props":640,"children":641},{"style":223},[642],{"type":161,"value":643},"    \u003C",{"type":156,"tag":216,"props":645,"children":646},{"style":229},[647],{"type":161,"value":648},"SigmaContextMenu",{"type":156,"tag":216,"props":650,"children":651},{"style":223},[652],{"type":161,"value":609},{"type":156,"tag":216,"props":654,"children":655},{"style":235},[656],{"type":161,"value":657},"offset",{"type":156,"tag":216,"props":659,"children":660},{"style":223},[661],{"type":161,"value":248},{"type":156,"tag":216,"props":663,"children":664},{"style":251},[665],{"type":161,"value":622},{"type":156,"tag":216,"props":667,"children":668},{"style":223},[669],{"type":161,"value":657},{"type":156,"tag":216,"props":671,"children":672},{"style":251},[673],{"type":161,"value":622},{"type":156,"tag":216,"props":675,"children":676},{"style":223},[677],{"type":161,"value":259},{"type":156,"tag":216,"props":679,"children":681},{"class":218,"line":680},18,[682,687,691,696,701,705,709,714,718],{"type":156,"tag":216,"props":683,"children":684},{"style":223},[685],{"type":161,"value":686},"      \u003C",{"type":156,"tag":216,"props":688,"children":689},{"style":229},[690],{"type":161,"value":586},{"type":156,"tag":216,"props":692,"children":693},{"style":223},[694],{"type":161,"value":695}," #",{"type":156,"tag":216,"props":697,"children":698},{"style":235},[699],{"type":161,"value":700},"default",{"type":156,"tag":216,"props":702,"children":703},{"style":223},[704],{"type":161,"value":248},{"type":156,"tag":216,"props":706,"children":707},{"style":251},[708],{"type":161,"value":622},{"type":156,"tag":216,"props":710,"children":711},{"style":223},[712],{"type":161,"value":713},"{ attributes }",{"type":156,"tag":216,"props":715,"children":716},{"style":251},[717],{"type":161,"value":622},{"type":156,"tag":216,"props":719,"children":720},{"style":223},[721],{"type":161,"value":259},{"type":156,"tag":216,"props":723,"children":725},{"class":218,"line":724},19,[726,731,735,740,744,749,754,758],{"type":156,"tag":216,"props":727,"children":728},{"style":223},[729],{"type":161,"value":730},"        \u003C",{"type":156,"tag":216,"props":732,"children":733},{"style":229},[734],{"type":161,"value":216},{"type":156,"tag":216,"props":736,"children":737},{"style":235},[738],{"type":161,"value":739}," class",{"type":156,"tag":216,"props":741,"children":742},{"style":223},[743],{"type":161,"value":248},{"type":156,"tag":216,"props":745,"children":746},{"style":251},[747],{"type":161,"value":748},"\"text-xs\"",{"type":156,"tag":216,"props":750,"children":751},{"style":223},[752],{"type":161,"value":753},">{{ attributes.label }} 的菜单\u003C\u002F",{"type":156,"tag":216,"props":755,"children":756},{"style":229},[757],{"type":161,"value":216},{"type":156,"tag":216,"props":759,"children":760},{"style":223},[761],{"type":161,"value":259},{"type":156,"tag":216,"props":763,"children":764},{"class":218,"line":15},[765,770,774],{"type":156,"tag":216,"props":766,"children":767},{"style":223},[768],{"type":161,"value":769},"      \u003C\u002F",{"type":156,"tag":216,"props":771,"children":772},{"style":229},[773],{"type":161,"value":586},{"type":156,"tag":216,"props":775,"children":776},{"style":223},[777],{"type":161,"value":259},{"type":156,"tag":216,"props":779,"children":781},{"class":218,"line":780},21,[782,787,791],{"type":156,"tag":216,"props":783,"children":784},{"style":223},[785],{"type":161,"value":786},"    \u003C\u002F",{"type":156,"tag":216,"props":788,"children":789},{"style":229},[790],{"type":161,"value":648},{"type":156,"tag":216,"props":792,"children":793},{"style":223},[794],{"type":161,"value":259},{"type":156,"tag":216,"props":796,"children":798},{"class":218,"line":797},22,[799,804,808],{"type":156,"tag":216,"props":800,"children":801},{"style":223},[802],{"type":161,"value":803},"  \u003C\u002F",{"type":156,"tag":216,"props":805,"children":806},{"style":229},[807],{"type":161,"value":604},{"type":156,"tag":216,"props":809,"children":810},{"style":223},[811],{"type":161,"value":259},{"type":156,"tag":216,"props":813,"children":815},{"class":218,"line":814},23,[816,820,824],{"type":156,"tag":216,"props":817,"children":818},{"style":223},[819],{"type":161,"value":557},{"type":156,"tag":216,"props":821,"children":822},{"style":229},[823],{"type":161,"value":586},{"type":156,"tag":216,"props":825,"children":826},{"style":223},[827],{"type":161,"value":259},{"type":156,"tag":829,"props":830,"children":831},"style",{},[832],{"type":161,"value":833},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":202,"searchDepth":262,"depth":262,"links":835},[],{"code":837,"filePath":838,"pascalName":839},"\u003Cscript setup lang=\"ts\">\nconst last = shallowRef('')\n\nconst { data } = await useFetch('\u002Fapi\u002Fsmall.json')\n\nfunction run(action: string, close: () => void) {\n  last.value = action\n  close()\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CSigmaGraph :data=\"data\" :settings=\"{ enableEdgeEvents: true }\">\n    \u003CSigmaContextMenu :target=\"['node', 'edge', 'stage']\">\n      \u003Ctemplate #default=\"{ id, type, attributes, close }\">\n        \u003Cdiv class=\"flex min-w-35 flex-col gap-1.5\">\n          \u003Cspan class=\"text-muted text-xs\">{{ type }} {{ id ?? '（空白处）' }}\u003C\u002Fspan>\n          \u003CUButton\n            v-if=\"type === 'stage'\"\n            size=\"xs\"\n            variant=\"ghost\"\n            color=\"neutral\"\n            label=\"在此处新建节点\"\n            @click=\"run('在此处新建节点', close)\"\n          \u002F>\n          \u003CUButton\n            v-else\n            size=\"xs\"\n            variant=\"ghost\"\n            color=\"neutral\"\n            :label=\"`打开「${attributes.label ?? id}」`\"\n            @click=\"run(`打开 ${attributes.label ?? id}`, close)\"\n          \u002F>\n        \u003C\u002Fdiv>\n      \u003C\u002Ftemplate>\n    \u003C\u002FSigmaContextMenu>\n  \u003C\u002FSigmaGraph>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002FContextMenuSlotExample.vue","ContextMenuSlotExample",{"data":841,"body":842,"toc":1813},{"title":202,"description":202},{"type":153,"children":843},[844,1809],{"type":156,"tag":845,"props":846,"children":847},"code-collapse",{},[848],{"type":156,"tag":206,"props":849,"children":851},{"className":208,"code":850,"language":210,"meta":202,"style":202},"\u003Cscript setup lang=\"ts\">\nconst last = shallowRef('')\n\nconst { data } = await useFetch('\u002Fapi\u002Fsmall.json')\n\nfunction run(action: string, close: () => void) {\n  last.value = action\n  close()\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CSigmaGraph :data=\"data\" :settings=\"{ enableEdgeEvents: true }\">\n    \u003CSigmaContextMenu :target=\"['node', 'edge', 'stage']\">\n      \u003Ctemplate #default=\"{ id, type, attributes, close }\">\n        \u003Cdiv class=\"flex min-w-35 flex-col gap-1.5\">\n          \u003Cspan class=\"text-muted text-xs\">{{ type }} {{ id ?? '（空白处）' }}\u003C\u002Fspan>\n          \u003CUButton\n            v-if=\"type === 'stage'\"\n            size=\"xs\"\n            variant=\"ghost\"\n            color=\"neutral\"\n            label=\"在此处新建节点\"\n            @click=\"run('在此处新建节点', close)\"\n          \u002F>\n          \u003CUButton\n            v-else\n            size=\"xs\"\n            variant=\"ghost\"\n            color=\"neutral\"\n            :label=\"`打开「${attributes.label ?? id}」`\"\n            @click=\"run(`打开 ${attributes.label ?? id}`, close)\"\n          \u002F>\n        \u003C\u002Fdiv>\n      \u003C\u002Ftemplate>\n    \u003C\u002FSigmaContextMenu>\n  \u003C\u002FSigmaGraph>\n\u003C\u002Ftemplate>\n\n",[852],{"type":156,"tag":173,"props":853,"children":854},{"__ignoreMap":202},[855,886,920,927,970,977,1041,1058,1071,1079,1094,1101,1116,1191,1260,1300,1329,1367,1379,1410,1427,1444,1461,1478,1524,1533,1545,1554,1570,1586,1602,1654,1720,1728,1745,1761,1777,1793],{"type":156,"tag":216,"props":856,"children":857},{"class":218,"line":219},[858,862,866,870,874,878,882],{"type":156,"tag":216,"props":859,"children":860},{"style":223},[861],{"type":161,"value":226},{"type":156,"tag":216,"props":863,"children":864},{"style":229},[865],{"type":161,"value":232},{"type":156,"tag":216,"props":867,"children":868},{"style":235},[869],{"type":161,"value":238},{"type":156,"tag":216,"props":871,"children":872},{"style":235},[873],{"type":161,"value":243},{"type":156,"tag":216,"props":875,"children":876},{"style":223},[877],{"type":161,"value":248},{"type":156,"tag":216,"props":879,"children":880},{"style":251},[881],{"type":161,"value":254},{"type":156,"tag":216,"props":883,"children":884},{"style":223},[885],{"type":161,"value":259},{"type":156,"tag":216,"props":887,"children":888},{"class":218,"line":262},[889,893,898,902,907,911,916],{"type":156,"tag":216,"props":890,"children":891},{"style":266},[892],{"type":161,"value":269},{"type":156,"tag":216,"props":894,"children":895},{"style":272},[896],{"type":161,"value":897}," last",{"type":156,"tag":216,"props":899,"children":900},{"style":266},[901],{"type":161,"value":280},{"type":156,"tag":216,"props":903,"children":904},{"style":235},[905],{"type":161,"value":906}," shallowRef",{"type":156,"tag":216,"props":908,"children":909},{"style":223},[910],{"type":161,"value":290},{"type":156,"tag":216,"props":912,"children":913},{"style":251},[914],{"type":161,"value":915},"''",{"type":156,"tag":216,"props":917,"children":918},{"style":223},[919],{"type":161,"value":548},{"type":156,"tag":216,"props":921,"children":922},{"class":218,"line":303},[923],{"type":156,"tag":216,"props":924,"children":925},{"emptyLinePlaceholder":8},[926],{"type":161,"value":415},{"type":156,"tag":216,"props":928,"children":929},{"class":218,"line":333},[930,934,938,942,946,950,954,958,962,966],{"type":156,"tag":216,"props":931,"children":932},{"style":266},[933],{"type":161,"value":269},{"type":156,"tag":216,"props":935,"children":936},{"style":223},[937],{"type":161,"value":510},{"type":156,"tag":216,"props":939,"children":940},{"style":272},[941],{"type":161,"value":515},{"type":156,"tag":216,"props":943,"children":944},{"style":223},[945],{"type":161,"value":520},{"type":156,"tag":216,"props":947,"children":948},{"style":266},[949],{"type":161,"value":248},{"type":156,"tag":216,"props":951,"children":952},{"style":266},[953],{"type":161,"value":529},{"type":156,"tag":216,"props":955,"children":956},{"style":235},[957],{"type":161,"value":534},{"type":156,"tag":216,"props":959,"children":960},{"style":223},[961],{"type":161,"value":290},{"type":156,"tag":216,"props":963,"children":964},{"style":251},[965],{"type":161,"value":543},{"type":156,"tag":216,"props":967,"children":968},{"style":223},[969],{"type":161,"value":548},{"type":156,"tag":216,"props":971,"children":972},{"class":218,"line":358},[973],{"type":156,"tag":216,"props":974,"children":975},{"emptyLinePlaceholder":8},[976],{"type":161,"value":415},{"type":156,"tag":216,"props":978,"children":979},{"class":218,"line":367},[980,985,990,994,999,1004,1009,1013,1018,1022,1027,1031,1036],{"type":156,"tag":216,"props":981,"children":982},{"style":266},[983],{"type":161,"value":984},"function",{"type":156,"tag":216,"props":986,"children":987},{"style":235},[988],{"type":161,"value":989}," run",{"type":156,"tag":216,"props":991,"children":992},{"style":223},[993],{"type":161,"value":290},{"type":156,"tag":216,"props":995,"children":996},{"style":307},[997],{"type":161,"value":998},"action",{"type":156,"tag":216,"props":1000,"children":1001},{"style":266},[1002],{"type":161,"value":1003},":",{"type":156,"tag":216,"props":1005,"children":1006},{"style":272},[1007],{"type":161,"value":1008}," string",{"type":156,"tag":216,"props":1010,"children":1011},{"style":223},[1012],{"type":161,"value":451},{"type":156,"tag":216,"props":1014,"children":1015},{"style":235},[1016],{"type":161,"value":1017},"close",{"type":156,"tag":216,"props":1019,"children":1020},{"style":266},[1021],{"type":161,"value":1003},{"type":156,"tag":216,"props":1023,"children":1024},{"style":223},[1025],{"type":161,"value":1026}," () ",{"type":156,"tag":216,"props":1028,"children":1029},{"style":266},[1030],{"type":161,"value":465},{"type":156,"tag":216,"props":1032,"children":1033},{"style":272},[1034],{"type":161,"value":1035}," void",{"type":156,"tag":216,"props":1037,"children":1038},{"style":223},[1039],{"type":161,"value":1040},") {\n",{"type":156,"tag":216,"props":1042,"children":1043},{"class":218,"line":386},[1044,1049,1053],{"type":156,"tag":216,"props":1045,"children":1046},{"style":223},[1047],{"type":161,"value":1048},"  last.value ",{"type":156,"tag":216,"props":1050,"children":1051},{"style":266},[1052],{"type":161,"value":248},{"type":156,"tag":216,"props":1054,"children":1055},{"style":223},[1056],{"type":161,"value":1057}," action\n",{"type":156,"tag":216,"props":1059,"children":1060},{"class":218,"line":400},[1061,1066],{"type":156,"tag":216,"props":1062,"children":1063},{"style":235},[1064],{"type":161,"value":1065},"  close",{"type":156,"tag":216,"props":1067,"children":1068},{"style":223},[1069],{"type":161,"value":1070},"()\n",{"type":156,"tag":216,"props":1072,"children":1073},{"class":218,"line":409},[1074],{"type":156,"tag":216,"props":1075,"children":1076},{"style":223},[1077],{"type":161,"value":1078},"}\n",{"type":156,"tag":216,"props":1080,"children":1081},{"class":218,"line":54},[1082,1086,1090],{"type":156,"tag":216,"props":1083,"children":1084},{"style":223},[1085],{"type":161,"value":557},{"type":156,"tag":216,"props":1087,"children":1088},{"style":229},[1089],{"type":161,"value":232},{"type":156,"tag":216,"props":1091,"children":1092},{"style":223},[1093],{"type":161,"value":259},{"type":156,"tag":216,"props":1095,"children":1096},{"class":218,"line":492},[1097],{"type":156,"tag":216,"props":1098,"children":1099},{"emptyLinePlaceholder":8},[1100],{"type":161,"value":415},{"type":156,"tag":216,"props":1102,"children":1103},{"class":218,"line":500},[1104,1108,1112],{"type":156,"tag":216,"props":1105,"children":1106},{"style":223},[1107],{"type":161,"value":226},{"type":156,"tag":216,"props":1109,"children":1110},{"style":229},[1111],{"type":161,"value":586},{"type":156,"tag":216,"props":1113,"children":1114},{"style":223},[1115],{"type":161,"value":259},{"type":156,"tag":216,"props":1117,"children":1118},{"class":218,"line":551},[1119,1123,1127,1131,1135,1139,1143,1147,1151,1155,1160,1164,1168,1173,1178,1183,1187],{"type":156,"tag":216,"props":1120,"children":1121},{"style":223},[1122],{"type":161,"value":599},{"type":156,"tag":216,"props":1124,"children":1125},{"style":229},[1126],{"type":161,"value":604},{"type":156,"tag":216,"props":1128,"children":1129},{"style":223},[1130],{"type":161,"value":609},{"type":156,"tag":216,"props":1132,"children":1133},{"style":235},[1134],{"type":161,"value":515},{"type":156,"tag":216,"props":1136,"children":1137},{"style":223},[1138],{"type":161,"value":248},{"type":156,"tag":216,"props":1140,"children":1141},{"style":251},[1142],{"type":161,"value":622},{"type":156,"tag":216,"props":1144,"children":1145},{"style":223},[1146],{"type":161,"value":515},{"type":156,"tag":216,"props":1148,"children":1149},{"style":251},[1150],{"type":161,"value":622},{"type":156,"tag":216,"props":1152,"children":1153},{"style":223},[1154],{"type":161,"value":609},{"type":156,"tag":216,"props":1156,"children":1157},{"style":235},[1158],{"type":161,"value":1159},"settings",{"type":156,"tag":216,"props":1161,"children":1162},{"style":223},[1163],{"type":161,"value":248},{"type":156,"tag":216,"props":1165,"children":1166},{"style":251},[1167],{"type":161,"value":622},{"type":156,"tag":216,"props":1169,"children":1170},{"style":223},[1171],{"type":161,"value":1172},"{ enableEdgeEvents: ",{"type":156,"tag":216,"props":1174,"children":1175},{"style":272},[1176],{"type":161,"value":1177},"true",{"type":156,"tag":216,"props":1179,"children":1180},{"style":223},[1181],{"type":161,"value":1182}," }",{"type":156,"tag":216,"props":1184,"children":1185},{"style":251},[1186],{"type":161,"value":622},{"type":156,"tag":216,"props":1188,"children":1189},{"style":223},[1190],{"type":161,"value":259},{"type":156,"tag":216,"props":1192,"children":1193},{"class":218,"line":568},[1194,1198,1202,1206,1211,1215,1219,1224,1229,1233,1238,1242,1247,1252,1256],{"type":156,"tag":216,"props":1195,"children":1196},{"style":223},[1197],{"type":161,"value":643},{"type":156,"tag":216,"props":1199,"children":1200},{"style":229},[1201],{"type":161,"value":648},{"type":156,"tag":216,"props":1203,"children":1204},{"style":223},[1205],{"type":161,"value":609},{"type":156,"tag":216,"props":1207,"children":1208},{"style":235},[1209],{"type":161,"value":1210},"target",{"type":156,"tag":216,"props":1212,"children":1213},{"style":223},[1214],{"type":161,"value":248},{"type":156,"tag":216,"props":1216,"children":1217},{"style":251},[1218],{"type":161,"value":622},{"type":156,"tag":216,"props":1220,"children":1221},{"style":223},[1222],{"type":161,"value":1223},"[",{"type":156,"tag":216,"props":1225,"children":1226},{"style":251},[1227],{"type":161,"value":1228},"'node'",{"type":156,"tag":216,"props":1230,"children":1231},{"style":223},[1232],{"type":161,"value":451},{"type":156,"tag":216,"props":1234,"children":1235},{"style":251},[1236],{"type":161,"value":1237},"'edge'",{"type":156,"tag":216,"props":1239,"children":1240},{"style":223},[1241],{"type":161,"value":451},{"type":156,"tag":216,"props":1243,"children":1244},{"style":251},[1245],{"type":161,"value":1246},"'stage'",{"type":156,"tag":216,"props":1248,"children":1249},{"style":223},[1250],{"type":161,"value":1251},"]",{"type":156,"tag":216,"props":1253,"children":1254},{"style":251},[1255],{"type":161,"value":622},{"type":156,"tag":216,"props":1257,"children":1258},{"style":223},[1259],{"type":161,"value":259},{"type":156,"tag":216,"props":1261,"children":1262},{"class":218,"line":576},[1263,1267,1271,1275,1279,1283,1287,1292,1296],{"type":156,"tag":216,"props":1264,"children":1265},{"style":223},[1266],{"type":161,"value":686},{"type":156,"tag":216,"props":1268,"children":1269},{"style":229},[1270],{"type":161,"value":586},{"type":156,"tag":216,"props":1272,"children":1273},{"style":223},[1274],{"type":161,"value":695},{"type":156,"tag":216,"props":1276,"children":1277},{"style":235},[1278],{"type":161,"value":700},{"type":156,"tag":216,"props":1280,"children":1281},{"style":223},[1282],{"type":161,"value":248},{"type":156,"tag":216,"props":1284,"children":1285},{"style":251},[1286],{"type":161,"value":622},{"type":156,"tag":216,"props":1288,"children":1289},{"style":223},[1290],{"type":161,"value":1291},"{ id, type, attributes, close }",{"type":156,"tag":216,"props":1293,"children":1294},{"style":251},[1295],{"type":161,"value":622},{"type":156,"tag":216,"props":1297,"children":1298},{"style":223},[1299],{"type":161,"value":259},{"type":156,"tag":216,"props":1301,"children":1302},{"class":218,"line":593},[1303,1307,1312,1316,1320,1325],{"type":156,"tag":216,"props":1304,"children":1305},{"style":223},[1306],{"type":161,"value":730},{"type":156,"tag":216,"props":1308,"children":1309},{"style":229},[1310],{"type":161,"value":1311},"div",{"type":156,"tag":216,"props":1313,"children":1314},{"style":235},[1315],{"type":161,"value":739},{"type":156,"tag":216,"props":1317,"children":1318},{"style":223},[1319],{"type":161,"value":248},{"type":156,"tag":216,"props":1321,"children":1322},{"style":251},[1323],{"type":161,"value":1324},"\"flex min-w-35 flex-col gap-1.5\"",{"type":156,"tag":216,"props":1326,"children":1327},{"style":223},[1328],{"type":161,"value":259},{"type":156,"tag":216,"props":1330,"children":1331},{"class":218,"line":637},[1332,1337,1341,1345,1349,1354,1359,1363],{"type":156,"tag":216,"props":1333,"children":1334},{"style":223},[1335],{"type":161,"value":1336},"          \u003C",{"type":156,"tag":216,"props":1338,"children":1339},{"style":229},[1340],{"type":161,"value":216},{"type":156,"tag":216,"props":1342,"children":1343},{"style":235},[1344],{"type":161,"value":739},{"type":156,"tag":216,"props":1346,"children":1347},{"style":223},[1348],{"type":161,"value":248},{"type":156,"tag":216,"props":1350,"children":1351},{"style":251},[1352],{"type":161,"value":1353},"\"text-muted text-xs\"",{"type":156,"tag":216,"props":1355,"children":1356},{"style":223},[1357],{"type":161,"value":1358},">{{ type }} {{ id ?? '（空白处）' }}\u003C\u002F",{"type":156,"tag":216,"props":1360,"children":1361},{"style":229},[1362],{"type":161,"value":216},{"type":156,"tag":216,"props":1364,"children":1365},{"style":223},[1366],{"type":161,"value":259},{"type":156,"tag":216,"props":1368,"children":1369},{"class":218,"line":680},[1370,1374],{"type":156,"tag":216,"props":1371,"children":1372},{"style":223},[1373],{"type":161,"value":1336},{"type":156,"tag":216,"props":1375,"children":1376},{"style":229},[1377],{"type":161,"value":1378},"UButton\n",{"type":156,"tag":216,"props":1380,"children":1381},{"class":218,"line":724},[1382,1387,1391,1395,1400,1405],{"type":156,"tag":216,"props":1383,"children":1384},{"style":266},[1385],{"type":161,"value":1386},"            v-if",{"type":156,"tag":216,"props":1388,"children":1389},{"style":223},[1390],{"type":161,"value":248},{"type":156,"tag":216,"props":1392,"children":1393},{"style":251},[1394],{"type":161,"value":622},{"type":156,"tag":216,"props":1396,"children":1397},{"style":223},[1398],{"type":161,"value":1399},"type ",{"type":156,"tag":216,"props":1401,"children":1402},{"style":266},[1403],{"type":161,"value":1404},"===",{"type":156,"tag":216,"props":1406,"children":1407},{"style":251},[1408],{"type":161,"value":1409}," 'stage'\"\n",{"type":156,"tag":216,"props":1411,"children":1412},{"class":218,"line":15},[1413,1418,1422],{"type":156,"tag":216,"props":1414,"children":1415},{"style":235},[1416],{"type":161,"value":1417},"            size",{"type":156,"tag":216,"props":1419,"children":1420},{"style":223},[1421],{"type":161,"value":248},{"type":156,"tag":216,"props":1423,"children":1424},{"style":251},[1425],{"type":161,"value":1426},"\"xs\"\n",{"type":156,"tag":216,"props":1428,"children":1429},{"class":218,"line":780},[1430,1435,1439],{"type":156,"tag":216,"props":1431,"children":1432},{"style":235},[1433],{"type":161,"value":1434},"            variant",{"type":156,"tag":216,"props":1436,"children":1437},{"style":223},[1438],{"type":161,"value":248},{"type":156,"tag":216,"props":1440,"children":1441},{"style":251},[1442],{"type":161,"value":1443},"\"ghost\"\n",{"type":156,"tag":216,"props":1445,"children":1446},{"class":218,"line":797},[1447,1452,1456],{"type":156,"tag":216,"props":1448,"children":1449},{"style":235},[1450],{"type":161,"value":1451},"            color",{"type":156,"tag":216,"props":1453,"children":1454},{"style":223},[1455],{"type":161,"value":248},{"type":156,"tag":216,"props":1457,"children":1458},{"style":251},[1459],{"type":161,"value":1460},"\"neutral\"\n",{"type":156,"tag":216,"props":1462,"children":1463},{"class":218,"line":814},[1464,1469,1473],{"type":156,"tag":216,"props":1465,"children":1466},{"style":235},[1467],{"type":161,"value":1468},"            label",{"type":156,"tag":216,"props":1470,"children":1471},{"style":223},[1472],{"type":161,"value":248},{"type":156,"tag":216,"props":1474,"children":1475},{"style":251},[1476],{"type":161,"value":1477},"\"在此处新建节点\"\n",{"type":156,"tag":216,"props":1479,"children":1481},{"class":218,"line":1480},24,[1482,1487,1492,1496,1500,1505,1509,1514,1519],{"type":156,"tag":216,"props":1483,"children":1484},{"style":223},[1485],{"type":161,"value":1486},"            @",{"type":156,"tag":216,"props":1488,"children":1489},{"style":235},[1490],{"type":161,"value":1491},"click",{"type":156,"tag":216,"props":1493,"children":1494},{"style":223},[1495],{"type":161,"value":248},{"type":156,"tag":216,"props":1497,"children":1498},{"style":251},[1499],{"type":161,"value":622},{"type":156,"tag":216,"props":1501,"children":1502},{"style":235},[1503],{"type":161,"value":1504},"run",{"type":156,"tag":216,"props":1506,"children":1507},{"style":223},[1508],{"type":161,"value":290},{"type":156,"tag":216,"props":1510,"children":1511},{"style":251},[1512],{"type":161,"value":1513},"'在此处新建节点'",{"type":156,"tag":216,"props":1515,"children":1516},{"style":223},[1517],{"type":161,"value":1518},", close)",{"type":156,"tag":216,"props":1520,"children":1521},{"style":251},[1522],{"type":161,"value":1523},"\"\n",{"type":156,"tag":216,"props":1525,"children":1527},{"class":218,"line":1526},25,[1528],{"type":156,"tag":216,"props":1529,"children":1530},{"style":223},[1531],{"type":161,"value":1532},"          \u002F>\n",{"type":156,"tag":216,"props":1534,"children":1536},{"class":218,"line":1535},26,[1537,1541],{"type":156,"tag":216,"props":1538,"children":1539},{"style":223},[1540],{"type":161,"value":1336},{"type":156,"tag":216,"props":1542,"children":1543},{"style":229},[1544],{"type":161,"value":1378},{"type":156,"tag":216,"props":1546,"children":1548},{"class":218,"line":1547},27,[1549],{"type":156,"tag":216,"props":1550,"children":1551},{"style":266},[1552],{"type":161,"value":1553},"            v-else\n",{"type":156,"tag":216,"props":1555,"children":1557},{"class":218,"line":1556},28,[1558,1562,1566],{"type":156,"tag":216,"props":1559,"children":1560},{"style":235},[1561],{"type":161,"value":1417},{"type":156,"tag":216,"props":1563,"children":1564},{"style":223},[1565],{"type":161,"value":248},{"type":156,"tag":216,"props":1567,"children":1568},{"style":251},[1569],{"type":161,"value":1426},{"type":156,"tag":216,"props":1571,"children":1573},{"class":218,"line":1572},29,[1574,1578,1582],{"type":156,"tag":216,"props":1575,"children":1576},{"style":235},[1577],{"type":161,"value":1434},{"type":156,"tag":216,"props":1579,"children":1580},{"style":223},[1581],{"type":161,"value":248},{"type":156,"tag":216,"props":1583,"children":1584},{"style":251},[1585],{"type":161,"value":1443},{"type":156,"tag":216,"props":1587,"children":1589},{"class":218,"line":1588},30,[1590,1594,1598],{"type":156,"tag":216,"props":1591,"children":1592},{"style":235},[1593],{"type":161,"value":1451},{"type":156,"tag":216,"props":1595,"children":1596},{"style":223},[1597],{"type":161,"value":248},{"type":156,"tag":216,"props":1599,"children":1600},{"style":251},[1601],{"type":161,"value":1460},{"type":156,"tag":216,"props":1603,"children":1605},{"class":218,"line":1604},31,[1606,1611,1616,1620,1625,1630,1635,1639,1644,1649],{"type":156,"tag":216,"props":1607,"children":1608},{"style":223},[1609],{"type":161,"value":1610},"            :",{"type":156,"tag":216,"props":1612,"children":1613},{"style":235},[1614],{"type":161,"value":1615},"label",{"type":156,"tag":216,"props":1617,"children":1618},{"style":223},[1619],{"type":161,"value":248},{"type":156,"tag":216,"props":1621,"children":1622},{"style":251},[1623],{"type":161,"value":1624},"\"`打开「${",{"type":156,"tag":216,"props":1626,"children":1627},{"style":223},[1628],{"type":161,"value":1629},"attributes",{"type":156,"tag":216,"props":1631,"children":1632},{"style":251},[1633],{"type":161,"value":1634},".",{"type":156,"tag":216,"props":1636,"children":1637},{"style":223},[1638],{"type":161,"value":1615},{"type":156,"tag":216,"props":1640,"children":1641},{"style":266},[1642],{"type":161,"value":1643}," ??",{"type":156,"tag":216,"props":1645,"children":1646},{"style":223},[1647],{"type":161,"value":1648}," id",{"type":156,"tag":216,"props":1650,"children":1651},{"style":251},[1652],{"type":161,"value":1653},"}」`\"\n",{"type":156,"tag":216,"props":1655,"children":1657},{"class":218,"line":1656},32,[1658,1662,1666,1670,1674,1678,1682,1687,1691,1695,1699,1703,1707,1712,1716],{"type":156,"tag":216,"props":1659,"children":1660},{"style":223},[1661],{"type":161,"value":1486},{"type":156,"tag":216,"props":1663,"children":1664},{"style":235},[1665],{"type":161,"value":1491},{"type":156,"tag":216,"props":1667,"children":1668},{"style":223},[1669],{"type":161,"value":248},{"type":156,"tag":216,"props":1671,"children":1672},{"style":251},[1673],{"type":161,"value":622},{"type":156,"tag":216,"props":1675,"children":1676},{"style":235},[1677],{"type":161,"value":1504},{"type":156,"tag":216,"props":1679,"children":1680},{"style":223},[1681],{"type":161,"value":290},{"type":156,"tag":216,"props":1683,"children":1684},{"style":251},[1685],{"type":161,"value":1686},"`打开 ${",{"type":156,"tag":216,"props":1688,"children":1689},{"style":223},[1690],{"type":161,"value":1629},{"type":156,"tag":216,"props":1692,"children":1693},{"style":251},[1694],{"type":161,"value":1634},{"type":156,"tag":216,"props":1696,"children":1697},{"style":223},[1698],{"type":161,"value":1615},{"type":156,"tag":216,"props":1700,"children":1701},{"style":266},[1702],{"type":161,"value":1643},{"type":156,"tag":216,"props":1704,"children":1705},{"style":223},[1706],{"type":161,"value":1648},{"type":156,"tag":216,"props":1708,"children":1709},{"style":251},[1710],{"type":161,"value":1711},"}`",{"type":156,"tag":216,"props":1713,"children":1714},{"style":223},[1715],{"type":161,"value":1518},{"type":156,"tag":216,"props":1717,"children":1718},{"style":251},[1719],{"type":161,"value":1523},{"type":156,"tag":216,"props":1721,"children":1723},{"class":218,"line":1722},33,[1724],{"type":156,"tag":216,"props":1725,"children":1726},{"style":223},[1727],{"type":161,"value":1532},{"type":156,"tag":216,"props":1729,"children":1731},{"class":218,"line":1730},34,[1732,1737,1741],{"type":156,"tag":216,"props":1733,"children":1734},{"style":223},[1735],{"type":161,"value":1736},"        \u003C\u002F",{"type":156,"tag":216,"props":1738,"children":1739},{"style":229},[1740],{"type":161,"value":1311},{"type":156,"tag":216,"props":1742,"children":1743},{"style":223},[1744],{"type":161,"value":259},{"type":156,"tag":216,"props":1746,"children":1748},{"class":218,"line":1747},35,[1749,1753,1757],{"type":156,"tag":216,"props":1750,"children":1751},{"style":223},[1752],{"type":161,"value":769},{"type":156,"tag":216,"props":1754,"children":1755},{"style":229},[1756],{"type":161,"value":586},{"type":156,"tag":216,"props":1758,"children":1759},{"style":223},[1760],{"type":161,"value":259},{"type":156,"tag":216,"props":1762,"children":1764},{"class":218,"line":1763},36,[1765,1769,1773],{"type":156,"tag":216,"props":1766,"children":1767},{"style":223},[1768],{"type":161,"value":786},{"type":156,"tag":216,"props":1770,"children":1771},{"style":229},[1772],{"type":161,"value":648},{"type":156,"tag":216,"props":1774,"children":1775},{"style":223},[1776],{"type":161,"value":259},{"type":156,"tag":216,"props":1778,"children":1780},{"class":218,"line":1779},37,[1781,1785,1789],{"type":156,"tag":216,"props":1782,"children":1783},{"style":223},[1784],{"type":161,"value":803},{"type":156,"tag":216,"props":1786,"children":1787},{"style":229},[1788],{"type":161,"value":604},{"type":156,"tag":216,"props":1790,"children":1791},{"style":223},[1792],{"type":161,"value":259},{"type":156,"tag":216,"props":1794,"children":1796},{"class":218,"line":1795},38,[1797,1801,1805],{"type":156,"tag":216,"props":1798,"children":1799},{"style":223},[1800],{"type":161,"value":557},{"type":156,"tag":216,"props":1802,"children":1803},{"style":229},[1804],{"type":161,"value":586},{"type":156,"tag":216,"props":1806,"children":1807},{"style":223},[1808],{"type":161,"value":259},{"type":156,"tag":829,"props":1810,"children":1811},{},[1812],{"type":161,"value":833},{"title":202,"searchDepth":262,"depth":262,"links":1814},[],{"code":1816,"filePath":1817,"pascalName":1818},"\u003Cscript setup lang=\"ts\">\nwithDefaults(defineProps\u003C{ target?: Array\u003C'node' | 'edge' | 'stage'> }>(), {\n  target: () => ['node']\n})\n\nconst { data } = await useFetch('\u002Fapi\u002Fsmall.json')\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CSigmaGraph :data=\"data\" :settings=\"{ enableEdgeEvents: true }\">\n    \u003CSigmaContextMenu :target=\"target\">\n      \u003Ctemplate #default=\"{ type, id }\">\n        \u003Cspan class=\"text-xs\">{{ type }} {{ id ?? '（空白处）' }}\u003C\u002Fspan>\n      \u003C\u002Ftemplate>\n    \u003C\u002FSigmaContextMenu>\n  \u003C\u002FSigmaGraph>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002FContextMenuTargetExample.vue","ContextMenuTargetExample",{"data":1820,"body":1821,"toc":2299},{"title":202,"description":202},{"type":153,"children":1822},[1823,2295],{"type":156,"tag":206,"props":1824,"children":1826},{"className":208,"code":1825,"language":210,"meta":202,"style":202},"\u003Cscript setup lang=\"ts\">\nwithDefaults(defineProps\u003C{ target?: Array\u003C'node' | 'edge' | 'stage'> }>(), {\n  target: () => ['node']\n})\n\nconst { data } = await useFetch('\u002Fapi\u002Fsmall.json')\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CSigmaGraph :data=\"data\" :settings=\"{ enableEdgeEvents: true }\">\n    \u003CSigmaContextMenu :target=\"target\">\n      \u003Ctemplate #default=\"{ type, id }\">\n        \u003Cspan class=\"text-xs\">{{ type }} {{ id ?? '（空白处）' }}\u003C\u002Fspan>\n      \u003C\u002Ftemplate>\n    \u003C\u002FSigmaContextMenu>\n  \u003C\u002FSigmaGraph>\n\u003C\u002Ftemplate>\n\n",[1827],{"type":156,"tag":173,"props":1828,"children":1829},{"__ignoreMap":202},[1830,1861,1926,1956,1963,1970,2013,2028,2035,2050,2121,2160,2200,2235,2250,2265,2280],{"type":156,"tag":216,"props":1831,"children":1832},{"class":218,"line":219},[1833,1837,1841,1845,1849,1853,1857],{"type":156,"tag":216,"props":1834,"children":1835},{"style":223},[1836],{"type":161,"value":226},{"type":156,"tag":216,"props":1838,"children":1839},{"style":229},[1840],{"type":161,"value":232},{"type":156,"tag":216,"props":1842,"children":1843},{"style":235},[1844],{"type":161,"value":238},{"type":156,"tag":216,"props":1846,"children":1847},{"style":235},[1848],{"type":161,"value":243},{"type":156,"tag":216,"props":1850,"children":1851},{"style":223},[1852],{"type":161,"value":248},{"type":156,"tag":216,"props":1854,"children":1855},{"style":251},[1856],{"type":161,"value":254},{"type":156,"tag":216,"props":1858,"children":1859},{"style":223},[1860],{"type":161,"value":259},{"type":156,"tag":216,"props":1862,"children":1863},{"class":218,"line":262},[1864,1869,1873,1877,1882,1886,1890,1895,1899,1903,1907,1912,1916,1921],{"type":156,"tag":216,"props":1865,"children":1866},{"style":235},[1867],{"type":161,"value":1868},"withDefaults",{"type":156,"tag":216,"props":1870,"children":1871},{"style":223},[1872],{"type":161,"value":290},{"type":156,"tag":216,"props":1874,"children":1875},{"style":235},[1876],{"type":161,"value":295},{"type":156,"tag":216,"props":1878,"children":1879},{"style":223},[1880],{"type":161,"value":1881},"\u003C{ ",{"type":156,"tag":216,"props":1883,"children":1884},{"style":307},[1885],{"type":161,"value":1210},{"type":156,"tag":216,"props":1887,"children":1888},{"style":266},[1889],{"type":161,"value":315},{"type":156,"tag":216,"props":1891,"children":1892},{"style":235},[1893],{"type":161,"value":1894}," Array",{"type":156,"tag":216,"props":1896,"children":1897},{"style":223},[1898],{"type":161,"value":226},{"type":156,"tag":216,"props":1900,"children":1901},{"style":251},[1902],{"type":161,"value":1228},{"type":156,"tag":216,"props":1904,"children":1905},{"style":266},[1906],{"type":161,"value":325},{"type":156,"tag":216,"props":1908,"children":1909},{"style":251},[1910],{"type":161,"value":1911}," 'edge'",{"type":156,"tag":216,"props":1913,"children":1914},{"style":266},[1915],{"type":161,"value":325},{"type":156,"tag":216,"props":1917,"children":1918},{"style":251},[1919],{"type":161,"value":1920}," 'stage'",{"type":156,"tag":216,"props":1922,"children":1923},{"style":223},[1924],{"type":161,"value":1925},"> }>(), {\n",{"type":156,"tag":216,"props":1927,"children":1928},{"class":218,"line":303},[1929,1934,1939,1943,1947,1951],{"type":156,"tag":216,"props":1930,"children":1931},{"style":235},[1932],{"type":161,"value":1933},"  target",{"type":156,"tag":216,"props":1935,"children":1936},{"style":223},[1937],{"type":161,"value":1938},": () ",{"type":156,"tag":216,"props":1940,"children":1941},{"style":266},[1942],{"type":161,"value":465},{"type":156,"tag":216,"props":1944,"children":1945},{"style":223},[1946],{"type":161,"value":470},{"type":156,"tag":216,"props":1948,"children":1949},{"style":251},[1950],{"type":161,"value":1228},{"type":156,"tag":216,"props":1952,"children":1953},{"style":223},[1954],{"type":161,"value":1955},"]\n",{"type":156,"tag":216,"props":1957,"children":1958},{"class":218,"line":333},[1959],{"type":156,"tag":216,"props":1960,"children":1961},{"style":223},[1962],{"type":161,"value":406},{"type":156,"tag":216,"props":1964,"children":1965},{"class":218,"line":358},[1966],{"type":156,"tag":216,"props":1967,"children":1968},{"emptyLinePlaceholder":8},[1969],{"type":161,"value":415},{"type":156,"tag":216,"props":1971,"children":1972},{"class":218,"line":367},[1973,1977,1981,1985,1989,1993,1997,2001,2005,2009],{"type":156,"tag":216,"props":1974,"children":1975},{"style":266},[1976],{"type":161,"value":269},{"type":156,"tag":216,"props":1978,"children":1979},{"style":223},[1980],{"type":161,"value":510},{"type":156,"tag":216,"props":1982,"children":1983},{"style":272},[1984],{"type":161,"value":515},{"type":156,"tag":216,"props":1986,"children":1987},{"style":223},[1988],{"type":161,"value":520},{"type":156,"tag":216,"props":1990,"children":1991},{"style":266},[1992],{"type":161,"value":248},{"type":156,"tag":216,"props":1994,"children":1995},{"style":266},[1996],{"type":161,"value":529},{"type":156,"tag":216,"props":1998,"children":1999},{"style":235},[2000],{"type":161,"value":534},{"type":156,"tag":216,"props":2002,"children":2003},{"style":223},[2004],{"type":161,"value":290},{"type":156,"tag":216,"props":2006,"children":2007},{"style":251},[2008],{"type":161,"value":543},{"type":156,"tag":216,"props":2010,"children":2011},{"style":223},[2012],{"type":161,"value":548},{"type":156,"tag":216,"props":2014,"children":2015},{"class":218,"line":386},[2016,2020,2024],{"type":156,"tag":216,"props":2017,"children":2018},{"style":223},[2019],{"type":161,"value":557},{"type":156,"tag":216,"props":2021,"children":2022},{"style":229},[2023],{"type":161,"value":232},{"type":156,"tag":216,"props":2025,"children":2026},{"style":223},[2027],{"type":161,"value":259},{"type":156,"tag":216,"props":2029,"children":2030},{"class":218,"line":400},[2031],{"type":156,"tag":216,"props":2032,"children":2033},{"emptyLinePlaceholder":8},[2034],{"type":161,"value":415},{"type":156,"tag":216,"props":2036,"children":2037},{"class":218,"line":409},[2038,2042,2046],{"type":156,"tag":216,"props":2039,"children":2040},{"style":223},[2041],{"type":161,"value":226},{"type":156,"tag":216,"props":2043,"children":2044},{"style":229},[2045],{"type":161,"value":586},{"type":156,"tag":216,"props":2047,"children":2048},{"style":223},[2049],{"type":161,"value":259},{"type":156,"tag":216,"props":2051,"children":2052},{"class":218,"line":54},[2053,2057,2061,2065,2069,2073,2077,2081,2085,2089,2093,2097,2101,2105,2109,2113,2117],{"type":156,"tag":216,"props":2054,"children":2055},{"style":223},[2056],{"type":161,"value":599},{"type":156,"tag":216,"props":2058,"children":2059},{"style":229},[2060],{"type":161,"value":604},{"type":156,"tag":216,"props":2062,"children":2063},{"style":223},[2064],{"type":161,"value":609},{"type":156,"tag":216,"props":2066,"children":2067},{"style":235},[2068],{"type":161,"value":515},{"type":156,"tag":216,"props":2070,"children":2071},{"style":223},[2072],{"type":161,"value":248},{"type":156,"tag":216,"props":2074,"children":2075},{"style":251},[2076],{"type":161,"value":622},{"type":156,"tag":216,"props":2078,"children":2079},{"style":223},[2080],{"type":161,"value":515},{"type":156,"tag":216,"props":2082,"children":2083},{"style":251},[2084],{"type":161,"value":622},{"type":156,"tag":216,"props":2086,"children":2087},{"style":223},[2088],{"type":161,"value":609},{"type":156,"tag":216,"props":2090,"children":2091},{"style":235},[2092],{"type":161,"value":1159},{"type":156,"tag":216,"props":2094,"children":2095},{"style":223},[2096],{"type":161,"value":248},{"type":156,"tag":216,"props":2098,"children":2099},{"style":251},[2100],{"type":161,"value":622},{"type":156,"tag":216,"props":2102,"children":2103},{"style":223},[2104],{"type":161,"value":1172},{"type":156,"tag":216,"props":2106,"children":2107},{"style":272},[2108],{"type":161,"value":1177},{"type":156,"tag":216,"props":2110,"children":2111},{"style":223},[2112],{"type":161,"value":1182},{"type":156,"tag":216,"props":2114,"children":2115},{"style":251},[2116],{"type":161,"value":622},{"type":156,"tag":216,"props":2118,"children":2119},{"style":223},[2120],{"type":161,"value":259},{"type":156,"tag":216,"props":2122,"children":2123},{"class":218,"line":492},[2124,2128,2132,2136,2140,2144,2148,2152,2156],{"type":156,"tag":216,"props":2125,"children":2126},{"style":223},[2127],{"type":161,"value":643},{"type":156,"tag":216,"props":2129,"children":2130},{"style":229},[2131],{"type":161,"value":648},{"type":156,"tag":216,"props":2133,"children":2134},{"style":223},[2135],{"type":161,"value":609},{"type":156,"tag":216,"props":2137,"children":2138},{"style":235},[2139],{"type":161,"value":1210},{"type":156,"tag":216,"props":2141,"children":2142},{"style":223},[2143],{"type":161,"value":248},{"type":156,"tag":216,"props":2145,"children":2146},{"style":251},[2147],{"type":161,"value":622},{"type":156,"tag":216,"props":2149,"children":2150},{"style":223},[2151],{"type":161,"value":1210},{"type":156,"tag":216,"props":2153,"children":2154},{"style":251},[2155],{"type":161,"value":622},{"type":156,"tag":216,"props":2157,"children":2158},{"style":223},[2159],{"type":161,"value":259},{"type":156,"tag":216,"props":2161,"children":2162},{"class":218,"line":500},[2163,2167,2171,2175,2179,2183,2187,2192,2196],{"type":156,"tag":216,"props":2164,"children":2165},{"style":223},[2166],{"type":161,"value":686},{"type":156,"tag":216,"props":2168,"children":2169},{"style":229},[2170],{"type":161,"value":586},{"type":156,"tag":216,"props":2172,"children":2173},{"style":223},[2174],{"type":161,"value":695},{"type":156,"tag":216,"props":2176,"children":2177},{"style":235},[2178],{"type":161,"value":700},{"type":156,"tag":216,"props":2180,"children":2181},{"style":223},[2182],{"type":161,"value":248},{"type":156,"tag":216,"props":2184,"children":2185},{"style":251},[2186],{"type":161,"value":622},{"type":156,"tag":216,"props":2188,"children":2189},{"style":223},[2190],{"type":161,"value":2191},"{ type, id }",{"type":156,"tag":216,"props":2193,"children":2194},{"style":251},[2195],{"type":161,"value":622},{"type":156,"tag":216,"props":2197,"children":2198},{"style":223},[2199],{"type":161,"value":259},{"type":156,"tag":216,"props":2201,"children":2202},{"class":218,"line":551},[2203,2207,2211,2215,2219,2223,2227,2231],{"type":156,"tag":216,"props":2204,"children":2205},{"style":223},[2206],{"type":161,"value":730},{"type":156,"tag":216,"props":2208,"children":2209},{"style":229},[2210],{"type":161,"value":216},{"type":156,"tag":216,"props":2212,"children":2213},{"style":235},[2214],{"type":161,"value":739},{"type":156,"tag":216,"props":2216,"children":2217},{"style":223},[2218],{"type":161,"value":248},{"type":156,"tag":216,"props":2220,"children":2221},{"style":251},[2222],{"type":161,"value":748},{"type":156,"tag":216,"props":2224,"children":2225},{"style":223},[2226],{"type":161,"value":1358},{"type":156,"tag":216,"props":2228,"children":2229},{"style":229},[2230],{"type":161,"value":216},{"type":156,"tag":216,"props":2232,"children":2233},{"style":223},[2234],{"type":161,"value":259},{"type":156,"tag":216,"props":2236,"children":2237},{"class":218,"line":568},[2238,2242,2246],{"type":156,"tag":216,"props":2239,"children":2240},{"style":223},[2241],{"type":161,"value":769},{"type":156,"tag":216,"props":2243,"children":2244},{"style":229},[2245],{"type":161,"value":586},{"type":156,"tag":216,"props":2247,"children":2248},{"style":223},[2249],{"type":161,"value":259},{"type":156,"tag":216,"props":2251,"children":2252},{"class":218,"line":576},[2253,2257,2261],{"type":156,"tag":216,"props":2254,"children":2255},{"style":223},[2256],{"type":161,"value":786},{"type":156,"tag":216,"props":2258,"children":2259},{"style":229},[2260],{"type":161,"value":648},{"type":156,"tag":216,"props":2262,"children":2263},{"style":223},[2264],{"type":161,"value":259},{"type":156,"tag":216,"props":2266,"children":2267},{"class":218,"line":593},[2268,2272,2276],{"type":156,"tag":216,"props":2269,"children":2270},{"style":223},[2271],{"type":161,"value":803},{"type":156,"tag":216,"props":2273,"children":2274},{"style":229},[2275],{"type":161,"value":604},{"type":156,"tag":216,"props":2277,"children":2278},{"style":223},[2279],{"type":161,"value":259},{"type":156,"tag":216,"props":2281,"children":2282},{"class":218,"line":637},[2283,2287,2291],{"type":156,"tag":216,"props":2284,"children":2285},{"style":223},[2286],{"type":161,"value":557},{"type":156,"tag":216,"props":2288,"children":2289},{"style":229},[2290],{"type":161,"value":586},{"type":156,"tag":216,"props":2292,"children":2293},{"style":223},[2294],{"type":161,"value":259},{"type":156,"tag":829,"props":2296,"children":2297},{},[2298],{"type":161,"value":833},{"title":202,"searchDepth":262,"depth":262,"links":2300},[],{"mode":2302,"prefetch":7,"preload":7,"filePath":2303,"declarationPath":2304,"pascalName":648,"kebabName":2305,"chunkName":2306,"priority":14,"_scanned":8,"meta":2307},"all","..\u002Fsrc\u002Fruntime\u002Fcomponents\u002FContextMenu.vue","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fsrc\u002Fruntime\u002Fcomponents\u002FContextMenu.vue","sigma-context-menu","components\u002Fsigma-context-menu",{"type":219,"props":2308,"slots":2345,"events":2349,"exposed":2350,"hash":2351},[2309,2332],{"name":1210,"global":7,"default":2310,"description":2311,"tags":2312,"required":7,"type":2316,"schema":2317},"[\"node\"]","响应的图元类型。`stage` 即空白处右键",[2313],{"name":2314,"text":2315},"defaultValue","`['node']`","undefined | (\"node\" | \"edge\" | \"stage\")[]",{"kind":2318,"type":2319,"schema":2320},"enum","(\"node\" | \"edge\" | \"stage\")[] | undefined",{"0":2321,"1":2322},"undefined",{"kind":2323,"type":2324,"schema":2325},"array","(\"node\" | \"edge\" | \"stage\")[]",[2326],{"kind":2318,"type":2327,"schema":2328},"\"node\" | \"edge\" | \"stage\"",[2329,2330,2331],"\"node\"","\"edge\"","\"stage\"",{"name":657,"global":7,"default":2333,"description":2334,"tags":2335,"required":7,"type":2338,"schema":2339},"[4, 4]","相对锚点的像素偏移 `[x, y]`",[2336],{"name":2314,"text":2337},"`[4, 4]`","undefined | [number, number]",{"kind":2318,"type":2340,"schema":2341},"[number, number] | undefined",{"0":2321,"1":2342},{"kind":2323,"type":2343,"schema":2344},"[number, number]",[446,446],[2346],{"name":700,"type":2347,"description":202,"tags":2348},"{ id: string | null; type: \"node\" | \"edge\" | \"stage\"; attributes: Attributes; close: () => void; }",[],[],[],"1HjyXgGfUWoKtimsdUMLnI8LiU-DUvqXHudOegnqjFU",{"mode":2302,"prefetch":7,"preload":7,"filePath":2303,"declarationPath":2304,"pascalName":648,"kebabName":2305,"chunkName":2306,"priority":14,"_scanned":8,"meta":2353},{"type":219,"props":2354,"slots":2371,"events":2374,"exposed":2375,"hash":2351},[2355,2364],{"name":1210,"global":7,"default":2310,"description":2311,"tags":2356,"required":7,"type":2319,"schema":2358},[2357],{"name":2314,"text":2315},{"kind":2318,"type":2319,"schema":2359},{"0":2321,"1":2360},{"kind":2323,"type":2324,"schema":2361},[2362],{"kind":2318,"type":2327,"schema":2363},[2329,2330,2331],{"name":657,"global":7,"default":2333,"description":2334,"tags":2365,"required":7,"type":2340,"schema":2367},[2366],{"name":2314,"text":2337},{"kind":2318,"type":2340,"schema":2368},{"0":2321,"1":2369},{"kind":2323,"type":2343,"schema":2370},[446,446],[2372],{"name":700,"type":2347,"description":202,"tags":2373},[],[],[],{"id":2377,"title":648,"body":2378,"category":2716,"description":162,"difficulty":2717,"extension":2718,"index":7,"keywords":2717,"links":2717,"meta":2719,"navigation":2717,"path":2720,"requires":2717,"seo":2721,"sitemap":2723,"stem":2724,"__hash__":2725},"docs\u002Fdocs\u002F2.components\u002F05.context-menu.md",{"type":2379,"value":2380,"toc":2701},"minimark",[2381,2385,2391,2396,2406,2410,2425,2441,2445,2463,2466,2469,2472,2498,2500,2517,2520,2534,2588,2607,2611,2615,2618,2622,2625,2629,2641,2698],[2382,2383,2384],"h2",{"id":2384},"用法",[157,2386,2387,2388,2390],{},"右键节点、边或画布空白处弹出菜单，并在接管的目标上压掉浏览器原生菜单。点击节点或画布空白处关闭，插槽作用域里也带了 ",[173,2389,1017],{},"，供菜单项执行完自行收起。",[2392,2393,2394],"h3",{"id":1210},[173,2395,1210],{},[157,2397,2398,2399,2402,2403,2405],{},"数组，决定右键哪里会弹菜单，默认只接管 ",[173,2400,2401],{},"['node']","，",[173,2404,1246],{}," 即空白处：",[2407,2408],"component-example",{"name":1818,":options":2409},"[{\"name\":\"target\",\"label\":\"target\",\"items\":[\"node\",\"edge\",\"stage\"],\"multiple\":true,\"default\":[\"node\"]}]",[157,2411,2412,2413,2416,2417,2420,2421,2424],{},"节点与边的命中锚定到节点（边取 ",[173,2414,2415],{},"graph.source(edge)","），走 framed 坐标换算；空白处命中没有节点可锚，组件把视口坐标转成图坐标后交给 ",[173,2418,2419],{},"SigmaOverlay"," 的 ",[173,2422,2423],{},"position"," 通道，走原始图坐标换算。两条路径的结果一致，作用域里的字段则有区别，见下面的插槽小节。",[2426,2427,2428,2430,2431,2433,2434,2436,2437,2440],"warning",{},[173,2429,1210],{}," 含 ",[173,2432,1237],{}," 时，必须先在 ",[173,2435,1159],{}," 里开 ",[173,2438,2439],{},"enableEdgeEvents: true","，否则边上的右键事件根本不会触发。",[2392,2442,2443],{"id":657},[173,2444,657],{},[157,2446,2447,2448,2450,2451,2455,2456,2459,2460,2462],{},"相对锚点的像素偏移，默认 ",[173,2449,2333],{},"。菜单",[2452,2453,2454],"strong",{},"没有"," CSS ",[173,2457,2458],{},"translate","，左上角就落在锚点上，从光标右下方展开，",[173,2461,657],{}," 只是留出一点间隙：",[2407,2464],{"name":199,":options":2465},"[{\"name\":\"offsetX\",\"label\":\"offset x\",\"type\":\"number\",\"default\":4},{\"name\":\"offsetY\",\"label\":\"offset y\",\"type\":\"number\",\"default\":4}]",[2382,2467,2468],{"id":2468},"示例",[2392,2470,2471],{"id":2471},"默认插槽",[157,2473,2474,2475,2477,2478,2481,2482,2484,2485,2481,2488,2491,2492,2481,2494,2497],{},"插槽以 ",[173,2476,1291],{}," 暴露命中项。",[173,2479,2480],{},"type"," 为 ",[173,2483,1246],{}," 时 ",[173,2486,2487],{},"id",[173,2489,2490],{},"null","、",[173,2493,1629],{},[173,2495,2496],{},"{}","，菜单项通常是「在此处新建节点」这类与具体图元无关的操作：",[2407,2499],{"name":839,":collapse":1177},[2501,2502,2503,2504,2506,2507,2510,2511,2513,2514,2516],"note",{},"键名用 ",[173,2505,2487],{}," 而非 ",[173,2508,2509],{},"key","，后者是 Vue 的保留属性。",[173,2512,1629],{}," 在图元已被移除时同样是 ",[173,2515,2496],{},"。",[2392,2518,2519],{"id":2519},"压掉原生菜单",[157,2521,2522,2525,2526,2529,2530,2533],{},[173,2523,2524],{},"event.preventSigmaDefault()"," 只拦 sigma 自己的默认行为，浏览器菜单照样弹出。所幸 sigma 的鼠标捕获器直接监听 DOM 的 ",[173,2527,2528],{},"contextmenu"," 且没有调用 ",[173,2531,2532],{},"preventDefault()","，而事件处理函数是在那个监听器里同步执行的——于是组件在此把原生事件一并拦下：",[206,2535,2539],{"className":2536,"code":2537,"language":2538,"meta":202,"style":202},"language-ts shiki shiki-themes github-light github-light github-dark","function take(event: MouseCoords) {\n  event.preventSigmaDefault()\n  event.original.preventDefault()\n}\n","ts",[173,2540,2541,2564,2574,2584],{"__ignoreMap":202},[216,2542,2543,2546,2550,2553,2557,2559,2562],{"class":218,"line":219},[216,2544,984],{"class":2545},"s8jYJ",[216,2547,2549],{"class":2548},"snPdu"," take",[216,2551,290],{"class":2552},"sxrX7",[216,2554,2556],{"class":2555},"sP4rz","event",[216,2558,1003],{"class":2545},[216,2560,2561],{"class":2548}," MouseCoords",[216,2563,1040],{"class":2552},[216,2565,2566,2569,2572],{"class":218,"line":262},[216,2567,2568],{"class":2552},"  event.",[216,2570,2571],{"class":2548},"preventSigmaDefault",[216,2573,1070],{"class":2552},[216,2575,2576,2579,2582],{"class":218,"line":303},[216,2577,2578],{"class":2552},"  event.original.",[216,2580,2581],{"class":2548},"preventDefault",[216,2583,1070],{"class":2552},[216,2585,2586],{"class":218,"line":333},[216,2587,1078],{"class":2552},[157,2589,2590,2591,2594,2595,2597,2598,2600,2601,2603,2604,2606],{},"这件事只在",[2452,2592,2593],{},"确实接管的目标","上做。",[173,2596,1210],{}," 里没写 ",[173,2599,1246],{}," 时，在空白处右键仍然弹浏览器自己的菜单，不影响「在图上右键另存为图片」这类原生能力——上面 ",[173,2602,1210],{}," 那节的示例里去掉 ",[173,2605,193],{}," 就能试出来。",[2382,2608,2610],{"id":2609},"api","API",[2392,2612,2614],{"id":2613},"props","Props",[2616,2617],"component-props",{"slug":648},[2392,2619,2621],{"id":2620},"slots","Slots",[2623,2624],"component-slots",{"slug":648},[2392,2626,2628],{"id":2627},"expose","Expose",[157,2630,2631,2632,2640],{},"通过 ",[11,2633,2637],{"href":2634,"rel":2635},"https:\u002F\u002Fvuejs.org\u002Fapi\u002Fcomposition-api-helpers.html#usetemplateref",[2636],"nofollow",[173,2638,2639],{},"useTemplateRef"," 访问类型化的组件实例。",[2642,2643,2644,2657],"table",{},[2645,2646,2647],"thead",{},[2648,2649,2650,2654],"tr",{},[2651,2652,2653],"th",{},"Name",[2651,2655,2656],{},"Type",[2658,2659,2660],"tbody",{},[2648,2661,2662,2674],{},[2663,2664,2665],"td",{},[173,2666,2669,2671],{"className":2667,"language":2668,"style":202},"language-ts-type shiki shiki-themes github-light github-light github-dark","ts-type",[216,2670,1017],{"class":2548},[216,2672,2673],{"class":2552},"()",[2663,2675,2676,2686,2687,2686,2690],{},[173,2677,2678,2681,2683],{"className":2667,"language":2668,"style":202},[216,2679,2680],{"class":2552},"() ",[216,2682,465],{"class":2545},[216,2684,1035],{"class":2685},"sBjJW"," ",[2688,2689],"br",{},[1311,2691,2695],{"className":2692},[2693,2694],"text-toned","mt-1",[157,2696,2697],{},"关闭菜单，与插槽作用域里的同名方法一致。",[829,2699,2700],{},"html pre.shiki code .s8jYJ, html code.shiki .s8jYJ{--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .snPdu, html code.shiki .snPdu{--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sxrX7, html code.shiki .sxrX7{--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sP4rz, html code.shiki .sP4rz{--shiki-light:#E36209;--shiki-default:#E36209;--shiki-dark:#FFAB70}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sBjJW, html code.shiki .sBjJW{--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":202,"searchDepth":262,"depth":262,"links":2702},[2703,2707,2711],{"id":2384,"depth":262,"text":2384,"children":2704},[2705,2706],{"id":1210,"depth":303,"text":1210},{"id":657,"depth":303,"text":657},{"id":2468,"depth":262,"text":2468,"children":2708},[2709,2710],{"id":2471,"depth":303,"text":2471},{"id":2519,"depth":303,"text":2519},{"id":2609,"depth":262,"text":2610,"children":2712},[2713,2714,2715],{"id":2613,"depth":303,"text":2614},{"id":2620,"depth":303,"text":2621},{"id":2627,"depth":303,"text":2628},"core",null,"md",{},"\u002Fdocs\u002Fcomponents\u002Fcontext-menu",{"title":648,"description":2722},"A context menu for right-clicking nodes, edges or empty stage that suppresses the native browser menu on the targets it handles.",{"loc":2720},"docs\u002F2.components\u002F05.context-menu","NmxjAuOKiKrUGRkg5trmoHyxW-BSHYVUFBaNHvRX_Oo",[2727],{"title":2728,"path":2729,"stem":2730,"children":2731,"page":7},"Docs","\u002Fdocs","docs",[2732,2773,2829,2918],{"title":2733,"path":2734,"stem":2735,"children":2736,"category":2717,"description":2717,"icon":2772},"开始","\u002Fdocs\u002Fgetting-started","docs\u002F1.getting-started\u002F1.index",[2737,2740,2745,2750],{"title":2738,"path":2734,"stem":2735,"category":2717,"description":2739},"简介","Movk Sigma 是基于 sigma v4 的知识图谱可视化 Nuxt 模块，为 Vue 3 \u002F Nuxt 4 提供声明式组件与 composables。",{"title":2741,"path":2742,"stem":2743,"category":2717,"description":2744},"安装","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation","安装 Movk Sigma 与必需的 peer 依赖，按需补装布局、分析、渲染程序等可选包。",{"title":2746,"path":2747,"stem":2748,"category":2717,"description":2749},"Vue + Vite","\u002Fdocs\u002Fgetting-started\u002Fvue","docs\u002F1.getting-started\u002F3.vue","在纯 Vue 3 + Vite 项目中经 @movk\u002Fsigma\u002Fvite、@movk\u002Fsigma\u002Fvue 与 vue-plugin 使用同一套组件与 composables。",{"title":2751,"category":2717,"description":2717,"icon":2752,"path":2753,"stem":2754,"children":2755,"page":7},"AI 集成","i-lucide-bot","\u002Fdocs\u002Fgetting-started\u002Fai","docs\u002F1.getting-started\u002Fai",[2756,2762,2767],{"title":2757,"path":2758,"stem":2759,"category":2760,"description":2761},"MCP Server","\u002Fdocs\u002Fgetting-started\u002Fai\u002Fmcp","docs\u002F1.getting-started\u002Fai\u002F1.mcp","ai","文档站内置 MCP Server，供 AI 智能体检索本库组件、composables、示例，并提供 styles 绑定与渲染原语等增强工具。",{"title":2763,"path":2764,"stem":2765,"category":2760,"description":2766},"llms.txt","\u002Fdocs\u002Fgetting-started\u002Fai\u002Fllms-txt","docs\u002F1.getting-started\u002Fai\u002F2.llms-txt","文档站自动生成 llms.txt 与 llms-full.txt，为大模型提供结构化的库能力与文档索引。",{"title":2768,"path":2769,"stem":2770,"category":2760,"description":2771},"Agent Skills","\u002Fdocs\u002Fgetting-started\u002Fai\u002Fskills","docs\u002F1.getting-started\u002Fai\u002F3.skills","文档站发布 movk-sigma Agent Skill，让 AI 工具一条命令即可学会用本库声明式地构建知识图谱。","i-lucide-square-play",{"title":2774,"category":2717,"description":2717,"icon":2775,"path":2776,"stem":2777,"children":2778,"page":7},"组件","i-lucide-box","\u002Fdocs\u002Fcomponents","docs\u002F2.components",[2779,2783,2787,2792,2797,2798,2804,2809,2814,2819,2824],{"title":604,"path":2780,"stem":2781,"category":2716,"description":2782},"\u002Fdocs\u002Fcomponents\u002Fgraph","docs\u002F2.components\u002F01.graph","根组件。创建 Sigma 实例与 graphology 图，下发上下文，透传配置，转发全部 sigma 事件。",{"title":2419,"path":2784,"stem":2785,"category":2716,"description":2786},"\u002Fdocs\u002Fcomponents\u002Foverlay","docs\u002F2.components\u002F02.overlay","跟随画布定位的 DOM 覆盖层，可锚定到节点或图坐标，缩放平移时自动同步位置。",{"title":2788,"path":2789,"stem":2790,"category":2716,"description":2791},"SigmaTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F2.components\u002F03.tooltip","悬浮或点击节点与边时弹出的提示层，默认展示 label，可用插槽完全接管内容。",{"title":2793,"path":2794,"stem":2795,"category":2716,"description":2796},"SigmaPopover","\u002Fdocs\u002Fcomponents\u002Fpopover","docs\u002F2.components\u002F04.popover","锚定到节点的常驻浮层，内部可交互，开合状态由 v-model:open 控制。",{"title":648,"path":2720,"stem":2724,"category":2716,"description":162},{"title":2799,"path":2800,"stem":2801,"category":2802,"description":2803},"SigmaControls","\u002Fdocs\u002Fcomponents\u002Fcontrols","docs\u002F2.components\u002F06.controls","controls","控件容器，负责八向停靠与排布方向，替使用方做掉绝对定位这件事。",{"title":2805,"path":2806,"stem":2807,"category":2802,"description":2808},"SigmaZoomControl","\u002Fdocs\u002Fcomponents\u002Fzoom-control","docs\u002F2.components\u002F07.zoom-control","放大、缩小、复位三个按钮，图标可经具名插槽替换，行为与无障碍结构由库提供。",{"title":2810,"path":2811,"stem":2812,"category":2802,"description":2813},"SigmaFullscreenControl","\u002Fdocs\u002Fcomponents\u002Ffullscreen-control","docs\u002F2.components\u002F08.fullscreen-control","全屏开关。整个 .sigma-root 一起进入全屏，覆盖层与其他控件都跟随。",{"title":2815,"path":2816,"stem":2817,"category":2802,"description":2818},"SigmaSearchControl","\u002Fdocs\u002Fcomponents\u002Fsearch-control","docs\u002F2.components\u002F09.search-control","带防抖、键盘导航与命中高亮的检索框，四个插槽可逐层接管外观，作用域连行为一起给。",{"title":2820,"path":2821,"stem":2822,"category":2802,"description":2823},"SigmaLegend","\u002Fdocs\u002Fcomponents\u002Flegend","docs\u002F2.components\u002F10.legend","按节点属性聚合的图例，点击条目切换该组显隐，插槽同时给出数据与切换行为。",{"title":2825,"path":2826,"stem":2827,"category":2802,"description":2828},"SigmaMiniMap","\u002Fdocs\u002Fcomponents\u002Fmini-map","docs\u002F2.components\u002F11.mini-map","缩略图与视口框，点击任意位置把相机平移过去。",{"title":2830,"category":2717,"description":2717,"icon":2831,"path":2832,"stem":2833,"children":2834,"page":7},"Composables","i-lucide-plug","\u002Fdocs\u002Fcomposables","docs\u002F3.composables",[2835,2841,2846,2851,2856,2861,2866,2872,2877,2882,2887,2892,2897,2902,2908,2913],{"title":2836,"path":2837,"stem":2838,"category":2839,"description":2840},"useSigma","\u002Fdocs\u002Fcomposables\u002Fuse-sigma","docs\u002F3.composables\u002F01.use-sigma","base","注入当前 SigmaGraph 的上下文，拿到原生 Sigma 与 graphology 实例。",{"title":2842,"path":2843,"stem":2844,"category":2839,"description":2845},"useSigmaById","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-by-id","docs\u002F3.composables\u002F02.use-sigma-by-id","按 id 取实例上下文，用于组件树之外或跨路由访问；useSigmaIds 列出全部已登记的 id。",{"title":2847,"path":2848,"stem":2849,"category":2839,"description":2850},"useSigmaGraph","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-graph","docs\u002F3.composables\u002F03.use-sigma-graph","把 graphology 的变更桥接成 Vue 的响应式信号，提供 version、order、size 与变更回调。",{"title":2852,"path":2853,"stem":2854,"category":2839,"description":2855},"useSigmaEvents","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-events","docs\u002F3.composables\u002F04.use-sigma-events","声明式绑定 sigma 事件，作用域销毁时自动解绑，接受根组件 emits 未覆盖的任意事件名。",{"title":2857,"path":2858,"stem":2859,"category":2839,"description":2860},"useSigmaSettings","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-settings","docs\u002F3.composables\u002F05.use-sigma-settings","把响应式的配置同步到 sigma，源变化即调用 setSettings，整体透传不做键过滤。",{"title":2862,"path":2863,"stem":2864,"category":2839,"description":2865},"useSigmaState","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-state","docs\u002F3.composables\u002F06.use-sigma-state","读写 sigma 的交互状态，把悬停、高亮、隐藏这些纯展示态存在实例内部而不污染图数据。",{"title":2867,"path":2868,"stem":2869,"category":2870,"description":2871},"useSigmaCamera","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-camera","docs\u002F3.composables\u002F07.use-sigma-camera","interaction","相机操作。缩放、复位、聚焦节点、避开浮层遮挡地容纳节点，以及图坐标到屏幕坐标的换算。",{"title":2873,"path":2874,"stem":2875,"category":2870,"description":2876},"useSigmaSelection","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-selection","docs\u002F3.composables\u002F08.use-sigma-selection","悬浮与选中的状态机，把焦点及其邻居写进 isHighlighted 状态，其余元素由库内规则淡出。",{"title":2878,"path":2879,"stem":2880,"category":2870,"description":2881},"useSigmaNeighborhood","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-neighborhood","docs\u002F3.composables\u002F09.use-sigma-neighborhood","以某节点为中心逐层扩散的 BFS 邻域计算，以及「点击展开」的远端增量合入。",{"title":2883,"path":2884,"stem":2885,"category":2870,"description":2886},"useSigmaDrag","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-drag","docs\u002F3.composables\u002F10.use-sigma-drag","把 sigma 的 enableNodeDrag 接进 Vue 的响应式，开关跟随 enabled，过程暴露为 dragged 与 isDragging。",{"title":2888,"path":2889,"stem":2890,"category":2870,"description":2891},"useSigmaSearch","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-search","docs\u002F3.composables\u002F11.use-sigma-search","按属性检索节点与边，结果随图变更自动重算，可把相机聚焦到命中项。",{"title":2893,"path":2894,"stem":2895,"category":2870,"description":2896},"useSigmaFilter","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-filter","docs\u002F3.composables\u002F12.use-sigma-filter","声明式过滤，落到 sigma 的 isHidden 状态上，不改动图数据本身。",{"title":2898,"path":2899,"stem":2900,"category":2870,"description":2901},"useSigmaLabelTiers","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-label-tiers","docs\u002F3.composables\u002F13.use-sigma-label-tiers","按相机比例分级显示标签，视野越广只留下越重要的那几档。",{"title":2903,"path":2904,"stem":2905,"category":2906,"description":2907},"useSigmaLayout","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-layout","docs\u002F3.composables\u002F14.use-sigma-layout","analysis","五种布局算法的统一入口，支持按连通分量分别布局，并托管 ForceAtlas2 与 Noverlap 的 worker 生命周期。",{"title":2909,"path":2910,"stem":2911,"category":2906,"description":2912},"useSigmaMetrics","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-metrics","docs\u002F3.composables\u002F15.use-sigma-metrics","图的度数、中心性与社区划分，按图版本缓存避免重复计算。",{"title":2914,"path":2915,"stem":2916,"category":2906,"description":2917},"useSigmaExport","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-export","docs\u002F3.composables\u002F16.use-sigma-export","把当前画面导出为 PNG，可取 Blob 自行处理，也可直接触发浏览器下载。",{"title":2919,"category":2717,"description":2717,"icon":2920,"path":2921,"stem":2922,"children":2923,"page":7},"工具函数","i-lucide-wrench","\u002Fdocs\u002Futils","docs\u002F4.utils",[2924,2929,2934,2939,2944,2949],{"title":2925,"path":2926,"stem":2927,"category":2717,"description":2928},"applyGraphDiff","\u002Fdocs\u002Futils\u002Fapply-graph-diff","docs\u002F4.utils\u002F1.apply-graph-diff","把 SerializedGraph 增量同步到 graphology 实例，替代 clear() 加 import()，保留已有节点的布局坐标。",{"title":2930,"path":2931,"stem":2932,"category":2717,"description":2933},"composeStyles","\u002Fdocs\u002Futils\u002Fcompose-styles","docs\u002F4.utils\u002F2.compose-styles","按序拼接多份 styles 声明，让用户规则与 DEFAULT_STYLES 共存而不是互相顶掉。",{"title":2935,"path":2936,"stem":2937,"category":2717,"description":2938},"labelPlacements","\u002Fdocs\u002Futils\u002Flabel-placements","docs\u002F4.utils\u002F3.label-placements","给每个节点选一个背离邻居的标签方位，返回节点 key 到方位的映射表。",{"title":2940,"path":2941,"stem":2942,"category":2717,"description":2943},"degreeToTier","\u002Fdocs\u002Futils\u002Fdegree-to-tier","docs\u002F4.utils\u002F4.degree-to-tier","按度数排名给节点分标签档位，返回节点 key 到档位的映射表，档位越小越重要。",{"title":2945,"path":2946,"stem":2947,"category":2717,"description":2948},"sdfPolygon \u002F sdfStar","\u002Fdocs\u002Futils\u002Fsdf-shapes","docs\u002F4.utils\u002F5.sdf-shapes","把节点画成正多边形或星形的 SDF 形状声明，形状是与颜色正交的第二个编码维度。",{"title":2950,"path":2951,"stem":2952,"category":2717,"description":2953},"defineSigmaPrimitives","\u002Fdocs\u002Futils\u002Fdefine-sigma-primitives","docs\u002F4.utils\u002F6.define-sigma-primitives","声明一份延迟加载的渲染原语，绕开 sigma 在模块顶层读取 WebGL 全局导致的 SSR 崩溃。",{"data":2955,"body":2956},{},{"type":153,"children":2957},[2958],{"type":156,"tag":157,"props":2959,"children":2960},{},[2961,2963],{"type":161,"value":2962},"Copyright © 2026 - 2026 YiXuan - ",{"type":156,"tag":216,"props":2964,"children":2967},{"className":2965},[2966],"text-highlighted",[2968],{"type":161,"value":2969},"MIT License",[2971,2972],{"title":2793,"path":2794,"stem":2795,"description":2796,"children":-1},{"title":2799,"path":2800,"stem":2801,"description":2803,"children":-1},1795515184392,"63cc32bb-ed0d-4a02-83fd-40ba6fe4b04e"]