[{"data":1,"prerenderedAt":1065,"buildId":1066},["ShallowReactive",2],{"-docs-getting-started-description":3,"component-example-basicExample":16,"component-example-basicExampletdCNQ6226iiZKNkds9W7nqV771lTw8VEX0JmHKG7zWU":20,"docs--docs-getting-started":649,"docs-navigation-zh-CN":823,"mdc--kyryde-key":1047,"surround--docs-getting-started":1063},{"data":4,"body":5},{},{"type":6,"children":7},"root",[8],{"type":9,"tag":10,"props":11,"children":12},"element","p",{},[13],{"type":14,"value":15},"text","Movk Sigma 是基于 sigma v4 的知识图谱可视化 Nuxt 模块，为 Vue 3 \u002F Nuxt 4 提供声明式组件与 composables。",{"code":17,"filePath":18,"pascalName":19},"\u003Cscript lang=\"ts\" setup>\nimport type { SerializedGraph } from 'graphology-types'\n\nconst data: SerializedGraph = {\n  attributes: {},\n  options: { type: 'mixed', multi: false, allowSelfLoops: true },\n  nodes: [\n    { key: '1', attributes: { label: 'Node 1', x: 0, y: 0, size: 1, color: 'blue' } },\n    { key: '2', attributes: { label: 'Node 2', x: 5, y: 10, size: 1, color: 'red' } },\n    { key: '3', attributes: { label: 'Node 3', x: 10, y: 0, size: 1, color: 'green' } }\n  ],\n  edges: [\n    { source: '1', target: '2', attributes: { size: 1 } },\n    { source: '2', target: '3', attributes: { size: 1 } },\n    { source: '3', target: '1', attributes: { size: 1 } }\n  ]\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CSigmaGraph :data=\"data\" \u002F>\n\u003C\u002Ftemplate>\n","\u002Fopt\u002Fbuildhome\u002Frepo\u002Fdocs\u002Fapp\u002Fcomponents\u002Fcontent\u002Fexamples\u002FBasicExample.vue","BasicExample",{"data":21,"body":23,"toc":647},{"title":22,"description":22},"",{"type":6,"children":24},[25,641],{"type":9,"tag":26,"props":27,"children":31},"pre",{"className":28,"code":29,"language":30,"meta":22,"style":22},"language-vue shiki shiki-themes github-light github-light github-dark","\u003Cscript lang=\"ts\" setup>\nimport type { SerializedGraph } from 'graphology-types'\n\nconst data: SerializedGraph = {\n  attributes: {},\n  options: { type: 'mixed', multi: false, allowSelfLoops: true },\n  nodes: [\n    { key: '1', attributes: { label: 'Node 1', x: 0, y: 0, size: 1, color: 'blue' } },\n    { key: '2', attributes: { label: 'Node 2', x: 5, y: 10, size: 1, color: 'red' } },\n    { key: '3', attributes: { label: 'Node 3', x: 10, y: 0, size: 1, color: 'green' } }\n  ],\n  edges: [\n    { source: '1', target: '2', attributes: { size: 1 } },\n    { source: '2', target: '3', attributes: { size: 1 } },\n    { source: '3', target: '1', attributes: { size: 1 } }\n  ]\n}\n\u003C\u002Fscript>\n\n\u003Ctemplate>\n  \u003CSigmaGraph :data=\"data\" \u002F>\n\u003C\u002Ftemplate>\n\n","vue",[32],{"type":9,"tag":33,"props":34,"children":35},"code",{"__ignoreMap":22},[36,81,111,121,156,165,204,213,281,342,402,411,420,455,487,519,528,537,554,562,579,625],{"type":9,"tag":37,"props":38,"children":41},"span",{"class":39,"line":40},"line",1,[42,48,54,60,65,71,76],{"type":9,"tag":37,"props":43,"children":45},{"style":44},"--shiki-light:#24292E;--shiki-default:#24292E;--shiki-dark:#E1E4E8",[46],{"type":14,"value":47},"\u003C",{"type":9,"tag":37,"props":49,"children":51},{"style":50},"--shiki-light:#22863A;--shiki-default:#22863A;--shiki-dark:#85E89D",[52],{"type":14,"value":53},"script",{"type":9,"tag":37,"props":55,"children":57},{"style":56},"--shiki-light:#6F42C1;--shiki-default:#6F42C1;--shiki-dark:#B392F0",[58],{"type":14,"value":59}," lang",{"type":9,"tag":37,"props":61,"children":62},{"style":44},[63],{"type":14,"value":64},"=",{"type":9,"tag":37,"props":66,"children":68},{"style":67},"--shiki-light:#032F62;--shiki-default:#032F62;--shiki-dark:#9ECBFF",[69],{"type":14,"value":70},"\"ts\"",{"type":9,"tag":37,"props":72,"children":73},{"style":56},[74],{"type":14,"value":75}," setup",{"type":9,"tag":37,"props":77,"children":78},{"style":44},[79],{"type":14,"value":80},">\n",{"type":9,"tag":37,"props":82,"children":84},{"class":39,"line":83},2,[85,91,96,101,106],{"type":9,"tag":37,"props":86,"children":88},{"style":87},"--shiki-light:#D73A49;--shiki-default:#D73A49;--shiki-dark:#F97583",[89],{"type":14,"value":90},"import",{"type":9,"tag":37,"props":92,"children":93},{"style":87},[94],{"type":14,"value":95}," type",{"type":9,"tag":37,"props":97,"children":98},{"style":44},[99],{"type":14,"value":100}," { SerializedGraph } ",{"type":9,"tag":37,"props":102,"children":103},{"style":87},[104],{"type":14,"value":105},"from",{"type":9,"tag":37,"props":107,"children":108},{"style":67},[109],{"type":14,"value":110}," 'graphology-types'\n",{"type":9,"tag":37,"props":112,"children":114},{"class":39,"line":113},3,[115],{"type":9,"tag":37,"props":116,"children":118},{"emptyLinePlaceholder":117},true,[119],{"type":14,"value":120},"\n",{"type":9,"tag":37,"props":122,"children":124},{"class":39,"line":123},4,[125,130,136,141,146,151],{"type":9,"tag":37,"props":126,"children":127},{"style":87},[128],{"type":14,"value":129},"const",{"type":9,"tag":37,"props":131,"children":133},{"style":132},"--shiki-light:#005CC5;--shiki-default:#005CC5;--shiki-dark:#79B8FF",[134],{"type":14,"value":135}," data",{"type":9,"tag":37,"props":137,"children":138},{"style":87},[139],{"type":14,"value":140},":",{"type":9,"tag":37,"props":142,"children":143},{"style":56},[144],{"type":14,"value":145}," SerializedGraph",{"type":9,"tag":37,"props":147,"children":148},{"style":87},[149],{"type":14,"value":150}," =",{"type":9,"tag":37,"props":152,"children":153},{"style":44},[154],{"type":14,"value":155}," {\n",{"type":9,"tag":37,"props":157,"children":159},{"class":39,"line":158},5,[160],{"type":9,"tag":37,"props":161,"children":162},{"style":44},[163],{"type":14,"value":164},"  attributes: {},\n",{"type":9,"tag":37,"props":166,"children":168},{"class":39,"line":167},6,[169,174,179,184,189,194,199],{"type":9,"tag":37,"props":170,"children":171},{"style":44},[172],{"type":14,"value":173},"  options: { type: ",{"type":9,"tag":37,"props":175,"children":176},{"style":67},[177],{"type":14,"value":178},"'mixed'",{"type":9,"tag":37,"props":180,"children":181},{"style":44},[182],{"type":14,"value":183},", multi: ",{"type":9,"tag":37,"props":185,"children":186},{"style":132},[187],{"type":14,"value":188},"false",{"type":9,"tag":37,"props":190,"children":191},{"style":44},[192],{"type":14,"value":193},", allowSelfLoops: ",{"type":9,"tag":37,"props":195,"children":196},{"style":132},[197],{"type":14,"value":198},"true",{"type":9,"tag":37,"props":200,"children":201},{"style":44},[202],{"type":14,"value":203}," },\n",{"type":9,"tag":37,"props":205,"children":207},{"class":39,"line":206},7,[208],{"type":9,"tag":37,"props":209,"children":210},{"style":44},[211],{"type":14,"value":212},"  nodes: [\n",{"type":9,"tag":37,"props":214,"children":216},{"class":39,"line":215},8,[217,222,227,232,237,242,247,252,256,261,266,271,276],{"type":9,"tag":37,"props":218,"children":219},{"style":44},[220],{"type":14,"value":221},"    { key: ",{"type":9,"tag":37,"props":223,"children":224},{"style":67},[225],{"type":14,"value":226},"'1'",{"type":9,"tag":37,"props":228,"children":229},{"style":44},[230],{"type":14,"value":231},", attributes: { label: ",{"type":9,"tag":37,"props":233,"children":234},{"style":67},[235],{"type":14,"value":236},"'Node 1'",{"type":9,"tag":37,"props":238,"children":239},{"style":44},[240],{"type":14,"value":241},", x: ",{"type":9,"tag":37,"props":243,"children":244},{"style":132},[245],{"type":14,"value":246},"0",{"type":9,"tag":37,"props":248,"children":249},{"style":44},[250],{"type":14,"value":251},", y: ",{"type":9,"tag":37,"props":253,"children":254},{"style":132},[255],{"type":14,"value":246},{"type":9,"tag":37,"props":257,"children":258},{"style":44},[259],{"type":14,"value":260},", size: ",{"type":9,"tag":37,"props":262,"children":263},{"style":132},[264],{"type":14,"value":265},"1",{"type":9,"tag":37,"props":267,"children":268},{"style":44},[269],{"type":14,"value":270},", color: ",{"type":9,"tag":37,"props":272,"children":273},{"style":67},[274],{"type":14,"value":275},"'blue'",{"type":9,"tag":37,"props":277,"children":278},{"style":44},[279],{"type":14,"value":280}," } },\n",{"type":9,"tag":37,"props":282,"children":284},{"class":39,"line":283},9,[285,289,294,298,303,307,312,316,321,325,329,333,338],{"type":9,"tag":37,"props":286,"children":287},{"style":44},[288],{"type":14,"value":221},{"type":9,"tag":37,"props":290,"children":291},{"style":67},[292],{"type":14,"value":293},"'2'",{"type":9,"tag":37,"props":295,"children":296},{"style":44},[297],{"type":14,"value":231},{"type":9,"tag":37,"props":299,"children":300},{"style":67},[301],{"type":14,"value":302},"'Node 2'",{"type":9,"tag":37,"props":304,"children":305},{"style":44},[306],{"type":14,"value":241},{"type":9,"tag":37,"props":308,"children":309},{"style":132},[310],{"type":14,"value":311},"5",{"type":9,"tag":37,"props":313,"children":314},{"style":44},[315],{"type":14,"value":251},{"type":9,"tag":37,"props":317,"children":318},{"style":132},[319],{"type":14,"value":320},"10",{"type":9,"tag":37,"props":322,"children":323},{"style":44},[324],{"type":14,"value":260},{"type":9,"tag":37,"props":326,"children":327},{"style":132},[328],{"type":14,"value":265},{"type":9,"tag":37,"props":330,"children":331},{"style":44},[332],{"type":14,"value":270},{"type":9,"tag":37,"props":334,"children":335},{"style":67},[336],{"type":14,"value":337},"'red'",{"type":9,"tag":37,"props":339,"children":340},{"style":44},[341],{"type":14,"value":280},{"type":9,"tag":37,"props":343,"children":345},{"class":39,"line":344},10,[346,350,355,359,364,368,372,376,380,384,388,392,397],{"type":9,"tag":37,"props":347,"children":348},{"style":44},[349],{"type":14,"value":221},{"type":9,"tag":37,"props":351,"children":352},{"style":67},[353],{"type":14,"value":354},"'3'",{"type":9,"tag":37,"props":356,"children":357},{"style":44},[358],{"type":14,"value":231},{"type":9,"tag":37,"props":360,"children":361},{"style":67},[362],{"type":14,"value":363},"'Node 3'",{"type":9,"tag":37,"props":365,"children":366},{"style":44},[367],{"type":14,"value":241},{"type":9,"tag":37,"props":369,"children":370},{"style":132},[371],{"type":14,"value":320},{"type":9,"tag":37,"props":373,"children":374},{"style":44},[375],{"type":14,"value":251},{"type":9,"tag":37,"props":377,"children":378},{"style":132},[379],{"type":14,"value":246},{"type":9,"tag":37,"props":381,"children":382},{"style":44},[383],{"type":14,"value":260},{"type":9,"tag":37,"props":385,"children":386},{"style":132},[387],{"type":14,"value":265},{"type":9,"tag":37,"props":389,"children":390},{"style":44},[391],{"type":14,"value":270},{"type":9,"tag":37,"props":393,"children":394},{"style":67},[395],{"type":14,"value":396},"'green'",{"type":9,"tag":37,"props":398,"children":399},{"style":44},[400],{"type":14,"value":401}," } }\n",{"type":9,"tag":37,"props":403,"children":405},{"class":39,"line":404},11,[406],{"type":9,"tag":37,"props":407,"children":408},{"style":44},[409],{"type":14,"value":410},"  ],\n",{"type":9,"tag":37,"props":412,"children":414},{"class":39,"line":413},12,[415],{"type":9,"tag":37,"props":416,"children":417},{"style":44},[418],{"type":14,"value":419},"  edges: [\n",{"type":9,"tag":37,"props":421,"children":423},{"class":39,"line":422},13,[424,429,433,438,442,447,451],{"type":9,"tag":37,"props":425,"children":426},{"style":44},[427],{"type":14,"value":428},"    { source: ",{"type":9,"tag":37,"props":430,"children":431},{"style":67},[432],{"type":14,"value":226},{"type":9,"tag":37,"props":434,"children":435},{"style":44},[436],{"type":14,"value":437},", target: ",{"type":9,"tag":37,"props":439,"children":440},{"style":67},[441],{"type":14,"value":293},{"type":9,"tag":37,"props":443,"children":444},{"style":44},[445],{"type":14,"value":446},", attributes: { size: ",{"type":9,"tag":37,"props":448,"children":449},{"style":132},[450],{"type":14,"value":265},{"type":9,"tag":37,"props":452,"children":453},{"style":44},[454],{"type":14,"value":280},{"type":9,"tag":37,"props":456,"children":458},{"class":39,"line":457},14,[459,463,467,471,475,479,483],{"type":9,"tag":37,"props":460,"children":461},{"style":44},[462],{"type":14,"value":428},{"type":9,"tag":37,"props":464,"children":465},{"style":67},[466],{"type":14,"value":293},{"type":9,"tag":37,"props":468,"children":469},{"style":44},[470],{"type":14,"value":437},{"type":9,"tag":37,"props":472,"children":473},{"style":67},[474],{"type":14,"value":354},{"type":9,"tag":37,"props":476,"children":477},{"style":44},[478],{"type":14,"value":446},{"type":9,"tag":37,"props":480,"children":481},{"style":132},[482],{"type":14,"value":265},{"type":9,"tag":37,"props":484,"children":485},{"style":44},[486],{"type":14,"value":280},{"type":9,"tag":37,"props":488,"children":490},{"class":39,"line":489},15,[491,495,499,503,507,511,515],{"type":9,"tag":37,"props":492,"children":493},{"style":44},[494],{"type":14,"value":428},{"type":9,"tag":37,"props":496,"children":497},{"style":67},[498],{"type":14,"value":354},{"type":9,"tag":37,"props":500,"children":501},{"style":44},[502],{"type":14,"value":437},{"type":9,"tag":37,"props":504,"children":505},{"style":67},[506],{"type":14,"value":226},{"type":9,"tag":37,"props":508,"children":509},{"style":44},[510],{"type":14,"value":446},{"type":9,"tag":37,"props":512,"children":513},{"style":132},[514],{"type":14,"value":265},{"type":9,"tag":37,"props":516,"children":517},{"style":44},[518],{"type":14,"value":401},{"type":9,"tag":37,"props":520,"children":522},{"class":39,"line":521},16,[523],{"type":9,"tag":37,"props":524,"children":525},{"style":44},[526],{"type":14,"value":527},"  ]\n",{"type":9,"tag":37,"props":529,"children":531},{"class":39,"line":530},17,[532],{"type":9,"tag":37,"props":533,"children":534},{"style":44},[535],{"type":14,"value":536},"}\n",{"type":9,"tag":37,"props":538,"children":540},{"class":39,"line":539},18,[541,546,550],{"type":9,"tag":37,"props":542,"children":543},{"style":44},[544],{"type":14,"value":545},"\u003C\u002F",{"type":9,"tag":37,"props":547,"children":548},{"style":50},[549],{"type":14,"value":53},{"type":9,"tag":37,"props":551,"children":552},{"style":44},[553],{"type":14,"value":80},{"type":9,"tag":37,"props":555,"children":557},{"class":39,"line":556},19,[558],{"type":9,"tag":37,"props":559,"children":560},{"emptyLinePlaceholder":117},[561],{"type":14,"value":120},{"type":9,"tag":37,"props":563,"children":565},{"class":39,"line":564},20,[566,570,575],{"type":9,"tag":37,"props":567,"children":568},{"style":44},[569],{"type":14,"value":47},{"type":9,"tag":37,"props":571,"children":572},{"style":50},[573],{"type":14,"value":574},"template",{"type":9,"tag":37,"props":576,"children":577},{"style":44},[578],{"type":14,"value":80},{"type":9,"tag":37,"props":580,"children":582},{"class":39,"line":581},21,[583,588,593,598,603,607,612,616,620],{"type":9,"tag":37,"props":584,"children":585},{"style":44},[586],{"type":14,"value":587},"  \u003C",{"type":9,"tag":37,"props":589,"children":590},{"style":50},[591],{"type":14,"value":592},"SigmaGraph",{"type":9,"tag":37,"props":594,"children":595},{"style":44},[596],{"type":14,"value":597}," :",{"type":9,"tag":37,"props":599,"children":600},{"style":56},[601],{"type":14,"value":602},"data",{"type":9,"tag":37,"props":604,"children":605},{"style":44},[606],{"type":14,"value":64},{"type":9,"tag":37,"props":608,"children":609},{"style":67},[610],{"type":14,"value":611},"\"",{"type":9,"tag":37,"props":613,"children":614},{"style":44},[615],{"type":14,"value":602},{"type":9,"tag":37,"props":617,"children":618},{"style":67},[619],{"type":14,"value":611},{"type":9,"tag":37,"props":621,"children":622},{"style":44},[623],{"type":14,"value":624}," \u002F>\n",{"type":9,"tag":37,"props":626,"children":628},{"class":39,"line":627},22,[629,633,637],{"type":9,"tag":37,"props":630,"children":631},{"style":44},[632],{"type":14,"value":545},{"type":9,"tag":37,"props":634,"children":635},{"style":50},[636],{"type":14,"value":574},{"type":9,"tag":37,"props":638,"children":639},{"style":44},[640],{"type":14,"value":80},{"type":9,"tag":642,"props":643,"children":644},"style",{},[645],{"type":14,"value":646},"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":22,"searchDepth":83,"depth":83,"links":648},[],{"id":650,"title":651,"body":652,"category":812,"description":15,"difficulty":812,"extension":813,"index":814,"keywords":812,"links":812,"meta":815,"navigation":812,"path":816,"requires":812,"seo":817,"sitemap":820,"stem":821,"__hash__":822},"docs\u002Fdocs\u002F1.getting-started\u002F1.index.md","简介",{"type":653,"value":654,"toc":806},"minimark",[655,660,680,683,686,693,760,763,791,794,797],[656,657,659],"h2",{"id":658},"什么是-movk-sigma","什么是 Movk Sigma",[10,661,662,669,670,675,676,679],{},[663,664,668],"a",{"href":665,"rel":666},"https:\u002F\u002Fwww.sigmajs.org\u002F",[667],"nofollow","sigma.js"," 是一个 WebGL 图渲染引擎，",[663,671,674],{"href":672,"rel":673},"https:\u002F\u002Fgraphology.github.io\u002F",[667],"graphology"," 是与之配套的图数据结构。两者都是命令式的原生 JavaScript 库：建实例、改数据、调 ",[33,677,678],{},"refresh()","、手动清理。",[10,681,682],{},"Movk Sigma 把这套流程包成 Vue 组件与 composables——数据变化自动增量同步、相机与选中状态成为响应式引用、覆盖层跟随画布定位、实例生命周期跟着组件走。",[656,684,685],{"id":685},"设计原则",[10,687,688,692],{},[689,690,691],"strong",{},"封装是加法，不是围墙。"," 库没覆盖的原生能力，用户必须仍然能用：",[694,695,696,715,724,734,737,746],"ul",{},[697,698,699,702,703,706,707,710,711,714],"li",{},[33,700,701],{},"useSigma()"," 返回",[689,704,705],{},"原生"," ",[33,708,709],{},"Sigma"," 与 ",[33,712,713],{},"Graph"," 实例，不包 Proxy、不做代理",[697,716,717,706,720,723],{},[33,718,719],{},"settings",[689,721,722],{},"整体透传","给 sigma，不逐字段枚举、不过滤未知键，上游新增配置立即可用",[697,725,726,727,729,730,733],{},"数据双通道：传 ",[33,728,602],{}," 由库做增量 diff，传 ",[33,731,732],{},"graph"," 则库完全不碰数据，只负责渲染与生命周期",[697,735,736],{},"渲染程序、布局、控件全都可以绕过，库不劫持画布",[697,738,739,740,710,743,745],{},"不 re-export 上游，",[33,741,742],{},"sigma",[33,744,674],{}," 保持 peer 依赖，不夹带第二份实例",[697,747,748,751,752,755,756,759],{},[33,749,750],{},"styles"," 与用户自带的 ",[33,753,754],{},"nodeReducer"," \u002F ",[33,757,758],{},"edgeReducer"," 都原样进构造选项，库内规则只在其后叠加，不会顶掉你的声明",[656,761,762],{"id":762},"能力概览",[764,765,766,779,785],"card-group",{},[767,768,772,773,775,776,778],"card",{"icon":769,"title":770,"to":771},"i-lucide-box","11 个组件","\u002Fdocs\u002Fcomponents\u002Fgraph","根组件 ",[33,774,592],{},"、四种 DOM 覆盖层、六个内置控件，全部 ",[33,777,709],{}," 前缀。",[767,780,784],{"icon":781,"title":782,"to":783},"i-lucide-plug","16 个 Composables","\u002Fdocs\u002Fcomposables\u002Fuse-sigma","相机、选中、邻域、拖拽、搜索、过滤、布局、指标、导出。",[767,786,790],{"icon":787,"title":788,"to":789},"i-lucide-wrench","6 个工具函数","\u002Fdocs\u002Futils\u002Fapply-graph-diff","增量 diff、styles 合成、标签方位与档位、SDF 形状、延迟加载渲染原语。",[656,792,793],{"id":793},"一个最小例子",[795,796],"component-example",{"name":19},[798,799,800,802,803,805],"note",{},[33,801,701],{}," 是 inject，所有 composable 都必须在 ",[33,804,592],{}," 子树内调用。因此消费上下文的部分总是一个独立子组件——这也正是真实应用的结构。",{"title":22,"searchDepth":83,"depth":83,"links":807},[808,809,810,811],{"id":658,"depth":83,"text":659},{"id":685,"depth":83,"text":685},{"id":762,"depth":83,"text":762},{"id":793,"depth":83,"text":793},null,"md",false,{},"\u002Fdocs\u002Fgetting-started",{"title":818,"description":819},"Introduction","A declarative sigma v4 wrapper for Vue 3 and Nuxt 4 with 11 components, 16 composables and 7 utilities for large-scale knowledge graph visualization.",{"loc":816},"docs\u002F1.getting-started\u002F1.index","KVqOxpsQtYiqvD0nlbjYdKnpUJLv5SXikb8-Smngn6Y",[824],{"title":825,"path":826,"stem":827,"children":828,"page":814},"Docs","\u002Fdocs","docs",[829,866,926,1013],{"title":830,"path":816,"stem":821,"children":831,"category":812,"description":812,"icon":865},"开始",[832,833,838,843],{"title":651,"path":816,"stem":821,"category":812,"description":15},{"title":834,"path":835,"stem":836,"category":812,"description":837},"安装","\u002Fdocs\u002Fgetting-started\u002Finstallation","docs\u002F1.getting-started\u002F2.installation","安装 Movk Sigma 与必需的 peer 依赖，按需补装布局、分析、渲染程序等可选包。",{"title":839,"path":840,"stem":841,"category":812,"description":842},"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":844,"category":812,"description":812,"icon":845,"path":846,"stem":847,"children":848,"page":814},"AI 集成","i-lucide-bot","\u002Fdocs\u002Fgetting-started\u002Fai","docs\u002F1.getting-started\u002Fai",[849,855,860],{"title":850,"path":851,"stem":852,"category":853,"description":854},"MCP Server","\u002Fdocs\u002Fgetting-started\u002Fai\u002Fmcp","docs\u002F1.getting-started\u002Fai\u002F1.mcp","ai","文档站内置 MCP Server，供 AI 智能体检索本库组件、composables、示例，并提供 styles 绑定与渲染原语等增强工具。",{"title":856,"path":857,"stem":858,"category":853,"description":859},"llms.txt","\u002Fdocs\u002Fgetting-started\u002Fai\u002Fllms-txt","docs\u002F1.getting-started\u002Fai\u002F2.llms-txt","文档站自动生成 llms.txt 与 llms-full.txt，为大模型提供结构化的库能力与文档索引。",{"title":861,"path":862,"stem":863,"category":853,"description":864},"Agent Skills","\u002Fdocs\u002Fgetting-started\u002Fai\u002Fskills","docs\u002F1.getting-started\u002Fai\u002F3.skills","文档站发布 movk-sigma Agent Skill，让 AI 工具一条命令即可学会用本库声明式地构建知识图谱。","i-lucide-square-play",{"title":867,"category":812,"description":812,"icon":769,"path":868,"stem":869,"children":870,"page":814},"组件","\u002Fdocs\u002Fcomponents","docs\u002F2.components",[871,875,880,885,890,895,901,906,911,916,921],{"title":592,"path":771,"stem":872,"category":873,"description":874},"docs\u002F2.components\u002F01.graph","core","根组件。创建 Sigma 实例与 graphology 图，下发上下文，透传配置，转发全部 sigma 事件。",{"title":876,"path":877,"stem":878,"category":873,"description":879},"SigmaOverlay","\u002Fdocs\u002Fcomponents\u002Foverlay","docs\u002F2.components\u002F02.overlay","跟随画布定位的 DOM 覆盖层，可锚定到节点或图坐标，缩放平移时自动同步位置。",{"title":881,"path":882,"stem":883,"category":873,"description":884},"SigmaTooltip","\u002Fdocs\u002Fcomponents\u002Ftooltip","docs\u002F2.components\u002F03.tooltip","悬浮或点击节点与边时弹出的提示层，默认展示 label，可用插槽完全接管内容。",{"title":886,"path":887,"stem":888,"category":873,"description":889},"SigmaPopover","\u002Fdocs\u002Fcomponents\u002Fpopover","docs\u002F2.components\u002F04.popover","锚定到节点的常驻浮层，内部可交互，开合状态由 v-model:open 控制。",{"title":891,"path":892,"stem":893,"category":873,"description":894},"SigmaContextMenu","\u002Fdocs\u002Fcomponents\u002Fcontext-menu","docs\u002F2.components\u002F05.context-menu","右键节点、边或空白处弹出的菜单，自动压掉浏览器原生菜单。",{"title":896,"path":897,"stem":898,"category":899,"description":900},"SigmaControls","\u002Fdocs\u002Fcomponents\u002Fcontrols","docs\u002F2.components\u002F06.controls","controls","控件容器，负责八向停靠与排布方向，替使用方做掉绝对定位这件事。",{"title":902,"path":903,"stem":904,"category":899,"description":905},"SigmaZoomControl","\u002Fdocs\u002Fcomponents\u002Fzoom-control","docs\u002F2.components\u002F07.zoom-control","放大、缩小、复位三个按钮，图标可经具名插槽替换，行为与无障碍结构由库提供。",{"title":907,"path":908,"stem":909,"category":899,"description":910},"SigmaFullscreenControl","\u002Fdocs\u002Fcomponents\u002Ffullscreen-control","docs\u002F2.components\u002F08.fullscreen-control","全屏开关。整个 .sigma-root 一起进入全屏，覆盖层与其他控件都跟随。",{"title":912,"path":913,"stem":914,"category":899,"description":915},"SigmaSearchControl","\u002Fdocs\u002Fcomponents\u002Fsearch-control","docs\u002F2.components\u002F09.search-control","带防抖、键盘导航与命中高亮的检索框，四个插槽可逐层接管外观，作用域连行为一起给。",{"title":917,"path":918,"stem":919,"category":899,"description":920},"SigmaLegend","\u002Fdocs\u002Fcomponents\u002Flegend","docs\u002F2.components\u002F10.legend","按节点属性聚合的图例，点击条目切换该组显隐，插槽同时给出数据与切换行为。",{"title":922,"path":923,"stem":924,"category":899,"description":925},"SigmaMiniMap","\u002Fdocs\u002Fcomponents\u002Fmini-map","docs\u002F2.components\u002F11.mini-map","缩略图与视口框，点击任意位置把相机平移过去。",{"title":927,"category":812,"description":812,"icon":781,"path":928,"stem":929,"children":930,"page":814},"Composables","\u002Fdocs\u002Fcomposables","docs\u002F3.composables",[931,936,941,946,951,956,961,967,972,977,982,987,992,997,1003,1008],{"title":932,"path":783,"stem":933,"category":934,"description":935},"useSigma","docs\u002F3.composables\u002F01.use-sigma","base","注入当前 SigmaGraph 的上下文，拿到原生 Sigma 与 graphology 实例。",{"title":937,"path":938,"stem":939,"category":934,"description":940},"useSigmaById","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-by-id","docs\u002F3.composables\u002F02.use-sigma-by-id","按 id 取实例上下文，用于组件树之外或跨路由访问；useSigmaIds 列出全部已登记的 id。",{"title":942,"path":943,"stem":944,"category":934,"description":945},"useSigmaGraph","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-graph","docs\u002F3.composables\u002F03.use-sigma-graph","把 graphology 的变更桥接成 Vue 的响应式信号，提供 version、order、size 与变更回调。",{"title":947,"path":948,"stem":949,"category":934,"description":950},"useSigmaEvents","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-events","docs\u002F3.composables\u002F04.use-sigma-events","声明式绑定 sigma 事件，作用域销毁时自动解绑，接受根组件 emits 未覆盖的任意事件名。",{"title":952,"path":953,"stem":954,"category":934,"description":955},"useSigmaSettings","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-settings","docs\u002F3.composables\u002F05.use-sigma-settings","把响应式的配置同步到 sigma，源变化即调用 setSettings，整体透传不做键过滤。",{"title":957,"path":958,"stem":959,"category":934,"description":960},"useSigmaState","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-state","docs\u002F3.composables\u002F06.use-sigma-state","读写 sigma 的交互状态，把悬停、高亮、隐藏这些纯展示态存在实例内部而不污染图数据。",{"title":962,"path":963,"stem":964,"category":965,"description":966},"useSigmaCamera","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-camera","docs\u002F3.composables\u002F07.use-sigma-camera","interaction","相机操作。缩放、复位、聚焦节点、避开浮层遮挡地容纳节点，以及图坐标到屏幕坐标的换算。",{"title":968,"path":969,"stem":970,"category":965,"description":971},"useSigmaSelection","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-selection","docs\u002F3.composables\u002F08.use-sigma-selection","悬浮与选中的状态机，把焦点及其邻居写进 isHighlighted 状态，其余元素由库内规则淡出。",{"title":973,"path":974,"stem":975,"category":965,"description":976},"useSigmaNeighborhood","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-neighborhood","docs\u002F3.composables\u002F09.use-sigma-neighborhood","以某节点为中心逐层扩散的 BFS 邻域计算，以及「点击展开」的远端增量合入。",{"title":978,"path":979,"stem":980,"category":965,"description":981},"useSigmaDrag","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-drag","docs\u002F3.composables\u002F10.use-sigma-drag","把 sigma 的 enableNodeDrag 接进 Vue 的响应式，开关跟随 enabled，过程暴露为 dragged 与 isDragging。",{"title":983,"path":984,"stem":985,"category":965,"description":986},"useSigmaSearch","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-search","docs\u002F3.composables\u002F11.use-sigma-search","按属性检索节点与边，结果随图变更自动重算，可把相机聚焦到命中项。",{"title":988,"path":989,"stem":990,"category":965,"description":991},"useSigmaFilter","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-filter","docs\u002F3.composables\u002F12.use-sigma-filter","声明式过滤，落到 sigma 的 isHidden 状态上，不改动图数据本身。",{"title":993,"path":994,"stem":995,"category":965,"description":996},"useSigmaLabelTiers","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-label-tiers","docs\u002F3.composables\u002F13.use-sigma-label-tiers","按相机比例分级显示标签，视野越广只留下越重要的那几档。",{"title":998,"path":999,"stem":1000,"category":1001,"description":1002},"useSigmaLayout","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-layout","docs\u002F3.composables\u002F14.use-sigma-layout","analysis","五种布局算法的统一入口，支持按连通分量分别布局，并托管 ForceAtlas2 与 Noverlap 的 worker 生命周期。",{"title":1004,"path":1005,"stem":1006,"category":1001,"description":1007},"useSigmaMetrics","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-metrics","docs\u002F3.composables\u002F15.use-sigma-metrics","图的度数、中心性与社区划分，按图版本缓存避免重复计算。",{"title":1009,"path":1010,"stem":1011,"category":1001,"description":1012},"useSigmaExport","\u002Fdocs\u002Fcomposables\u002Fuse-sigma-export","docs\u002F3.composables\u002F16.use-sigma-export","把当前画面导出为 PNG，可取 Blob 自行处理，也可直接触发浏览器下载。",{"title":1014,"category":812,"description":812,"icon":787,"path":1015,"stem":1016,"children":1017,"page":814},"工具函数","\u002Fdocs\u002Futils","docs\u002F4.utils",[1018,1022,1027,1032,1037,1042],{"title":1019,"path":789,"stem":1020,"category":812,"description":1021},"applyGraphDiff","docs\u002F4.utils\u002F1.apply-graph-diff","把 SerializedGraph 增量同步到 graphology 实例，替代 clear() 加 import()，保留已有节点的布局坐标。",{"title":1023,"path":1024,"stem":1025,"category":812,"description":1026},"composeStyles","\u002Fdocs\u002Futils\u002Fcompose-styles","docs\u002F4.utils\u002F2.compose-styles","按序拼接多份 styles 声明，让用户规则与 DEFAULT_STYLES 共存而不是互相顶掉。",{"title":1028,"path":1029,"stem":1030,"category":812,"description":1031},"labelPlacements","\u002Fdocs\u002Futils\u002Flabel-placements","docs\u002F4.utils\u002F3.label-placements","给每个节点选一个背离邻居的标签方位，返回节点 key 到方位的映射表。",{"title":1033,"path":1034,"stem":1035,"category":812,"description":1036},"degreeToTier","\u002Fdocs\u002Futils\u002Fdegree-to-tier","docs\u002F4.utils\u002F4.degree-to-tier","按度数排名给节点分标签档位，返回节点 key 到档位的映射表，档位越小越重要。",{"title":1038,"path":1039,"stem":1040,"category":812,"description":1041},"sdfPolygon \u002F sdfStar","\u002Fdocs\u002Futils\u002Fsdf-shapes","docs\u002F4.utils\u002F5.sdf-shapes","把节点画成正多边形或星形的 SDF 形状声明，形状是与颜色正交的第二个编码维度。",{"title":1043,"path":1044,"stem":1045,"category":812,"description":1046},"defineSigmaPrimitives","\u002Fdocs\u002Futils\u002Fdefine-sigma-primitives","docs\u002F4.utils\u002F6.define-sigma-primitives","声明一份延迟加载的渲染原语，绕开 sigma 在模块顶层读取 WebGL 全局导致的 SSR 崩溃。",{"data":1048,"body":1049},{},{"type":6,"children":1050},[1051],{"type":9,"tag":10,"props":1052,"children":1053},{},[1054,1056],{"type":14,"value":1055},"Copyright © 2026 - 2026 YiXuan - ",{"type":9,"tag":37,"props":1057,"children":1060},{"className":1058},[1059],"text-highlighted",[1061],{"type":14,"value":1062},"MIT License",[812,1064],{"title":834,"path":835,"stem":836,"description":837,"children":-1},1795515175996,"63cc32bb-ed0d-4a02-83fd-40ba6fe4b04e"]