{"id":22160591,"url":"https://github.com/rozek/banglejs-2-complication-placeholder","last_synced_at":"2025-03-24T15:22:45.450Z","repository":{"id":114382877,"uuid":"445865900","full_name":"rozek/banglejs-2-complication-placeholder","owner":"rozek","description":"just a placeholder for the complications of an analog clock on Bangle.js 2","archived":false,"fork":false,"pushed_at":"2022-03-01T05:55:54.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-29T20:30:20.193Z","etag":null,"topics":["banglejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rozek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-08T16:09:05.000Z","updated_at":"2022-01-11T05:46:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"3948bc8c-a948-4f49-a39f-75144ad515e8","html_url":"https://github.com/rozek/banglejs-2-complication-placeholder","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/rozek%2Fbanglejs-2-complication-placeholder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-complication-placeholder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-complication-placeholder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rozek%2Fbanglejs-2-complication-placeholder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rozek","download_url":"https://codeload.github.com/rozek/banglejs-2-complication-placeholder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245294882,"owners_count":20591936,"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":["banglejs"],"created_at":"2024-12-02T04:08:54.491Z","updated_at":"2025-03-24T15:22:45.439Z","avatar_url":"https://github.com/rozek.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# banglejs-2-complication-placeholder #\n\njust a placeholder for the complications of an analog clock on Bangle.js 2\n\nInstead of a real \"complication\", this module just draws a placeholder for such a complication into the face of an analog clock running on a [Bangle.js 2](https://www.espruino.com/Bangle.js2).\n\n\u003ctable\u003e\n \u003ctr valign=\"top\"\u003e\n   \u003ctd align=\"center\"\u003e\u003cimg src=\"smallPlaceholders.png\"\u003e\u003cbr\u003efor small complications only\u003c/td\u003e\n   \u003ctd align=\"center\"\u003e\u003cimg src=\"largePlaceholders.png\"\u003e\u003cbr\u003efor small and large complications\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/table\u003e\n\n## Usage ##\n\nWithin a clock implementation, the module may be used as follows:\n\n```javascript\nlet Placeholder = require('https://raw.githubusercontent.com/rozek/banglejs-2-complication-placeholder/main/Complication.js');\n\nlet Clockwork = require(...);\nClockwork.windUp({\n  complications:{\n    tl:Placeholder.withLabel('tl'),\n    r:Placeholder,\n  }\n});\n```\n\nIn the simplest case, the placeholder is just used \"as-is\" and draws a border around the region, which is allocated to a complication at the given position.\n\nYou may, however, also specify a label to be drawn within that border - in that case, use `Placeholder.withLabel('\u003clabel\u003e')` instead. This variant may help you to figure out whether a given text will fit into the complication's area or not.\n\n## License ##\n\n[MIT License](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fbanglejs-2-complication-placeholder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frozek%2Fbanglejs-2-complication-placeholder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frozek%2Fbanglejs-2-complication-placeholder/lists"}