{"action":"created","issue":{"url":"https://api.github.com/repos/just-animate/just-animate/issues/43","repository_url":"https://api.github.com/repos/just-animate/just-animate","labels_url":"https://api.github.com/repos/just-animate/just-animate/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/just-animate/just-animate/issues/43/comments","events_url":"https://api.github.com/repos/just-animate/just-animate/issues/43/events","html_url":"https://github.com/just-animate/just-animate/issues/43","id":250334381,"number":43,"title":"selectPath() helper","user":{"login":"notoriousb1t","id":736847,"avatar_url":"https://avatars1.githubusercontent.com/u/736847?v=4","gravatar_id":"","url":"https://api.github.com/users/notoriousb1t","html_url":"https://github.com/notoriousb1t","followers_url":"https://api.github.com/users/notoriousb1t/followers","following_url":"https://api.github.com/users/notoriousb1t/following{/other_user}","gists_url":"https://api.github.com/users/notoriousb1t/gists{/gist_id}","starred_url":"https://api.github.com/users/notoriousb1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notoriousb1t/subscriptions","organizations_url":"https://api.github.com/users/notoriousb1t/orgs","repos_url":"https://api.github.com/users/notoriousb1t/repos","events_url":"https://api.github.com/users/notoriousb1t/events{/privacy}","received_events_url":"https://api.github.com/users/notoriousb1t/received_events","type":"User","site_admin":false},"labels":[{"id":328966804,"url":"https://api.github.com/repos/just-animate/just-animate/labels/PRs%20welcome","name":"PRs welcome","color":"159818","default":false},{"id":328966803,"url":"https://api.github.com/repos/just-animate/just-animate/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-15T14:38:15Z","updated_at":"2018-04-15T17:00:06Z","closed_at":"2018-04-15T17:00:06Z","author_association":"OWNER","body":"When doing SVG morphs with Flubber, getting the path data required extra code that made the experience not as great as it could have been.  I propose the following helper to make it easier to select path data:\r\n\r\n```js\r\nfunction selectPath(selector) {\r\n   return () => {\r\n        const el = document.querySelector(selector)\r\n        if (el == null) {\r\n            return '' // or throw error\r\n        }\r\n        return el.getAttribute('d')\r\n   }\r\n}\r\n\r\n\r\n// then usage\r\nimport { selectPath } from 'just-animate/extras'\r\n\r\nvar t1 = just.animate({\r\n    targets: '#my-target',\r\n    duration: 1000,\r\n    props: { \r\n        d: [selectPath('#charmander'), selectPath('#charmeleon')] \r\n    }\r\n})\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/just-animate/just-animate/issues/comments/381421348","html_url":"https://github.com/just-animate/just-animate/issues/43#issuecomment-381421348","issue_url":"https://api.github.com/repos/just-animate/just-animate/issues/43","id":381421348,"user":{"login":"notoriousb1t","id":736847,"avatar_url":"https://avatars1.githubusercontent.com/u/736847?v=4","gravatar_id":"","url":"https://api.github.com/users/notoriousb1t","html_url":"https://github.com/notoriousb1t","followers_url":"https://api.github.com/users/notoriousb1t/followers","following_url":"https://api.github.com/users/notoriousb1t/following{/other_user}","gists_url":"https://api.github.com/users/notoriousb1t/gists{/gist_id}","starred_url":"https://api.github.com/users/notoriousb1t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/notoriousb1t/subscriptions","organizations_url":"https://api.github.com/users/notoriousb1t/orgs","repos_url":"https://api.github.com/users/notoriousb1t/repos","events_url":"https://api.github.com/users/notoriousb1t/events{/privacy}","received_events_url":"https://api.github.com/users/notoriousb1t/received_events","type":"User","site_admin":false},"created_at":"2018-04-15T17:00:06Z","updated_at":"2018-04-15T17:00:06Z","author_association":"OWNER","body":"In version 3, we are going to roll this into the interpolate/mixin layer.  Closing"}}
{"actor":{"display_login":"notoriousb1t"}}