@combos-fun/plugin-renderer-graphics 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.
- package/agent-skill.md +4 -10
- package/package.json +4 -4
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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@combos-fun/plugin-renderer-graphics",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "@combos-fun/plugin-renderer-graphics",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/plugin-renderer-graphics.esm.js",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
],
|
|
32
32
|
"author": "sun668 <q947692259@gmail.com>",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@combos-fun/
|
|
35
|
-
"@combos-fun/plugin-renderer": "0.0.
|
|
36
|
-
"@combos-fun/
|
|
34
|
+
"@combos-fun/engine": "0.0.8",
|
|
35
|
+
"@combos-fun/plugin-renderer": "0.0.8",
|
|
36
|
+
"@combos-fun/renderer-adapter": "0.0.8"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"build": "node ../../scripts/build-package.mjs"
|