https://github.com/rozek/banglejs-2-complication-placeholder
just a placeholder for the complications of an analog clock on Bangle.js 2
https://github.com/rozek/banglejs-2-complication-placeholder
banglejs
Last synced: over 1 year ago
JSON representation
just a placeholder for the complications of an analog clock on Bangle.js 2
- Host: GitHub
- URL: https://github.com/rozek/banglejs-2-complication-placeholder
- Owner: rozek
- License: mit
- Created: 2022-01-08T16:09:05.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T05:55:54.000Z (over 4 years ago)
- Last Synced: 2025-01-29T20:30:20.193Z (over 1 year ago)
- Topics: banglejs
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# banglejs-2-complication-placeholder #
just a placeholder for the complications of an analog clock on Bangle.js 2
Instead 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).

for small complications only

for small and large complications
## Usage ##
Within a clock implementation, the module may be used as follows:
```javascript
let Placeholder = require('https://raw.githubusercontent.com/rozek/banglejs-2-complication-placeholder/main/Complication.js');
let Clockwork = require(...);
Clockwork.windUp({
complications:{
tl:Placeholder.withLabel('tl'),
r:Placeholder,
}
});
```
In 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.
You may, however, also specify a label to be drawn within that border - in that case, use `Placeholder.withLabel('')` instead. This variant may help you to figure out whether a given text will fit into the complication's area or not.
## License ##
[MIT License](LICENSE.md)