@thi.ng/imgui 2.1.11 → 2.1.14

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**: 2022-05-07T11:33:36Z
3
+ - **Last updated**: 2022-06-09T16:14:01Z
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.
@@ -1,5 +1,5 @@
1
1
  import type { IShape } from "@thi.ng/geom-api";
2
2
  import type { IMGUI } from "../gui.js";
3
- export declare const hoverButton: (gui: IMGUI, id: string, shape: IShape, info?: string | undefined) => boolean;
3
+ export declare const hoverButton: (gui: IMGUI, id: string, shape: IShape, info?: string) => boolean;
4
4
  export declare const handleButtonKeys: (gui: IMGUI) => true | undefined;
5
5
  //# sourceMappingURL=button.d.ts.map
@@ -2,7 +2,7 @@ import type { IShape } from "@thi.ng/geom-api";
2
2
  import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
3
3
  import type { Hash } from "../api.js";
4
4
  import type { IMGUI } from "../gui.js";
5
- export declare const buttonH: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, label?: string | undefined, labelHover?: string | undefined, info?: string | undefined) => boolean;
6
- export declare const buttonV: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, rows: number, label?: string | undefined, labelHover?: string | undefined, info?: string | undefined) => boolean;
7
- export declare const buttonRaw: (gui: IMGUI, id: string, shape: IShape, hash: Hash, label?: any, labelHover?: any, info?: string | undefined) => boolean;
5
+ export declare const buttonH: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, label?: string, labelHover?: string | undefined, info?: string) => boolean;
6
+ export declare const buttonV: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, rows: number, label?: string, labelHover?: string | undefined, info?: string) => boolean;
7
+ export declare const buttonRaw: (gui: IMGUI, id: string, shape: IShape, hash: Hash, label?: any, labelHover?: any, info?: string) => boolean;
8
8
  //# sourceMappingURL=button.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import type { Fn } from "@thi.ng/api";
2
2
  import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
3
3
  import type { IMGUI } from "../gui.js";
4
- export declare const dial: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, min: number, max: number, prec: number, val: number, label?: string | undefined, fmt?: Fn<number, string> | undefined, info?: string | undefined) => number | undefined;
5
- export declare const dialGroup: (gui: IMGUI, layout: IGridLayout, id: string, min: number, max: number, prec: number, horizontal: boolean, vals: number[], label: string[], fmt?: Fn<number, string> | undefined, info?: string[]) => number[] | undefined;
6
- export declare const dialRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: number, max: number, prec: number, val: number, lx: number, ly: number, label?: string | undefined, fmt?: Fn<number, string> | undefined, info?: string | undefined) => number | undefined;
4
+ export declare const dial: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, min: number, max: number, prec: number, val: number, label?: string, fmt?: Fn<number, string>, info?: string) => number | undefined;
5
+ export declare const dialGroup: (gui: IMGUI, layout: IGridLayout, id: string, min: number, max: number, prec: number, horizontal: boolean, vals: number[], label: string[], fmt?: Fn<number, string>, info?: string[]) => number[] | undefined;
6
+ export declare const dialRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: number, max: number, prec: number, val: number, lx: number, ly: number, label?: string, fmt?: Fn<number, string>, info?: string) => number | undefined;
7
7
  //# sourceMappingURL=dial.d.ts.map
@@ -10,5 +10,5 @@ import type { IMGUI } from "../gui.js";
10
10
  * @param title -
11
11
  * @param info -
12
12
  */
13
- export declare const dropdown: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, sel: number, items: string[], title: string, info?: string | undefined) => number | undefined;
13
+ export declare const dropdown: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, sel: number, items: string[], title: string, info?: string) => number | undefined;
14
14
  //# sourceMappingURL=dropdown.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
2
2
  import type { IMGUI } from "../gui.js";
3
- export declare const iconButton: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, icon: any, iconW: number, iconH: number, label?: string | undefined, info?: string | undefined) => boolean;
3
+ export declare const iconButton: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, icon: any, iconW: number, iconH: number, label?: string, info?: string) => boolean;
4
4
  //# sourceMappingURL=icon-button.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import type { Fn } from "@thi.ng/api";
2
2
  import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
3
3
  import type { IMGUI } from "../gui.js";
4
- export declare const ring: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, min: number, max: number, prec: number, val: number, thetaGap: number, rscale: number, label?: string | undefined, fmt?: Fn<number, string> | undefined, info?: string | undefined) => number | undefined;
5
- export declare const ringGroup: (gui: IMGUI, layout: IGridLayout, id: string, min: number, max: number, prec: number, horizontal: boolean, thetaGap: number, rscale: number, vals: number[], label: string[], fmt?: Fn<number, string> | undefined, info?: string[]) => number[] | undefined;
6
- export declare const ringRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: number, max: number, prec: number, val: number, thetaGap: number, rscale: number, lx: number, ly: number, label?: string | undefined, fmt?: Fn<number, string> | undefined, info?: string | undefined) => number | undefined;
4
+ export declare const ring: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, min: number, max: number, prec: number, val: number, thetaGap: number, rscale: number, label?: string, fmt?: Fn<number, string>, info?: string) => number | undefined;
5
+ export declare const ringGroup: (gui: IMGUI, layout: IGridLayout, id: string, min: number, max: number, prec: number, horizontal: boolean, thetaGap: number, rscale: number, vals: number[], label: string[], fmt?: Fn<number, string>, info?: string[]) => number[] | undefined;
6
+ export declare const ringRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: number, max: number, prec: number, val: number, thetaGap: number, rscale: number, lx: number, ly: number, label?: string, fmt?: Fn<number, string>, info?: string) => number | undefined;
7
7
  //# sourceMappingURL=ring.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import type { Fn } from "@thi.ng/api";
2
2
  import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
3
3
  import type { IMGUI } from "../gui.js";
4
- export declare const sliderH: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, min: number, max: number, prec: number, val: number, label?: string | undefined, fmt?: Fn<number, string> | undefined, info?: string | undefined) => number | undefined;
5
- export declare const sliderHGroup: (gui: IMGUI, layout: IGridLayout, id: string, min: number, max: number, prec: number, horizontal: boolean, vals: number[], label: string[], fmt?: Fn<number, string> | undefined, info?: string[]) => number[] | undefined;
6
- export declare const sliderHRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: number, max: number, prec: number, val: number, label?: string | undefined, fmt?: Fn<number, string> | undefined, info?: string | undefined) => number | undefined;
4
+ export declare const sliderH: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, min: number, max: number, prec: number, val: number, label?: string, fmt?: Fn<number, string>, info?: string) => number | undefined;
5
+ export declare const sliderHGroup: (gui: IMGUI, layout: IGridLayout, id: string, min: number, max: number, prec: number, horizontal: boolean, vals: number[], label: string[], fmt?: Fn<number, string>, info?: string[]) => number[] | undefined;
6
+ export declare const sliderHRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: number, max: number, prec: number, val: number, label?: string, fmt?: Fn<number, string>, info?: string) => number | undefined;
7
7
  //# sourceMappingURL=sliderh.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import type { Fn } from "@thi.ng/api";
2
2
  import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
3
3
  import type { IMGUI } from "../gui.js";
4
- export declare const sliderV: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, min: number, max: number, prec: number, val: number, rows: number, label?: string | undefined, fmt?: Fn<number, string> | undefined, info?: string | undefined) => number | undefined;
5
- export declare const sliderVGroup: (gui: IMGUI, layout: IGridLayout, id: string, min: number, max: number, prec: number, vals: number[], rows: number, label: string[], fmt?: Fn<number, string> | undefined, info?: string[]) => number[] | undefined;
6
- export declare const sliderVRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: number, max: number, prec: number, val: number, label?: string | undefined, fmt?: Fn<number, string> | undefined, info?: string | undefined) => number | undefined;
4
+ export declare const sliderV: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, min: number, max: number, prec: number, val: number, rows: number, label?: string, fmt?: Fn<number, string>, info?: string) => number | undefined;
5
+ export declare const sliderVGroup: (gui: IMGUI, layout: IGridLayout, id: string, min: number, max: number, prec: number, vals: number[], rows: number, label: string[], fmt?: Fn<number, string>, info?: string[]) => number[] | undefined;
6
+ export declare const sliderVRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: number, max: number, prec: number, val: number, label?: string, fmt?: Fn<number, string>, info?: string) => number | undefined;
7
7
  //# sourceMappingURL=sliderv.d.ts.map
@@ -1,6 +1,6 @@
1
1
  import type { Predicate } from "@thi.ng/api";
2
2
  import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
3
3
  import type { IMGUI } from "../gui.js";
4
- export declare const textField: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, label: string, filter?: Predicate<string>, info?: string | undefined) => string | undefined;
5
- export declare const textFieldRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, txt: string, filter?: Predicate<string>, info?: string | undefined) => string | undefined;
4
+ export declare const textField: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, label: string, filter?: Predicate<string>, info?: string) => string | undefined;
5
+ export declare const textFieldRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, txt: string, filter?: Predicate<string>, info?: string) => string | undefined;
6
6
  //# sourceMappingURL=textfield.d.ts.map
@@ -13,6 +13,6 @@ import type { IMGUI } from "../gui.js";
13
13
  * @param label -
14
14
  * @param info -
15
15
  */
16
- export declare const toggle: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, val: boolean, square?: boolean | undefined, label?: string | undefined, info?: string | undefined) => boolean | undefined;
17
- export declare const toggleRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, lx: number, val: boolean, label?: string | undefined, info?: string | undefined) => boolean | undefined;
16
+ export declare const toggle: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, val: boolean, square?: boolean, label?: string, info?: string) => boolean | undefined;
17
+ export declare const toggleRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, lx: number, val: boolean, label?: string, info?: string) => boolean | undefined;
18
18
  //# sourceMappingURL=toggle.d.ts.map
@@ -22,6 +22,6 @@ import type { IMGUI } from "../gui.js";
22
22
  * @param fmt -
23
23
  * @param info -
24
24
  */
25
- export declare const xyPad: (gui: IMGUI, layout: IGridLayout, id: string, min: Vec, max: Vec, prec: number, val: Vec, mode: number, yUp: boolean, label?: string | undefined, fmt?: Fn<Vec, string> | undefined, info?: string | undefined) => Vec | undefined;
26
- export declare const xyPadRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: Vec, max: Vec, prec: number, val: Vec, yUp: boolean | undefined, lx: number, ly: number, label?: string | undefined, fmt?: Fn<Vec, string> | undefined, info?: string | undefined) => Vec | undefined;
25
+ export declare const xyPad: (gui: IMGUI, layout: IGridLayout, id: string, min: Vec, max: Vec, prec: number, val: Vec, mode: number, yUp: boolean, label?: string, fmt?: Fn<Vec, string>, info?: string) => Vec | undefined;
26
+ export declare const xyPadRaw: (gui: IMGUI, id: string, x: number, y: number, w: number, h: number, min: Vec, max: Vec, prec: number, val: Vec, yUp: boolean | undefined, lx: number, ly: number, label?: string, fmt?: Fn<Vec, string>, info?: string) => Vec | undefined;
27
27
  //# sourceMappingURL=xypad.d.ts.map
package/layout.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
2
- export declare const layoutBox: (layout: IGridLayout | LayoutBox, spans?: [number, number] | undefined) => LayoutBox;
2
+ export declare const layoutBox: (layout: IGridLayout | LayoutBox, spans?: [number, number]) => LayoutBox;
3
3
  //# sourceMappingURL=layout.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/imgui",
3
- "version": "2.1.11",
3
+ "version": "2.1.14",
4
4
  "description": "Immediate mode GUI with flexible state handling & data only shape output",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -34,24 +34,24 @@
34
34
  "test": "testament test"
35
35
  },
36
36
  "dependencies": {
37
- "@thi.ng/api": "^8.3.6",
38
- "@thi.ng/checks": "^3.1.6",
39
- "@thi.ng/geom": "^3.2.3",
40
- "@thi.ng/geom-api": "^3.1.11",
41
- "@thi.ng/geom-isec": "^2.1.11",
42
- "@thi.ng/geom-tessellate": "^2.1.11",
43
- "@thi.ng/layout": "^2.1.6",
44
- "@thi.ng/math": "^5.3.2",
45
- "@thi.ng/transducers": "^8.3.2",
46
- "@thi.ng/vectors": "^7.5.3"
37
+ "@thi.ng/api": "^8.3.7",
38
+ "@thi.ng/checks": "^3.2.1",
39
+ "@thi.ng/geom": "^3.2.6",
40
+ "@thi.ng/geom-api": "^3.1.14",
41
+ "@thi.ng/geom-isec": "^2.1.14",
42
+ "@thi.ng/geom-tessellate": "^2.1.14",
43
+ "@thi.ng/layout": "^2.1.8",
44
+ "@thi.ng/math": "^5.3.3",
45
+ "@thi.ng/transducers": "^8.3.5",
46
+ "@thi.ng/vectors": "^7.5.6"
47
47
  },
48
48
  "devDependencies": {
49
- "@microsoft/api-extractor": "^7.23.1",
50
- "@thi.ng/testament": "^0.2.6",
49
+ "@microsoft/api-extractor": "^7.25.0",
50
+ "@thi.ng/testament": "^0.2.8",
51
51
  "rimraf": "^3.0.2",
52
52
  "tools": "^0.0.1",
53
- "typedoc": "^0.22.15",
54
- "typescript": "^4.6.4"
53
+ "typedoc": "^0.22.17",
54
+ "typescript": "^4.7.3"
55
55
  },
56
56
  "keywords": [
57
57
  "browser",
@@ -158,5 +158,5 @@
158
158
  ],
159
159
  "year": 2019
160
160
  },
161
- "gitHead": "cf084be5fd5932226054d2dd32bad35481379f5d\n"
161
+ "gitHead": "ab0188234419f2d9f471de80871df930e5555bd6\n"
162
162
  }