@thi.ng/imgui 3.2.35 → 3.2.36

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-07-21T08:21:58Z
3
+ - **Last updated**: 2025-07-26T12:33:06Z
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
@@ -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.49 KB
274
+ Package sizes (brotli'd, pre-treeshake): ESM: 7.48 KB
275
275
 
276
276
  ## Dependencies
277
277
 
@@ -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(layout.x, layout.y, layout.w, 1, layout.ch, layout.gap);
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;
@@ -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(layout.x, layout.y, layout.w, n, layout.ch, layout.gap) : gridLayout(layout.x, layout.y, layout.w, 1, layout.ch, layout.gap);
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({
@@ -26,13 +26,13 @@ const xyPad = ({
26
26
  }) => {
27
27
  let box;
28
28
  const ch = layout.cellH;
29
- const gap = layout.gap;
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 + gap) | 0 : mode;
33
+ const rows = mode === "prop" ? layout.cellW / (ch + gapY) | 0 : mode;
34
34
  box = layout.next([1, rows + 1]);
35
- box.h -= ch + gap;
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 + gap + ch / 2 + gui.theme.baseLine,
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.35",
3
+ "version": "3.2.36",
4
4
  "description": "Immediate mode GUI with flexible state handling & data only shape output",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,13 +41,13 @@
41
41
  "dependencies": {
42
42
  "@thi.ng/api": "^8.11.32",
43
43
  "@thi.ng/checks": "^3.7.12",
44
- "@thi.ng/geom": "^8.2.3",
45
- "@thi.ng/geom-isec": "^4.0.54",
46
- "@thi.ng/layout": "^3.2.0",
44
+ "@thi.ng/geom": "^8.2.4",
45
+ "@thi.ng/geom-isec": "^4.0.55",
46
+ "@thi.ng/layout": "^4.0.0",
47
47
  "@thi.ng/math": "^5.11.32",
48
- "@thi.ng/ramp": "^3.3.49",
48
+ "@thi.ng/ramp": "^3.3.50",
49
49
  "@thi.ng/transducers": "^9.6.3",
50
- "@thi.ng/vectors": "^8.5.0"
50
+ "@thi.ng/vectors": "^8.5.1"
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": "c5c6b895169788c7f8b3d6d61ff76c0c6e5d2c2a\n"
165
+ "gitHead": "b138ae2fb8567acfe724cc675654878f60d26631\n"
166
166
  }