@combos-fun/plugin-renderer-nine-patch 0.0.7 → 0.0.8

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/agent-skill.md +4 -10
  2. package/package.json +5 -5
package/agent-skill.md CHANGED
@@ -1,13 +1,10 @@
1
1
  # `@combos-fun/plugin-renderer-nine-patch` — Agent notes
2
2
 
3
- 9-patch (nine-slice) panels for the 2D pipeline. Stretches the centre of a
4
- texture while keeping corner sizes fixed — used for resizable buttons,
5
- panels, dialog frames.
3
+ 9-patch (nine-slice) panels for the 2D pipeline. Stretches the centre of a texture while keeping corner sizes fixed — used for resizable buttons, panels, dialog frames.
6
4
 
7
5
  ## When to read
8
6
 
9
- Read for any stretchable UI panel: buttons, dialog backgrounds, tooltip
10
- frames, list backgrounds.
7
+ Read for any stretchable UI panel: buttons, dialog backgrounds, tooltip frames, list backgrounds.
11
8
 
12
9
  ## Public API
13
10
 
@@ -28,14 +25,11 @@ import { NinePatch, NinePatchSystem, type NinePatchParams } from '@combos-fun/pl
28
25
  | `rightWidth` | `number` | Right fixed border (px) |
29
26
  | `bottomHeight` | `number` | Bottom fixed border (px) |
30
27
 
31
- The actual stretched size comes from `Transform.size`. Set
32
- `transform.size = { x: 300, y: 100 }` to stretch the centre to those
33
- dimensions.
28
+ The actual stretched size comes from `Transform.size`. Set `transform.size = { x: 300, y: 100 }` to stretch the centre to those dimensions.
34
29
 
35
30
  ## Required setup
36
31
 
37
- `RendererSystem` then `NinePatchSystem`. Resource must be loaded before
38
- the component is added (use `preload: true`).
32
+ `RendererSystem` then `NinePatchSystem`. Resource must be loaded before the component is added (use `preload: true`).
39
33
 
40
34
  ## Common pitfalls
41
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@combos-fun/plugin-renderer-nine-patch",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "@combos-fun/plugin-renderer-nine-patch",
5
5
  "main": "index.js",
6
6
  "module": "dist/plugin-renderer-nine-patch.esm.js",
@@ -32,10 +32,10 @@
32
32
  "author": "sun668 <q947692259@gmail.com>",
33
33
  "dependencies": {
34
34
  "pixi.js": "^8.18.1",
35
- "@combos-fun/plugin-renderer": "0.0.7",
36
- "@combos-fun/renderer-adapter": "0.0.7",
37
- "@combos-fun/inspector-decorator": "0.0.7",
38
- "@combos-fun/engine": "0.0.7"
35
+ "@combos-fun/plugin-renderer": "0.0.8",
36
+ "@combos-fun/inspector-decorator": "0.0.8",
37
+ "@combos-fun/engine": "0.0.8",
38
+ "@combos-fun/renderer-adapter": "0.0.8"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "node ../../scripts/build-package.mjs"