@thi.ng/imgui 2.2.57 → 2.2.58

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**: 2024-04-23T07:02:18Z
3
+ - **Last updated**: 2024-05-08T18:24:32Z
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.
@@ -2,8 +2,7 @@ import { pointInside } from "@thi.ng/geom/point-inside";
2
2
  import { Key } from "../api.js";
3
3
  import { tooltipRaw } from "../components/tooltip.js";
4
4
  const hoverButton = (gui, id, shape, info) => {
5
- if (gui.disabled)
6
- return false;
5
+ if (gui.disabled) return false;
7
6
  const aid = gui.activeID;
8
7
  const hover = (aid === "" || aid === id) && pointInside(shape, gui.mouse);
9
8
  if (hover) {
@@ -6,8 +6,7 @@ import { clamp2 } from "@thi.ng/vectors/clamp";
6
6
  import { roundN2 } from "@thi.ng/vectors/round";
7
7
  import { Key } from "../api.js";
8
8
  const isHoverSlider = (gui, id, shape, cursor = "ew-resize") => {
9
- if (gui.disabled)
10
- return false;
9
+ if (gui.disabled) return false;
11
10
  const aid = gui.activeID;
12
11
  const hover = aid === id || aid === "" && pointInside(shape, gui.mouse);
13
12
  if (hover) {
package/behaviors/text.js CHANGED
@@ -3,15 +3,13 @@ import { Key } from "../api.js";
3
3
  const WS = /\s/;
4
4
  const nextNonAlpha = (src, i) => {
5
5
  const n = src.length;
6
- while (i < n && WS.test(src[i]))
7
- i++;
6
+ while (i < n && WS.test(src[i])) i++;
8
7
  for (; i < n && !WS.test(src[i]); i++) {
9
8
  }
10
9
  return i;
11
10
  };
12
11
  const prevNonAlpha = (src, i) => {
13
- while (i > 0 && WS.test(src[i]))
14
- i--;
12
+ while (i > 0 && WS.test(src[i])) i--;
15
13
  for (; i > 0 && !WS.test(src[i]); i--) {
16
14
  }
17
15
  return i;
@@ -85,8 +85,7 @@ const textFieldRaw = (gui, id, x, y, w, h, txt, filter = () => true, info) => {
85
85
  drawCursor,
86
86
  maxLen
87
87
  );
88
- if (res !== void 0)
89
- return res;
88
+ if (res !== void 0) return res;
90
89
  }
91
90
  gui.lastID = id;
92
91
  };
package/gui.js CHANGED
@@ -174,8 +174,7 @@ class IMGUI {
174
174
  * @param id -
175
175
  */
176
176
  requestFocus(id) {
177
- if (this.disabled)
178
- return false;
177
+ if (this.disabled) return false;
179
178
  if (this.focusID === "" || this.activeID === id) {
180
179
  this.focusID = id;
181
180
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/imgui",
3
- "version": "2.2.57",
3
+ "version": "2.2.58",
4
4
  "description": "Immediate mode GUI with flexible state handling & data only shape output",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,22 +36,22 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.11.1",
40
- "@thi.ng/checks": "^3.6.3",
41
- "@thi.ng/geom": "^6.1.9",
42
- "@thi.ng/geom-api": "^4.0.9",
43
- "@thi.ng/geom-isec": "^3.0.9",
44
- "@thi.ng/geom-tessellate": "^2.1.131",
45
- "@thi.ng/layout": "^3.0.38",
46
- "@thi.ng/math": "^5.10.12",
47
- "@thi.ng/transducers": "^9.0.4",
48
- "@thi.ng/vectors": "^7.10.30"
39
+ "@thi.ng/api": "^8.11.2",
40
+ "@thi.ng/checks": "^3.6.4",
41
+ "@thi.ng/geom": "^7.0.0",
42
+ "@thi.ng/geom-api": "^4.0.10",
43
+ "@thi.ng/geom-isec": "^3.1.0",
44
+ "@thi.ng/geom-tessellate": "^2.1.132",
45
+ "@thi.ng/layout": "^3.0.39",
46
+ "@thi.ng/math": "^5.10.13",
47
+ "@thi.ng/transducers": "^9.0.5",
48
+ "@thi.ng/vectors": "^7.10.31"
49
49
  },
50
50
  "devDependencies": {
51
- "@microsoft/api-extractor": "^7.43.0",
52
- "esbuild": "^0.20.2",
53
- "typedoc": "^0.25.12",
54
- "typescript": "^5.4.3"
51
+ "@microsoft/api-extractor": "^7.43.2",
52
+ "esbuild": "^0.21.1",
53
+ "typedoc": "^0.25.13",
54
+ "typescript": "^5.4.5"
55
55
  },
56
56
  "keywords": [
57
57
  "browser",
@@ -158,5 +158,5 @@
158
158
  ],
159
159
  "year": 2019
160
160
  },
161
- "gitHead": "aed3421c21044c005fbcb7cc37965ccf85a870d2\n"
161
+ "gitHead": "df34b4a9e650cc7323575356de207d78933bdcf3\n"
162
162
  }