{"action":"created","issue":{"url":"https://api.github.com/repos/sebdesign/cap-height/issues/2","repository_url":"https://api.github.com/repos/sebdesign/cap-height","labels_url":"https://api.github.com/repos/sebdesign/cap-height/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/sebdesign/cap-height/issues/2/comments","events_url":"https://api.github.com/repos/sebdesign/cap-height/issues/2/events","html_url":"https://github.com/sebdesign/cap-height/issues/2","id":350463929,"node_id":"MDU6SXNzdWUzNTA0NjM5Mjk=","number":2,"title":"Uncaught RangeError: Cannot calculate the height of whitespace.","user":{"login":"humanjpg","id":9616783,"node_id":"MDQ6VXNlcjk2MTY3ODM=","avatar_url":"https://avatars2.githubusercontent.com/u/9616783?v=4","gravatar_id":"","url":"https://api.github.com/users/humanjpg","html_url":"https://github.com/humanjpg","followers_url":"https://api.github.com/users/humanjpg/followers","following_url":"https://api.github.com/users/humanjpg/following{/other_user}","gists_url":"https://api.github.com/users/humanjpg/gists{/gist_id}","starred_url":"https://api.github.com/users/humanjpg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/humanjpg/subscriptions","organizations_url":"https://api.github.com/users/humanjpg/orgs","repos_url":"https://api.github.com/users/humanjpg/repos","events_url":"https://api.github.com/users/humanjpg/events{/privacy}","received_events_url":"https://api.github.com/users/humanjpg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-08-14T14:51:46Z","updated_at":"2018-10-23T12:14:58Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nI'm getting the following error in the console:\r\n\r\n```\r\n  | g | @ | cap-height.js:1\r\n-- | -- | -- | --\r\n  | apply | @ | lodash.js:496\r\n  | wrapper | @ | lodash.js:5356\r\n  | thru | @ | lodash.js:8812\r\n  | (anonymous) | @ | lodash.js:4379\r\n  | arrayReduce | @ | lodash.js:704\r\n  | baseWrapperValue | @ | lodash.js:4378\r\n  | wrapperValue | @ | lodash.js:9067\r\n  | h | @ | cap-height.js:1\r\n  | (anonymous) | @ | (index):550\r\n```\r\n\r\nI've included `cap-height.js` manually right at the bottom of my project:\r\n\r\n```\r\n<script src=\"https://unpkg.com/lodash@4.17.4\"></script>\r\n<script src=\"src/scripts/uncompiled/cap-height.js\"></script>\r\n<script>\r\n    capHeight.calculate({});\r\n</script>\r\n```\r\n\r\nAnd using TypeKit in the `<head>`. Any ideas?\r\n\r\nMany thanks!"},"comment":{"url":"https://api.github.com/repos/sebdesign/cap-height/issues/comments/432221734","html_url":"https://github.com/sebdesign/cap-height/issues/2#issuecomment-432221734","issue_url":"https://api.github.com/repos/sebdesign/cap-height/issues/2","id":432221734,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMjIyMTczNA==","user":{"login":"skjnldsv","id":14975046,"node_id":"MDQ6VXNlcjE0OTc1MDQ2","avatar_url":"https://avatars0.githubusercontent.com/u/14975046?v=4","gravatar_id":"","url":"https://api.github.com/users/skjnldsv","html_url":"https://github.com/skjnldsv","followers_url":"https://api.github.com/users/skjnldsv/followers","following_url":"https://api.github.com/users/skjnldsv/following{/other_user}","gists_url":"https://api.github.com/users/skjnldsv/gists{/gist_id}","starred_url":"https://api.github.com/users/skjnldsv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skjnldsv/subscriptions","organizations_url":"https://api.github.com/users/skjnldsv/orgs","repos_url":"https://api.github.com/users/skjnldsv/repos","events_url":"https://api.github.com/users/skjnldsv/events{/privacy}","received_events_url":"https://api.github.com/users/skjnldsv/received_events","type":"User","site_admin":false},"created_at":"2018-10-23T12:14:58Z","updated_at":"2018-10-23T12:14:58Z","author_association":"NONE","body":"@sebdesign though this raise an issue on the lib itself :)\r\nSee https://codepen.io/skjnldsv/pen/PydLBK/\r\n\r\nUsing the args (`text`,`properties`) does work but your example on the readme state the other way around:  (`properties`,`text`)\r\n\r\nDoes not work\r\n``` js\r\ncapHeight.calculate({\r\n  \"font-style\": \"normal\",\r\n  \"font-weight\": 400,\r\n  \"font-size\": \"100px\",\r\n  \"font-family\": \"serif\"\r\n}, \"HI\");\r\n```\r\nWork\r\n``` js\r\ncapHeight.calculate('Hi', {\r\n  \"font-style\": \"normal\",\r\n  \"font-weight\": 400,\r\n  \"font-size\": \"100px\",\r\n  \"font-family\": \"serif\"\r\n};\r\n```"}}
{"actor":{"display_login":"skjnldsv"}}