{"action":"closed","issue":{"url":"https://api.github.com/repos/chemzqm/wept/issues/40","repository_url":"https://api.github.com/repos/chemzqm/wept","labels_url":"https://api.github.com/repos/chemzqm/wept/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/chemzqm/wept/issues/40/comments","events_url":"https://api.github.com/repos/chemzqm/wept/issues/40/events","html_url":"https://github.com/chemzqm/wept/issues/40","id":187651706,"number":40,"title":"关于绘图问题","user":{"login":"qssq","id":14260426,"avatar_url":"https://avatars.githubusercontent.com/u/14260426?v=3","gravatar_id":"","url":"https://api.github.com/users/qssq","html_url":"https://github.com/qssq","followers_url":"https://api.github.com/users/qssq/followers","following_url":"https://api.github.com/users/qssq/following{/other_user}","gists_url":"https://api.github.com/users/qssq/gists{/gist_id}","starred_url":"https://api.github.com/users/qssq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qssq/subscriptions","organizations_url":"https://api.github.com/users/qssq/orgs","repos_url":"https://api.github.com/users/qssq/repos","events_url":"https://api.github.com/users/qssq/events{/privacy}","received_events_url":"https://api.github.com/users/qssq/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-07T08:32:38Z","updated_at":"2016-11-12T14:51:13Z","closed_at":"2016-11-12T14:51:13Z","body":"* `wept --version`: 不清楚运行 后是1028的。今天更新的版本\r\n* `node --version`: \r\n* 操作系统: window7\r\n* 浏览器及浏览器版本: \r\n* 与官方工具表现不一致？\r\n\r\n        var context = wx.createContext();\r\n        context.setStrokeStyle(\"#ff0000\");\r\n        context.setLineWidth(5);\r\n        context.moveTo(30, 0);\r\n        context.lineTo(360, 0); //x坐标 y坐标 如果要画一条横线 x坐标 那么 50  y 0\r\n        context.stroke();\r\n\r\n        //画一个矩形 距离 左边50 距离顶部 100  高宽 为150  填充色 为 0094ff\r\n        context.rect(50, 100, 150, 150); //x y width height;\r\n        context.setFillStyle(\"#0094ff\");\r\n        context.fill();\r\n        //画一个 描边矩形\r\n        context.rect(0, 0, 30, 30);\r\n        context.stroke(); //这个描边貌似 对 上面的也生效了 \r\n\r\n        //所以要用到路径 开始和结束路径都要写\r\n        context.beginPath();\r\n        context.rect(50, 50, 30, 30);\r\n        context.setStrokeStyle(\"#876833\");\r\n        context.stroke();\r\n        context.closePath();\r\n        //再不用路径 话看看颜色变成啥了 发现颜色已经变成了路径之后的颜色了。  在距离屏幕顶部50 然后画一个横线 宽为5\r\n        context.moveTo(0, 50);\r\n        context.lineTo(5, 50);\r\n        context.stroke(); //\r\n        //画一个一模一样大的然后再画个 缩放的  距离 左边60 距离 屏幕顶部 60  填充颜色颜色为 绿色 以及一个  黑色\r\n        var width = 50,\r\n            height = 50;\r\n        var x = 90,\r\n            y = 90; //\r\n        cotnext.beginPath();\r\n        context.rect(50, 50, 90, 90);\r\n        context.setFillStyle(\"#0000ff\");\r\n        context.fill();\r\n        context.stroke();\r\n        context.closePath();\r\n        wx.drawCanvas({ canvasId: \"1\", actions: context.getActions() });\r\n\r\n是我写错了吗 最后面的绘制不成功。 开始路径和关闭路径无效了。我懵逼了。然后在一改实时预览都不生效了。 更加懵逼了。\r\n\r\n## 界面截图（可选）\r\n"}}
{"actor":{"display_login":"chemzqm"}}