{"name":"@antv/g-compat","version":"1.0.9","keywords":["antv","g","rendering engine"],"author":{"name":"https://github.com/orgs/antvis/people"},"license":"MIT","_id":"@antv/g-compat@1.0.9","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":"c2f2b19c6fa3fd2c66c7bdbdafe3b035a29ccc05","tarball":"http://registry-npm.ywwl.com/@antv/g-compat/download/@antv/g-compat-1.0.9.tgz","fileCount":9,"integrity":"sha512-uc1tzGyzWXofXku6C5HoxD9XIlBLGQonEsNXlyaju9x1yQndIRrMfyIG2R9JU3wiaIZ4Nvg/+zDQgPFlDxWnnQ==","signatures":[{"sig":"MEYCIQDgXFsllTZO2KGkctRjRZV0/IbRjIFX1KvvAF0MceJKyAIhAKr6dEhEahja6LQMloMfsiLK0TRAhHnDjcy94hb/MvRU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11423,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRTiXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPAQ/+Pcyhi5rCv/HW8nOD4rfkYgvmnmhwsXow6bY8CrfOWhdkM1H/\r\noRkEpZKkSBN+v23y5A5O01U2W0GH5lSnWohMmmJ3fPMSx6X7I/F+EV13wyFO\r\n1kff5jraGmZUDqraN1+47YQVLIena/EDNJciBSYQNjdkmn6r8QoXvY6r76mF\r\nQnzEzXTxESXH+WZTAkaP9Rw4QnJeBqZp8A/CkHrDIIQRwlO//99joCGynHbx\r\nG6LyhStZTS/ePzrFqf1nP0flqPEb/LyIDGFj3ye8btgFI0WtLsaGwiR91uj2\r\nKLUgnoy/Fth1/FLzGPt6e9RLhM/TgMadnZVSfSedOnO2SW0rOC7r2OjaGb6h\r\nbv1UVLoqLP1DNVIClE69uEmbgJnpCGK/z9/gSd/UgwYLsUhzaEqD8WUu/zVx\r\nDgOJIa9T5P/UjM1GXjEi3UDaDiu8yGa8GLtumS1g7GnPJddhzFFoepeLgWTO\r\n++ku3QjWrJLZjdFW9yo6/xfvfl0Qly4Uqk2vKB78EYCkMdc4+nAMfi9J9wOG\r\nWvEmyaESbQ7W7lMBprBUknTCAKFt2qKpxLRwJByE/eZjqMmNhDqwDiYVqTmM\r\neIuy3sZ3aAxfc/tMMx3jwfk/f+cWeqhinJM31uDbJ10jSUOi5hQyt5Br+smZ\r\ntoVP35+HykTS7Ie3pbWbEVt8Z3Y9nKtlXmQ=\r\n=KNQl\r\n-----END PGP SIGNATURE-----\r\n","size":3162,"noattachment":false,"key":"/@antv/g-compat/-/@antv/g-compat-1.0.9.tgz"},"main":"dist/index.js","types":"dist/index.d.ts","unpkg":"dist/index.umd.min.js","module":"dist/index.esm.js","gitHead":"0475e6c71d65b5d7214e6f2053d46e2670f8192b","_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":true,"_nodeVersion":"14.18.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"peerDependencies":{"@antv/g-lite":"^1.0.0"},"_npmOperationalInternal":{"tmp":"tmp/g-compat_1.0.9_1665480855474_0.8041098991920073","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":1665480855639,"_cnpm_publish_time":1665480855639,"dist-tags":{"latest":"1.0.11"}}