{"name":"@antv/g-compat","version":"1.0.2","keywords":["antv","g","rendering engine"],"author":{"name":"https://github.com/orgs/antvis/people"},"license":"MIT","_id":"@antv/g-compat@1.0.2","maintainers":[{"name":"flash1","email":"2523863783@qq.com"},{"name":"dreammy23","email":"caomengyuan2015@163.com"},{"name":"laixingui.lxg","email":"laixingui.lxg@alibaba-inc.com"},{"name":"zhangjunjie-loki","email":"zhangjunjie0730@163.com"},{"name":"rainy25ghz","email":"1748420480@qq.com"},{"name":"zeyuwang","email":"zywangx@gmail.com"},{"name":"yanxiong","email":"496845051@qq.com"},{"name":"susiwen8","email":"susiwen8@gmail.com"},{"name":"freestyle21","email":"675861708@qq.com"},{"name":"soundquiet","email":"fulingsun515@gmail.com"},{"name":"elaine.q.10","email":"yilin.qyl@antfin.com"},{"name":"sturuby","email":"xingya.shi@gmail.com"},{"name":"lviser","email":"liuvigongzuoshi@gmail.com"},{"name":"sakuya223","email":"360965398@qq.com"},{"name":"serializedowen","email":"wjh199455@gmail.com"},{"name":"xdzhao","email":"zhaoxiaodong@zju.edu.cn"},{"name":"yangzhanmei","email":"15809244435@163.com"},{"name":"wjgogogo","email":"906626481@qq.com"},{"name":"leungwensen","email":"leungwensen@gmail.com"},{"name":"dori","email":"418466938@qq.com"},{"name":"iaaron","email":"943720372@qq.com"},{"name":"yard","email":"zjwengyidong@outlook.com"},{"name":"simaq","email":"sima.zhang1990@gmail.com"},{"name":"dxq613","email":"dxq613@gmail.com"},{"name":"intchous","email":"h.a.p.p.y.y.x.d@163.com"},{"name":"susan_ann","email":"lisuwe_n@163.com"},{"name":"jinke.li","email":"1359518268@qq.com"},{"name":"lzxue","email":"120635640@qq.com"},{"name":"army8735","email":"army8735@qq.com"},{"name":"atool","email":"i@hust.cc"},{"name":"baizn","email":"576375879@qq.com"},{"name":"dengfuping","email":"dengfuping_develop@163.com"},{"name":"neoddish","email":"neoddish@outlook.com"},{"name":"jeffy2012","email":"yuanjiefeng@gmail.com"},{"name":"zqlu","email":"zqlu.cn@gmail.com"},{"name":"afc163","email":"afc163@gmail.com"},{"name":"pomelo-nwu","email":"czynwu@gmail.com"},{"name":"kopiluwaky","email":"yanyanwang93@gmail.com"},{"name":"ccnuzindex","email":"ccnuzindex@gmail.com"},{"name":"panyuqi","email":"pyqiverson@gmail.com"},{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},{"name":"zengyue","email":"yezengyue@gmail.com"},{"name":"kasmine","email":"736929286@qq.com"},{"name":"boyu.zlj","email":"boyu.zlj@antfin.com"},{"name":"l1ud0ngq1","email":"lliudongqi@gmail.com"},{"name":"newbyvector","email":"vectorse@126.com"},{"name":"winniexing","email":"wanyingxing@gmail.com"},{"name":"chenluli","email":"chenluuli@gmail.com"},{"name":"kn9117","email":"1175863618@qq.com"},{"name":"xdddst","email":"deng25st@163.com"},{"name":"semious2020","email":"semious@163.com"},{"name":"esora","email":"tygyh2012@gmail.com"},{"name":"nadia_liu","email":"1803275951@qq.com"},{"name":"bbsqq","email":"1491812683@qq.com"},{"name":"mxz96102","email":"mxz96102@qq.com"},{"name":"openwayne","email":"openwayne@gmail.com"},{"name":"pearmini","email":"subairui@icloud.com"},{"name":"pddpd","email":"pddpengdi@gmail.com"},{"name":"yiqianyao","email":"2912401452@qq.com"},{"name":"zhanba","email":"c5e1856@gmail.com"},{"name":"cxxxxxn","email":"christy05.chen@gmail.com"}],"homepage":"https://github.com/antvis/g#readme","bugs":{"url":"https://github.com/antvis/g/issues"},"dist":{"shasum":"728ca4ca45798c7d01e3b213cee00ae4706765cf","tarball":"http://registry-npm.ywwl.com/@antv/g-compat/download/@antv/g-compat-1.0.2.tgz","fileCount":9,"integrity":"sha512-yXPUBFzAhpbm9TLPA4WWYgG8SVfDcqhy87pwdGJ4J72vO4TYV+pvyatrtrFQMwI5w2D2lMO6E8SEAa2xYQa31Q==","signatures":[{"sig":"MEUCIHhfVbjS1cKhLKwpeqCCke6t6Y7nPItRHuqQ2O9fu5LvAiEAyGXIdRIe4nTk8s57BvTflRFwiUp4aL4XpZ/7UOzvJxo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIrMGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7Wg//csRxfg4bBEtGPvNu57UjEttDfMPiZN9CshbjerbuExrhyjkP\r\nOxIRdclqoPiWTese4Aiq1uTKfQlRs3/8sgeUfZPvAJn22ym5igM3xyjBGiH+\r\nWafFAOFWnumgHVYo8onTHbbzV2aboweiW2OsVb2gLiksgcp7eY/gXhLE2uH1\r\nZn1h/xP8bPeUYhlNVFUSFtV1OXPJcuHNA5UTBzFFPqNEdvjVTdYCEX80jIXm\r\nVfqpT3Gfpf/myDD6bYz3gCa+ivAqksDhYOORqIYFnVuVPtQX08Zi+FcDn/8S\r\nPv8GQpLQRLl03PFw3/SMFsBugcuUkBb5Lp0+MY0nsPGsZzOFJtyfb6msyfFU\r\nuOOWlPQgs0y4iAy1K/r69o390Td92mfLD2RXpNUZROn6JxRc9WYcALrrWuez\r\nkL5JQBFICrRauSWNJpt+6Is6T7RjmDnDpr6MyKDV5/JImpowH2zR7+FMDida\r\nrj3eYdH+8sxI5hHg8+ZFdZXfrp9bFtWBI2423Lc3wOlfr8OsrorXfxZLtQni\r\nIH/UA4fyCVkyG32yYkfHHawNhg3bMpOVfcw4ZcqDelDNlw0TtNRY83WkJHWt\r\natj2BphjAkaraHvJQO5XdWYZWeMMW4EshKwkWW/NB0TSTMw2/FySuMn1SZ/g\r\naZmfvSe7L0gIOD7swtbs7EVP+qQ0Mqvybes=\r\n=y1v+\r\n-----END PGP SIGNATURE-----\r\n","size":3241,"noattachment":false,"key":"/@antv/g-compat/-/@antv/g-compat-1.0.2.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","unpkg":"dist/index.umd.min.js","module":"dist/index.esm.js","gitHead":"faf4a1c97d2ecab0409ae12c9a8235d355877efe","_npmUser":{"name":"panyuqi","email":"pyqiverson@gmail.com"},"repository":{"url":"git+https://github.com/antvis/g.git","type":"git"},"_npmVersion":"lerna/3.22.1/node@v14.18.0+x64 (darwin)","description":"The migration build which provides some compatible API for G 4.0.","directories":{},"sideEffects":false,"_nodeVersion":"14.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@antv/g-lite":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/g-compat_1.0.2_1663218438594_0.8063691337221437","host":"s3://npm-registry-packages"},"readme":"English | [简体中文](./README-zh_CN.md)\n\nProvides partial G 4.0 compatible APIs, e.g.\n\n```js\n// 4.0\ncircle.getCount();\n\n// Equivalent to DOM API\ncircle.childElementCount;\n```\n\nPackage name inspired by `@vue/compat`.\n\nhttps://v3-migration.vuejs.org/migration-build.html\n\n### Deprecated API\n\nThe following APIs provided in G 4.0 can be replaced by the corresponding DOM APIs in the new version.\n\n#### getCount\n\nGet the number of child nodes.\n\n```js\ncircle.getCount(); // [0]\n\n// Equivalent to\ncircle.childElementCount; // [0]\n```\n\n#### getParent\n\nGet the parent node.\n\n```js\ncircle.getParent();\n\n// Equivalent to\ncircle.parentElement;\n```\n\n### getChildren\n\nGet the list of child nodes.\n\n```js\ncircle.getChildren();\n\n// Equivalent to\ncircle.children;\n```\n\n### getFirst\n\nGet the first child node.\n\n```js\ncircle.getFirst();\n\n// Equivalent to\ncircle.firstElementChild;\n```\n\n### getLast\n\nGet the last child node.\n\n```js\ncircle.getLast();\n\n// Equivalent to\ncircle.lastElementChild;\n```\n\n### getChildByIndex\n\nGet child nodes by index.\n\n```js\ncircle.getChildByIndex(index);\n\n// Equivalent to\ncircle.children[index];\n```\n\n### add\n\nAdd child nodes.\n\n```js\nparent.add(child);\n\n// Equivalent to\nparent.appendChild(child);\n```\n\n### setClip\n\nSet the cropped graphics.\n\n```js\ncircle.setClip(clipPath);\n\n// Equivalent to\ncircle.style.clipPath = clipPath;\n```\n\n### getClip\n\nGet cropped graphics.\n\n```js\ncircle.getClip();\n\n// Equivalent to\ncircle.style.clipPath;\n```\n\n### set\n\nSet in the initialization configuration.\n\n```js\ncircle.set('my-prop', 1);\n\n// Equivalent to\ncircle.config['my-prop'] = 1;\n```\n\n### get\n\nObtain in the initialization configuration.\n\n```js\ncircle.get('my-prop');\n\n// Equivalent to\ncircle.config['my-prop'];\n```\n\n### show\n\nShow node.\n\n```js\ncircle.show();\n\n// Equivalent to\ncircle.style.visibility = 'visible';\n```\n\n### hide\n\nHide node.\n\n```js\ncircle.hide();\n\n// Equivalent to\ncircle.style.visibility = 'hidden';\n```\n\n### moveTo / move\n\nMoving node in the world coordinate system.\n\n```js\ncircle.moveTo(x, y, z);\ncircle.move(x, y, z);\n\n// Equivalent to\ncircle.setPosition(x, y, z);\n```\n\n### setZIndex\n\nSet the `zIndex` of node：\n\n```js\ncircle.setZIndex(100);\n\n// Equivalent to\ncircle.style.zIndex = 100;\n```\n","publish_time":1663218438763,"_cnpm_publish_time":1663218438763,"dist-tags":{"latest":"1.0.11"}}