pebble-scalable 2.0.0 → 2.1.0

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.
Files changed (3) hide show
  1. package/README.md +12 -1
  2. package/dist.zip +0 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  Package aiming to make it easy to make scaling layouts for different display
4
4
  sizes by defining their dimensions only once in an app.
5
5
 
6
+ - [Features](#features)
6
7
  - [Setting up](#setting-up)
7
8
  - [Layout](#layout)
8
9
  - [Constants](#constants)
@@ -10,7 +11,9 @@ sizes by defining their dimensions only once in an app.
10
11
  - [Fonts](#fonts)
11
12
  - [Images](#images)
12
13
 
13
- See `include/pebble-scalable.h` for function documentation.
14
+ ## Features
15
+
16
+ See `include/pebble-scalable.h` for full function documentation.
14
17
 
15
18
  ## Setting up
16
19
 
@@ -97,6 +100,14 @@ const GRect centered_v = scl_center_y(r);
97
100
  const GRect centered = scl_center(r);
98
101
  ```
99
102
 
103
+ On any display shape, you can get the largest completely visible square, which
104
+ is useful on round displays if you want to avoid things being obscured by the
105
+ corners:
106
+
107
+ ```c
108
+ const GRect visible = scl_largest_square();
109
+ ```
110
+
100
111
  ## Fonts
101
112
 
102
113
  Use different fonts for different display sizes, based on a category of your
package/dist.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pebble-scalable",
3
3
  "author": "Chris Lewis",
4
- "version": "2.0.0",
4
+ "version": "2.1.0",
5
5
  "files": [
6
6
  "dist.zip"
7
7
  ],