@thi.ng/imgui 3.2.35 → 3.2.37
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/CHANGELOG.md +7 -1
- package/README.md +2 -2
- package/components/dropdown.js +9 -1
- package/components/radio.js +17 -1
- package/components/xypad.js +4 -4
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-07-
|
|
3
|
+
- **Last updated**: 2025-07-30T22:32:35Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -11,6 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
11
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
12
|
and/or version bumps of transitive dependencies.
|
|
13
13
|
|
|
14
|
+
### [3.2.36](https://github.com/thi-ng/umbrella/tree/@thi.ng/imgui@3.2.36) (2025-07-26)
|
|
15
|
+
|
|
16
|
+
#### ♻️ Refactoring
|
|
17
|
+
|
|
18
|
+
- minor update layout handling in components ([91885c9](https://github.com/thi-ng/umbrella/commit/91885c9))
|
|
19
|
+
|
|
14
20
|
### [3.2.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/imgui@3.2.12) (2025-04-16)
|
|
15
21
|
|
|
16
22
|
#### ♻️ Refactoring
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
[](https://mastodon.thi.ng/@toxi)
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
|
-
> This is one of
|
|
10
|
+
> This is one of 210 standalone projects, maintained as part
|
|
11
11
|
> of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
@@ -271,7 +271,7 @@ Browser ESM import:
|
|
|
271
271
|
|
|
272
272
|
[JSDelivr documentation](https://www.jsdelivr.com/)
|
|
273
273
|
|
|
274
|
-
Package sizes (brotli'd, pre-treeshake): ESM: 7.
|
|
274
|
+
Package sizes (brotli'd, pre-treeshake): ESM: 7.48 KB
|
|
275
275
|
|
|
276
276
|
## Dependencies
|
|
277
277
|
|
package/components/dropdown.js
CHANGED
|
@@ -15,7 +15,15 @@ const dropdown = ({
|
|
|
15
15
|
info
|
|
16
16
|
}) => {
|
|
17
17
|
const open = gui.state(id, () => false);
|
|
18
|
-
const nested = isLayout(layout) ? layout.nest(1, [1, open ? items.length : 1]) : gridLayout(
|
|
18
|
+
const nested = isLayout(layout) ? layout.nest(1, [1, open ? items.length : 1]) : gridLayout(
|
|
19
|
+
layout.x,
|
|
20
|
+
layout.y,
|
|
21
|
+
layout.w,
|
|
22
|
+
1,
|
|
23
|
+
layout.ch,
|
|
24
|
+
layout.gapX,
|
|
25
|
+
layout.gapY
|
|
26
|
+
);
|
|
19
27
|
let res;
|
|
20
28
|
const box = nested.next();
|
|
21
29
|
const { x, y, w, h } = box;
|
package/components/radio.js
CHANGED
|
@@ -12,7 +12,23 @@ const radio = ({
|
|
|
12
12
|
info
|
|
13
13
|
}) => {
|
|
14
14
|
const n = label.length;
|
|
15
|
-
const nested = isLayout(layout) ? horizontal ? layout.nest(n, [n, 1]) : layout.nest(1, [1, n]) : horizontal ? gridLayout(
|
|
15
|
+
const nested = isLayout(layout) ? horizontal ? layout.nest(n, [n, 1]) : layout.nest(1, [1, n]) : horizontal ? gridLayout(
|
|
16
|
+
layout.x,
|
|
17
|
+
layout.y,
|
|
18
|
+
layout.w,
|
|
19
|
+
n,
|
|
20
|
+
layout.ch,
|
|
21
|
+
layout.gapX,
|
|
22
|
+
layout.gapY
|
|
23
|
+
) : gridLayout(
|
|
24
|
+
layout.x,
|
|
25
|
+
layout.y,
|
|
26
|
+
layout.w,
|
|
27
|
+
1,
|
|
28
|
+
layout.ch,
|
|
29
|
+
layout.gapX,
|
|
30
|
+
layout.gapY
|
|
31
|
+
);
|
|
16
32
|
let res;
|
|
17
33
|
for (let i = 0; i < n; i++) {
|
|
18
34
|
toggle({
|
package/components/xypad.js
CHANGED
|
@@ -26,13 +26,13 @@ const xyPad = ({
|
|
|
26
26
|
}) => {
|
|
27
27
|
let box;
|
|
28
28
|
const ch = layout.cellH;
|
|
29
|
-
const
|
|
29
|
+
const gapY = layout.gapY;
|
|
30
30
|
if (mode === "square") {
|
|
31
31
|
box = layout.nextSquare();
|
|
32
32
|
} else {
|
|
33
|
-
const rows = mode === "prop" ? layout.cellW / (ch +
|
|
33
|
+
const rows = mode === "prop" ? layout.cellW / (ch + gapY) | 0 : mode;
|
|
34
34
|
box = layout.next([1, rows + 1]);
|
|
35
|
-
box.h -= ch +
|
|
35
|
+
box.h -= ch + gapY;
|
|
36
36
|
}
|
|
37
37
|
return xyPadRaw(
|
|
38
38
|
gui,
|
|
@@ -47,7 +47,7 @@ const xyPad = ({
|
|
|
47
47
|
value,
|
|
48
48
|
yUp,
|
|
49
49
|
0,
|
|
50
|
-
box.h +
|
|
50
|
+
box.h + gapY + ch / 2 + gui.theme.baseLine,
|
|
51
51
|
label,
|
|
52
52
|
fmt,
|
|
53
53
|
info
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/imgui",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.37",
|
|
4
4
|
"description": "Immediate mode GUI with flexible state handling & data only shape output",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@thi.ng/api": "^8.11.
|
|
43
|
-
"@thi.ng/checks": "^3.7.
|
|
44
|
-
"@thi.ng/geom": "^8.2.
|
|
45
|
-
"@thi.ng/geom-isec": "^4.0.
|
|
46
|
-
"@thi.ng/layout": "^
|
|
47
|
-
"@thi.ng/math": "^5.11.
|
|
48
|
-
"@thi.ng/ramp": "^3.3.
|
|
49
|
-
"@thi.ng/transducers": "^9.6.
|
|
50
|
-
"@thi.ng/vectors": "^8.
|
|
42
|
+
"@thi.ng/api": "^8.11.33",
|
|
43
|
+
"@thi.ng/checks": "^3.7.13",
|
|
44
|
+
"@thi.ng/geom": "^8.2.5",
|
|
45
|
+
"@thi.ng/geom-isec": "^4.0.56",
|
|
46
|
+
"@thi.ng/layout": "^4.0.1",
|
|
47
|
+
"@thi.ng/math": "^5.11.33",
|
|
48
|
+
"@thi.ng/ramp": "^3.3.51",
|
|
49
|
+
"@thi.ng/transducers": "^9.6.4",
|
|
50
|
+
"@thi.ng/vectors": "^8.6.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"esbuild": "^0.25.8",
|
|
@@ -162,5 +162,5 @@
|
|
|
162
162
|
],
|
|
163
163
|
"year": 2019
|
|
164
164
|
},
|
|
165
|
-
"gitHead": "
|
|
165
|
+
"gitHead": "1df8a3a9061257ea73ccf1ab9cdf63c81a9f519f\n"
|
|
166
166
|
}
|