@combos-fun/plugin-renderer-text 0.0.7 → 0.0.9
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/agent-skill.md +3 -7
- package/package.json +11 -7
package/agent-skill.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
# `@combos-fun/plugin-renderer-text` — Agent notes
|
|
2
2
|
|
|
3
|
-
Text rendering for the 2D pipeline. Wraps Pixi v8 `Text` and auto-syncs
|
|
4
|
-
`Transform.size` so other components see the rendered text bounds.
|
|
3
|
+
Text rendering for the 2D pipeline. Wraps Pixi v8 `Text` and auto-syncs `Transform.size` so other components see the rendered text bounds.
|
|
5
4
|
|
|
6
5
|
## When to read
|
|
7
6
|
|
|
@@ -22,12 +21,9 @@ import { Text, TextSystem, type TextParams } from '@combos-fun/plugin-renderer-t
|
|
|
22
21
|
| `text` | `string` | — (required) |
|
|
23
22
|
| `style` | `Partial<TextStyle>` | `{ fontSize: 20 }` |
|
|
24
23
|
|
|
25
|
-
`style` accepts the full Pixi `TextStyle` surface (`fill`, `fontFamily`,
|
|
26
|
-
`fontSize`, `fontWeight`, `wordWrap`, `wordWrapWidth`, `align`, `stroke`,
|
|
27
|
-
`dropShadow`, `lineHeight`, ...).
|
|
24
|
+
`style` accepts the full Pixi `TextStyle` surface (`fill`, `fontFamily`, `fontSize`, `fontWeight`, `wordWrap`, `wordWrapWidth`, `align`, `stroke`, `dropShadow`, `lineHeight`, ...).
|
|
28
25
|
|
|
29
|
-
`Transform.size` is updated automatically after rendering so layout
|
|
30
|
-
components downstream can position around the actual bounds.
|
|
26
|
+
`Transform.size` is updated automatically after rendering so layout components downstream can position around the actual bounds.
|
|
31
27
|
|
|
32
28
|
## Required setup
|
|
33
29
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@combos-fun/plugin-renderer-text",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.9",
|
|
4
|
+
"description": "Text rendering",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/plugin-renderer-text.esm.js",
|
|
7
7
|
"bundle": "CombosFun.plugin.renderer.text",
|
|
@@ -27,15 +27,19 @@
|
|
|
27
27
|
"types": "dist/plugin-renderer-text.d.ts",
|
|
28
28
|
"keywords": [
|
|
29
29
|
"combos-fun",
|
|
30
|
-
"
|
|
30
|
+
"text",
|
|
31
|
+
"label",
|
|
32
|
+
"font",
|
|
33
|
+
"string",
|
|
34
|
+
"2d"
|
|
31
35
|
],
|
|
32
36
|
"author": "sun668 <q947692259@gmail.com>",
|
|
33
37
|
"dependencies": {
|
|
34
38
|
"pixi.js": "^8.18.1",
|
|
35
|
-
"@combos-fun/renderer
|
|
36
|
-
"@combos-fun/
|
|
37
|
-
"@combos-fun/inspector-decorator": "0.0.
|
|
38
|
-
"@combos-fun/engine": "0.0.
|
|
39
|
+
"@combos-fun/plugin-renderer": "0.0.9",
|
|
40
|
+
"@combos-fun/renderer-adapter": "0.0.9",
|
|
41
|
+
"@combos-fun/inspector-decorator": "0.0.9",
|
|
42
|
+
"@combos-fun/engine": "0.0.9"
|
|
39
43
|
},
|
|
40
44
|
"scripts": {
|
|
41
45
|
"build": "node ../../scripts/build-package.mjs"
|