-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocs__api__Group.zh.md.858b267b.async.js
1 lines (1 loc) · 16.3 KB
/
docs__api__Group.zh.md.858b267b.async.js
1
(self.webpackChunk_antv_g6_site=self.webpackChunk_antv_g6_site||[]).push([[7104],{79858:function(e){function l(e){var l=new Error("Cannot find module '"+e+"'");throw l.code="MODULE_NOT_FOUND",l}l.keys=function(){return[]},l.resolve=l,l.id=79858,e.exports=l},3930:function(e,l,d){"use strict";d.r(l);d(90349),d(72411),d(49434),d(37262);var s=d(74993),r=d(82480),n=(d(35246),d(80057),d(39302)),i=(d(44194),d(31549));l.default=function(){var e=(0,n.eL)().texts;return(0,i.jsx)(n.dY,{children:(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"markdown",children:[(0,i.jsxs)("p",{children:[e[0].value,(0,i.jsxs)("a",{href:"https://developer.mozilla.org/zh-CN/docs/Web/SVG/Element/g",target:"_blank",children:[e[1].value,(0,i.jsx)("code",{children:e[2].value}),e[3].value]}),e[4].value,(0,i.jsx)(n.rU,{to:"/zh/docs/manual/middle/elements/shape/graphics-group",children:e[5].value}),e[6].value]}),(0,i.jsxs)("h2",{id:"获取元素的-group",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#获取元素的-group",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"获取元素的 group"]}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[7].value}),(0,i.jsxs)("h2",{id:"group-实例方法",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#group-实例方法",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group 实例方法"]}),(0,i.jsxs)("h3",{id:"groupaddgroupcfg",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupaddgroupcfg",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.addGroup(cfg)"]}),(0,i.jsx)("p",{children:e[8].value}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[9].value})}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[10].value}),(0,i.jsx)("th",{children:e[11].value}),(0,i.jsx)("th",{children:e[12].value})]})}),(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[13].value}),(0,i.jsx)("td",{children:e[14].value}),(0,i.jsx)("td",{children:e[15].value})]})})]}),(0,i.jsxs)("p",{children:[e[16].value,(0,i.jsx)("code",{children:e[17].value}),e[18].value]}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[19].value}),(0,i.jsx)("th",{children:e[20].value}),(0,i.jsx)("th",{children:e[21].value})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[22].value}),(0,i.jsx)("td",{children:e[23].value}),(0,i.jsx)("td",{children:e[24].value})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[25].value}),(0,i.jsx)("td",{children:e[26].value}),(0,i.jsxs)("td",{children:[e[27].value,(0,i.jsx)("strong",{children:e[28].value}),e[29].value,(0,i.jsx)("code",{children:e[30].value}),e[31].value,(0,i.jsx)("code",{children:e[32].value}),e[33].value,(0,i.jsx)(n.rU,{to:"#findfn",children:e[34].value})]})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[35].value}),(0,i.jsx)("td",{children:e[36].value}),(0,i.jsx)("td",{children:e[37].value})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[38].value}),(0,i.jsx)("td",{children:e[39].value}),(0,i.jsxs)("td",{children:[e[40].value,(0,i.jsx)("code",{children:e[41].value})]})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[42].value}),(0,i.jsx)("td",{children:e[43].value}),(0,i.jsxs)("td",{children:[e[44].value,(0,i.jsx)("code",{children:e[45].value}),e[46].value,(0,i.jsx)("code",{children:e[47].value}),e[48].value,(0,i.jsx)("code",{children:e[49].value}),e[50].value,(0,i.jsx)("code",{children:e[51].value}),e[52].value,(0,i.jsx)("code",{children:e[53].value}),e[54].value,(0,i.jsx)("code",{children:e[55].value}),e[56].value,(0,i.jsx)("code",{children:e[57].value}),e[58].value,(0,i.jsx)("code",{children:e[59].value}),e[60].value]})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[61].value}),(0,i.jsx)("td",{children:e[62].value}),(0,i.jsxs)("td",{children:[e[63].value,(0,i.jsx)("code",{children:e[64].value}),e[65].value]})]})]})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[66].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[67].value}),(0,i.jsxs)("h3",{id:"groupaddshapetype-cfgs",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupaddshapetype-cfgs",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.addShape(type, cfgs)"]}),(0,i.jsxs)("p",{children:[e[68].value,(0,i.jsx)("br",{}),(0,i.jsx)("span",{style:{backgroundColor:"rgb(251, 233, 231)",color:"rgb(139, 53, 56)"},children:(0,i.jsx)("strong",{children:e[69].value})}),e[70].value,(0,i.jsx)(n.rU,{to:"/zh/docs/manual/middle/elements/shape/shape-keyshape",children:e[71].value}),e[72].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[73].value})}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[74].value}),(0,i.jsx)("th",{children:e[75].value}),(0,i.jsx)("th",{children:e[76].value})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[77].value}),(0,i.jsx)("td",{children:e[78].value}),(0,i.jsxs)("td",{children:[e[79].value,(0,i.jsx)("code",{children:e[80].value}),e[81].value,(0,i.jsx)("code",{children:e[82].value}),e[83].value,(0,i.jsx)("code",{children:e[84].value}),e[85].value,(0,i.jsx)("code",{children:e[86].value}),e[87].value,(0,i.jsx)("code",{children:e[88].value}),e[89].value,(0,i.jsx)("code",{children:e[90].value}),e[91].value,(0,i.jsx)(n.rU,{to:"/zh/docs/manual/middle/elements/shape/shape-and-properties",children:e[92].value}),e[93].value]})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[94].value}),(0,i.jsx)("td",{children:e[95].value}),(0,i.jsx)("td",{children:e[96].value})]})]})]}),(0,i.jsxs)("p",{children:[e[97].value,(0,i.jsx)("code",{children:e[98].value}),e[99].value]}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[100].value}),(0,i.jsx)("th",{children:e[101].value}),(0,i.jsx)("th",{children:e[102].value})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[103].value}),(0,i.jsx)("td",{children:e[104].value}),(0,i.jsxs)("td",{children:[e[105].value,(0,i.jsx)("code",{children:e[106].value})]})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[107].value}),(0,i.jsx)("td",{children:e[108].value}),(0,i.jsxs)("td",{children:[e[109].value,(0,i.jsx)("strong",{children:e[110].value}),e[111].value,(0,i.jsx)("code",{children:e[112].value}),e[113].value,(0,i.jsx)("code",{children:e[114].value}),e[115].value,(0,i.jsx)(n.rU,{to:"#findfn",children:e[116].value})]})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[117].value}),(0,i.jsx)("td",{children:e[118].value}),(0,i.jsx)("td",{children:e[119].value})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[120].value}),(0,i.jsx)("td",{children:e[121].value}),(0,i.jsxs)("td",{children:[e[122].value,(0,i.jsx)("code",{children:e[123].value})]})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[124].value}),(0,i.jsx)("td",{children:e[125].value}),(0,i.jsxs)("td",{children:[e[126].value,(0,i.jsx)("code",{children:e[127].value}),e[128].value,(0,i.jsx)("code",{children:e[129].value}),e[130].value,(0,i.jsx)("code",{children:e[131].value}),e[132].value,(0,i.jsx)("code",{children:e[133].value}),e[134].value,(0,i.jsx)("code",{children:e[135].value}),e[136].value,(0,i.jsx)("code",{children:e[137].value}),e[138].value,(0,i.jsx)("code",{children:e[139].value}),e[140].value,(0,i.jsx)("code",{children:e[141].value}),e[142].value]})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[143].value}),(0,i.jsx)("td",{children:e[144].value}),(0,i.jsxs)("td",{children:[e[145].value,(0,i.jsx)("code",{children:e[146].value}),e[147].value]})]})]})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[148].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[149].value}),(0,i.jsxs)("h3",{id:"groupcontainchild",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupcontainchild",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.contain(child)"]}),(0,i.jsxs)("p",{children:[e[150].value,(0,i.jsx)("br",{}),e[151].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[152].value})}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[153].value}),(0,i.jsx)("th",{children:e[154].value}),(0,i.jsx)("th",{children:e[155].value})]})}),(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[156].value}),(0,i.jsx)("td",{children:e[157].value}),(0,i.jsx)("td",{children:e[158].value})]})})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[159].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[160].value}),(0,i.jsxs)("h3",{id:"groupfindfn",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupfindfn",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.find(fn)"]}),(0,i.jsxs)("p",{children:[e[161].value,(0,i.jsx)("strong",{children:e[162].value}),e[163].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[164].value})}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[165].value}),(0,i.jsx)("th",{children:e[166].value}),(0,i.jsx)("th",{children:e[167].value})]})}),(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[168].value}),(0,i.jsx)("td",{children:e[169].value}),(0,i.jsx)("td",{children:e[170].value})]})})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[171].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[172].value}),(0,i.jsxs)("h3",{id:"groupfindbyidid",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupfindbyidid",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.findById(id)"]}),(0,i.jsxs)("p",{children:[e[173].value,(0,i.jsx)("br",{}),e[174].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[175].value})}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[176].value}),(0,i.jsx)("th",{children:e[177].value}),(0,i.jsx)("th",{children:e[178].value})]})}),(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[179].value}),(0,i.jsx)("td",{children:e[180].value}),(0,i.jsx)("td",{children:e[181].value})]})})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[182].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[183].value}),(0,i.jsxs)("h3",{id:"groupfindallfn",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupfindallfn",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.findAll(fn)"]}),(0,i.jsxs)("p",{children:[e[184].value,(0,i.jsx)("br",{}),e[185].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[186].value})}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[187].value}),(0,i.jsx)("th",{children:e[188].value}),(0,i.jsx)("th",{children:e[189].value})]})}),(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[190].value}),(0,i.jsx)("td",{children:e[191].value}),(0,i.jsx)("td",{children:e[192].value})]})})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[193].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[194].value}),(0,i.jsxs)("h3",{id:"groupgetshapexy",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupgetshapexy",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.getShape(x,y)"]}),(0,i.jsxs)("p",{children:[e[195].value,(0,i.jsx)("br",{}),e[196].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[197].value})}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[198].value}),(0,i.jsx)("th",{children:e[199].value}),(0,i.jsx)("th",{children:e[200].value})]})}),(0,i.jsxs)("tbody",{children:[(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[201].value}),(0,i.jsx)("td",{children:e[202].value}),(0,i.jsx)("td",{children:e[203].value})]}),(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[204].value}),(0,i.jsx)("td",{children:e[205].value}),(0,i.jsx)("td",{children:e[206].value})]})]})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[207].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[208].value}),(0,i.jsxs)("h3",{id:"groupgetfirst",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupgetfirst",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.getFirst()"]}),(0,i.jsxs)("p",{children:[e[209].value,(0,i.jsx)("br",{}),e[210].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[211].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[212].value}),(0,i.jsxs)("h3",{id:"groupgetlast",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupgetlast",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.getLast()"]}),(0,i.jsxs)("p",{children:[e[213].value,(0,i.jsx)("br",{}),e[214].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[215].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[216].value}),(0,i.jsxs)("h3",{id:"groupgetchildbyindexindex",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupgetchildbyindexindex",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.getChildByIndex(index)"]}),(0,i.jsxs)("p",{children:[e[217].value,(0,i.jsx)("code",{children:e[218].value}),e[219].value,(0,i.jsx)("code",{children:e[220].value}),e[221].value,(0,i.jsx)("br",{}),e[222].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[223].value})}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[224].value}),(0,i.jsx)("th",{children:e[225].value}),(0,i.jsx)("th",{children:e[226].value})]})}),(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[227].value}),(0,i.jsx)("td",{children:e[228].value}),(0,i.jsxs)("td",{children:[e[229].value,(0,i.jsx)("code",{children:e[230].value})]})]})})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[231].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[232].value}),(0,i.jsxs)("h3",{id:"groupremovechildchild",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupremovechildchild",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.removeChild(child)"]}),(0,i.jsx)("p",{children:e[233].value}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[234].value})}),(0,i.jsxs)(r.Z,{children:[(0,i.jsx)("thead",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("th",{children:e[235].value}),(0,i.jsx)("th",{children:e[236].value}),(0,i.jsx)("th",{children:e[237].value})]})}),(0,i.jsx)("tbody",{children:(0,i.jsxs)("tr",{children:[(0,i.jsx)("td",{children:e[238].value}),(0,i.jsx)("td",{children:e[239].value}),(0,i.jsx)("td",{children:e[240].value})]})})]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[241].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[242].value}),(0,i.jsxs)("h3",{id:"groupsort",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupsort",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.sort()"]}),(0,i.jsxs)("p",{children:[e[243].value,(0,i.jsx)("br",{}),e[244].value]}),(0,i.jsxs)("p",{children:[e[245].value,(0,i.jsx)("code",{children:e[246].value}),e[247].value,(0,i.jsx)("code",{children:e[248].value}),e[249].value,(0,i.jsx)("code",{children:e[250].value}),e[251].value,(0,i.jsx)("code",{children:e[252].value}),e[253].value,(0,i.jsx)("code",{children:e[254].value}),e[255].value,(0,i.jsx)("code",{children:e[256].value}),e[257].value]}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[258].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[259].value}),(0,i.jsxs)("h3",{id:"groupclear",children:[(0,i.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#groupclear",children:(0,i.jsx)("span",{className:"icon icon-link"})}),"group.clear()"]}),(0,i.jsx)("p",{children:e[260].value}),(0,i.jsx)("p",{children:(0,i.jsx)("strong",{children:e[261].value})}),(0,i.jsx)(s.Z,{lang:"javascript",children:e[262].value})]})})})}},50069:function(e,l,d){"use strict";d.d(l,{T:function(){return s.T}});var s=d(71839)},98655:function(e,l,d){"use strict";d.d(l,{p:function(){return s.p}});var s=d(16347)},83402:function(e,l,d){"use strict";d.d(l,{G:function(){return s.G}});var s=d(81258)},66628:function(e,l,d){"use strict";d.d(l,{S:function(){return s.S}});var s=d(81178)},16810:function(e,l,d){"use strict";d.d(l,{g:function(){return s.g}});var s=d(87623)}}]);