{"id":86356,"date":"2020-05-14T20:38:07","date_gmt":"2020-05-14T12:38:07","guid":{"rendered":"http:\/\/4563.org\/?p=86356"},"modified":"2020-05-14T20:38:07","modified_gmt":"2020-05-14T12:38:07","slug":"%e5%90%8e%e7%bb%ad%e4%b9%8b%e5%89%8d%e7%ab%8b%e7%9a%84%e5%86%99%e5%8d%95%e5%85%83%e6%b5%8b%e8%af%95-canvas-%e6%b8%b2%e6%9f%93%e6%a1%86%e6%9e%b6-flag%ef%bc%8c%e7%8e%b0%e5%9c%a8%e5%86%99%e5%ae%8c","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=86356","title":{"rendered":"[\u540e\u7eed]\u4e4b\u524d\u7acb\u7684\u5199\u5355\u5143\u6d4b\u8bd5 Canvas \u6e32\u67d3\u6846\u67b6 flag\uff0c\u73b0\u5728\u5199\u5b8c\u5f00\u6e90\u5206\u4eab\u5566"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  [\u540e\u7eed]\u4e4b\u524d\u7acb\u7684\u5199\u5355\u5143\u6d4b\u8bd5 Canvas \u6e32\u67d3\u6846\u67b6 flag\uff0c\u73b0\u5728\u5199\u5b8c\u5f00\u6e90\u5206\u4eab\u5566               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tyrealgray <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u524d\u5e16 https:\/\/www.v2ex.com\/t\/667731<\/p>\n<p>\u6846\u67b6\u5f00\u6e90\u5730\u5740 https:\/\/github.com\/TyrealGray\/Canvest<\/p>\n<p>\u524d\u5e16\u7684 demo \u5730\u5740\u6539\u4e86\uff0c\u76ee\u524d\u4e3a pixi.js \u7684\u6f14\u793a repo\uff0c\u6b22\u8fce\u5927\u4f6c\u5e2e\u52a9\u6d4b\u8bd5\u63d0\u4f9b\u66f4\u591a\u5176\u4ed6 canvas \u6e32\u67d3\u5e93\uff0c\u4f8b\u5982 three.js &#8230;<\/p>\n<p>\u5355\u5143\u6d4b\u8bd5 pixi.js \u793a\u4f8b repo: https:\/\/github.com\/TyrealGray\/canvest-pixi.js-example<\/p>\n<p>\u5177\u4f53\u4f7f\u7528\u65b9\u6cd5\u7b80\u5355\u56fe\u6587\u63cf\u8ff0<\/p>\n<p>\u4e3b\u8981\u529f\u80fd<\/p>\n<ul>\n<li>\u96f6\u914d\u7f6e\uff0c\u5b89\u88c5\u540e\u4e00\u884c\u547d\u4ee4\u542f\u52a8\u8dd1\u901a\u5355\u5143\u6d4b\u8bd5<\/li>\n<li>\u5185\u6838 mocha\uff0c\u6cbf\u7528 TDD\/BDD \u8bed\u6cd5<\/li>\n<li>\u542f\u52a8\u6d4f\u89c8\u5668\u5728\u771f\u5b9e\u7684\u5b9e\u9645 web \u73af\u5883\u4e0b\u6267\u884c\u5355\u5143\u6d4b\u8bd5\u5e76\u5bf9\u6bd4 canvas \u6e32\u67d3\u7ed3\u679c\uff0c\u771f\u6bd4\u5bf9\u50cf\u7d20<\/li>\n<li>\u7f13\u5b58\u5feb\u7167\u5230\u672c\u5730\u4fdd\u7559\uff0c\u5728\u6e32\u67d3\u51fa\u73b0\u610f\u5916\u65f6\u80fd\u591f\u63d0\u9192\u6bd4\u5bf9\u7ed3\u679c<\/li>\n<li>\u4e0d\u518d\u9700\u8981 mock \u5404\u79cd canvas DOM function \u548c window \u5bf9\u8c61\uff0c\u5e76\u4e14\u6bd4\u5bf9\u7684\u7ed3\u679c\u662f\u771f\u6b63\u7684\u50cf\u7d20\u6e32\u67d3\u6bd4\u5bf9\uff0c\u4e0d\u518d\u662f node.js \u7684 mock \u6570\u636e\u6bd4\u5bf9<\/li>\n<li>\u652f\u6301 typescirpt<\/li>\n<\/ul>\n<p>\u540e\u671f<\/p>\n<ul>\n<li>typescirpt \u6709\u4e9b\u8bed\u6cd5\u8fd8\u662f\u4f1a\u62a5\u9519\uff0c\u9700\u8981\u66f4\u591a\u6d4b\u8bd5<\/li>\n<li>headless browser \u652f\u6301\uff0ccli \u6253\u5370\u7ed3\u679c\u7136\u540e\u7ed3\u675f\u8fdb\u7a0b\uff0c\u8fbe\u5230 CI \u53cb\u597d<\/li>\n<li>and more &#8230;<\/li>\n<\/ul>\n<p>\u8be6\u7ec6\u4ecb\u7ecd\u8bf7\u770b\u9879\u76ee readme<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>2<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1490222\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : tyrealgray <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             8 \u5c0f\u65f6\u60e8\u6848\u554a\uff0cv \u53cb\u90fd\u6ca1\u6709\u5728\u4f7f\u7528 canvas \u65f6\u9700\u8981\u5355\u6d4b\u7684\u60c5\u51b5\u5417\uff1f\u5927\u5bb6\u662f\u600e\u4e48\u6d4b\u8bd5 canvas \u7684\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1490223\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : gz65555 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\uff0c\u8bd5\u8bd5\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>[\u540e\u7eed]\u4e4b\u524d\u7acb\u7684\u5199\u5355\u5143\u6d4b\u8bd5 Can&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/86356"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=86356"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/86356\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=86356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=86356"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=86356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}