@antv/g6
Version:
graph visualization frame work
1 lines • 67.4 kB
JSON
{"expireTime":9007200828528711000,"key":"transformer-remark-markdown-ast-709696833bd3872e29a6e8df4843acd3-gatsby-remark-prettiergatsby-remark-prismjsgatsby-remark-external-linksgatsby-remark-autolink-headersgatsby-remark-reading-time-","val":{"type":"root","children":[{"type":"paragraph","children":[{"type":"text","value":"G6 内置了 ellipse 节点,其默认样式如下。标签文本位于椭圆中央。","position":{"start":{"line":2,"column":1,"offset":1},"end":{"line":2,"column":38,"offset":38},"indent":[]}}],"position":{"start":{"line":2,"column":1,"offset":1},"end":{"line":2,"column":38,"offset":38},"indent":[]}},{"type":"paragraph","children":[{"type":"image","title":null,"url":"https://cdn.nlark.com/yuque/0/2019/png/156681/1570869816371-56e43b73-c61b-49f4-a067-41228e3bf364.png#align=left&display=inline&height=70&name=image.png&originHeight=140&originWidth=216&search=&size=17639&status=done&width=108","alt":"image.png","position":{"start":{"line":4,"column":1,"offset":40},"end":{"line":4,"column":240,"offset":279},"indent":[]}}],"position":{"start":{"line":4,"column":1,"offset":40},"end":{"line":4,"column":240,"offset":279},"indent":[]}},{"type":"heading","depth":2,"children":[{"type":"link","url":"#使用方法","title":null,"children":[],"data":{"hProperties":{"aria-label":"使用方法 permalink","class":"anchor"},"hChildren":[{"type":"raw","value":"<svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>"}]}},{"type":"text","value":"使用方法","position":{"start":{"line":7,"column":4,"offset":285},"end":{"line":7,"column":8,"offset":289},"indent":[]}}],"position":{"start":{"line":7,"column":1,"offset":282},"end":{"line":7,"column":8,"offset":289},"indent":[]},"data":{"id":"使用方法","htmlAttributes":{"id":"使用方法"},"hProperties":{"id":"使用方法"}}},{"type":"paragraph","children":[{"type":"text","value":"如 ","position":{"start":{"line":8,"column":1,"offset":290},"end":{"line":8,"column":3,"offset":292},"indent":[]}},{"type":"link","title":null,"url":"../defaultNode","children":[{"type":"text","value":"内置节点","position":{"start":{"line":8,"column":4,"offset":293},"end":{"line":8,"column":8,"offset":297},"indent":[]}}],"position":{"start":{"line":8,"column":3,"offset":292},"end":{"line":8,"column":25,"offset":314},"indent":[]}},{"type":"text","value":" 一节所示,配置节点的方式有两种:实例化图时全局配置,在数据中动态配置。","position":{"start":{"line":8,"column":25,"offset":314},"end":{"line":8,"column":61,"offset":350},"indent":[]}}],"position":{"start":{"line":8,"column":1,"offset":290},"end":{"line":8,"column":61,"offset":350},"indent":[]}},{"type":"heading","depth":3,"children":[{"type":"link","url":"#1-实例化图时全局配置","title":null,"children":[],"data":{"hProperties":{"aria-label":"1 实例化图时全局配置 permalink","class":"anchor"},"hChildren":[{"type":"raw","value":"<svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>"}]}},{"type":"text","value":"1 实例化图时全局配置","position":{"start":{"line":11,"column":5,"offset":357},"end":{"line":11,"column":16,"offset":368},"indent":[]}}],"position":{"start":{"line":11,"column":1,"offset":353},"end":{"line":11,"column":16,"offset":368},"indent":[]},"data":{"id":"1-实例化图时全局配置","htmlAttributes":{"id":"1-实例化图时全局配置"},"hProperties":{"id":"1-实例化图时全局配置"}}},{"type":"paragraph","children":[{"type":"text","value":"用户在实例化 Graph 时候可以通过 ","position":{"start":{"line":12,"column":1,"offset":369},"end":{"line":12,"column":21,"offset":389},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">defaultNode</code>","position":{"start":{"line":12,"column":21,"offset":389},"end":{"line":12,"column":34,"offset":402},"indent":[]}},{"type":"text","value":" 指定 ","position":{"start":{"line":12,"column":34,"offset":402},"end":{"line":12,"column":38,"offset":406},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">shape</code>","position":{"start":{"line":12,"column":38,"offset":406},"end":{"line":12,"column":45,"offset":413},"indent":[]}},{"type":"text","value":" 为 ","position":{"start":{"line":12,"column":45,"offset":413},"end":{"line":12,"column":48,"offset":416},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">'ellipse'</code>","position":{"start":{"line":12,"column":48,"offset":416},"end":{"line":12,"column":59,"offset":427},"indent":[]}},{"type":"text","value":",即可使用 ","position":{"start":{"line":12,"column":59,"offset":427},"end":{"line":12,"column":65,"offset":433},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">ellipse</code>","position":{"start":{"line":12,"column":65,"offset":433},"end":{"line":12,"column":74,"offset":442},"indent":[]}},{"type":"text","value":" 节点。","position":{"start":{"line":12,"column":74,"offset":442},"end":{"line":12,"column":78,"offset":446},"indent":[]}}],"position":{"start":{"line":12,"column":1,"offset":369},"end":{"line":12,"column":78,"offset":446},"indent":[]}},{"type":"html","lang":"javascript","meta":null,"value":"<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript\"><code class=\"language-javascript\"><span class=\"token keyword\">const</span> graph <span class=\"token operator\">=</span> <span class=\"token keyword\">new</span> <span class=\"token class-name\">G6<span class=\"token punctuation\">.</span>Graph</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">{</span>\n container<span class=\"token punctuation\">:</span> <span class=\"token string\">'mountNode'</span><span class=\"token punctuation\">,</span>\n width<span class=\"token punctuation\">:</span> <span class=\"token number\">800</span><span class=\"token punctuation\">,</span>\n height<span class=\"token punctuation\">:</span> <span class=\"token number\">600</span><span class=\"token punctuation\">,</span>\n defaultNode<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n shape<span class=\"token punctuation\">:</span> <span class=\"token string\">'ellipse'</span><span class=\"token punctuation\">,</span>\n <span class=\"token comment\">// 其他配置</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\n</code></pre></div>","position":{"start":{"line":13,"column":1,"offset":447},"end":{"line":23,"column":4,"offset":606},"indent":[1,1,1,1,1,1,1,1,1,1]}},{"type":"heading","depth":3,"children":[{"type":"link","url":"#2-在数据中动态配置","title":null,"children":[],"data":{"hProperties":{"aria-label":"2 在数据中动态配置 permalink","class":"anchor"},"hChildren":[{"type":"raw","value":"<svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>"}]}},{"type":"text","value":"2 在数据中动态配置","position":{"start":{"line":26,"column":5,"offset":613},"end":{"line":26,"column":15,"offset":623},"indent":[]}}],"position":{"start":{"line":26,"column":1,"offset":609},"end":{"line":26,"column":15,"offset":623},"indent":[]},"data":{"id":"2-在数据中动态配置","htmlAttributes":{"id":"2-在数据中动态配置"},"hProperties":{"id":"2-在数据中动态配置"}}},{"type":"paragraph","children":[{"type":"text","value":"如果需要使不同节点有不同的配置,可以将配置写入到节点数据中。这种配置方式可以通过下面代码的形式直接写入数据,也可以通过遍历数据的方式写入。","position":{"start":{"line":27,"column":1,"offset":624},"end":{"line":27,"column":70,"offset":693},"indent":[]}}],"position":{"start":{"line":27,"column":1,"offset":624},"end":{"line":27,"column":70,"offset":693},"indent":[]}},{"type":"html","lang":"javascript","meta":null,"value":"<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript\"><code class=\"language-javascript\"><span class=\"token keyword\">const</span> data <span class=\"token operator\">=</span> <span class=\"token punctuation\">{</span>\n nodes<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">[</span><span class=\"token punctuation\">{</span>\n\t id<span class=\"token punctuation\">:</span> <span class=\"token string\">'node0'</span><span class=\"token punctuation\">,</span>\n shape<span class=\"token punctuation\">:</span> <span class=\"token string\">'ellipse'</span><span class=\"token punctuation\">,</span>\n <span class=\"token operator\">...</span> <span class=\"token comment\">// 其他配置</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n <span class=\"token operator\">...</span> <span class=\"token comment\">// 其他节点</span>\n <span class=\"token punctuation\">]</span><span class=\"token punctuation\">,</span>\n edges<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">[</span>\n <span class=\"token operator\">...</span> <span class=\"token comment\">// 边</span>\n <span class=\"token punctuation\">]</span>\n<span class=\"token punctuation\">}</span></code></pre></div>","position":{"start":{"line":28,"column":1,"offset":694},"end":{"line":41,"column":4,"offset":850},"indent":[1,1,1,1,1,1,1,1,1,1,1,1,1]}},{"type":"heading","depth":2,"children":[{"type":"link","url":"#配置项说明","title":null,"children":[],"data":{"hProperties":{"aria-label":"配置项说明 permalink","class":"anchor"},"hChildren":[{"type":"raw","value":"<svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>"}]}},{"type":"text","value":"配置项说明","position":{"start":{"line":44,"column":4,"offset":856},"end":{"line":44,"column":9,"offset":861},"indent":[]}}],"position":{"start":{"line":44,"column":1,"offset":853},"end":{"line":44,"column":9,"offset":861},"indent":[]},"data":{"id":"配置项说明","htmlAttributes":{"id":"配置项说明"},"hProperties":{"id":"配置项说明"}}},{"type":"paragraph","children":[{"type":"text","value":"ellipse 节点支持以下的配置项,对于 Object 类型的配置项将在后面有详细讲解:","position":{"start":{"line":45,"column":1,"offset":862},"end":{"line":45,"column":46,"offset":907},"indent":[]}}],"position":{"start":{"line":45,"column":1,"offset":862},"end":{"line":45,"column":46,"offset":907},"indent":[]}},{"type":"table","align":[null,null,null,null],"children":[{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"名称","position":{"start":{"line":47,"column":3,"offset":911},"end":{"line":47,"column":5,"offset":913},"indent":[]}}],"position":{"start":{"line":47,"column":3,"offset":911},"end":{"line":47,"column":5,"offset":913},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"含义","position":{"start":{"line":47,"column":8,"offset":916},"end":{"line":47,"column":10,"offset":918},"indent":[]}}],"position":{"start":{"line":47,"column":8,"offset":916},"end":{"line":47,"column":10,"offset":918},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"类型","position":{"start":{"line":47,"column":13,"offset":921},"end":{"line":47,"column":15,"offset":923},"indent":[]}}],"position":{"start":{"line":47,"column":13,"offset":921},"end":{"line":47,"column":15,"offset":923},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"备注","position":{"start":{"line":47,"column":18,"offset":926},"end":{"line":47,"column":20,"offset":928},"indent":[]}}],"position":{"start":{"line":47,"column":18,"offset":926},"end":{"line":47,"column":20,"offset":928},"indent":[]}}],"position":{"start":{"line":47,"column":1,"offset":909},"end":{"line":47,"column":22,"offset":930},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"size","position":{"start":{"line":49,"column":3,"offset":959},"end":{"line":49,"column":7,"offset":963},"indent":[]}}],"position":{"start":{"line":49,"column":3,"offset":959},"end":{"line":49,"column":7,"offset":963},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"椭圆的大小","position":{"start":{"line":49,"column":10,"offset":966},"end":{"line":49,"column":15,"offset":971},"indent":[]}}],"position":{"start":{"line":49,"column":10,"offset":966},"end":{"line":49,"column":15,"offset":971},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Number","position":{"start":{"line":49,"column":18,"offset":974},"end":{"line":49,"column":24,"offset":980},"indent":[]}}],"position":{"start":{"line":49,"column":18,"offset":974},"end":{"line":49,"column":24,"offset":980},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Array","position":{"start":{"line":49,"column":27,"offset":983},"end":{"line":49,"column":32,"offset":988},"indent":[]}}],"position":{"start":{"line":49,"column":27,"offset":983},"end":{"line":49,"column":32,"offset":988},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"size 为 Number 时,效果为一个圆形。为 Array 时,size","position":{"start":{"line":49,"column":35,"offset":991},"end":{"line":49,"column":73,"offset":1029},"indent":[]}},{"type":"linkReference","identifier":"0","label":"0","referenceType":"shortcut","children":[{"type":"text","value":"0","position":{"start":{"line":49,"column":74,"offset":1030},"end":{"line":49,"column":75,"offset":1031},"indent":[]}}],"position":{"start":{"line":49,"column":73,"offset":1029},"end":{"line":49,"column":76,"offset":1032},"indent":[]}},{"type":"text","value":" 为椭圆长轴长度,size","position":{"start":{"line":49,"column":76,"offset":1032},"end":{"line":49,"column":89,"offset":1045},"indent":[]}},{"type":"linkReference","identifier":"1","label":"1","referenceType":"shortcut","children":[{"type":"text","value":"1","position":{"start":{"line":49,"column":90,"offset":1046},"end":{"line":49,"column":91,"offset":1047},"indent":[]}}],"position":{"start":{"line":49,"column":89,"offset":1045},"end":{"line":49,"column":92,"offset":1048},"indent":[]}},{"type":"text","value":" 为椭圆短轴长度","position":{"start":{"line":49,"column":92,"offset":1048},"end":{"line":49,"column":100,"offset":1056},"indent":[]}}],"position":{"start":{"line":49,"column":35,"offset":991},"end":{"line":49,"column":100,"offset":1056},"indent":[]}}],"position":{"start":{"line":49,"column":1,"offset":957},"end":{"line":49,"column":102,"offset":1058},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"style","position":{"start":{"line":50,"column":3,"offset":1061},"end":{"line":50,"column":8,"offset":1066},"indent":[]}}],"position":{"start":{"line":50,"column":3,"offset":1061},"end":{"line":50,"column":8,"offset":1066},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"椭圆的默认样式","position":{"start":{"line":50,"column":11,"offset":1069},"end":{"line":50,"column":18,"offset":1076},"indent":[]}}],"position":{"start":{"line":50,"column":11,"offset":1069},"end":{"line":50,"column":18,"offset":1076},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Object","position":{"start":{"line":50,"column":21,"offset":1079},"end":{"line":50,"column":27,"offset":1085},"indent":[]}}],"position":{"start":{"line":50,"column":21,"offset":1079},"end":{"line":50,"column":27,"offset":1085},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Canvas支持的属性","position":{"start":{"line":50,"column":30,"offset":1088},"end":{"line":50,"column":41,"offset":1099},"indent":[]}}],"position":{"start":{"line":50,"column":30,"offset":1088},"end":{"line":50,"column":41,"offset":1099},"indent":[]}}],"position":{"start":{"line":50,"column":1,"offset":1059},"end":{"line":50,"column":43,"offset":1101},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"labelCfg","position":{"start":{"line":51,"column":3,"offset":1104},"end":{"line":51,"column":11,"offset":1112},"indent":[]}}],"position":{"start":{"line":51,"column":3,"offset":1104},"end":{"line":51,"column":11,"offset":1112},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"文件配置项","position":{"start":{"line":51,"column":14,"offset":1115},"end":{"line":51,"column":19,"offset":1120},"indent":[]}}],"position":{"start":{"line":51,"column":14,"offset":1115},"end":{"line":51,"column":19,"offset":1120},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Object","position":{"start":{"line":51,"column":22,"offset":1123},"end":{"line":51,"column":28,"offset":1129},"indent":[]}}],"position":{"start":{"line":51,"column":22,"offset":1123},"end":{"line":51,"column":28,"offset":1129},"indent":[]}},{"type":"tableCell","children":[],"position":{"start":{"line":51,"column":32,"offset":1133},"end":{"line":51,"column":32,"offset":1133},"indent":[]}}],"position":{"start":{"line":51,"column":1,"offset":1102},"end":{"line":51,"column":33,"offset":1134},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"stateStyles","position":{"start":{"line":52,"column":3,"offset":1137},"end":{"line":52,"column":14,"offset":1148},"indent":[]}}],"position":{"start":{"line":52,"column":3,"offset":1137},"end":{"line":52,"column":14,"offset":1148},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"各状态下的样式","position":{"start":{"line":52,"column":17,"offset":1151},"end":{"line":52,"column":24,"offset":1158},"indent":[]}}],"position":{"start":{"line":52,"column":17,"offset":1151},"end":{"line":52,"column":24,"offset":1158},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Object","position":{"start":{"line":52,"column":27,"offset":1161},"end":{"line":52,"column":33,"offset":1167},"indent":[]}}],"position":{"start":{"line":52,"column":27,"offset":1161},"end":{"line":52,"column":33,"offset":1167},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"只对keyShape起作用","position":{"start":{"line":52,"column":36,"offset":1170},"end":{"line":52,"column":49,"offset":1183},"indent":[]}}],"position":{"start":{"line":52,"column":36,"offset":1170},"end":{"line":52,"column":49,"offset":1183},"indent":[]}}],"position":{"start":{"line":52,"column":1,"offset":1135},"end":{"line":52,"column":51,"offset":1185},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"linkPoints","position":{"start":{"line":53,"column":3,"offset":1188},"end":{"line":53,"column":13,"offset":1198},"indent":[]}}],"position":{"start":{"line":53,"column":3,"offset":1188},"end":{"line":53,"column":13,"offset":1198},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"椭圆上的链接点","position":{"start":{"line":53,"column":16,"offset":1201},"end":{"line":53,"column":23,"offset":1208},"indent":[]}}],"position":{"start":{"line":53,"column":16,"offset":1201},"end":{"line":53,"column":23,"offset":1208},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Object","position":{"start":{"line":53,"column":26,"offset":1211},"end":{"line":53,"column":32,"offset":1217},"indent":[]}}],"position":{"start":{"line":53,"column":26,"offset":1211},"end":{"line":53,"column":32,"offset":1217},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认不显示","position":{"start":{"line":53,"column":35,"offset":1220},"end":{"line":53,"column":40,"offset":1225},"indent":[]}}],"position":{"start":{"line":53,"column":35,"offset":1220},"end":{"line":53,"column":40,"offset":1225},"indent":[]}}],"position":{"start":{"line":53,"column":1,"offset":1186},"end":{"line":53,"column":42,"offset":1227},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"icon","position":{"start":{"line":54,"column":3,"offset":1230},"end":{"line":54,"column":7,"offset":1234},"indent":[]}}],"position":{"start":{"line":54,"column":3,"offset":1230},"end":{"line":54,"column":7,"offset":1234},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"椭圆上icon配置","position":{"start":{"line":54,"column":10,"offset":1237},"end":{"line":54,"column":19,"offset":1246},"indent":[]}}],"position":{"start":{"line":54,"column":10,"offset":1237},"end":{"line":54,"column":19,"offset":1246},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Object","position":{"start":{"line":54,"column":22,"offset":1249},"end":{"line":54,"column":28,"offset":1255},"indent":[]}}],"position":{"start":{"line":54,"column":22,"offset":1249},"end":{"line":54,"column":28,"offset":1255},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认不显示icon","position":{"start":{"line":54,"column":31,"offset":1258},"end":{"line":54,"column":40,"offset":1267},"indent":[]}}],"position":{"start":{"line":54,"column":31,"offset":1258},"end":{"line":54,"column":40,"offset":1267},"indent":[]}}],"position":{"start":{"line":54,"column":1,"offset":1228},"end":{"line":54,"column":42,"offset":1269},"indent":[]}}],"position":{"start":{"line":47,"column":1,"offset":909},"end":{"line":54,"column":42,"offset":1269},"indent":[1,1,1,1,1,1,1]}},{"type":"heading","depth":3,"children":[{"type":"link","url":"#样式属性-style","title":null,"children":[],"data":{"hProperties":{"aria-label":"样式属性 style permalink","class":"anchor"},"hChildren":[{"type":"raw","value":"<svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>"}]}},{"type":"text","value":"样式属性 style","position":{"start":{"line":58,"column":5,"offset":1277},"end":{"line":58,"column":15,"offset":1287},"indent":[]}}],"position":{"start":{"line":58,"column":1,"offset":1273},"end":{"line":58,"column":15,"offset":1287},"indent":[]},"data":{"id":"样式属性-style","htmlAttributes":{"id":"样式属性-style"},"hProperties":{"id":"样式属性-style"}}},{"type":"paragraph","children":[{"type":"text","value":"Object 类型。通过 ","position":{"start":{"line":59,"column":1,"offset":1288},"end":{"line":59,"column":14,"offset":1301},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">style</code>","position":{"start":{"line":59,"column":14,"offset":1301},"end":{"line":59,"column":21,"offset":1308},"indent":[]}},{"type":"text","value":" 配置来修改节点的填充色、描边等属性。下面代码演示在实例化图时全局配置方法中配置 ","position":{"start":{"line":59,"column":21,"offset":1308},"end":{"line":59,"column":62,"offset":1349},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">style</code>","position":{"start":{"line":59,"column":62,"offset":1349},"end":{"line":59,"column":69,"offset":1356},"indent":[]}},{"type":"text","value":",使之达到如下图效果。","position":{"start":{"line":59,"column":69,"offset":1356},"end":{"line":59,"column":80,"offset":1367},"indent":[]}},{"type":"html","value":"<br />","position":{"start":{"line":59,"column":80,"offset":1367},"end":{"line":59,"column":86,"offset":1373},"indent":[]}},{"type":"image","title":null,"url":"https://cdn.nlark.com/yuque/0/2019/png/156681/1570870039684-34a969f6-bb98-445d-b0aa-915775a899b6.png#align=left&display=inline&height=79&name=image.png&originHeight=158&originWidth=250&search=&size=27582&status=done&width=125","alt":"image.png","position":{"start":{"line":59,"column":86,"offset":1373},"end":{"line":59,"column":325,"offset":1612},"indent":[]}}],"position":{"start":{"line":59,"column":1,"offset":1288},"end":{"line":59,"column":325,"offset":1612},"indent":[]}},{"type":"html","lang":"javascript","meta":null,"value":"<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript\"><code class=\"language-javascript\"><span class=\"token keyword\">const</span> data <span class=\"token operator\">=</span> <span class=\"token punctuation\">{</span>\n nodes<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">[</span>\n <span class=\"token punctuation\">{</span>\n x<span class=\"token punctuation\">:</span> <span class=\"token number\">100</span><span class=\"token punctuation\">,</span>\n y<span class=\"token punctuation\">:</span> <span class=\"token number\">100</span><span class=\"token punctuation\">,</span>\n shape<span class=\"token punctuation\">:</span> <span class=\"token string\">'ellipse'</span><span class=\"token punctuation\">,</span>\n label<span class=\"token punctuation\">:</span> <span class=\"token string\">'ellipse'</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">]</span><span class=\"token punctuation\">,</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">const</span> graph <span class=\"token operator\">=</span> <span class=\"token keyword\">new</span> <span class=\"token class-name\">G6<span class=\"token punctuation\">.</span>Graph</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">{</span>\n container<span class=\"token punctuation\">:</span> <span class=\"token string\">'mountNode'</span><span class=\"token punctuation\">,</span>\n width<span class=\"token punctuation\">:</span> <span class=\"token number\">800</span><span class=\"token punctuation\">,</span>\n height<span class=\"token punctuation\">:</span> <span class=\"token number\">600</span><span class=\"token punctuation\">,</span>\n defaultNode<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// shape: 'ellipse', // 在数据中已经指定 shape,这里可以不用再此指定</span>\n size<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">[</span><span class=\"token number\">130</span><span class=\"token punctuation\">,</span> <span class=\"token number\">80</span><span class=\"token punctuation\">]</span><span class=\"token punctuation\">,</span>\n style<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n fill<span class=\"token punctuation\">:</span> <span class=\"token string\">'#bae637'</span><span class=\"token punctuation\">,</span>\n stroke<span class=\"token punctuation\">:</span> <span class=\"token string\">'#eaff8f'</span><span class=\"token punctuation\">,</span>\n lineWidth<span class=\"token punctuation\">:</span> <span class=\"token number\">5</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\ngraph<span class=\"token punctuation\">.</span><span class=\"token function\">data</span><span class=\"token punctuation\">(</span>data<span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\ngraph<span class=\"token punctuation\">.</span><span class=\"token function\">render</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\n</code></pre></div>","position":{"start":{"line":60,"column":1,"offset":1613},"end":{"line":85,"column":4,"offset":2036},"indent":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}},{"type":"heading","depth":3,"children":[{"type":"link","url":"#标签文本配置-labelcfg","title":null,"children":[],"data":{"hProperties":{"aria-label":"标签文本配置 labelcfg permalink","class":"anchor"},"hChildren":[{"type":"raw","value":"<svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>"}]}},{"type":"text","value":"标签文本配置 labelCfg","position":{"start":{"line":88,"column":5,"offset":2043},"end":{"line":88,"column":20,"offset":2058},"indent":[]}}],"position":{"start":{"line":88,"column":1,"offset":2039},"end":{"line":88,"column":20,"offset":2058},"indent":[]},"data":{"id":"标签文本配置-labelcfg","htmlAttributes":{"id":"标签文本配置-labelcfg"},"hProperties":{"id":"标签文本配置-labelcfg"}}},{"type":"paragraph","children":[{"type":"text","value":"Object 类型。通过 ","position":{"start":{"line":89,"column":1,"offset":2059},"end":{"line":89,"column":14,"offset":2072},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">labelCfg</code>","position":{"start":{"line":89,"column":14,"offset":2072},"end":{"line":89,"column":24,"offset":2082},"indent":[]}},{"type":"text","value":" 配置标签文本。基于上面 ","position":{"start":{"line":89,"column":24,"offset":2082},"end":{"line":89,"column":37,"offset":2095},"indent":[]}},{"type":"link","title":null,"url":"#样式属性-style","children":[{"type":"text","value":"样式属性 style","position":{"start":{"line":89,"column":38,"offset":2096},"end":{"line":89,"column":48,"offset":2106},"indent":[]}}],"position":{"start":{"line":89,"column":37,"offset":2095},"end":{"line":89,"column":62,"offset":2120},"indent":[]}},{"type":"text","value":" 中的代码,下面代码在 ","position":{"start":{"line":89,"column":62,"offset":2120},"end":{"line":89,"column":74,"offset":2132},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">defaultNode</code>","position":{"start":{"line":89,"column":74,"offset":2132},"end":{"line":89,"column":87,"offset":2145},"indent":[]}},{"type":"text","value":" 中增加了 ","position":{"start":{"line":89,"column":87,"offset":2145},"end":{"line":89,"column":93,"offset":2151},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">labelCfg</code>","position":{"start":{"line":89,"column":93,"offset":2151},"end":{"line":89,"column":103,"offset":2161},"indent":[]}},{"type":"text","value":" 配置项进行文本的配置,使之达到如下图效果。","position":{"start":{"line":89,"column":103,"offset":2161},"end":{"line":89,"column":125,"offset":2183},"indent":[]}},{"type":"html","value":"<br />","position":{"start":{"line":89,"column":125,"offset":2183},"end":{"line":89,"column":131,"offset":2189},"indent":[]}},{"type":"image","title":null,"url":"https://cdn.nlark.com/yuque/0/2019/png/156681/1570870174289-a7239b11-d0da-441d-a2fe-d0c17b67dcff.png#align=left&display=inline&height=81&name=image.png&originHeight=162&originWidth=346&search=&size=30221&status=done&width=173","alt":"image.png","position":{"start":{"line":89,"column":131,"offset":2189},"end":{"line":89,"column":370,"offset":2428},"indent":[]}}],"position":{"start":{"line":89,"column":1,"offset":2059},"end":{"line":89,"column":370,"offset":2428},"indent":[]}},{"type":"html","lang":"javascript","meta":null,"value":"<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript\"><code class=\"language-javascript\"><span class=\"token keyword\">const</span> data <span class=\"token operator\">=</span> <span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// ... data 内容</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">const</span> graph <span class=\"token operator\">=</span> <span class=\"token keyword\">new</span> <span class=\"token class-name\">G6<span class=\"token punctuation\">.</span>Graph</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// ... 图的其他属性</span>\n defaultNode<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// ... 节点其他属性</span>\n labelCfg<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n offset<span class=\"token punctuation\">:</span> <span class=\"token number\">20</span><span class=\"token punctuation\">,</span>\n style<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n fill<span class=\"token punctuation\">:</span> <span class=\"token string\">'#9254de'</span><span class=\"token punctuation\">,</span>\n fontSize<span class=\"token punctuation\">:</span> <span class=\"token number\">18</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\n<span class=\"token comment\">// ...</span>\n</code></pre></div>","position":{"start":{"line":90,"column":1,"offset":2429},"end":{"line":108,"column":4,"offset":2685},"indent":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}},{"type":"heading","depth":3,"children":[{"type":"link","url":"#边的连入点-linkpoints","title":null,"children":[],"data":{"hProperties":{"aria-label":"边的连入点 linkpoints permalink","class":"anchor"},"hChildren":[{"type":"raw","value":"<svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>"}]}},{"type":"text","value":"边的连入点 linkPoints","position":{"start":{"line":111,"column":5,"offset":2692},"end":{"line":111,"column":21,"offset":2708},"indent":[]}}],"position":{"start":{"line":111,"column":1,"offset":2688},"end":{"line":111,"column":21,"offset":2708},"indent":[]},"data":{"id":"边的连入点-linkpoints","htmlAttributes":{"id":"边的连入点-linkpoints"},"hProperties":{"id":"边的连入点-linkpoints"}}},{"type":"paragraph","children":[{"type":"text","value":"Object 类型。通过配置 ","position":{"start":{"line":112,"column":1,"offset":2709},"end":{"line":112,"column":16,"offset":2724},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">linkPoints</code>","position":{"start":{"line":112,"column":16,"offset":2724},"end":{"line":112,"column":28,"offset":2736},"indent":[]}},{"type":"text","value":" ,可以指定节点上「上、下、左、右」四个方向上边的连入点。","position":{"start":{"line":112,"column":28,"offset":2736},"end":{"line":112,"column":57,"offset":2765},"indent":[]}}],"position":{"start":{"line":112,"column":1,"offset":2709},"end":{"line":112,"column":57,"offset":2765},"indent":[]}},{"type":"table","align":[null,null,null,null],"children":[{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"名称","position":{"start":{"line":114,"column":3,"offset":2769},"end":{"line":114,"column":5,"offset":2771},"indent":[]}}],"position":{"start":{"line":114,"column":3,"offset":2769},"end":{"line":114,"column":5,"offset":2771},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"含义","position":{"start":{"line":114,"column":8,"offset":2774},"end":{"line":114,"column":10,"offset":2776},"indent":[]}}],"position":{"start":{"line":114,"column":8,"offset":2774},"end":{"line":114,"column":10,"offset":2776},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"类型","position":{"start":{"line":114,"column":13,"offset":2779},"end":{"line":114,"column":15,"offset":2781},"indent":[]}}],"position":{"start":{"line":114,"column":13,"offset":2779},"end":{"line":114,"column":15,"offset":2781},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"备注","position":{"start":{"line":114,"column":18,"offset":2784},"end":{"line":114,"column":20,"offset":2786},"indent":[]}}],"position":{"start":{"line":114,"column":18,"offset":2784},"end":{"line":114,"column":20,"offset":2786},"indent":[]}}],"position":{"start":{"line":114,"column":1,"offset":2767},"end":{"line":114,"column":22,"offset":2788},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"top","position":{"start":{"line":116,"column":3,"offset":2817},"end":{"line":116,"column":6,"offset":2820},"indent":[]}}],"position":{"start":{"line":116,"column":3,"offset":2817},"end":{"line":116,"column":6,"offset":2820},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"是否显示上部的连接点","position":{"start":{"line":116,"column":9,"offset":2823},"end":{"line":116,"column":19,"offset":2833},"indent":[]}}],"position":{"start":{"line":116,"column":9,"offset":2823},"end":{"line":116,"column":19,"offset":2833},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Boolean","position":{"start":{"line":116,"column":22,"offset":2836},"end":{"line":116,"column":29,"offset":2843},"indent":[]}}],"position":{"start":{"line":116,"column":22,"offset":2836},"end":{"line":116,"column":29,"offset":2843},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为false","position":{"start":{"line":116,"column":32,"offset":2846},"end":{"line":116,"column":40,"offset":2854},"indent":[]}}],"position":{"start":{"line":116,"column":32,"offset":2846},"end":{"line":116,"column":40,"offset":2854},"indent":[]}}],"position":{"start":{"line":116,"column":1,"offset":2815},"end":{"line":116,"column":42,"offset":2856},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"bottom","position":{"start":{"line":117,"column":3,"offset":2859},"end":{"line":117,"column":9,"offset":2865},"indent":[]}}],"position":{"start":{"line":117,"column":3,"offset":2859},"end":{"line":117,"column":9,"offset":2865},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"是否显示底部的连接点","position":{"start":{"line":117,"column":12,"offset":2868},"end":{"line":117,"column":22,"offset":2878},"indent":[]}}],"position":{"start":{"line":117,"column":12,"offset":2868},"end":{"line":117,"column":22,"offset":2878},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Boolean","position":{"start":{"line":117,"column":25,"offset":2881},"end":{"line":117,"column":32,"offset":2888},"indent":[]}}],"position":{"start":{"line":117,"column":25,"offset":2881},"end":{"line":117,"column":32,"offset":2888},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为false","position":{"start":{"line":117,"column":35,"offset":2891},"end":{"line":117,"column":43,"offset":2899},"indent":[]}}],"position":{"start":{"line":117,"column":35,"offset":2891},"end":{"line":117,"column":43,"offset":2899},"indent":[]}}],"position":{"start":{"line":117,"column":1,"offset":2857},"end":{"line":117,"column":45,"offset":2901},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"left","position":{"start":{"line":118,"column":3,"offset":2904},"end":{"line":118,"column":7,"offset":2908},"indent":[]}}],"position":{"start":{"line":118,"column":3,"offset":2904},"end":{"line":118,"column":7,"offset":2908},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"是否显示左侧的连接点","position":{"start":{"line":118,"column":10,"offset":2911},"end":{"line":118,"column":20,"offset":2921},"indent":[]}}],"position":{"start":{"line":118,"column":10,"offset":2911},"end":{"line":118,"column":20,"offset":2921},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Boolean","position":{"start":{"line":118,"column":23,"offset":2924},"end":{"line":118,"column":30,"offset":2931},"indent":[]}}],"position":{"start":{"line":118,"column":23,"offset":2924},"end":{"line":118,"column":30,"offset":2931},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为false","position":{"start":{"line":118,"column":33,"offset":2934},"end":{"line":118,"column":41,"offset":2942},"indent":[]}}],"position":{"start":{"line":118,"column":33,"offset":2934},"end":{"line":118,"column":41,"offset":2942},"indent":[]}}],"position":{"start":{"line":118,"column":1,"offset":2902},"end":{"line":118,"column":43,"offset":2944},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"right","position":{"start":{"line":119,"column":3,"offset":2947},"end":{"line":119,"column":8,"offset":2952},"indent":[]}}],"position":{"start":{"line":119,"column":3,"offset":2947},"end":{"line":119,"column":8,"offset":2952},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"是否显示右侧的连接点","position":{"start":{"line":119,"column":11,"offset":2955},"end":{"line":119,"column":21,"offset":2965},"indent":[]}}],"position":{"start":{"line":119,"column":11,"offset":2955},"end":{"line":119,"column":21,"offset":2965},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Boolean","position":{"start":{"line":119,"column":24,"offset":2968},"end":{"line":119,"column":31,"offset":2975},"indent":[]}}],"position":{"start":{"line":119,"column":24,"offset":2968},"end":{"line":119,"column":31,"offset":2975},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为false","position":{"start":{"line":119,"column":34,"offset":2978},"end":{"line":119,"column":42,"offset":2986},"indent":[]}}],"position":{"start":{"line":119,"column":34,"offset":2978},"end":{"line":119,"column":42,"offset":2986},"indent":[]}}],"position":{"start":{"line":119,"column":1,"offset":2945},"end":{"line":119,"column":44,"offset":2988},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"size","position":{"start":{"line":120,"column":3,"offset":2991},"end":{"line":120,"column":7,"offset":2995},"indent":[]}}],"position":{"start":{"line":120,"column":3,"offset":2991},"end":{"line":120,"column":7,"offset":2995},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"连接点的大小","position":{"start":{"line":120,"column":10,"offset":2998},"end":{"line":120,"column":16,"offset":3004},"indent":[]}}],"position":{"start":{"line":120,"column":10,"offset":2998},"end":{"line":120,"column":16,"offset":3004},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Number","position":{"start":{"line":120,"column":19,"offset":3007},"end":{"line":120,"column":25,"offset":3013},"indent":[]}}],"position":{"start":{"line":120,"column":19,"offset":3007},"end":{"line":120,"column":25,"offset":3013},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为3","position":{"start":{"line":120,"column":28,"offset":3016},"end":{"line":120,"column":32,"offset":3020},"indent":[]}}],"position":{"start":{"line":120,"column":28,"offset":3016},"end":{"line":120,"column":32,"offset":3020},"indent":[]}}],"position":{"start":{"line":120,"column":1,"offset":2989},"end":{"line":120,"column":34,"offset":3022},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"fill","position":{"start":{"line":121,"column":3,"offset":3025},"end":{"line":121,"column":7,"offset":3029},"indent":[]}}],"position":{"start":{"line":121,"column":3,"offset":3025},"end":{"line":121,"column":7,"offset":3029},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"连接点的填充色","position":{"start":{"line":121,"column":10,"offset":3032},"end":{"line":121,"column":17,"offset":3039},"indent":[]}}],"position":{"start":{"line":121,"column":10,"offset":3032},"end":{"line":121,"column":17,"offset":3039},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"String","position":{"start":{"line":121,"column":20,"offset":3042},"end":{"line":121,"column":26,"offset":3048},"indent":[]}}],"position":{"start":{"line":121,"column":20,"offset":3042},"end":{"line":121,"column":26,"offset":3048},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为#72CC4A","position":{"start":{"line":121,"column":29,"offset":3051},"end":{"line":121,"column":39,"offset":3061},"indent":[]}}],"position":{"start":{"line":121,"column":29,"offset":3051},"end":{"line":121,"column":39,"offset":3061},"indent":[]}}],"position":{"start":{"line":121,"column":1,"offset":3023},"end":{"line":121,"column":41,"offset":3063},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"stroke","position":{"start":{"line":122,"column":3,"offset":3066},"end":{"line":122,"column":9,"offset":3072},"indent":[]}}],"position":{"start":{"line":122,"column":3,"offset":3066},"end":{"line":122,"column":9,"offset":3072},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"连接点的边框颜色","position":{"start":{"line":122,"column":12,"offset":3075},"end":{"line":122,"column":20,"offset":3083},"indent":[]}}],"position":{"start":{"line":122,"column":12,"offset":3075},"end":{"line":122,"column":20,"offset":3083},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"String","position":{"start":{"line":122,"column":23,"offset":3086},"end":{"line":122,"column":29,"offset":3092},"indent":[]}}],"position":{"start":{"line":122,"column":23,"offset":3086},"end":{"line":122,"column":29,"offset":3092},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为#72CC4A","position":{"start":{"line":122,"column":32,"offset":3095},"end":{"line":122,"column":42,"offset":3105},"indent":[]}}],"position":{"start":{"line":122,"column":32,"offset":3095},"end":{"line":122,"column":42,"offset":3105},"indent":[]}}],"position":{"start":{"line":122,"column":1,"offset":3064},"end":{"line":122,"column":44,"offset":3107},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"lineWidth","position":{"start":{"line":123,"column":3,"offset":3110},"end":{"line":123,"column":12,"offset":3119},"indent":[]}}],"position":{"start":{"line":123,"column":3,"offset":3110},"end":{"line":123,"column":12,"offset":3119},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"连接点边框的宽度","position":{"start":{"line":123,"column":15,"offset":3122},"end":{"line":123,"column":23,"offset":3130},"indent":[]}}],"position":{"start":{"line":123,"column":15,"offset":3122},"end":{"line":123,"column":23,"offset":3130},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Number","position":{"start":{"line":123,"column":26,"offset":3133},"end":{"line":123,"column":32,"offset":3139},"indent":[]}}],"position":{"start":{"line":123,"column":26,"offset":3133},"end":{"line":123,"column":32,"offset":3139},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为1","position":{"start":{"line":123,"column":35,"offset":3142},"end":{"line":123,"column":39,"offset":3146},"indent":[]}}],"position":{"start":{"line":123,"column":35,"offset":3142},"end":{"line":123,"column":39,"offset":3146},"indent":[]}}],"position":{"start":{"line":123,"column":1,"offset":3108},"end":{"line":123,"column":41,"offset":3148},"indent":[]}}],"position":{"start":{"line":114,"column":1,"offset":2767},"end":{"line":123,"column":41,"offset":3148},"indent":[1,1,1,1,1,1,1,1,1]}},{"type":"paragraph","children":[{"type":"text","value":"基于上面 ","position":{"start":{"line":126,"column":1,"offset":3151},"end":{"line":126,"column":6,"offset":3156},"indent":[]}},{"type":"link","title":null,"url":"#样式属性-style","children":[{"type":"text","value":"样式属性 style","position":{"start":{"line":126,"column":7,"offset":3157},"end":{"line":126,"column":17,"offset":3167},"indent":[]}}],"position":{"start":{"line":126,"column":6,"offset":3156},"end":{"line":126,"column":31,"offset":3181},"indent":[]}},{"type":"text","value":" 中的代码,下面代码在 ","position":{"start":{"line":126,"column":31,"offset":3181},"end":{"line":126,"column":43,"offset":3193},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">defaultNode</code>","position":{"start":{"line":126,"column":43,"offset":3193},"end":{"line":126,"column":56,"offset":3206},"indent":[]}},{"type":"text","value":" 中增加了 ","position":{"start":{"line":126,"column":56,"offset":3206},"end":{"line":126,"column":62,"offset":3212},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">linkPoints</code>","position":{"start":{"line":126,"column":62,"offset":3212},"end":{"line":126,"column":74,"offset":3224},"indent":[]}},{"type":"text","value":" 配置项进行连入点的配置,使之达到如下图效果。","position":{"start":{"line":126,"column":74,"offset":3224},"end":{"line":126,"column":97,"offset":3247},"indent":[]}},{"type":"html","value":"<br />","position":{"start":{"line":126,"column":97,"offset":3247},"end":{"line":126,"column":103,"offset":3253},"indent":[]}},{"type":"image","title":null,"url":"https://cdn.nlark.com/yuque/0/2019/png/156681/1570870219428-3bfd206a-eb00-4b41-b56e-766cb852613e.png#align=left&display=inline&height=84&name=image.png&originHeight=168&originWidth=362&search=&size=35683&status=done&width=181","alt":"image.png","position":{"start":{"line":126,"column":103,"offset":3253},"end":{"line":126,"column":342,"offset":3492},"indent":[]}}],"position":{"start":{"line":126,"column":1,"offset":3151},"end":{"line":126,"column":342,"offset":3492},"indent":[]}},{"type":"html","lang":"javascript","meta":null,"value":"<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript\"><code class=\"language-javascript\"><span class=\"token keyword\">const</span> data <span class=\"token operator\">=</span> <span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// ... data 内容</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">const</span> graph <span class=\"token operator\">=</span> <span class=\"token keyword\">new</span> <span class=\"token class-name\">G6<span class=\"token punctuation\">.</span>Graph</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// ... 图的其他属性</span>\n defaultNode<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// ... 节点其他属性</span>\n linkPoints<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n top<span class=\"token punctuation\">:</span> <span class=\"token boolean\">true</span><span class=\"token punctuation\">,</span>\n bottom<span class=\"token punctuation\">:</span> <span class=\"token boolean\">true</span><span class=\"token punctuation\">,</span>\n left<span class=\"token punctuation\">:</span> <span class=\"token boolean\">true</span><span class=\"token punctuation\">,</span>\n right<span class=\"token punctuation\">:</span> <span class=\"token boolean\">true</span><span class=\"token punctuation\">,</span>\n size<span class=\"token punctuation\">:</span> <span class=\"token number\">5</span><span class=\"token punctuation\">,</span>\n fill<span class=\"token punctuation\">:</span> <span class=\"token string\">'#fff'</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\n<span class=\"token comment\">// ...</span>\n</code></pre></div>","position":{"start":{"line":127,"column":1,"offset":3493},"end":{"line":146,"column":4,"offset":3772},"indent":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1]}},{"type":"heading","depth":3,"children":[{"type":"link","url":"#图标-icon","title":null,"children":[],"data":{"hProperties":{"aria-label":"图标 icon permalink","class":"anchor"},"hChildren":[{"type":"raw","value":"<svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg>"}]}},{"type":"text","value":"图标 icon","position":{"start":{"line":149,"column":5,"offset":3779},"end":{"line":149,"column":12,"offset":3786},"indent":[]}}],"position":{"start":{"line":149,"column":1,"offset":3775},"end":{"line":149,"column":12,"offset":3786},"indent":[]},"data":{"id":"图标-icon","htmlAttributes":{"id":"图标-icon"},"hProperties":{"id":"图标-icon"}}},{"type":"paragraph","children":[{"type":"text","value":"Object 类型。通过配置 ","position":{"start":{"line":150,"column":1,"offset":3787},"end":{"line":150,"column":16,"offset":3802},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">icon</code>","position":{"start":{"line":150,"column":16,"offset":3802},"end":{"line":150,"column":22,"offset":3808},"indent":[]}},{"type":"text","value":",可以在圆上显示小图标。","position":{"start":{"line":150,"column":22,"offset":3808},"end":{"line":150,"column":34,"offset":3820},"indent":[]}}],"position":{"start":{"line":150,"column":1,"offset":3787},"end":{"line":150,"column":34,"offset":3820},"indent":[]}},{"type":"table","align":[null,null,null,null],"children":[{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"名称","position":{"start":{"line":152,"column":3,"offset":3824},"end":{"line":152,"column":5,"offset":3826},"indent":[]}}],"position":{"start":{"line":152,"column":3,"offset":3824},"end":{"line":152,"column":5,"offset":3826},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"含义","position":{"start":{"line":152,"column":8,"offset":3829},"end":{"line":152,"column":10,"offset":3831},"indent":[]}}],"position":{"start":{"line":152,"column":8,"offset":3829},"end":{"line":152,"column":10,"offset":3831},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"类型","position":{"start":{"line":152,"column":13,"offset":3834},"end":{"line":152,"column":15,"offset":3836},"indent":[]}}],"position":{"start":{"line":152,"column":13,"offset":3834},"end":{"line":152,"column":15,"offset":3836},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"备注","position":{"start":{"line":152,"column":18,"offset":3839},"end":{"line":152,"column":20,"offset":3841},"indent":[]}}],"position":{"start":{"line":152,"column":18,"offset":3839},"end":{"line":152,"column":20,"offset":3841},"indent":[]}}],"position":{"start":{"line":152,"column":1,"offset":3822},"end":{"line":152,"column":22,"offset":3843},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"show","position":{"start":{"line":154,"column":3,"offset":3872},"end":{"line":154,"column":7,"offset":3876},"indent":[]}}],"position":{"start":{"line":154,"column":3,"offset":3872},"end":{"line":154,"column":7,"offset":3876},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"是否显示icon","position":{"start":{"line":154,"column":10,"offset":3879},"end":{"line":154,"column":18,"offset":3887},"indent":[]}}],"position":{"start":{"line":154,"column":10,"offset":3879},"end":{"line":154,"column":18,"offset":3887},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Boolean","position":{"start":{"line":154,"column":21,"offset":3890},"end":{"line":154,"column":28,"offset":3897},"indent":[]}}],"position":{"start":{"line":154,"column":21,"offset":3890},"end":{"line":154,"column":28,"offset":3897},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为false,不显示","position":{"start":{"line":154,"column":31,"offset":3900},"end":{"line":154,"column":43,"offset":3912},"indent":[]}}],"position":{"start":{"line":154,"column":31,"offset":3900},"end":{"line":154,"column":43,"offset":3912},"indent":[]}}],"position":{"start":{"line":154,"column":1,"offset":3870},"end":{"line":154,"column":45,"offset":3914},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"width","position":{"start":{"line":155,"column":3,"offset":3917},"end":{"line":155,"column":8,"offset":3922},"indent":[]}}],"position":{"start":{"line":155,"column":3,"offset":3917},"end":{"line":155,"column":8,"offset":3922},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"icon的宽度","position":{"start":{"line":155,"column":11,"offset":3925},"end":{"line":155,"column":18,"offset":3932},"indent":[]}}],"position":{"start":{"line":155,"column":11,"offset":3925},"end":{"line":155,"column":18,"offset":3932},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Number","position":{"start":{"line":155,"column":21,"offset":3935},"end":{"line":155,"column":27,"offset":3941},"indent":[]}}],"position":{"start":{"line":155,"column":21,"offset":3935},"end":{"line":155,"column":27,"offset":3941},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为16","position":{"start":{"line":155,"column":30,"offset":3944},"end":{"line":155,"column":35,"offset":3949},"indent":[]}}],"position":{"start":{"line":155,"column":30,"offset":3944},"end":{"line":155,"column":35,"offset":3949},"indent":[]}}],"position":{"start":{"line":155,"column":1,"offset":3915},"end":{"line":155,"column":37,"offset":3951},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"height","position":{"start":{"line":156,"column":3,"offset":3954},"end":{"line":156,"column":9,"offset":3960},"indent":[]}}],"position":{"start":{"line":156,"column":3,"offset":3954},"end":{"line":156,"column":9,"offset":3960},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"icon的高度","position":{"start":{"line":156,"column":12,"offset":3963},"end":{"line":156,"column":19,"offset":3970},"indent":[]}}],"position":{"start":{"line":156,"column":12,"offset":3963},"end":{"line":156,"column":19,"offset":3970},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"Number","position":{"start":{"line":156,"column":22,"offset":3973},"end":{"line":156,"column":28,"offset":3979},"indent":[]}}],"position":{"start":{"line":156,"column":22,"offset":3973},"end":{"line":156,"column":28,"offset":3979},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"默认为16","position":{"start":{"line":156,"column":31,"offset":3982},"end":{"line":156,"column":36,"offset":3987},"indent":[]}}],"position":{"start":{"line":156,"column":31,"offset":3982},"end":{"line":156,"column":36,"offset":3987},"indent":[]}}],"position":{"start":{"line":156,"column":1,"offset":3952},"end":{"line":156,"column":38,"offset":3989},"indent":[]}},{"type":"tableRow","children":[{"type":"tableCell","children":[{"type":"text","value":"img","position":{"start":{"line":157,"column":3,"offset":3992},"end":{"line":157,"column":6,"offset":3995},"indent":[]}}],"position":{"start":{"line":157,"column":3,"offset":3992},"end":{"line":157,"column":6,"offset":3995},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"icon的地址","position":{"start":{"line":157,"column":9,"offset":3998},"end":{"line":157,"column":16,"offset":4005},"indent":[]}}],"position":{"start":{"line":157,"column":9,"offset":3998},"end":{"line":157,"column":16,"offset":4005},"indent":[]}},{"type":"tableCell","children":[{"type":"text","value":"String","position":{"start":{"line":157,"column":19,"offset":4008},"end":{"line":157,"column":25,"offset":4014},"indent":[]}}],"position":{"start":{"line":157,"column":19,"offset":4008},"end":{"line":157,"column":25,"offset":4014},"indent":[]}},{"type":"tableCell","children":[],"position":{"start":{"line":157,"column":29,"offset":4018},"end":{"line":157,"column":29,"offset":4018},"indent":[]}}],"position":{"start":{"line":157,"column":1,"offset":3990},"end":{"line":157,"column":30,"offset":4019},"indent":[]}}],"position":{"start":{"line":152,"column":1,"offset":3822},"end":{"line":157,"column":30,"offset":4019},"indent":[1,1,1,1,1]}},{"type":"paragraph","children":[{"type":"text","value":"基于上面 ","position":{"start":{"line":160,"column":1,"offset":4022},"end":{"line":160,"column":6,"offset":4027},"indent":[]}},{"type":"link","title":null,"url":"#样式属性-style","children":[{"type":"text","value":"样式属性 style","position":{"start":{"line":160,"column":7,"offset":4028},"end":{"line":160,"column":17,"offset":4038},"indent":[]}}],"position":{"start":{"line":160,"column":6,"offset":4027},"end":{"line":160,"column":31,"offset":4052},"indent":[]}},{"type":"text","value":" 中的代码,下面代码在 ","position":{"start":{"line":160,"column":31,"offset":4052},"end":{"line":160,"column":43,"offset":4064},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">defaultNode</code>","position":{"start":{"line":160,"column":43,"offset":4064},"end":{"line":160,"column":56,"offset":4077},"indent":[]}},{"type":"text","value":" 中增加了 ","position":{"start":{"line":160,"column":56,"offset":4077},"end":{"line":160,"column":62,"offset":4083},"indent":[]}},{"type":"html","value":"<code class=\"language-text\">icon</code>","position":{"start":{"line":160,"column":62,"offset":4083},"end":{"line":160,"column":68,"offset":4089},"indent":[]}},{"type":"text","value":" 配置项进行图标的配置,使之达到如下图效果。","position":{"start":{"line":160,"column":68,"offset":4089},"end":{"line":160,"column":90,"offset":4111},"indent":[]}},{"type":"html","value":"<br />","position":{"start":{"line":160,"column":90,"offset":4111},"end":{"line":160,"column":96,"offset":4117},"indent":[]}},{"type":"image","title":null,"url":"https://cdn.nlark.com/yuque/0/2019/png/156681/1570870258520-6ac80ec7-cc7d-49c3-bf01-93673d7c158d.png#align=left&display=inline&height=91&name=image.png&originHeight=182&originWidth=354&search=&size=46395&status=done&width=177","alt":"image.png","position":{"start":{"line":160,"column":96,"offset":4117},"end":{"line":160,"column":335,"offset":4356},"indent":[]}}],"position":{"start":{"line":160,"column":1,"offset":4022},"end":{"line":160,"column":335,"offset":4356},"indent":[]}},{"type":"html","lang":"javascript","meta":null,"value":"<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript\"><code class=\"language-javascript\"><span class=\"token keyword\">const</span> data <span class=\"token operator\">=</span> <span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// ... data 内容</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">const</span> graph <span class=\"token operator\">=</span> <span class=\"token keyword\">new</span> <span class=\"token class-name\">G6<span class=\"token punctuation\">.</span>Graph</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// ... 图的其他属性</span>\n defaultNode<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n <span class=\"token comment\">// ... 节点其他属性</span>\n icon<span class=\"token punctuation\">:</span> <span class=\"token punctuation\">{</span>\n show<span class=\"token punctuation\">:</span> <span class=\"token boolean\">true</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n <span class=\"token punctuation\">}</span><span class=\"token punctuation\">,</span>\n<span class=\"token punctuation\">}</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\n<span class=\"token comment\">// ...</span>\n</code></pre></div>","position":{"start":{"line":161,"column":1,"offset":4357},"end":{"line":175,"column":4,"offset":4539},"indent":[1,1,1,1,1,1,1,1,1,1,1,1,1,1]}}],"position":{"start":{"line":1,"column":1,"offset":0},"end":{"line":176,"column":1,"offset":4540}}}}