@combos-fun/plugin-renderer-render 0.1.15 → 0.1.17

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 +5 -12
  2. package/package.json +5 -5
package/agent-skill.md CHANGED
@@ -1,22 +1,15 @@
1
1
  # `@combos-fun/plugin-renderer-render` — Agent notes
2
2
 
3
- Read only for per-GameObject visibility, opacity, or sibling draw ordering.
3
+ Per-GameObject visibility, opacity, and sibling order.
4
4
 
5
5
  ```ts
6
- import { Render, RenderSystem, type RenderParams } from '@combos-fun/plugin-renderer-render';
6
+ import { Render, RenderSystem } from '@combos-fun/plugin-renderer-render';
7
7
  ```
8
8
 
9
- `Render.componentName = 'Render'`; `RenderSystem.systemName = 'Render'`.
9
+ `Render.componentName = 'Render'`. `RenderSystem.systemName = 'Render'`.
10
10
 
11
- | Field | Type | Default |
12
- |---|---|---|
13
- | `visible` | `boolean?` | `true` |
14
- | `alpha` | `number?` | `1` |
15
- | `zIndex` | `number?` | `0` |
16
- | `sortableChildren` | `boolean?` | `false` |
11
+ `visible` default `true`, `alpha` `1`, `zIndex` `0`, `sortableChildren` `false`. `alpha` and `visible` copy onto the container each frame. Put `sortableChildren: true` on the parent and `zIndex` on the children. A child `zIndex` without that parent flag does not reorder.
17
12
 
18
13
  ```ts
19
- go.addComponent(new Render({ visible: true, alpha: 0.75, zIndex: 5 }));
14
+ go.addComponent(new Render({ alpha: 0.75, zIndex: 5 }));
20
15
  ```
21
-
22
- `alpha` and `visible` are copied to the GameObject container each frame. Ordering is explicit: put `Render({ sortableChildren: true })` on the parent and `Render({ zIndex })` on its children. Changing a child's `zIndex` marks the parent for sorting; a bare `zIndex` without the parent setting does not reorder siblings.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@combos-fun/plugin-renderer-render",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Per-GameObject visibility / alpha / zIndex / sortable-children control",
5
5
  "main": "index.js",
6
6
  "module": "dist/plugin-renderer-render.esm.js",
@@ -36,10 +36,10 @@
36
36
  "author": "sun668 <q947692259@gmail.com>",
37
37
  "dependencies": {
38
38
  "pixi.js": "^8.18.1",
39
- "@combos-fun/plugin-renderer": "0.1.15",
40
- "@combos-fun/renderer-adapter": "0.1.15",
41
- "@combos-fun/engine": "0.1.15",
42
- "@combos-fun/inspector-decorator": "0.1.15"
39
+ "@combos-fun/plugin-renderer": "0.1.17",
40
+ "@combos-fun/engine": "0.1.17",
41
+ "@combos-fun/renderer-adapter": "0.1.17",
42
+ "@combos-fun/inspector-decorator": "0.1.17"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "node ../../scripts/build-package.mjs"