@stanko/kaplay-inspector 0.0.3 → 0.0.4
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/README.md
CHANGED
|
@@ -70,6 +70,10 @@ interface InspectorOptions {
|
|
|
70
70
|
}
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
### Positioning
|
|
74
|
+
|
|
75
|
+
By default, the inspector has `position: fixed` and it sits at the bottom of the screen. If you want to move it around, the easiest way it to pass a custom class name through the options and position it yourself.
|
|
76
|
+
|
|
73
77
|
|
|
74
78
|
## TODO
|
|
75
79
|
|
|
@@ -78,8 +82,4 @@ interface InspectorOptions {
|
|
|
78
82
|
* [ ] Filter/search
|
|
79
83
|
* [ ] Persist search in URL or local storage
|
|
80
84
|
* [ ] Figure out why child bounding box are drawn in the wrong position
|
|
81
|
-
* [ ] Add documentation about positioning the inspector
|
|
82
85
|
* [ ] Collapse/Expand all button
|
|
83
|
-
* [x] Check if all of CSS is namespaced
|
|
84
|
-
* [x] Show/Hide button
|
|
85
|
-
* [x] Build and deploy simple demo
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { KAPLAYCtx } from "kaplay";
|
|
2
2
|
import type { InspectorOptions } from "../init";
|
|
3
3
|
export interface InspectorProps extends InspectorOptions {
|
|
4
|
-
k:
|
|
4
|
+
k: KAPLAYCtx;
|
|
5
5
|
}
|
|
6
6
|
export declare const Inspector: ({ updateTimeout, isVisibleOnLoad, k, }: InspectorProps) => import("preact").JSX.Element;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stanko/kaplay-inspector",
|
|
3
3
|
"description": "A dev tool for Kaplay which allows you to explore and inspect the game object tree real time.",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.0.
|
|
5
|
+
"version": "0.0.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/init.js",
|
|
8
8
|
"types": "./dist/init.d.ts",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"kaplay": "^4000.0.0-alpha.20"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"preact": "^10.
|
|
27
|
+
"preact": "^10.28.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@preact/preset-vite": "^2.10.2",
|
|
31
|
-
"@types/node": "^
|
|
31
|
+
"@types/node": "^25.0.2",
|
|
32
32
|
"typescript": "~5.9.3",
|
|
33
|
-
"vite": "^7.
|
|
33
|
+
"vite": "^7.3.0"
|
|
34
34
|
},
|
|
35
35
|
"repository": {
|
|
36
36
|
"type": "git",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"bugs": {
|
|
46
46
|
"url": "https://github.com/Stanko/kaplay-inspector/issues"
|
|
47
47
|
},
|
|
48
|
-
"homepage": "https://
|
|
48
|
+
"homepage": "https://muffinman.io/kaplay-inspector/"
|
|
49
49
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|