Skip to content

Commit

Permalink
v0.0.28
Browse files Browse the repository at this point in the history
  • Loading branch information
vanvianen committed Jan 10, 2024
1 parent 1251568 commit 62e311d
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 5 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.27
0.0.28
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 25 additions & 0 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,31 @@ npm i unit.gl
- [Website](https://www.unit.gl)
- [NPM](https://www.npmjs.com/package/unit.gl)


## Unit System

### Digital Size Conversions


### Physical SizeConversions


### Pixel Density

| Density Bucket | Screen Density | Physical Size | Pixel Size | |
| :---------------- | ----------------: | ----------------: | ----------------: | ----------------: |
| `ldpi` | 120 *dpi* | 0.5 x 0.5 *in* | 60 x 60 *px* | 0.5 in x 120 dpi |
| `mdpi` | 160 *dpi* | 0.5 x 0.5 *in* | 80 x 80 *px* | 0.5 in x 160 dpi |
| `hdpi` | 240 *dpi* | 0.5 x 0.5 *in* | 120 x 120 *px* | 0.5 in x 240 dpi |
| `xhdpi` | 320 *dpi* | 0.5 x 0.5 *in* | 160 x 160 *px* | 0.5 in x 320 dpi |
| `xxhdpi` | 480 *dpi* | 0.5 x 0.5 *in* | 240 x 240 *px* | 0.5 in x 480 dpi |
| `xxxhdpi` | 640 *dpi* | 0.5 x 0.5 *in* | 320 x 320 *px* | 0.5 in x 640 dpi |

More information:

- [Understanding Density Independence In Android](https://blog.mindorks.com/understanding-density-independent-pixel-sp-dp-dip-in-android/)
- [Material Design | Pixel density](https://m2.material.io/design/layout/pixel-density.html)

---

## Colophon
Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unit.gl",
"version": "0.0.27",
"version": "0.0.28",
"description": "Layout Engine.",
"keywords": [
"unit.gl",
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "unit.gl",
"description": "Layout Engine.",
"version": "0.0.27",
"version": "0.0.28",
"config": {
"version_short": "0.0"
},
Expand Down Expand Up @@ -48,8 +48,8 @@
"lint": "eslint 'src/**/*.ts' || true",
"prettify": "prettier --write 'src/**/*.ts'",
"build": "npm run build-compile && npm run build-process",
"build-compile": "tsc -p script/tsconfig.json",
"build-process": "node script/js/index.js",
"build-compile": "tsc -p bin/tsconfig.json",
"build-process": "node bin/js/index.js",
"webpack-build": "npm run webpack-prod",
"webpack-dev": "webpack --mode development --config webpack.config.js",
"webpack-prod": "webpack --mode production --config webpack.config.js",
Expand Down

0 comments on commit 62e311d

Please sign in to comment.