deeke-script-app 1.9.0 → 1.9.1

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.
@@ -13,6 +13,13 @@ interface Device {
13
13
  */
14
14
  public height(): number;
15
15
 
16
+ /**
17
+ * 获取屏幕像素密度(density)
18
+ *
19
+ * 可用于 dp 与 px 的换算:px = dp * density
20
+ */
21
+ public pixelDensity(): number;
22
+
16
23
  /**
17
24
  * 获取设备版本,如 26
18
25
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deeke-script-app",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "DeekeScript应用",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {