@combos-fun/plugin-renderer-img 0.1.14 → 0.1.16
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 -11
- package/package.json +5 -5
package/agent-skill.md
CHANGED
|
@@ -1,21 +1,13 @@
|
|
|
1
1
|
# `@combos-fun/plugin-renderer-img` — Agent notes
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
One static image. An atlas frame uses `Sprite`.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
|
-
import { Img, ImgSystem
|
|
6
|
+
import { Img, ImgSystem } from '@combos-fun/plugin-renderer-img';
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
`Img.componentName = 'Img'
|
|
9
|
+
`Img.componentName = 'Img'`. `ImgSystem.systemName = 'Img'`. Importing the package registers the IMAGE instance. `resource` is an IMAGE name. Size follows `Transform2D.size`; a zero size is invisible. Observes `resource`.
|
|
10
10
|
|
|
11
11
|
```ts
|
|
12
|
-
interface ImgParams {
|
|
13
|
-
resource: string; // RESOURCE_TYPE.IMAGE name
|
|
14
|
-
}
|
|
15
|
-
|
|
16
12
|
go.addComponent(new Img({ resource: 'logo' }));
|
|
17
13
|
```
|
|
18
|
-
|
|
19
|
-
Importing the package registers the IMAGE instance and destroy handlers. The system reacts to `resource` changes.
|
|
20
|
-
|
|
21
|
-
Display width and height always follow `Transform2D.size`; intrinsic image dimensions are not adopted. Set `Transform2D.position`, `size`, and `origin` as needed—a zero size makes the image invisible.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@combos-fun/plugin-renderer-img",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"description": "Static image rendering",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "dist/plugin-renderer-img.esm.js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"author": "sun668 <q947692259@gmail.com>",
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"pixi.js": "^8.18.1",
|
|
38
|
-
"@combos-fun/plugin-renderer": "0.1.
|
|
39
|
-
"@combos-fun/
|
|
40
|
-
"@combos-fun/engine": "0.1.
|
|
41
|
-
"@combos-fun/
|
|
38
|
+
"@combos-fun/plugin-renderer": "0.1.16",
|
|
39
|
+
"@combos-fun/inspector-decorator": "0.1.16",
|
|
40
|
+
"@combos-fun/engine": "0.1.16",
|
|
41
|
+
"@combos-fun/renderer-adapter": "0.1.16"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "node ../../scripts/build-package.mjs"
|