muigui 0.0.13 → 0.0.15

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.
Files changed (70) hide show
  1. package/README.md +49 -4
  2. package/dist/0.x/controllers/Button.d.ts +7 -0
  3. package/dist/0.x/controllers/Canvas.d.ts +6 -0
  4. package/dist/0.x/controllers/Checkbox.d.ts +4 -0
  5. package/dist/0.x/controllers/Color.d.ts +6 -0
  6. package/dist/0.x/controllers/ColorChooser.d.ts +6 -0
  7. package/dist/0.x/controllers/Container.d.ts +13 -0
  8. package/dist/0.x/controllers/Controller.d.ts +20 -0
  9. package/dist/0.x/controllers/Direction.d.ts +5 -0
  10. package/dist/0.x/controllers/Divider.d.ts +4 -0
  11. package/dist/0.x/controllers/Folder.d.ts +10 -0
  12. package/dist/0.x/controllers/Label.d.ts +4 -0
  13. package/dist/0.x/controllers/LabelController.d.ts +8 -0
  14. package/dist/0.x/controllers/PopDownController.d.ts +10 -0
  15. package/dist/0.x/controllers/RadioGrid.d.ts +4 -0
  16. package/dist/0.x/controllers/Range.d.ts +4 -0
  17. package/dist/0.x/controllers/Select.d.ts +4 -0
  18. package/dist/0.x/controllers/Slider.d.ts +4 -0
  19. package/dist/0.x/controllers/Text.d.ts +4 -0
  20. package/dist/0.x/controllers/TextNumber.d.ts +5 -0
  21. package/dist/0.x/controllers/ValueController.d.ts +17 -0
  22. package/dist/0.x/controllers/Vec2.d.ts +4 -0
  23. package/dist/0.x/controllers/create-controller.d.ts +13 -0
  24. package/dist/0.x/esm.d.ts +16 -0
  25. package/dist/0.x/layout/Column.d.ts +4 -0
  26. package/dist/0.x/layout/Frame.d.ts +5 -0
  27. package/dist/0.x/layout/Grid.d.ts +4 -0
  28. package/dist/0.x/layout/Layout.d.ts +5 -0
  29. package/dist/0.x/layout/Row.d.ts +4 -0
  30. package/dist/0.x/libs/assert.d.ts +1 -0
  31. package/dist/0.x/libs/color-utils.d.ts +235 -0
  32. package/dist/0.x/libs/conversions.d.ts +16 -0
  33. package/dist/0.x/libs/elem.d.ts +4 -0
  34. package/dist/0.x/libs/graph.d.ts +6 -0
  35. package/dist/0.x/libs/ids.d.ts +1 -0
  36. package/dist/0.x/libs/key-values.d.ts +1 -0
  37. package/dist/0.x/libs/keyboard.d.ts +6 -0
  38. package/dist/0.x/libs/monitor.d.ts +3 -0
  39. package/dist/0.x/libs/resize-helpers.d.ts +3 -0
  40. package/dist/0.x/libs/svg.d.ts +1 -0
  41. package/dist/0.x/libs/taskrunner.d.ts +2 -0
  42. package/dist/0.x/libs/touch.d.ts +17 -0
  43. package/dist/0.x/libs/utils.d.ts +27 -0
  44. package/dist/0.x/libs/wheel.d.ts +1 -0
  45. package/dist/0.x/muigui.d.ts +48 -0
  46. package/dist/0.x/muigui.js +4006 -0
  47. package/dist/0.x/muigui.js.map +1 -0
  48. package/dist/0.x/muigui.min.js +2 -0
  49. package/dist/0.x/muigui.min.js.map +1 -0
  50. package/dist/0.x/muigui.module.js +4043 -0
  51. package/dist/0.x/muigui.module.js.map +1 -0
  52. package/dist/0.x/muigui.module.min.js +2 -0
  53. package/dist/0.x/muigui.module.min.js.map +1 -0
  54. package/dist/0.x/styles/muigui.css.d.ts +30 -0
  55. package/dist/0.x/views/CheckboxView.d.ts +6 -0
  56. package/dist/0.x/views/ColorChooserView.d.ts +7 -0
  57. package/dist/0.x/views/ColorView.d.ts +7 -0
  58. package/dist/0.x/views/DirectionView.d.ts +7 -0
  59. package/dist/0.x/views/EditView.d.ts +6 -0
  60. package/dist/0.x/views/ElementView.d.ts +4 -0
  61. package/dist/0.x/views/NumberView.d.ts +7 -0
  62. package/dist/0.x/views/RadioGridView.d.ts +7 -0
  63. package/dist/0.x/views/RangeView.d.ts +7 -0
  64. package/dist/0.x/views/SelectView.d.ts +6 -0
  65. package/dist/0.x/views/SliderView.d.ts +7 -0
  66. package/dist/0.x/views/TextView.d.ts +7 -0
  67. package/dist/0.x/views/ValueView.d.ts +4 -0
  68. package/dist/0.x/views/Vec2View.d.ts +6 -0
  69. package/dist/0.x/views/View.d.ts +16 -0
  70. package/package.json +4 -4
@@ -0,0 +1,27 @@
1
+ export function removeArrayElem(array: any, value: any): any;
2
+ export function idToLabel(id: any): any;
3
+ export function clamp(v: any, min: any, max: any): number;
4
+ export function copyExistingProperties(dst: any, src: any): any;
5
+ export function makeMinMaxPair(gui: any, properties: any, minPropName: any, maxPropName: any, options: any): any[];
6
+ export function isTypedArray(a: any): any;
7
+ export function isArrayOrTypedArray(v: any): any;
8
+ export function stepify(v: any, from: any, step: any): number;
9
+ export function euclideanModulo(v: any, n: any): number;
10
+ export function lerp(a: any, b: any, t: any): any;
11
+ export function mapRange(v: any, inMin: any, inMax: any, outMin: any, outMax: any): any;
12
+ export function makeRangeConverters({ from, to }: {
13
+ from: any;
14
+ to: any;
15
+ }): {
16
+ to: (v: any) => any;
17
+ from: (v: any) => any[];
18
+ };
19
+ export function makeRangeOptions({ from, to, step }: {
20
+ from: any;
21
+ to: any;
22
+ step: any;
23
+ }): any;
24
+ export namespace identity {
25
+ function to(v: any): any;
26
+ function from(v: any): any[];
27
+ }
@@ -0,0 +1 @@
1
+ export function createWheelHelper(): (e: any, step: any, wheelScale?: number) => number;
@@ -0,0 +1,48 @@
1
+ export class GUIFolder extends Folder {
2
+ add(object: any, property: any, ...args: any[]): any;
3
+ addCanvas(name: any): any;
4
+ addColor(object: any, property: any, options?: {}): any;
5
+ addDivider(): any;
6
+ addFolder(name: any): any;
7
+ addLabel(text: any): any;
8
+ addButton(name: any, fn: any): any;
9
+ }
10
+ export class GUI extends GUIFolder {
11
+ static converters: {
12
+ radToDeg: {
13
+ to: (v: any) => any;
14
+ from: (v: any) => any[];
15
+ };
16
+ };
17
+ static mapRange: (v: any, inMin: any, inMax: any, outMin: any, outMax: any) => any;
18
+ static makeRangeConverters: ({ from, to }: {
19
+ from: any;
20
+ to: any;
21
+ }) => {
22
+ to: (v: any) => any;
23
+ from: (v: any) => any[];
24
+ };
25
+ static makeRangeOptions: ({ from, to, step }: {
26
+ from: any;
27
+ to: any;
28
+ step: any;
29
+ }) => any;
30
+ static makeMinMaxPair: typeof makeMinMaxPair;
31
+ static setBaseStyles(css: any): void;
32
+ static getBaseStyleSheet(): CSSStyleSheet;
33
+ static setUserStyles(css: any): void;
34
+ static getUserStyleSheet(): CSSStyleSheet;
35
+ static setTheme(name: any): void;
36
+ constructor(options?: {});
37
+ setStyle(css: any): void;
38
+ setTheme(name: any): void;
39
+ #private;
40
+ }
41
+ export default GUI;
42
+ import Column from './layout/Column.js';
43
+ import Frame from './layout/Frame.js';
44
+ import Grid from './layout/Grid.js';
45
+ import Row from './layout/Row.js';
46
+ import Folder from './controllers/Folder.js';
47
+ import { makeMinMaxPair } from './libs/utils.js';
48
+ export { Column, Frame, Grid, Row };