{"action":"created","issue":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/1084","repository_url":"https://api.github.com/repos/paperjs/paper.js","labels_url":"https://api.github.com/repos/paperjs/paper.js/issues/1084/labels{/name}","comments_url":"https://api.github.com/repos/paperjs/paper.js/issues/1084/comments","events_url":"https://api.github.com/repos/paperjs/paper.js/issues/1084/events","html_url":"https://github.com/paperjs/paper.js/issues/1084","id":160638054,"number":1084,"title":"strokeWidth breaks equals","user":{"login":"georeith","id":3090066,"avatar_url":"https://avatars.githubusercontent.com/u/3090066?v=3","gravatar_id":"","url":"https://api.github.com/users/georeith","html_url":"https://github.com/georeith","followers_url":"https://api.github.com/users/georeith/followers","following_url":"https://api.github.com/users/georeith/following{/other_user}","gists_url":"https://api.github.com/users/georeith/gists{/gist_id}","starred_url":"https://api.github.com/users/georeith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georeith/subscriptions","organizations_url":"https://api.github.com/users/georeith/orgs","repos_url":"https://api.github.com/users/georeith/repos","events_url":"https://api.github.com/users/georeith/events{/privacy}","received_events_url":"https://api.github.com/users/georeith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-16T11:21:23Z","updated_at":"2016-06-16T11:52:34Z","closed_at":null,"body":"So there is something funny about `Item#strokeWidth`. The issue is it appears to have a value of `1` but isn't treated like `1` by default. For example equals breaks unless explicitly defining `strokeWidth`:\r\n\r\nhttp://sketch.paperjs.org/#S/tZHLCsIwEEV/ZcjGCqGQuov0HwQXLtouYh1saE1qEx8g/rtTY7FVXDqbJId53Lm5MaMOyCRb1+jLinFW2l3/PqsOWuUrASkYvNC9xS5eEYluuQEKh/sDGu8kZAH0kQkOouAjkHBIJmDBYTGA4XS+szVu9M5XEgTB+3yZm9wMKpK/q3gNLK1xtsG4sftoFvbH40k1LsiQMx5ciQONnnTe104qR/uAduArBEc+v8vHCWmahu5j2rf8guSC+Bz1LRIumlLx2ja61H7i7W/59PPbDlXdWk1uMpkV9wc=\r\n\r\nOn a slightly different but related note why is `1` the default value? I feel like `0` is a much better value in this case as you have to explicitly state a colour for a stroke, why not the size? Feels weird resetting this value to `0` so I can factor `strokeWidth` into my calculations elsewhere."},"comment":{"url":"https://api.github.com/repos/paperjs/paper.js/issues/comments/226463489","html_url":"https://github.com/paperjs/paper.js/issues/1084#issuecomment-226463489","issue_url":"https://api.github.com/repos/paperjs/paper.js/issues/1084","id":226463489,"user":{"login":"lehni","id":213275,"avatar_url":"https://avatars.githubusercontent.com/u/213275?v=3","gravatar_id":"","url":"https://api.github.com/users/lehni","html_url":"https://github.com/lehni","followers_url":"https://api.github.com/users/lehni/followers","following_url":"https://api.github.com/users/lehni/following{/other_user}","gists_url":"https://api.github.com/users/lehni/gists{/gist_id}","starred_url":"https://api.github.com/users/lehni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lehni/subscriptions","organizations_url":"https://api.github.com/users/lehni/orgs","repos_url":"https://api.github.com/users/lehni/repos","events_url":"https://api.github.com/users/lehni/events{/privacy}","received_events_url":"https://api.github.com/users/lehni/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T11:52:34Z","updated_at":"2016-06-16T11:52:34Z","body":"It looks like `Syle#equals()` does not take defaults into account when comparing. That should be easy to fix!"}}
{"actor":{"display_login":"lehni"}}