{"id":13748510,"url":"https://github.com/AppWerft/Ti.CompassView","last_synced_at":"2025-05-09T10:32:51.067Z","repository":{"id":69690614,"uuid":"91475453","full_name":"AppWerft/Ti.CompassView","owner":"AppWerft","description":"Compassview for Axways Titanium 🚀","archived":false,"fork":false,"pushed_at":"2019-11-02T13:06:57.000Z","size":3031,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-05T12:53:00.868Z","etag":null,"topics":["appcelerator-titanium"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AppWerft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-05-16T15:39:42.000Z","updated_at":"2019-11-02T13:06:59.000Z","dependencies_parsed_at":"2024-01-17T13:12:06.105Z","dependency_job_id":"887f1f38-dee8-46be-b753-361f4c2171df","html_url":"https://github.com/AppWerft/Ti.CompassView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppWerft%2FTi.CompassView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppWerft%2FTi.CompassView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppWerft%2FTi.CompassView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppWerft%2FTi.CompassView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AppWerft","download_url":"https://codeload.github.com/AppWerft/Ti.CompassView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253234197,"owners_count":21875568,"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":["appcelerator-titanium"],"created_at":"2024-08-03T07:00:43.385Z","updated_at":"2025-05-09T10:32:46.048Z","avatar_url":"https://github.com/AppWerft.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# Ti.CompassView\n\nThis Axway Titanium module realizes a compassview. This works faster and smoother then a pure JS solution, because the event managing over KrollProxy is avoided.\n\n \n## Usage\n \n### Rotating image (compass) following compass sensor\n \n```javascript\n var Compass =  require(\"ti.compassview\"); \n var compassView =  Compass.createView({\n   offset : 10,\n   type  : Compass.TYPE_RADAR, // or TYPE_COMPASS\n   image : '/images/radar.png',\n   duration: 200, //optional\n   image: \"/asssets/arrow.png\"\n });\n compassView.getBearing();\n compassView.setOffset(45); \n```\n### Shifting content of ScrollView following compass sensor\n\n```javascript\nconst Compass =  require(\"ti.compassview\"); \nconst containerView = Ti.UI.createScrollView({\n\tscrollType : 'horizontal';\n\tcontentWidth : 3000, // must be numeric, Ti.UI.SIZE doesn't work !\n\twidth: Ti.UI.FILL\n});\n// optional background image\ncontainerView.add(Ti.UI.createImageView({\n\timage : 360°_PANOIMAGE\n}));\n// some numbers:\nfor ( i = 0; i \u003c 360; i += 30) {\n\t\tcontainerView.add(Ti.UI.createLabel({\n\t\t\ttext : i + '°',\n\t\t\tbottom : 10,\n\t\t\tleft : 3000 / 360*i,\n\t\t\theight : Ti.UI.SIZE,\n\t\t\twidth : Ti.UI.SIZE,\n\t\t\tcolor : \"yellow\",\n\t\t\tfont : {\n\t\t\t\tfontSize : 14,\n\t\t\t\tfontWeight : 'bold'\n\t\t\t}\n\t\t}));\n}\nCompass.setCompassTracker(containerView,{\n\toffset : 0 // offset to north\n\tsmoothScroll : true  // uses smoothScroll,\n\tsensorDelay : Compass.SENSOR_DELAY_FASTEST\n\t\n});\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAppWerft%2FTi.CompassView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAppWerft%2FTi.CompassView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAppWerft%2FTi.CompassView/lists"}