@thi.ng/imgui 3.2.10 → 3.2.12

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-04-01T21:42:04Z
3
+ - **Last updated**: 2025-04-16T11:11:14Z
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.12](https://github.com/thi-ng/umbrella/tree/@thi.ng/imgui@3.2.12) (2025-04-16)
15
+
16
+ #### ♻️ Refactoring
17
+
18
+ - minor internal updates (imports) ([db32858](https://github.com/thi-ng/umbrella/commit/db32858))
19
+
14
20
  ### [3.2.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/imgui@3.2.1) (2025-02-05)
15
21
 
16
22
  #### 🩹 Bug fixes
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.45 KB
274
+ Package sizes (brotli'd, pre-treeshake): ESM: 7.49 KB
275
275
 
276
276
  ## Dependencies
277
277
 
@@ -4,7 +4,7 @@ import type { Vec } from "@thi.ng/vectors";
4
4
  import type { IMGUI } from "../gui.js";
5
5
  export declare const isHoverSlider: (gui: IMGUI, id: string, shape: IShape, cursor?: string) => boolean;
6
6
  export declare const slider1Val: FnN4;
7
- export declare const slider2Val: (v: Vec, min: Vec, max: Vec, prec: number) => Vec;
7
+ export declare const slider2Val: (v: Vec, min: Vec, max: Vec, prec: number) => Vec<number>;
8
8
  export declare const handleSlider1Keys: (gui: IMGUI, min: number, max: number, prec: number, value: number) => number | undefined;
9
- export declare const handleSlider2Keys: (gui: IMGUI, min: Vec, max: Vec, prec: number, value: Vec, yUp: boolean) => Vec | undefined;
9
+ export declare const handleSlider2Keys: (gui: IMGUI, min: Vec, max: Vec, prec: number, value: Vec, yUp: boolean) => Vec<number> | undefined;
10
10
  //# sourceMappingURL=slider.d.ts.map
@@ -3,7 +3,7 @@ import { clamp } from "@thi.ng/math/interval";
3
3
  import { roundTo } from "@thi.ng/math/prec";
4
4
  import { add2 } from "@thi.ng/vectors/add";
5
5
  import { clamp2 } from "@thi.ng/vectors/clamp";
6
- import { roundN2 } from "@thi.ng/vectors/round";
6
+ import { roundN2 } from "@thi.ng/vectors/roundn";
7
7
  import { Key } from "../api.js";
8
8
  const isHoverSlider = (gui, id, shape, cursor = "ew-resize") => {
9
9
  if (gui.disabled) return false;
@@ -7,7 +7,7 @@ import { mix } from "@thi.ng/math/mix";
7
7
  import { roundTo } from "@thi.ng/math/prec";
8
8
  import { map } from "@thi.ng/transducers/map";
9
9
  import { ONE2, ZERO2 } from "@thi.ng/vectors/api";
10
- import { clamp01_2 } from "@thi.ng/vectors/clamp";
10
+ import { clamp01_2 } from "@thi.ng/vectors/clamp01";
11
11
  import { fit2 } from "@thi.ng/vectors/fit";
12
12
  import { hash } from "@thi.ng/vectors/hash";
13
13
  import { mix2 } from "@thi.ng/vectors/mix";
@@ -23,6 +23,6 @@ export interface XYPadOpts extends Omit<ComponentOpts, "layout"> {
23
23
  yUp?: boolean;
24
24
  fmt?: Fn<Vec, string>;
25
25
  }
26
- export declare const xyPad: ({ gui, layout, id, min, max, step, value, mode, yUp, label, info, fmt, }: XYPadOpts) => Maybe<Vec>;
27
- export declare const xyPadRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: Vec, max: Vec, step: number, val: Vec, yUp: boolean | undefined, labelX: number, labelY: number, label?: string, fmt?: Fn<Vec, string>, info?: string) => Maybe<Vec>;
26
+ export declare const xyPad: ({ gui, layout, id, min, max, step, value, mode, yUp, label, info, fmt, }: XYPadOpts) => Maybe<Vec<number>>;
27
+ export declare const xyPadRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: Vec, max: Vec, step: number, val: Vec, yUp: boolean | undefined, labelX: number, labelY: number, label?: string, fmt?: Fn<Vec, string>, info?: string) => Maybe<Vec<number>>;
28
28
  //# sourceMappingURL=xypad.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/imgui",
3
- "version": "3.2.10",
3
+ "version": "3.2.12",
4
4
  "description": "Immediate mode GUI with flexible state handling & data only shape output",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -39,20 +39,20 @@
39
39
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@thi.ng/api": "^8.11.25",
43
- "@thi.ng/checks": "^3.7.5",
44
- "@thi.ng/geom": "^8.1.37",
45
- "@thi.ng/geom-isec": "^4.0.39",
46
- "@thi.ng/layout": "^3.1.23",
47
- "@thi.ng/math": "^5.11.25",
48
- "@thi.ng/ramp": "^3.3.29",
49
- "@thi.ng/transducers": "^9.2.25",
50
- "@thi.ng/vectors": "^7.13.0"
42
+ "@thi.ng/api": "^8.11.26",
43
+ "@thi.ng/checks": "^3.7.6",
44
+ "@thi.ng/geom": "^8.1.39",
45
+ "@thi.ng/geom-isec": "^4.0.41",
46
+ "@thi.ng/layout": "^3.1.24",
47
+ "@thi.ng/math": "^5.11.26",
48
+ "@thi.ng/ramp": "^3.3.31",
49
+ "@thi.ng/transducers": "^9.2.26",
50
+ "@thi.ng/vectors": "^8.0.0"
51
51
  },
52
52
  "devDependencies": {
53
53
  "esbuild": "^0.25.2",
54
- "typedoc": "^0.28.1",
55
- "typescript": "^5.8.2"
54
+ "typedoc": "^0.28.2",
55
+ "typescript": "^5.8.3"
56
56
  },
57
57
  "keywords": [
58
58
  "browser",
@@ -162,5 +162,5 @@
162
162
  ],
163
163
  "year": 2019
164
164
  },
165
- "gitHead": "87aa2d0e64a357476c10fd57aabdfded13c79f7d\n"
165
+ "gitHead": "c464b6948f92cba90c2ea75b59203dad894fb450\n"
166
166
  }