{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/3174","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/3174/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/3174/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/3174/events","html_url":"https://github.com/vuejs/vue/issues/3174","id":162834968,"number":3174,"title":"How can I import paperscript in vue？","user":{"login":"wangzhilongh","id":10214749,"avatar_url":"https://avatars.githubusercontent.com/u/10214749?v=3","gravatar_id":"","url":"https://api.github.com/users/wangzhilongh","html_url":"https://github.com/wangzhilongh","followers_url":"https://api.github.com/users/wangzhilongh/followers","following_url":"https://api.github.com/users/wangzhilongh/following{/other_user}","gists_url":"https://api.github.com/users/wangzhilongh/gists{/gist_id}","starred_url":"https://api.github.com/users/wangzhilongh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wangzhilongh/subscriptions","organizations_url":"https://api.github.com/users/wangzhilongh/orgs","repos_url":"https://api.github.com/users/wangzhilongh/repos","events_url":"https://api.github.com/users/wangzhilongh/events{/privacy}","received_events_url":"https://api.github.com/users/wangzhilongh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-29T03:43:49Z","updated_at":"2016-06-29T03:48:07Z","closed_at":"2016-06-29T03:48:07Z","body":"how can I import paperscript in vue? Thanks a lot!\r\n------------------------------------------\r\npaper: https://github.com/paperjs/paper.js\r\nuse for example:\r\n```\r\n<!DOCTYPE html>\r\n<html>\r\n<head>\r\n<!-- Load the Paper.js library -->\r\n<script type=\"text/javascript\" src=\"js/paper.js\"></script>\r\n<!-- Define inlined PaperScript associate it with myCanvas -->\r\n<script type=\"text/paperscript\" canvas=\"myCanvas\">\r\n\t// Create a Paper.js Path to draw a line into it:\r\n\tvar path = new Path();\r\n\t// Give the stroke a color\r\n\tpath.strokeColor = 'black';\r\n\tvar start = new Point(100, 100);\r\n\t// Move to start and draw a line from there\r\n\tpath.moveTo(start);\r\n\t// Note the plus operator on Point objects.\r\n\t// PaperScript does that for us, and much more!\r\n\tpath.lineTo(start + [ 100, -50 ]);\r\n</script>\r\n</head>\r\n<body>\r\n\t<canvas id=\"myCanvas\" resize></canvas>\r\n</body>\r\n</html>\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/229249364","html_url":"https://github.com/vuejs/vue/issues/3174#issuecomment-229249364","issue_url":"https://api.github.com/repos/vuejs/vue/issues/3174","id":229249364,"user":{"login":"yyx990803","id":499550,"avatar_url":"https://avatars.githubusercontent.com/u/499550?v=3","gravatar_id":"","url":"https://api.github.com/users/yyx990803","html_url":"https://github.com/yyx990803","followers_url":"https://api.github.com/users/yyx990803/followers","following_url":"https://api.github.com/users/yyx990803/following{/other_user}","gists_url":"https://api.github.com/users/yyx990803/gists{/gist_id}","starred_url":"https://api.github.com/users/yyx990803/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yyx990803/subscriptions","organizations_url":"https://api.github.com/users/yyx990803/orgs","repos_url":"https://api.github.com/users/yyx990803/repos","events_url":"https://api.github.com/users/yyx990803/events{/privacy}","received_events_url":"https://api.github.com/users/yyx990803/received_events","type":"User","site_admin":false},"created_at":"2016-06-29T03:48:07Z","updated_at":"2016-06-29T03:48:07Z","body":"Please make sure to read the [Issue Reporting Guidelines](https://github.com/vuejs/vue/blob/dev/CONTRIBUTING.md#issue-reporting-guidelines) before opening new issues. The issue list only accepts bug reports and feature requests. Questions should be posted to the [Gitter chat room](https://gitter.im/vuejs/vue),  [forum](http://forum.vuejs.org/) or StackOverflow. Thanks."}}
{"actor":{"display_login":"yyx990803"}}