uil 1.0.1 → 4.0.0

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 (45) hide show
  1. package/README.md +57 -0
  2. package/build/uil.js +7040 -4199
  3. package/build/uil.min.js +6 -4
  4. package/build/uil.module.js +7200 -2761
  5. package/examples/js/BufferGeometryUtils.js +921 -0
  6. package/examples/js/SimplexNoise.js +324 -0
  7. package/examples/js/controls/OrbitControls.js +1215 -0
  8. package/examples/js/controls/OrbitControls_.js +1042 -0
  9. package/examples/js/libs/sea3d.min.js +373 -0
  10. package/examples/js/libs/three.min.js +6 -0
  11. package/examples/js/math.js +447 -0
  12. package/examples/js/objects/Landscape.js +778 -0
  13. package/examples/js/objects/Lensflare.js +372 -0
  14. package/examples/js/objects/SuperSky.js +297 -0
  15. package/examples/js/objects/Water.js +329 -0
  16. package/package.json +56 -54
  17. package/src/Uil.js +2 -17
  18. package/src/Uil_dev.js +15 -0
  19. package/src/core/Gui.js +601 -299
  20. package/src/core/Proto.js +490 -220
  21. package/src/core/Roots.js +864 -0
  22. package/src/core/Tools.js +591 -140
  23. package/src/core/V2.js +131 -0
  24. package/src/core/add.js +52 -57
  25. package/src/proto/Bool.js +117 -52
  26. package/src/proto/Button.js +286 -146
  27. package/src/proto/Circular.js +162 -130
  28. package/src/proto/Color.js +331 -289
  29. package/src/proto/Empty.js +15 -0
  30. package/src/proto/Fps.js +232 -159
  31. package/src/proto/Graph.js +310 -0
  32. package/src/proto/Grid.js +297 -0
  33. package/src/proto/Group.js +334 -160
  34. package/src/proto/Item.js +120 -0
  35. package/src/proto/Joystick.js +159 -185
  36. package/src/proto/Knob.js +210 -91
  37. package/src/proto/List.js +661 -249
  38. package/src/proto/Numeric.js +329 -162
  39. package/src/proto/Pad2D.js +268 -0
  40. package/src/proto/Rubric.js +0 -0
  41. package/src/proto/Select.js +178 -0
  42. package/src/proto/Selector.js +13 -0
  43. package/src/proto/Slide.js +191 -185
  44. package/src/proto/TextInput.js +149 -59
  45. package/src/proto/Title.js +40 -31
package/README.md ADDED
@@ -0,0 +1,57 @@
1
+ <p align="center"><a href="http://lo-th.github.io/uil/"><img src="http://lo-th.github.io/uil/examples/assets/uil.png"/></a><br>UIL v4.0</p>
2
+
3
+ uil.js is a lightweight ui for javascript with a complete 3d display support.<br>
4
+ totally customizable, only 6 events, auto resize<br>
5
+ [**Main example**](http://lo-th.github.io/uil/index.html)
6
+
7
+ **1 - init engine**
8
+ ```sh
9
+ var ui = new UIL.Gui( { w:300 } )
10
+ ```
11
+ **2 - add value**
12
+ ```sh
13
+ ui.add('title', { name:'Title'})
14
+ ui.add('bool', { name:'Bool' })
15
+ ui.add('color', { name:'Color', type:'rgba', value:[0,1,1,1]})
16
+ ui.add('slide', { name:'Slide', value:50})
17
+ let myList = ui.add('list', { name:'List', list:['i1', 'i2', ...]})
18
+ ```
19
+ **3 - add value with object reference**
20
+ ```sh
21
+ const obj = {
22
+ name:'welcome to uil',
23
+ value: 2,
24
+ slider: 30,
25
+ vector: { x:10, y:-30 }
26
+ }
27
+
28
+ ui.add( obj, 'string', { type:'string' })
29
+ ui.add( obj, 'value', { type:'number', min:0, max:10, precision:2, step:0.01 })
30
+ ui.add( obj, 'slider', { type:'slide' })
31
+ ui.add( obj, 'vector', { type:'number' })
32
+ ```
33
+ **4 - callback return the value**
34
+ ```sh
35
+ ui.add('number', { name:'Vector4', value:[0,0,0,0] }).onChange( function(v){ debug.innerHTML = v; } )
36
+ ```
37
+ **5 - you can reset all value**
38
+ ```sh
39
+ ui.clear();
40
+ ```
41
+ **6 - other examples**
42
+
43
+ [**uil module**](http://lo-th.github.io/uil/examples/index_module.html)
44
+
45
+ [**uil listen**](http://lo-th.github.io/uil/examples/uil_listen.html)
46
+
47
+ [**uil color**](http://lo-th.github.io/uil/examples/uil_color.html)
48
+
49
+ [**uil stresstest**](http://lo-th.github.io/uil/examples/uil_stresstest.html)
50
+
51
+ [**uil group**](http://lo-th.github.io/uil/examples/uil_group.html)
52
+
53
+ [**uil to canvas**](http://lo-th.github.io/uil/examples/uil_to_canvas.html)
54
+
55
+ [**uil to three**](http://lo-th.github.io/uil/examples/uil_3d.html)
56
+
57
+ [**uil to three 2**](http://lo-th.github.io/uil/examples/uil_3d_2.html)