{"name":"@antv/g-camera-api","version":"2.0.35","description":"A simple implementation of Camera API.","keywords":["antv","g","rendering engine"],"homepage":"https://github.com/antvis/g#readme","bugs":{"url":"https://github.com/antvis/g/issues"},"repository":{"type":"git","url":"git+https://github.com/antvis/g.git","directory":"packages/g-camera-api"},"license":"MIT","author":{"name":"https://github.com/orgs/antvis/people"},"sideEffects":true,"exports":{"types":"./types/index.d.ts","import":"./dist/index.esm.js","default":"./dist/index.js"},"main":"dist/index.js","unpkg":"dist/index.umd.min.js","module":"dist/index.esm.js","types":"types/index.d.ts","dependencies":{"@antv/util":"^3.3.5","@babel/runtime":"^7.25.6","gl-matrix":"^3.4.3","tslib":"^2.5.3","@antv/g-lite":"2.2.16"},"publishConfig":{"access":"public"},"scripts":{"build:types":"tsc --emitDeclarationOnly --noCheck","build":"npm run clean && npm run build:types && rollup -c","clean":"rimraf dist","sync":"tnpm sync","watch":"rollup -c -w"},"_id":"@antv/g-camera-api@2.0.35","_integrity":"sha512-z4WKmB6yN2fFi9EnapjuHbFVF0ilhMrWo2eZCxYXcb0dV5MiflU/WZi/bjs4WqVMJPNtYKx+yZhTyROncEiglw==","_resolved":"/tmp/5a469cbf12c5c46306321b9b0a5580ad/antv-g-camera-api-2.0.35.tgz","_from":"file:antv-g-camera-api-2.0.35.tgz","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-z4WKmB6yN2fFi9EnapjuHbFVF0ilhMrWo2eZCxYXcb0dV5MiflU/WZi/bjs4WqVMJPNtYKx+yZhTyROncEiglw==","shasum":"0c8f5824f4525b2fed9941170aa9e668b9c5734f","tarball":"http://registry-npm.ywwl.com/@antv/g-camera-api/download/@antv/g-camera-api-2.0.35.tgz","fileCount":13,"unpackedSize":1241723,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEJFPHy3QI/+0Tgpz1PKc1K2s1wTGL9vLUV5eaQVMflGAiB1++s5POoFQnwkpOrZYXW48JAuDbdZon7onxEmi393mg=="}],"size":279927,"noattachment":false,"key":"/@antv/g-camera-api/-/@antv/g-camera-api-2.0.35.tgz"},"_npmUser":{"name":"iaaron","email":"943720372@qq.com"},"directories":{},"maintainers":[{"name":"lvisei","email":"yunji.me@outlook.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":"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":"jinke.li666@gmail.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_private@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"},{"name":"laixingui.lxg","email":"laixingui.lxg@alibaba-inc.com"},{"name":"susiwen8","email":"susiwen8@gmail.com"},{"name":"yanxiong","email":"ojh496845051@gmail.com"},{"name":"zeyuwang","email":"zywangx@gmail.com"},{"name":"rainy25ghz","email":"1748420480@qq.com"},{"name":"zhangjunjie-loki","email":"zhangjunjie0730@163.com"},{"name":"flash1","email":"2523863783@qq.com"},{"name":"yisi.wang","email":"aptx.wang@gmail.com"},{"name":"dreammy23","email":"caomengyuan2015@163.com"},{"name":"biupiubiupiu","email":"lcx.seima@gmail.com"},{"name":"basketduck","email":"hiphone96@gmail.com"},{"name":"xuying1027","email":"370064808@qq.com"},{"name":"banxuan","email":"zhuyuxin0627@gmail.com"},{"name":"bqxbqxbqx","email":"boqingxin14@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/g-camera-api_2.0.35_1737621411247_0.6365283745708541"},"_hasShrinkwrap":false,"readme":"English | [简体中文](./README-zh_CN.md)\n\nProvides advanced camera features, including full camera movements and animations.\n\n### Usage\n\nIt's already built-in in `@antv/g`, with the lite version to use the following way：\n\n```js\nimport '@antv/g-lite';\nimport '@antv/g-camera-api';\n```\n\nThe camera can then be retrieved from the canvas to perform the camera action.\n\n```js\nconst camera = canvas.getCamera();\ncamera.pan(100, 20);\n```\n\n### API\n\n#### Action\n\nThe camera's three axes in the camera coordinate system are uvn, and the camera action is actually moving and rotating along these three axes.\n\nhttps://g-next.antv.vision/en/docs/api/camera#camera-action\n\n#### Animation\n\nWe can record the current position and viewpoint of the camera and save it as a Landmark, and then when the camera parameters change, we can switch to any of the previously saved Landmark at any time, with a smooth switching animation, similar to the camera pendulum on a real set, also called flyTo in some applications.\n\nhttps://g-next.antv.vision/en/docs/api/camera#camera-animation\n","publish_time":1737621411407,"_cnpm_publish_time":1737621411407,"dist-tags":{"alpha":"2.0.14-alpha.0","beta":"2.0.42-beta.0","latest":"2.0.45","next":"2.0.13"}}