@solidrt/core 0.0.19 → 0.0.20

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 (2) hide show
  1. package/package.json +2 -2
  2. package/src/types.d.ts +6 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidrt/core",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "license": "MIT",
5
5
  "author": "Antoine van Wel",
6
6
  "type": "module",
@@ -27,7 +27,7 @@
27
27
  "colord": "^2.9.3"
28
28
  },
29
29
  "devDependencies": {
30
- "@solidrt/flux-types": "0.0.0"
30
+ "@solidrt/flux-types": "0.0.20"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@solidjs/signals": "2.0.0-beta.15",
package/src/types.d.ts CHANGED
@@ -268,8 +268,13 @@ export interface SvgProps extends Position, PointerProps {
268
268
  color?: Color
269
269
  }
270
270
 
271
- export interface TextProps extends PaintProps, PointerProps {
271
+ export interface TextProps extends Position, PaintProps, PointerProps {
272
272
  children?: Children
273
+ // Shaping (wrap) width. Detached text wraps at the inherited ancestor size
274
+ // by default; set w for an unwrapped natural line or an explicit wrap width.
275
+ w?: number
276
+ // Reported-bounds height only; paragraph height always falls out of the text.
277
+ h?: number
273
278
  fontFamily?: "sans" | "mono" | (string & {})
274
279
  fontSize?: number
275
280
  lineHeight?: number