4 Star 1 Fork 0

antv-g2/antv-g2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
docs__manual__extra-topics__pattern.zh.md.3de49048.async.js 5.58 KB
一键复制 编辑 原始数据 按行查看 历史
AntV 提交于 2024-01-16 09:55 . update by release action
(self.webpackChunk=self.webpackChunk||[]).push([[5474],{25380:function(e){function a(e){var a=new Error("Cannot find module '"+e+"'");throw a.code="MODULE_NOT_FOUND",a}a.keys=function(){return[]},a.resolve=a,a.id=25380,e.exports=a},89012:function(e,a,n){"use strict";n.r(a);n(2143),n(93359),n(19977),n(67754);var s=n(90978),t=(n(96057),n(72237),n(36930),n(85956)),l=(n(62435),n(86074));a.default=function(){var e=(0,t.eL)().texts;return(0,l.jsx)(t.dY,{children:(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"markdown",children:[(0,l.jsx)("p",{children:e[0].value}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:e[1].value}),(0,l.jsx)("li",{children:e[2].value}),(0,l.jsx)("li",{children:e[3].value})]}),(0,l.jsxs)("h2",{id:"使用内置纹理",children:[(0,l.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#使用内置纹理",children:(0,l.jsx)("span",{className:"icon icon-link"})}),"使用内置纹理"]}),(0,l.jsxs)("p",{children:[e[4].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#g-pattern",children:e[5].value}),e[6].value]}),(0,l.jsxs)("ul",{children:[(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#dots",children:e[7].value}),e[8].value]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#lines",children:e[9].value}),e[10].value]}),(0,l.jsxs)("li",{children:[(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#squares",children:e[11].value}),e[12].value]})]}),(0,l.jsx)("p",{children:e[13].value}),(0,l.jsx)(s.Z,{lang:"bash",children:e[14].value}),(0,l.jsxs)("p",{children:[e[15].value,(0,l.jsx)(t.rU,{to:"/zh/examples/theme/pattern#lines-pattern",children:e[16].value}),e[17].value]}),(0,l.jsxs)("ul",{children:[(0,l.jsxs)("li",{children:[e[18].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#lines",children:e[19].value}),e[20].value]}),(0,l.jsxs)("li",{children:[e[21].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#repetition",children:e[22].value}),e[23].value]}),(0,l.jsxs)("li",{children:[e[24].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#transform",children:e[25].value}),e[26].value]})]}),(0,l.jsx)(s.Z,{lang:"js",children:e[27].value}),(0,l.jsx)("p",{children:e[28].value}),(0,l.jsx)("img",{src:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*Pf4HQJPkQxYAAAAAAAAAAAAADmJ7AQ/original",alt:"built-in lines pattern",width:"400"}),(0,l.jsxs)("p",{children:[e[29].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#g-pattern",children:e[30].value}),e[31].value]}),(0,l.jsxs)("h2",{id:"使用-g-api-定义",children:[(0,l.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#使用-g-api-定义",children:(0,l.jsx)("span",{className:"icon icon-link"})}),"使用 G API 定义"]}),(0,l.jsxs)("p",{children:[e[32].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/guide/chapter1",children:e[33].value}),e[34].value]}),(0,l.jsxs)("p",{children:[e[35].value,(0,l.jsx)(t.rU,{to:"/zh/examples/theme/pattern/#custom-pattern-with-g-api",children:e[36].value}),e[37].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/builtin-objects/document",children:e[38].value}),e[39].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/builtin-objects/document#createelement",children:e[40].value}),e[41].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/basic/rect",children:e[42].value}),e[43].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/basic/path",children:e[44].value}),e[45].value]}),(0,l.jsx)(s.Z,{lang:"js",children:e[46].value}),(0,l.jsx)("p",{children:e[47].value}),(0,l.jsx)("img",{src:"https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*W33JRoaMGPoAAAAAAAAAAAAADmJ7AQ/original",alt:"custom pattern with G API",width:"400"}),(0,l.jsxs)("p",{children:[e[48].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#rect",children:e[49].value}),e[50].value]}),(0,l.jsxs)("h2",{id:"使用其它来源",children:[(0,l.jsx)("a",{"aria-hidden":"true",tabIndex:"-1",href:"#使用其它来源",children:(0,l.jsx)("span",{className:"icon icon-link"})}),"使用其它来源"]}),(0,l.jsxs)("p",{children:[e[51].value,(0,l.jsx)("a",{href:"https://g.antv.antgroup.com/api/css/pattern#image",children:e[52].value}),e[53].value]}),(0,l.jsxs)("ul",{children:[(0,l.jsxs)("li",{children:[e[54].value,(0,l.jsx)("code",{children:e[55].value})]}),(0,l.jsx)("li",{children:e[56].value}),(0,l.jsx)("li",{children:e[57].value}),(0,l.jsx)("li",{children:e[58].value})]}),(0,l.jsx)("p",{children:e[59].value}),(0,l.jsx)("img",{src:"https://gw.alipayobjects.com/mdn/rms_6ae20b/afts/img/A*cRmFTItZOtYAAAAAAAAAAAAAARQnAQ",alt:"other pattern source",width:"400"}),(0,l.jsxs)("p",{children:[e[60].value,(0,l.jsx)(t.rU,{to:"/zh/examples/theme/pattern/#custom-pattern-with-canvas",children:e[61].value}),e[62].value,(0,l.jsx)("code",{children:e[63].value}),e[64].value,(0,l.jsx)("a",{href:"https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API",children:e[65].value}),e[66].value]}),(0,l.jsx)(s.Z,{lang:"js",children:e[67].value}),(0,l.jsxs)("p",{children:[e[68].value,(0,l.jsx)("a",{href:"https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API",children:e[69].value}),e[70].value]})]})})})}},47407:function(e,a,n){"use strict";n.d(a,{T:function(){return s.T}});var s=n(3930)},56184:function(e,a,n){"use strict";n.d(a,{p:function(){return s.p}});var s=n(66480)},62207:function(e,a,n){"use strict";n.d(a,{G:function(){return s.G}});var s=n(1834)},71362:function(e,a,n){"use strict";n.d(a,{S:function(){return s.S}});var s=n(49681)},96677:function(e,a,n){"use strict";n.d(a,{g:function(){return s.g}});var s=n(49825)}}]);
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/antv-g2/antv-g2.git
git@gitee.com:antv-g2/antv-g2.git
antv-g2
antv-g2
antv-g2
gh-pages

搜索帮助

Cb406eda 1850385 E526c682 1850385