@jiujue/react-canvas-fiber 2.1.0 → 2.1.2
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 +4 -0
- package/README.zh.md +4 -0
- package/dist/index.cjs +1913 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1903 -0
- package/dist/index.js.map +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -69,6 +69,10 @@ Common props:
|
|
|
69
69
|
|
|
70
70
|
- `style?: YogaStyle`: layout box; see Layout section below
|
|
71
71
|
- `background?: string`: background fill color
|
|
72
|
+
- `backgroundImage?: string`: image URL
|
|
73
|
+
- `backgroundSize?: string`: `cover` | `contain` | `auto` | `100px 50px` | `50% 50%`
|
|
74
|
+
- `backgroundPosition?: string`: `center` | `top left` | `10px 20px` | `50% 50%`
|
|
75
|
+
- `backgroundRepeat?: string`: `repeat` | `no-repeat` | `repeat-x` | `repeat-y`
|
|
72
76
|
- `border?: string`: CSS-like border. Supported forms:
|
|
73
77
|
- `"<number>px solid <color>"` (e.g. `1px solid rgba(255,255,255,0.2)`)
|
|
74
78
|
- `"<number> <color>"` (e.g. `2 #fff`)
|
package/README.zh.md
CHANGED
|
@@ -69,6 +69,10 @@ export function Example() {
|
|
|
69
69
|
|
|
70
70
|
- `style?: YogaStyle`:布局样式,见下方「布局(Yoga 子集)」
|
|
71
71
|
- `background?: string`:背景填充色
|
|
72
|
+
- `backgroundImage?: string`:背景图片 URL
|
|
73
|
+
- `backgroundSize?: string`:`cover` | `contain` | `auto` | `100px 50px` | `50% 50%`
|
|
74
|
+
- `backgroundPosition?: string`:`center` | `top left` | `10px 20px` | `50% 50%`
|
|
75
|
+
- `backgroundRepeat?: string`:`repeat` | `no-repeat` | `repeat-x` | `repeat-y`
|
|
72
76
|
- `border?: string`:类似 CSS 的 border,支持:
|
|
73
77
|
- `"<number>px solid <color>"`(例如 `1px solid rgba(255,255,255,0.2)`)
|
|
74
78
|
- `"<number> <color>"`(例如 `2 #fff`)
|