unit.gl 0.0.27 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -72,6 +72,31 @@ npm i unit.gl
|
|
|
72
72
|
- [Website](https://www.unit.gl)
|
|
73
73
|
- [NPM](https://www.npmjs.com/package/unit.gl)
|
|
74
74
|
|
|
75
|
+
|
|
76
|
+
## Unit System
|
|
77
|
+
|
|
78
|
+
### Digital Size Conversions
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Physical SizeConversions
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Pixel Density
|
|
85
|
+
|
|
86
|
+
| Density Bucket | Screen Density | Physical Size | Pixel Size | |
|
|
87
|
+
| :---------------- | ----------------: | ----------------: | ----------------: | ----------------: |
|
|
88
|
+
| `ldpi` | 120 *dpi* | 0.5 x 0.5 *in* | 60 x 60 *px* | 0.5 in x 120 dpi |
|
|
89
|
+
| `mdpi` | 160 *dpi* | 0.5 x 0.5 *in* | 80 x 80 *px* | 0.5 in x 160 dpi |
|
|
90
|
+
| `hdpi` | 240 *dpi* | 0.5 x 0.5 *in* | 120 x 120 *px* | 0.5 in x 240 dpi |
|
|
91
|
+
| `xhdpi` | 320 *dpi* | 0.5 x 0.5 *in* | 160 x 160 *px* | 0.5 in x 320 dpi |
|
|
92
|
+
| `xxhdpi` | 480 *dpi* | 0.5 x 0.5 *in* | 240 x 240 *px* | 0.5 in x 480 dpi |
|
|
93
|
+
| `xxxhdpi` | 640 *dpi* | 0.5 x 0.5 *in* | 320 x 320 *px* | 0.5 in x 640 dpi |
|
|
94
|
+
|
|
95
|
+
More information:
|
|
96
|
+
|
|
97
|
+
- [Understanding Density Independence In Android](https://blog.mindorks.com/understanding-density-independent-pixel-sp-dp-dip-in-android/)
|
|
98
|
+
- [Material Design | Pixel density](https://m2.material.io/design/layout/pixel-density.html)
|
|
99
|
+
|
|
75
100
|
---
|
|
76
101
|
|
|
77
102
|
## Colophon
|