{"action":"created","issue":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/471","labels_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/471/labels{/name}","comments_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/471/comments","events_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/471/events","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/471","id":99469204,"number":471,"title":"hs.geometry overhaul","user":{"login":"lowne","id":6718755,"avatar_url":"https://avatars.githubusercontent.com/u/6718755?v=3","gravatar_id":"","url":"https://api.github.com/users/lowne","html_url":"https://github.com/lowne","followers_url":"https://api.github.com/users/lowne/followers","following_url":"https://api.github.com/users/lowne/following{/other_user}","gists_url":"https://api.github.com/users/lowne/gists{/gist_id}","starred_url":"https://api.github.com/users/lowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lowne/subscriptions","organizations_url":"https://api.github.com/users/lowne/orgs","repos_url":"https://api.github.com/users/lowne/repos","events_url":"https://api.github.com/users/lowne/events{/privacy}","received_events_url":"https://api.github.com/users/lowne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-06T16:03:52Z","updated_at":"2015-08-08T19:56:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/pulls/471","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/471","diff_url":"https://github.com/Hammerspoon/hammerspoon/pull/471.diff","patch_url":"https://github.com/Hammerspoon/hammerspoon/pull/471.patch"},"body":"> 17:47 lowne: > g'0 0 100 100'..'80 80 50x50'\r\n17:47 lowne: hs.geometry.rect(0,0,130,130)\r\n17:47 lowne: > g'0 0 100 100'^'80 80 50x50'\r\n17:47 lowne: hs.geometry.rect(80,80,20,20)\r\n17:48 lowne: > g'5 5'<'0 0 10 10'\r\n17:48 lowne: true\r\n17:49 lowne: fun!\r\n\r\nBut:\r\n- there might be bugs, I didn't test everything yet\r\n- line segments (let alone orientated ones) aren't supported; would that be useful?\r\n- no fancy stuff for line intersections etc., see item above\r\n- according to the module docstring promise, stuff like :setFrame(f) in windows and drawings should wrap the parameter in `hs.geometry(arg)` - will do if this is deemed mergeable"},"comment":{"url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/comments/129041563","html_url":"https://github.com/Hammerspoon/hammerspoon/pull/471#issuecomment-129041563","issue_url":"https://api.github.com/repos/Hammerspoon/hammerspoon/issues/471","id":129041563,"user":{"login":"lowne","id":6718755,"avatar_url":"https://avatars.githubusercontent.com/u/6718755?v=3","gravatar_id":"","url":"https://api.github.com/users/lowne","html_url":"https://github.com/lowne","followers_url":"https://api.github.com/users/lowne/followers","following_url":"https://api.github.com/users/lowne/following{/other_user}","gists_url":"https://api.github.com/users/lowne/gists{/gist_id}","starred_url":"https://api.github.com/users/lowne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lowne/subscriptions","organizations_url":"https://api.github.com/users/lowne/orgs","repos_url":"https://api.github.com/users/lowne/repos","events_url":"https://api.github.com/users/lowne/events{/privacy}","received_events_url":"https://api.github.com/users/lowne/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T19:56:03Z","updated_at":"2015-08-08T19:56:03Z","body":"@asmagill not yet, or not directly with tables. You can build a point and later set its .w and .h fields separately (or vice versa, build a size etc.). I will add a .size field as a shortcut. Similarly there is .center, but I suppose you'd want .topleft, however I'm not 100% sure about that as I was trying to remain coordinate system agnostic..."}}