{"id":18271268,"url":"https://github.com/britg/MultistrokeGestureRecognizer-iOS","last_synced_at":"2025-04-05T01:31:16.725Z","repository":{"id":1454299,"uuid":"1688108","full_name":"britg/MultistrokeGestureRecognizer-iOS","owner":"britg","description":"A library for defining and detecting multi-stroke gestures created through touch-input on iOS devices","archived":false,"fork":false,"pushed_at":"2017-02-02T22:10:49.000Z","size":7119,"stargazers_count":273,"open_issues_count":3,"forks_count":56,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-11-05T11:53:23.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/britg.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-05-01T15:23:56.000Z","updated_at":"2024-05-17T16:39:40.000Z","dependencies_parsed_at":"2022-07-29T14:09:12.014Z","dependency_job_id":null,"html_url":"https://github.com/britg/MultistrokeGestureRecognizer-iOS","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britg%2FMultistrokeGestureRecognizer-iOS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britg%2FMultistrokeGestureRecognizer-iOS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britg%2FMultistrokeGestureRecognizer-iOS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/britg%2FMultistrokeGestureRecognizer-iOS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/britg","download_url":"https://codeload.github.com/britg/MultistrokeGestureRecognizer-iOS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276043,"owners_count":20912286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:39:11.442Z","updated_at":"2025-04-05T01:31:11.711Z","avatar_url":"https://github.com/britg.png","language":"Objective-C","readme":"# Overview\n\nThis is an iOS implementation of the [N Dollar Gesture Recognizer](http://depts.washington.edu/aimgroup/proj/dollar/ndollar.html).\n\nMore info:\n\n- [The research](http://britg.com/2011/05/14/complex-gesture-recognition-in-ios-part-1-the-research/)\n- [Explanation of this implementation](http://britg.com/2011/06/17/complex-gesture-recognition-in-ios-part-2-the-ios-implementation/)\n- [Understanding the score that's returned](http://britg.com/2011/07/17/complex-gesture-recognition-understanding-the-score/)\n\nTools:\n\n- [Shape Editor](http://lucalaiho.altervista.org/joomla/shape-editor) - A java app for creating shapes and exporting them as JSON files\n\n# N Dollar Recognizer\n\nView the javascript implementation [here](http://depts.washington.edu/aimgroup/proj/dollar/ndollar.html)\n\nAnthony, L. and Wobbrock, J.O. (2010). [A lightweight multistroke recognizer for user interface prototypes](http://faculty.washington.edu/wobbrock/pubs/gi-10.2.pdf). Proceedings of Graphics Interface (GI '10). Ottawa, Ontario (May 31-June 2, 2010). Toronto, Ontario: Canadian Information Processing Society, pp. 245-252.\n\n# Detecting Glyphs\n\nA Glyph is a user-defined set of Strokes, which are in turn just an array of points. When a Glyph is initialized, it first permutes through all the possible combinations of Stroke directions/order necessary to recreate itself. It also resamples and resizes itslef into a bounding box. Finally, a Glyph creates unistrokes (Templates) from all the calculated multistrokes.\n\nThe Detector collects user input (an array of points) and triggers a comparison of the input against all of the Glyph Templates. Each Template is given a score, and the Template with the highest score is considered the match. The Glyph that the Template belongs to is announced to the Delegate.\n\n# Creating Glyphs\n\nA Glyph can either be defined manually by defining its Strokes and initializing a Glyph with those Strokes. Or, a newly created Glyph can be fed user input and create itself when ready.\n\n# License\n\nCopyright (c) 2011 Brit Gardner\n\nPermission is hereby granted, free of charge, to any person\nobtaining a copy of this software and associated documentation\nfiles (the \"Software\"), to deal in the Software without\nrestriction, including without limitation the rights to use,\ncopy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the\nSoftware is furnished to do so, subject to the following\nconditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES\nOF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\nHOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING\nFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\nOTHER DEALINGS IN THE SOFTWARE.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbritg%2FMultistrokeGestureRecognizer-iOS","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbritg%2FMultistrokeGestureRecognizer-iOS","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbritg%2FMultistrokeGestureRecognizer-iOS/lists"}