@effing/canvas 0.22.2 → 0.23.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.
- package/README.md +21 -18
- package/dist/index.js +421 -254
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -192,24 +192,27 @@ const png = canvas.encodeSync("png");
|
|
|
192
192
|
|
|
193
193
|
### Typography
|
|
194
194
|
|
|
195
|
-
| Property
|
|
196
|
-
|
|
|
197
|
-
| `fontFamily`
|
|
198
|
-
| `fontSize`
|
|
199
|
-
| `fontWeight`
|
|
200
|
-
| `fontStyle`
|
|
201
|
-
| `textAlign`
|
|
202
|
-
| `textDecoration`
|
|
203
|
-
| `textTransform`
|
|
204
|
-
| `lineHeight`
|
|
205
|
-
| `letterSpacing`
|
|
206
|
-
| `whiteSpace`
|
|
207
|
-
| `wordBreak`
|
|
208
|
-
| `textOverflow`
|
|
209
|
-
| `lineClamp`
|
|
210
|
-
| `textBox`
|
|
211
|
-
| `textBoxTrim`
|
|
212
|
-
| `textBoxEdge`
|
|
195
|
+
| Property | Values / Notes |
|
|
196
|
+
| ----------------------- | ------------------------------------------------------------- |
|
|
197
|
+
| `fontFamily` | Font name (inherited) |
|
|
198
|
+
| `fontSize` | Number or CSS length (inherited) |
|
|
199
|
+
| `fontWeight` | Numeric weight (inherited) |
|
|
200
|
+
| `fontStyle` | `normal`, `italic` (inherited) |
|
|
201
|
+
| `textAlign` | `left`, `center`, `right`, `justify` (inherited) |
|
|
202
|
+
| `textDecoration` | String (inherited) |
|
|
203
|
+
| `textTransform` | `none`, `uppercase`, `lowercase`, `capitalize` (inherited) |
|
|
204
|
+
| `lineHeight` | Number or string (inherited) |
|
|
205
|
+
| `letterSpacing` | Number or CSS length (inherited) |
|
|
206
|
+
| `whiteSpace` | `normal`, `nowrap`, `pre`, `pre-wrap`, `pre-line` (inherited) |
|
|
207
|
+
| `wordBreak` | `normal`, `break-all`, `break-word`, `keep-all` (inherited) |
|
|
208
|
+
| `textOverflow` | `clip`, `ellipsis` (inherited) |
|
|
209
|
+
| `lineClamp` | Number — max visible lines (adds ellipsis) |
|
|
210
|
+
| `textBox` | Shorthand for `textBoxTrim` and `textBoxEdge` |
|
|
211
|
+
| `textBoxTrim` | `none`, `trim-start`, `trim-end`, `trim-both` (inherited) |
|
|
212
|
+
| `textBoxEdge` | e.g. `"cap alphabetic"` (inherited) |
|
|
213
|
+
| `WebkitTextStroke` | Shorthand, e.g. `"2px red"` (inherited) |
|
|
214
|
+
| `WebkitTextStrokeWidth` | CSS length (inherited) |
|
|
215
|
+
| `WebkitTextStrokeColor` | Any CSS color (inherited) |
|
|
213
216
|
|
|
214
217
|
### Effects
|
|
215
218
|
|