@thi.ng/imgui 2.2.3 → 2.2.5
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 +7 -1
- package/README.md +2 -4
- package/behaviors/button.d.ts.map +1 -0
- package/behaviors/dial.d.ts.map +1 -0
- package/behaviors/slider.d.ts.map +1 -0
- package/behaviors/text.d.ts.map +1 -0
- package/components/button.d.ts +2 -2
- package/components/button.d.ts.map +1 -0
- package/components/dial.d.ts +2 -2
- package/components/dial.d.ts.map +1 -0
- package/components/dropdown.d.ts +1 -1
- package/components/dropdown.d.ts.map +1 -0
- package/components/icon-button.d.ts +1 -1
- package/components/icon-button.d.ts.map +1 -0
- package/components/icon-button.js +1 -1
- package/components/radial-menu.d.ts.map +1 -0
- package/components/radio.d.ts +1 -1
- package/components/radio.d.ts.map +1 -0
- package/components/ring.d.ts +2 -2
- package/components/ring.d.ts.map +1 -0
- package/components/sliderh.d.ts +2 -2
- package/components/sliderh.d.ts.map +1 -0
- package/components/sliderv.d.ts +2 -2
- package/components/sliderv.d.ts.map +1 -0
- package/components/textfield.d.ts +1 -1
- package/components/textfield.d.ts.map +1 -0
- package/components/textlabel.d.ts +1 -1
- package/components/textlabel.d.ts.map +1 -0
- package/components/toggle.d.ts +1 -1
- package/components/toggle.d.ts.map +1 -0
- package/components/tooltip.d.ts.map +1 -0
- package/components/xypad.d.ts +1 -1
- package/components/xypad.d.ts.map +1 -0
- package/layout.d.ts +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2023-10-
|
|
3
|
+
- **Last updated**: 2023-10-30T14:31:56Z
|
|
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.
|
|
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
9
9
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
10
|
and/or version bumps of transitive dependencies.
|
|
11
11
|
|
|
12
|
+
### [2.2.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/imgui@2.2.5) (2023-10-30)
|
|
13
|
+
|
|
14
|
+
#### ♻️ Refactoring
|
|
15
|
+
|
|
16
|
+
- add IGridLayout generics ([bdca6fc](https://github.com/thi-ng/umbrella/commit/bdca6fc))
|
|
17
|
+
|
|
12
18
|
## [2.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/imgui@2.2.0) (2023-10-18)
|
|
13
19
|
|
|
14
20
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -270,11 +270,9 @@ Package sizes (brotli'd, pre-treeshake): ESM: 6.51 KB
|
|
|
270
270
|
|
|
271
271
|
## Usage examples
|
|
272
272
|
|
|
273
|
-
Several
|
|
273
|
+
Several projects in this repo's
|
|
274
274
|
[/examples](https://github.com/thi-ng/umbrella/tree/develop/examples)
|
|
275
|
-
directory are using this package
|
|
276
|
-
|
|
277
|
-
A selection:
|
|
275
|
+
directory are using this package:
|
|
278
276
|
|
|
279
277
|
| Screenshot | Description | Live demo | Source |
|
|
280
278
|
|:--------------------------------------------------------------------------------------------------------------------|:-------------------------------------------|:---------------------------------------------------|:--------------------------------------------------------------------------------|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../src/behaviors/button.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,eAAO,MAAM,WAAW,QAClB,KAAK,MACN,MAAM,SACH,MAAM,SACN,MAAM,YAYb,CAAC;AAEF,eAAO,MAAM,gBAAgB,QAAS,KAAK,qBAU1C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dial.d.ts","sourceRoot":"","sources":["../src/behaviors/dial.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAKnD,eAAO,MAAM,OAAO,MAChB,WAAW,KACX,WAAW,cACF,MAAM,YACR,MAAM,OACX,MAAM,OACN,MAAM,QACL,MAAM,WAUZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../src/behaviors/slider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG/C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAK3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC,eAAO,MAAM,aAAa,QACpB,KAAK,MACN,MAAM,SACH,MAAM,6BAWb,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,IACS,CAAC;AAEnC,eAAO,MAAM,UAAU,MAAO,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,MAAM,QACtB,CAAC;AAE9C,eAAO,MAAM,iBAAiB,QACxB,KAAK,OACL,MAAM,OACN,MAAM,QACL,MAAM,OACP,MAAM,uBAeX,CAAC;AAEF,eAAO,MAAM,iBAAiB,QACxB,KAAK,OACL,GAAG,OACH,GAAG,QACF,MAAM,OACP,GAAG,OACH,OAAO,oBAuBZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../src/behaviors/text.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAwBvC,eAAO,MAAM,mBAAmB,QAC1B,KAAK;YACO,MAAM;YAAU,MAAM;WAC/B,UAAU,MAAM,CAAC,OACpB,MAAM,UACH,MAAM,cACF,MAAM,UACV,MAAM,uBA8Dd,CAAC"}
|
package/components/button.d.ts
CHANGED
|
@@ -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, 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;
|
|
5
|
+
export declare const buttonH: (gui: IMGUI, layout: IGridLayout<any> | LayoutBox, id: string, label?: string, labelHover?: string | undefined, info?: string) => boolean;
|
|
6
|
+
export declare const buttonV: (gui: IMGUI, layout: IGridLayout<any> | LayoutBox, id: string, rows: number, label?: string, labelHover?: string | undefined, info?: string) => boolean;
|
|
7
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../src/components/button.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE/C,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG7D,OAAO,KAAK,EAAY,IAAI,EAAE,MAAM,WAAW,CAAC;AAEhD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AA4BvC,eAAO,MAAM,OAAO,QACd,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,UACF,MAAM,0CAEP,MAAM,YAkBb,CAAC;AAEF,eAAO,MAAM,OAAO,QACd,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,QACJ,MAAM,UACJ,MAAM,0CAEP,MAAM,YAkBb,CAAC;AAEF,eAAO,MAAM,SAAS,QAChB,KAAK,MACN,MAAM,SACH,MAAM,QACP,IAAI,UACF,GAAG,eACE,GAAG,SACT,MAAM,YAoBb,CAAC"}
|
package/components/dial.d.ts
CHANGED
|
@@ -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, fmt?: Fn<number, string>, info?: string) => number | undefined;
|
|
5
|
-
export declare const dialGroup: (gui: IMGUI, layout: IGridLayout
|
|
4
|
+
export declare const dial: (gui: IMGUI, layout: IGridLayout<any> | 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<any>, id: string, min: number, max: number, prec: number, horizontal: boolean, vals: number[], label: string[], fmt?: Fn<number, string>, info?: string[]) => number[] | undefined;
|
|
6
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dial.d.ts","sourceRoot":"","sources":["../src/components/dial.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQ7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIvC,eAAO,MAAM,IAAI,QACX,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,OACL,MAAM,OACN,MAAM,QACL,MAAM,OACP,MAAM,UACH,MAAM,QACR,GAAG,MAAM,EAAE,MAAM,CAAC,SACjB,MAAM,uBAoBb,CAAC;AAEF,eAAO,MAAM,SAAS,QAChB,KAAK,UACF,YAAY,GAAG,CAAC,MACpB,MAAM,OACL,MAAM,OACN,MAAM,QACL,MAAM,cACA,OAAO,QACb,MAAM,EAAE,SACP,MAAM,EAAE,QACT,GAAG,MAAM,EAAE,MAAM,CAAC,SAClB,MAAM,EAAE,yBA2Bd,CAAC;AAEF,eAAO,MAAM,OAAO,QACd,KAAK,MACN,MAAM,KACP,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,OACJ,MAAM,OACN,MAAM,QACL,MAAM,OACP,MAAM,MACP,MAAM,MACN,MAAM,UACF,MAAM,QACR,GAAG,MAAM,EAAE,MAAM,CAAC,SACjB,MAAM,uBA0Db,CAAC"}
|
package/components/dropdown.d.ts
CHANGED
|
@@ -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) => number | undefined;
|
|
13
|
+
export declare const dropdown: (gui: IMGUI, layout: IGridLayout<any> | LayoutBox, id: string, sel: number, items: string[], title: string, info?: string) => number | undefined;
|
|
14
14
|
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../src/components/dropdown.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAM7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAGvC;;;;;;;;;GASG;AACH,eAAO,MAAM,QAAQ,QACf,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,OACL,MAAM,SACJ,MAAM,EAAE,SACR,MAAM,SACN,MAAM,uBAuDb,CAAC"}
|
|
@@ -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, info?: string) => boolean;
|
|
3
|
+
export declare const iconButton: (gui: IMGUI, layout: IGridLayout<any> | LayoutBox, id: string, icon: any, iconW: number, iconH: number, label?: string, info?: string) => boolean;
|
|
4
4
|
//# sourceMappingURL=icon-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../src/components/icon-button.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAKvC,eAAO,MAAM,UAAU,QACjB,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,QACJ,GAAG,SACF,MAAM,SACN,MAAM,UACL,MAAM,SACP,MAAM,YA4Cb,CAAC"}
|
|
@@ -12,7 +12,7 @@ export const iconButton = (gui, layout, id, icon, iconW, iconH, label, info) =>
|
|
|
12
12
|
: iconW + 2 * pad;
|
|
13
13
|
const bodyH = iconH + pad;
|
|
14
14
|
const { x, y, w, h } = isLayout(layout)
|
|
15
|
-
? layout.next(layout.
|
|
15
|
+
? layout.next(layout.spanForSize(bodyW, bodyH))
|
|
16
16
|
: layout;
|
|
17
17
|
const key = hash([x, y, w, h, ~~gui.disabled]);
|
|
18
18
|
const mkIcon = (hover) => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radial-menu.d.ts","sourceRoot":"","sources":["../src/components/radial-menu.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIvC,eAAO,MAAM,UAAU,QACjB,KAAK,MACN,MAAM,KACP,MAAM,KACN,MAAM,KACN,MAAM,SACF,MAAM,EAAE,QACT,MAAM,EAAE,uBA2Cd,CAAC"}
|
package/components/radio.d.ts
CHANGED
|
@@ -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 radio: (gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, horizontal: boolean, sel: number, square: boolean, labels: string[], info?: string[]) => number | undefined;
|
|
3
|
+
export declare const radio: (gui: IMGUI, layout: IGridLayout<any> | LayoutBox, id: string, horizontal: boolean, sel: number, square: boolean, labels: string[], info?: string[]) => number | undefined;
|
|
4
4
|
//# sourceMappingURL=radio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../src/components/radio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAGvC,eAAO,MAAM,KAAK,QACZ,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,cACE,OAAO,OACd,MAAM,UACH,OAAO,UACP,MAAM,EAAE,SACV,MAAM,EAAE,uBAuBd,CAAC"}
|
package/components/ring.d.ts
CHANGED
|
@@ -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, fmt?: Fn<number, string>, info?: string) => number | undefined;
|
|
5
|
-
export declare const ringGroup: (gui: IMGUI, layout: IGridLayout
|
|
4
|
+
export declare const ring: (gui: IMGUI, layout: IGridLayout<any> | 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<any>, 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
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ring.d.ts","sourceRoot":"","sources":["../src/components/ring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAQ,MAAM,aAAa,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAY7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAuBvC,eAAO,MAAM,IAAI,QACX,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,OACL,MAAM,OACN,MAAM,QACL,MAAM,OACP,MAAM,YACD,MAAM,UACR,MAAM,UACN,MAAM,QACR,GAAG,MAAM,EAAE,MAAM,CAAC,SACjB,MAAM,uBA8Bb,CAAC;AAEF,eAAO,MAAM,SAAS,QAChB,KAAK,UACF,YAAY,GAAG,CAAC,MACpB,MAAM,OACL,MAAM,OACN,MAAM,QACL,MAAM,cACA,OAAO,YACT,MAAM,UACR,MAAM,QACR,MAAM,EAAE,SACP,MAAM,EAAE,QACT,GAAG,MAAM,EAAE,MAAM,CAAC,SAClB,MAAM,EAAE,yBAiCd,CAAC;AAEF,eAAO,MAAM,OAAO,QACd,KAAK,MACN,MAAM,KACP,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,OACJ,MAAM,OACN,MAAM,QACL,MAAM,OACP,MAAM,YACD,MAAM,UACR,MAAM,MACV,MAAM,MACN,MAAM,UACF,MAAM,QACR,GAAG,MAAM,EAAE,MAAM,CAAC,SACjB,MAAM,uBA+Db,CAAC"}
|
package/components/sliderh.d.ts
CHANGED
|
@@ -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, fmt?: Fn<number, string>, info?: string) => number | undefined;
|
|
5
|
-
export declare const sliderHGroup: (gui: IMGUI, layout: IGridLayout
|
|
4
|
+
export declare const sliderH: (gui: IMGUI, layout: IGridLayout<any> | 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<any>, id: string, min: number, max: number, prec: number, horizontal: boolean, vals: number[], label: string[], fmt?: Fn<number, string>, info?: string[]) => number[] | undefined;
|
|
6
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sliderh.d.ts","sourceRoot":"","sources":["../src/components/sliderh.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAQ7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAMvC,eAAO,MAAM,OAAO,QACd,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,OACL,MAAM,OACN,MAAM,QACL,MAAM,OACP,MAAM,UACH,MAAM,QACR,GAAG,MAAM,EAAE,MAAM,CAAC,SACjB,MAAM,uBAkBb,CAAC;AAEF,eAAO,MAAM,YAAY,QACnB,KAAK,UACF,YAAY,GAAG,CAAC,MACpB,MAAM,OACL,MAAM,OACN,MAAM,QACL,MAAM,cACA,OAAO,QACb,MAAM,EAAE,SACP,MAAM,EAAE,QACT,GAAG,MAAM,EAAE,MAAM,CAAC,SAClB,MAAM,EAAE,yBAyBd,CAAC;AAEF,eAAO,MAAM,UAAU,QACjB,KAAK,MACN,MAAM,KACP,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,OACJ,MAAM,OACN,MAAM,QACL,MAAM,OACP,MAAM,UACH,MAAM,QACR,GAAG,MAAM,EAAE,MAAM,CAAC,SACjB,MAAM,uBA+Cb,CAAC"}
|
package/components/sliderv.d.ts
CHANGED
|
@@ -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, fmt?: Fn<number, string>, info?: string) => number | undefined;
|
|
5
|
-
export declare const sliderVGroup: (gui: IMGUI, layout: IGridLayout
|
|
4
|
+
export declare const sliderV: (gui: IMGUI, layout: IGridLayout<any> | 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<any>, id: string, min: number, max: number, prec: number, vals: number[], rows: number, label: string[], fmt?: Fn<number, string>, info?: string[]) => number[] | undefined;
|
|
6
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sliderv.d.ts","sourceRoot":"","sources":["../src/components/sliderv.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAS7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAMvC,eAAO,MAAM,OAAO,QACd,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,OACL,MAAM,OACN,MAAM,QACL,MAAM,OACP,MAAM,QACL,MAAM,UACJ,MAAM,QACR,GAAG,MAAM,EAAE,MAAM,CAAC,SACjB,MAAM,uBAkBb,CAAC;AAEF,eAAO,MAAM,YAAY,QACnB,KAAK,UACF,YAAY,GAAG,CAAC,MACpB,MAAM,OACL,MAAM,OACN,MAAM,QACL,MAAM,QACN,MAAM,EAAE,QACR,MAAM,SACL,MAAM,EAAE,QACT,GAAG,MAAM,EAAE,MAAM,CAAC,SAClB,MAAM,EAAE,yBA0Bd,CAAC;AAEF,eAAO,MAAM,UAAU,QACjB,KAAK,MACN,MAAM,KACP,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,OACJ,MAAM,OACN,MAAM,QACL,MAAM,OACP,MAAM,UACH,MAAM,QACR,GAAG,MAAM,EAAE,MAAM,CAAC,SACjB,MAAM,uBAoDb,CAAC"}
|
|
@@ -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) => string | undefined;
|
|
4
|
+
export declare const textField: (gui: IMGUI, layout: IGridLayout<any> | LayoutBox, id: string, label: string, filter?: Predicate<string>, info?: string) => string | undefined;
|
|
5
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../src/components/textfield.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAK7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAKvC,eAAO,MAAM,SAAS,QAChB,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,SACH,MAAM,WACL,UAAU,MAAM,CAAC,SAClB,MAAM,uBAcb,CAAC;AAEF,eAAO,MAAM,YAAY,QACnB,KAAK,MACN,MAAM,KACP,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,OACJ,MAAM,WACH,UAAU,MAAM,CAAC,SAClB,MAAM,uBAuEb,CAAC"}
|
|
@@ -3,7 +3,7 @@ import type { IGridLayout, LayoutBox } from "@thi.ng/layout";
|
|
|
3
3
|
import type { ReadonlyVec } from "@thi.ng/vectors";
|
|
4
4
|
import type { Color, GUITheme } from "../api.js";
|
|
5
5
|
import type { IMGUI } from "../gui.js";
|
|
6
|
-
export declare const textLabel: (gui: IMGUI, layout: IGridLayout | LayoutBox, label: string, pad?: boolean) => void;
|
|
6
|
+
export declare const textLabel: (gui: IMGUI, layout: IGridLayout<any> | LayoutBox, label: string, pad?: boolean) => void;
|
|
7
7
|
export declare const textLabelRaw: (p: ReadonlyVec, attribs: Color | any, label: string) => (string | ReadonlyVec | Record<string, any>)[];
|
|
8
8
|
export declare const textTransformH: (theme: GUITheme, x: number, y: number, _: number, h: number) => number[];
|
|
9
9
|
export declare const textTransformV: (theme: GUITheme, x: number, y: number, w: number, h: number) => number[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textlabel.d.ts","sourceRoot":"","sources":["../src/components/textlabel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIvC,eAAO,MAAM,SAAS,QAChB,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,SAC7B,MAAM,wBAYb,CAAC;AAEF,eAAO,MAAM,YAAY,MACrB,WAAW,WACL,KAAK,GAAG,GAAG,SACb,MAAM,mDAC+D,CAAC;AAE9E,eAAO,MAAM,cAAc,UACnB,QAAQ,KACZ,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,aACkD,CAAC;AAE7D,eAAO,MAAM,cAAc,UACnB,QAAQ,KACZ,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,aACuD,CAAC;AAElE,eAAO,MAAM,cAAc,QACrB,KAAK,MACN,MAAM,OACL,MAAM,KACR,MAAM,KACN,MAAM,KACN,MAAM,SACF,MAAM,GAAG,SAAS,OACpB,GAAG,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,QAQlC,CAAC"}
|
package/components/toggle.d.ts
CHANGED
|
@@ -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, label?: string, info?: string) => boolean | undefined;
|
|
16
|
+
export declare const toggle: (gui: IMGUI, layout: IGridLayout<any> | LayoutBox, id: string, val: boolean, square?: boolean, label?: string, info?: string) => boolean | undefined;
|
|
17
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../src/components/toggle.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAG7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIvC;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,QACb,KAAK,UACF,YAAY,GAAG,CAAC,GAAG,SAAS,MAChC,MAAM,OACL,OAAO,WACH,OAAO,UACR,MAAM,SACP,MAAM,wBAeb,CAAC;AAEF,eAAO,MAAM,SAAS,QAChB,KAAK,MACN,MAAM,KACP,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,MACL,MAAM,OACL,OAAO,UACJ,MAAM,SACP,MAAM,wBA6Bb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../src/components/tooltip.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAGvC,eAAO,MAAM,UAAU,QAAS,KAAK,WAAW,MAAM,SAarD,CAAC"}
|
package/components/xypad.d.ts
CHANGED
|
@@ -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
|
|
25
|
+
export declare const xyPad: (gui: IMGUI, layout: IGridLayout<any>, 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
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"xypad.d.ts","sourceRoot":"","sources":["../src/components/xypad.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,OAAO,KAAK,EAAE,WAAW,EAAa,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAQ3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAIvC;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,KAAK,QACZ,KAAK,UACF,YAAY,GAAG,CAAC,MACpB,MAAM,OACL,GAAG,OACH,GAAG,QACF,MAAM,OACP,GAAG,QACF,MAAM,OACP,OAAO,UACJ,MAAM,QACR,GAAG,GAAG,EAAE,MAAM,CAAC,SACd,MAAM,oBA8Bb,CAAC;AAEF,eAAO,MAAM,QAAQ,QACf,KAAK,MACN,MAAM,KACP,MAAM,KACN,MAAM,KACN,MAAM,KACN,MAAM,OACJ,GAAG,OACH,GAAG,QACF,MAAM,OACP,GAAG,gCAEJ,MAAM,MACN,MAAM,UACF,MAAM,QACR,GAAG,GAAG,EAAE,MAAM,CAAC,SACd,MAAM,oBAyDb,CAAC"}
|
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]) => LayoutBox;
|
|
2
|
+
export declare const layoutBox: (layout: IGridLayout<any> | 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.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Immediate mode GUI with flexible state handling & data only shape output",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@thi.ng/api": "^8.9.6",
|
|
38
38
|
"@thi.ng/checks": "^3.4.6",
|
|
39
|
-
"@thi.ng/geom": "^5.2.
|
|
40
|
-
"@thi.ng/geom-api": "^3.4.
|
|
41
|
-
"@thi.ng/geom-isec": "^2.1.
|
|
42
|
-
"@thi.ng/geom-tessellate": "^2.1.
|
|
43
|
-
"@thi.ng/layout": "^
|
|
44
|
-
"@thi.ng/math": "^5.
|
|
45
|
-
"@thi.ng/transducers": "^8.8.
|
|
46
|
-
"@thi.ng/vectors": "^7.
|
|
39
|
+
"@thi.ng/geom": "^5.2.14",
|
|
40
|
+
"@thi.ng/geom-api": "^3.4.42",
|
|
41
|
+
"@thi.ng/geom-isec": "^2.1.84",
|
|
42
|
+
"@thi.ng/geom-tessellate": "^2.1.84",
|
|
43
|
+
"@thi.ng/layout": "^3.0.0",
|
|
44
|
+
"@thi.ng/math": "^5.7.1",
|
|
45
|
+
"@thi.ng/transducers": "^8.8.7",
|
|
46
|
+
"@thi.ng/vectors": "^7.8.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@microsoft/api-extractor": "^7.38.0",
|
|
@@ -158,5 +158,5 @@
|
|
|
158
158
|
],
|
|
159
159
|
"year": 2019
|
|
160
160
|
},
|
|
161
|
-
"gitHead": "
|
|
161
|
+
"gitHead": "bfa16829786146bd24df3cdbd44649a45a603e44\n"
|
|
162
162
|
}
|