@thi.ng/imgui 3.2.68 → 3.2.70

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.
@@ -25,19 +25,26 @@ const radialMenu = ({
25
25
  const key = hash([x, y, r, n, ~~gui.disabled]);
26
26
  gui.registerID(id, key);
27
27
  const cells = gui.resource(id, key, () => [
28
- ...mapIndexed((i, cell) => {
29
- const p = add2(
30
- null,
31
- [-gui.textWidth(items[i]) >> 1, gui.theme.baseLine],
32
- centroid(cell)
33
- );
34
- return [
35
- cell,
36
- hash(p),
37
- textLabelRaw(p, gui.textColor(false), items[i]),
38
- textLabelRaw(p, gui.textColor(true), items[i])
39
- ];
40
- }, groupFromTessellation(tessellate(circle([x, y], r, { __samples: n }), [TESSELLATE_TRI_FAN])))
28
+ ...mapIndexed(
29
+ (i, cell) => {
30
+ const p = add2(
31
+ null,
32
+ [-gui.textWidth(items[i]) >> 1, gui.theme.baseLine],
33
+ centroid(cell)
34
+ );
35
+ return [
36
+ cell,
37
+ hash(p),
38
+ textLabelRaw(p, gui.textColor(false), items[i]),
39
+ textLabelRaw(p, gui.textColor(true), items[i])
40
+ ];
41
+ },
42
+ groupFromTessellation(
43
+ tessellate(circle([x, y], r, { __samples: n }), [
44
+ TESSELLATE_TRI_FAN
45
+ ])
46
+ )
47
+ )
41
48
  ]);
42
49
  let res;
43
50
  let sel = -1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/imgui",
3
- "version": "3.2.68",
3
+ "version": "3.2.70",
4
4
  "description": "Immediate mode GUI with flexible state handling & data only shape output",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -40,15 +40,15 @@
40
40
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
41
41
  },
42
42
  "dependencies": {
43
- "@thi.ng/api": "^8.12.16",
44
- "@thi.ng/checks": "^3.8.6",
45
- "@thi.ng/geom": "^8.3.21",
46
- "@thi.ng/geom-isec": "^4.0.79",
47
- "@thi.ng/layout": "^4.1.7",
48
- "@thi.ng/math": "^5.15.5",
49
- "@thi.ng/ramp": "^3.3.78",
50
- "@thi.ng/transducers": "^9.6.29",
51
- "@thi.ng/vectors": "^8.6.23"
43
+ "@thi.ng/api": "^8.12.17",
44
+ "@thi.ng/checks": "^3.8.7",
45
+ "@thi.ng/geom": "^8.3.23",
46
+ "@thi.ng/geom-isec": "^4.0.81",
47
+ "@thi.ng/layout": "^4.1.8",
48
+ "@thi.ng/math": "^5.15.6",
49
+ "@thi.ng/ramp": "^3.3.80",
50
+ "@thi.ng/transducers": "^9.6.30",
51
+ "@thi.ng/vectors": "^8.6.25"
52
52
  },
53
53
  "devDependencies": {
54
54
  "esbuild": "^0.27.2",
@@ -163,5 +163,5 @@
163
163
  ],
164
164
  "year": 2019
165
165
  },
166
- "gitHead": "82ec7cc54d0e89dad89cde87fa36c444512d71d7\n"
166
+ "gitHead": "d46ec975b426bb2ceb137cab734395c97436d59b\n"
167
167
  }