Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barbwire-1/fitbit-3d-text-ts
symbol/use for shadow effects on textElements for fitbit OS
https://github.com/barbwire-1/fitbit-3d-text-ts
Last synced: 3 days ago
JSON representation
symbol/use for shadow effects on textElements for fitbit OS
- Host: GitHub
- URL: https://github.com/barbwire-1/fitbit-3d-text-ts
- Owner: BarbWire-1
- License: mit
- Created: 2021-02-24T07:21:59.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-06-13T19:37:53.000Z (over 1 year ago)
- Last Synced: 2023-06-14T00:56:39.733Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 458 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shadow-text
Widget for 3D effects on textElements for fitbit OS\
(instruction and usage doco will follow soon...)!
![image](screenshot.png)## WORK IN PROGRESS...
**Each widget instance contains 3 sub Elements**
### WIDGET-INSTANCE:
### Properties:
x, y, text, letterspacing, textAnchor\
style:\
all font-attributes, opacity, displayAdditionally: \
main, light, shadow
___
### SUBELEMENTS:(main, light, shadow)
### Properties in general:
* x, y, style: fill, opacity, display (to perhaps "mute" one of them)### Specifics:
main:
* x, y are fixed to x,y of the widget-instance (changes here get overwritten in widget)light, shadow:
* x, y for offset to main
---
Position of the whole widget instance gets set on el.x, el.y
also opacity/display can be applied directly (el.style...)---
The widget elements have default settings which can be overwritten.## Defaults
### main
.style.fill = "grey"\
x,y center screen\
textAnchor = "middle"### light
.style.fill = "white"\
x = -1, y = -1 (offset to main)\
opacity = 0.5### shadow
.style.fill = "red"\
x = 1, y = 1 (offset to main)\
opacity = 0.5These values can be overwritten
* in resources/CSS using id or class (of instance) / id or class (of subElement)
* in index.view via set
* in index.js
---This widget gets integrated by the widget-factory written by [Gondwanasoft](https://github.com/gondwanasoft/fitbit-simple-widget)