{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/usefulthink/image-sdf/pulls/1","id":90385603,"html_url":"https://github.com/usefulthink/image-sdf/pull/1","diff_url":"https://github.com/usefulthink/image-sdf/pull/1.diff","patch_url":"https://github.com/usefulthink/image-sdf/pull/1.patch","issue_url":"https://api.github.com/repos/usefulthink/image-sdf/issues/1","number":1,"state":"open","locked":false,"title":"add option to override 'pixel is inside'-test","user":{"login":"usefulthink","id":158792,"avatar_url":"https://avatars.githubusercontent.com/u/158792?v=3","gravatar_id":"","url":"https://api.github.com/users/usefulthink","html_url":"https://github.com/usefulthink","followers_url":"https://api.github.com/users/usefulthink/followers","following_url":"https://api.github.com/users/usefulthink/following{/other_user}","gists_url":"https://api.github.com/users/usefulthink/gists{/gist_id}","starred_url":"https://api.github.com/users/usefulthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usefulthink/subscriptions","organizations_url":"https://api.github.com/users/usefulthink/orgs","repos_url":"https://api.github.com/users/usefulthink/repos","events_url":"https://api.github.com/users/usefulthink/events{/privacy}","received_events_url":"https://api.github.com/users/usefulthink/received_events","type":"User","site_admin":false},"body":"a new option `isInside` can be used to specify a function that is called instead of the default `inside`-function to determine if the given coordinate is considered inside the shape. This can be useful for images that only vary in their opacity but are otherwise completely black. \r\n\r\nAs this is the only place where the source-image is actually accessed it can also be used to support ndarrays with shapes like `[width, height, 1]`.\r\n\r\nExample:\r\n\r\n```javascript\r\n\r\nvar sourceImage = ndarray(imageData, [width, height, 4])\r\nvar output = sdf(sourceImage, { \r\n  spread: 5, \r\n  downscale: 1,\r\n  isInside: function(array, x, y)  { \r\n    return array.get(x,y,3) > 128; \r\n  }\r\n})\r\n\r\n```","created_at":"2016-10-21T13:44:15Z","updated_at":"2016-10-21T13:44:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/usefulthink/image-sdf/pulls/1/commits","review_comments_url":"https://api.github.com/repos/usefulthink/image-sdf/pulls/1/comments","review_comment_url":"https://api.github.com/repos/usefulthink/image-sdf/pulls/comments{/number}","comments_url":"https://api.github.com/repos/usefulthink/image-sdf/issues/1/comments","statuses_url":"https://api.github.com/repos/usefulthink/image-sdf/statuses/4d820c9a52369210f21fd60ff08ee3fc6df4ada0","head":{"label":"usefulthink:custom-inside-test","ref":"custom-inside-test","sha":"4d820c9a52369210f21fd60ff08ee3fc6df4ada0","user":{"login":"usefulthink","id":158792,"avatar_url":"https://avatars.githubusercontent.com/u/158792?v=3","gravatar_id":"","url":"https://api.github.com/users/usefulthink","html_url":"https://github.com/usefulthink","followers_url":"https://api.github.com/users/usefulthink/followers","following_url":"https://api.github.com/users/usefulthink/following{/other_user}","gists_url":"https://api.github.com/users/usefulthink/gists{/gist_id}","starred_url":"https://api.github.com/users/usefulthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usefulthink/subscriptions","organizations_url":"https://api.github.com/users/usefulthink/orgs","repos_url":"https://api.github.com/users/usefulthink/repos","events_url":"https://api.github.com/users/usefulthink/events{/privacy}","received_events_url":"https://api.github.com/users/usefulthink/received_events","type":"User","site_admin":false},"repo":{"id":71567400,"name":"image-sdf","full_name":"usefulthink/image-sdf","owner":{"login":"usefulthink","id":158792,"avatar_url":"https://avatars.githubusercontent.com/u/158792?v=3","gravatar_id":"","url":"https://api.github.com/users/usefulthink","html_url":"https://github.com/usefulthink","followers_url":"https://api.github.com/users/usefulthink/followers","following_url":"https://api.github.com/users/usefulthink/following{/other_user}","gists_url":"https://api.github.com/users/usefulthink/gists{/gist_id}","starred_url":"https://api.github.com/users/usefulthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usefulthink/subscriptions","organizations_url":"https://api.github.com/users/usefulthink/orgs","repos_url":"https://api.github.com/users/usefulthink/repos","events_url":"https://api.github.com/users/usefulthink/events{/privacy}","received_events_url":"https://api.github.com/users/usefulthink/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/usefulthink/image-sdf","description":"generate a signed distance field from an image","fork":true,"url":"https://api.github.com/repos/usefulthink/image-sdf","forks_url":"https://api.github.com/repos/usefulthink/image-sdf/forks","keys_url":"https://api.github.com/repos/usefulthink/image-sdf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usefulthink/image-sdf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usefulthink/image-sdf/teams","hooks_url":"https://api.github.com/repos/usefulthink/image-sdf/hooks","issue_events_url":"https://api.github.com/repos/usefulthink/image-sdf/issues/events{/number}","events_url":"https://api.github.com/repos/usefulthink/image-sdf/events","assignees_url":"https://api.github.com/repos/usefulthink/image-sdf/assignees{/user}","branches_url":"https://api.github.com/repos/usefulthink/image-sdf/branches{/branch}","tags_url":"https://api.github.com/repos/usefulthink/image-sdf/tags","blobs_url":"https://api.github.com/repos/usefulthink/image-sdf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usefulthink/image-sdf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usefulthink/image-sdf/git/refs{/sha}","trees_url":"https://api.github.com/repos/usefulthink/image-sdf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usefulthink/image-sdf/statuses/{sha}","languages_url":"https://api.github.com/repos/usefulthink/image-sdf/languages","stargazers_url":"https://api.github.com/repos/usefulthink/image-sdf/stargazers","contributors_url":"https://api.github.com/repos/usefulthink/image-sdf/contributors","subscribers_url":"https://api.github.com/repos/usefulthink/image-sdf/subscribers","subscription_url":"https://api.github.com/repos/usefulthink/image-sdf/subscription","commits_url":"https://api.github.com/repos/usefulthink/image-sdf/commits{/sha}","git_commits_url":"https://api.github.com/repos/usefulthink/image-sdf/git/commits{/sha}","comments_url":"https://api.github.com/repos/usefulthink/image-sdf/comments{/number}","issue_comment_url":"https://api.github.com/repos/usefulthink/image-sdf/issues/comments{/number}","contents_url":"https://api.github.com/repos/usefulthink/image-sdf/contents/{+path}","compare_url":"https://api.github.com/repos/usefulthink/image-sdf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usefulthink/image-sdf/merges","archive_url":"https://api.github.com/repos/usefulthink/image-sdf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usefulthink/image-sdf/downloads","issues_url":"https://api.github.com/repos/usefulthink/image-sdf/issues{/number}","pulls_url":"https://api.github.com/repos/usefulthink/image-sdf/pulls{/number}","milestones_url":"https://api.github.com/repos/usefulthink/image-sdf/milestones{/number}","notifications_url":"https://api.github.com/repos/usefulthink/image-sdf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usefulthink/image-sdf/labels{/name}","releases_url":"https://api.github.com/repos/usefulthink/image-sdf/releases{/id}","deployments_url":"https://api.github.com/repos/usefulthink/image-sdf/deployments","created_at":"2016-10-21T13:30:43Z","updated_at":"2016-10-21T13:30:44Z","pushed_at":"2016-10-21T13:44:15Z","git_url":"git://github.com/usefulthink/image-sdf.git","ssh_url":"git@github.com:usefulthink/image-sdf.git","clone_url":"https://github.com/usefulthink/image-sdf.git","svn_url":"https://github.com/usefulthink/image-sdf","homepage":"","size":180,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"usefulthink:master","ref":"master","sha":"c5f4b1c63f0d349563a6386c7cf6caf8f670db45","user":{"login":"usefulthink","id":158792,"avatar_url":"https://avatars.githubusercontent.com/u/158792?v=3","gravatar_id":"","url":"https://api.github.com/users/usefulthink","html_url":"https://github.com/usefulthink","followers_url":"https://api.github.com/users/usefulthink/followers","following_url":"https://api.github.com/users/usefulthink/following{/other_user}","gists_url":"https://api.github.com/users/usefulthink/gists{/gist_id}","starred_url":"https://api.github.com/users/usefulthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usefulthink/subscriptions","organizations_url":"https://api.github.com/users/usefulthink/orgs","repos_url":"https://api.github.com/users/usefulthink/repos","events_url":"https://api.github.com/users/usefulthink/events{/privacy}","received_events_url":"https://api.github.com/users/usefulthink/received_events","type":"User","site_admin":false},"repo":{"id":71567400,"name":"image-sdf","full_name":"usefulthink/image-sdf","owner":{"login":"usefulthink","id":158792,"avatar_url":"https://avatars.githubusercontent.com/u/158792?v=3","gravatar_id":"","url":"https://api.github.com/users/usefulthink","html_url":"https://github.com/usefulthink","followers_url":"https://api.github.com/users/usefulthink/followers","following_url":"https://api.github.com/users/usefulthink/following{/other_user}","gists_url":"https://api.github.com/users/usefulthink/gists{/gist_id}","starred_url":"https://api.github.com/users/usefulthink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usefulthink/subscriptions","organizations_url":"https://api.github.com/users/usefulthink/orgs","repos_url":"https://api.github.com/users/usefulthink/repos","events_url":"https://api.github.com/users/usefulthink/events{/privacy}","received_events_url":"https://api.github.com/users/usefulthink/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/usefulthink/image-sdf","description":"generate a signed distance field from an image","fork":true,"url":"https://api.github.com/repos/usefulthink/image-sdf","forks_url":"https://api.github.com/repos/usefulthink/image-sdf/forks","keys_url":"https://api.github.com/repos/usefulthink/image-sdf/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usefulthink/image-sdf/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usefulthink/image-sdf/teams","hooks_url":"https://api.github.com/repos/usefulthink/image-sdf/hooks","issue_events_url":"https://api.github.com/repos/usefulthink/image-sdf/issues/events{/number}","events_url":"https://api.github.com/repos/usefulthink/image-sdf/events","assignees_url":"https://api.github.com/repos/usefulthink/image-sdf/assignees{/user}","branches_url":"https://api.github.com/repos/usefulthink/image-sdf/branches{/branch}","tags_url":"https://api.github.com/repos/usefulthink/image-sdf/tags","blobs_url":"https://api.github.com/repos/usefulthink/image-sdf/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usefulthink/image-sdf/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usefulthink/image-sdf/git/refs{/sha}","trees_url":"https://api.github.com/repos/usefulthink/image-sdf/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usefulthink/image-sdf/statuses/{sha}","languages_url":"https://api.github.com/repos/usefulthink/image-sdf/languages","stargazers_url":"https://api.github.com/repos/usefulthink/image-sdf/stargazers","contributors_url":"https://api.github.com/repos/usefulthink/image-sdf/contributors","subscribers_url":"https://api.github.com/repos/usefulthink/image-sdf/subscribers","subscription_url":"https://api.github.com/repos/usefulthink/image-sdf/subscription","commits_url":"https://api.github.com/repos/usefulthink/image-sdf/commits{/sha}","git_commits_url":"https://api.github.com/repos/usefulthink/image-sdf/git/commits{/sha}","comments_url":"https://api.github.com/repos/usefulthink/image-sdf/comments{/number}","issue_comment_url":"https://api.github.com/repos/usefulthink/image-sdf/issues/comments{/number}","contents_url":"https://api.github.com/repos/usefulthink/image-sdf/contents/{+path}","compare_url":"https://api.github.com/repos/usefulthink/image-sdf/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usefulthink/image-sdf/merges","archive_url":"https://api.github.com/repos/usefulthink/image-sdf/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usefulthink/image-sdf/downloads","issues_url":"https://api.github.com/repos/usefulthink/image-sdf/issues{/number}","pulls_url":"https://api.github.com/repos/usefulthink/image-sdf/pulls{/number}","milestones_url":"https://api.github.com/repos/usefulthink/image-sdf/milestones{/number}","notifications_url":"https://api.github.com/repos/usefulthink/image-sdf/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usefulthink/image-sdf/labels{/name}","releases_url":"https://api.github.com/repos/usefulthink/image-sdf/releases{/id}","deployments_url":"https://api.github.com/repos/usefulthink/image-sdf/deployments","created_at":"2016-10-21T13:30:43Z","updated_at":"2016-10-21T13:30:44Z","pushed_at":"2016-10-21T13:44:15Z","git_url":"git://github.com/usefulthink/image-sdf.git","ssh_url":"git@github.com:usefulthink/image-sdf.git","clone_url":"https://github.com/usefulthink/image-sdf.git","svn_url":"https://github.com/usefulthink/image-sdf","homepage":"","size":180,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/usefulthink/image-sdf/pulls/1"},"html":{"href":"https://github.com/usefulthink/image-sdf/pull/1"},"issue":{"href":"https://api.github.com/repos/usefulthink/image-sdf/issues/1"},"comments":{"href":"https://api.github.com/repos/usefulthink/image-sdf/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/usefulthink/image-sdf/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/usefulthink/image-sdf/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/usefulthink/image-sdf/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/usefulthink/image-sdf/statuses/4d820c9a52369210f21fd60ff08ee3fc6df4ada0"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":3,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"usefulthink"}}