@combos-fun/plugin-renderer-graphics 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.
Files changed (2) hide show
  1. package/agent-skill.md +4 -10
  2. package/package.json +11 -6
package/agent-skill.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # `@combos-fun/plugin-renderer-graphics` — Agent notes
2
2
 
3
- Vector / procedural shapes for the 2D pipeline. The Component exposes a
4
- Pixi `Graphics` API for free-form drawing on the GameObject's container.
3
+ Vector / procedural shapes for the 2D pipeline. The Component exposes a Pixi `Graphics` API for free-form drawing on the GameObject's container.
5
4
 
6
5
  ## When to read
7
6
 
8
- Read for any vector shape: lines, fills, custom geometry, circles /
9
- rectangles drawn on demand.
7
+ Read for any vector shape: lines, fills, custom geometry, circles / rectangles drawn on demand.
10
8
 
11
9
  ## Public API
12
10
 
@@ -16,9 +14,7 @@ import { Graphics, GraphicsSystem } from '@combos-fun/plugin-renderer-graphics';
16
14
 
17
15
  `componentName = 'Graphics'`, `systemName = 'GraphicsSystem'`.
18
16
 
19
- The `Graphics` Component owns a `graphics` field — a Pixi `Graphics`
20
- instance created in `init()`. Use the standard Pixi v8 graphics API
21
- (`rect`, `circle`, `fill`, `stroke`, `moveTo`, `lineTo`, etc.) on it.
17
+ The `Graphics` Component owns a `graphics` field — a Pixi `Graphics` instance created in `init()`. Use the standard Pixi v8 graphics API (`rect`, `circle`, `fill`, `stroke`, `moveTo`, `lineTo`, etc.) on it.
22
18
 
23
19
  ## Required setup
24
20
 
@@ -41,9 +37,7 @@ const g = go.addComponent(new Graphics());
41
37
  g.graphics.rect(0, 0, 200, 80).fill({ color: 0xff0000 });
42
38
  ```
43
39
 
44
- (Note: keeping the `addComponent` return is for **demo purposes only**;
45
- inside real Components, use `gameObject.getComponent(Graphics)` from a
46
- lifecycle hook.)
40
+ (Note: keeping the `addComponent` return is for **demo purposes only**; inside real Components, use `gameObject.getComponent(Graphics)` from a lifecycle hook.)
47
41
 
48
42
  ## Verification
49
43
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@combos-fun/plugin-renderer-graphics",
3
- "version": "0.0.7",
4
- "description": "@combos-fun/plugin-renderer-graphics",
3
+ "version": "0.0.9",
4
+ "description": "Vector / procedural shapes",
5
5
  "main": "index.js",
6
6
  "module": "dist/plugin-renderer-graphics.esm.js",
7
7
  "bundle": "CombosFun.plugin.renderer.graphics",
@@ -27,13 +27,18 @@
27
27
  "types": "dist/plugin-renderer-graphics.d.ts",
28
28
  "keywords": [
29
29
  "combos-fun",
30
- "game"
30
+ "graphics",
31
+ "vector",
32
+ "shape",
33
+ "fill",
34
+ "stroke",
35
+ "2d"
31
36
  ],
32
37
  "author": "sun668 <q947692259@gmail.com>",
33
38
  "dependencies": {
34
- "@combos-fun/renderer-adapter": "0.0.7",
35
- "@combos-fun/plugin-renderer": "0.0.7",
36
- "@combos-fun/engine": "0.0.7"
39
+ "@combos-fun/renderer-adapter": "0.0.9",
40
+ "@combos-fun/plugin-renderer": "0.0.9",
41
+ "@combos-fun/engine": "0.0.9"
37
42
  },
38
43
  "scripts": {
39
44
  "build": "node ../../scripts/build-package.mjs"