uil 4.4.1 → 4.4.2
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/LICENSE +21 -21
- package/README.md +82 -70
- package/build/uil.cjs +9401 -0
- package/build/uil.module.js +9395 -1
- package/build/uil.module.min.js +1 -0
- package/package.json +13 -13
- package/build/uil.js +0 -9407
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
The MIT License
|
|
2
|
-
|
|
3
|
-
Copyright © 2010-2017 three.js authors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
THE SOFTWARE.
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright © 2010-2017 three.js authors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,70 +1,82 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
**
|
|
12
|
-
```sh
|
|
13
|
-
ui.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
ui.add('
|
|
36
|
-
```
|
|
37
|
-
**
|
|
38
|
-
```sh
|
|
39
|
-
ui.
|
|
40
|
-
```
|
|
41
|
-
**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
[**uil
|
|
48
|
-
|
|
49
|
-
[**uil
|
|
50
|
-
|
|
51
|
-
[**uil
|
|
52
|
-
|
|
53
|
-
[**uil
|
|
54
|
-
|
|
55
|
-
[**uil
|
|
56
|
-
|
|
57
|
-
[**uil to
|
|
58
|
-
|
|
59
|
-
**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[**uil
|
|
1
|
+
[![NPM Package][npm]][npm-url]
|
|
2
|
+
[![Build Size][build-size]][build-size-url]
|
|
3
|
+
[![NPM Downloads][npm-downloads]][npmtrends-url]
|
|
4
|
+
|
|
5
|
+
<p align="center"><a href="http://lo-th.github.io/uil/"><img src="http://lo-th.github.io/uil/examples/assets/uil.jpg"/></a></p>
|
|
6
|
+
|
|
7
|
+
uil.js is a lightweight ui for javascript with a complete 3d display support.<br>
|
|
8
|
+
totally customizable, only 6 events, auto resize<br>
|
|
9
|
+
[**MAIN EXAMPLE**](http://lo-th.github.io/uil/index.html)
|
|
10
|
+
|
|
11
|
+
**1 - init engine**
|
|
12
|
+
```sh
|
|
13
|
+
var ui = new UIL.Gui( { w:300 } )
|
|
14
|
+
```
|
|
15
|
+
**2 - add value**
|
|
16
|
+
```sh
|
|
17
|
+
ui.add('title', { name:'Title'})
|
|
18
|
+
ui.add('bool', { name:'Bool' })
|
|
19
|
+
ui.add('color', { name:'Color', type:'rgba', value:[0,1,1,1]})
|
|
20
|
+
ui.add('slide', { name:'Slide', value:50})
|
|
21
|
+
let myList = ui.add('list', { name:'List', list:['i1', 'i2', ...]})
|
|
22
|
+
```
|
|
23
|
+
**3 - add value with object reference**
|
|
24
|
+
```sh
|
|
25
|
+
const obj = {
|
|
26
|
+
name:'welcome to uil',
|
|
27
|
+
value: 2,
|
|
28
|
+
slider: 30,
|
|
29
|
+
vector: { x:10, y:-30 }
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
ui.add( obj, 'string', { type:'string' })
|
|
33
|
+
ui.add( obj, 'value', { type:'number', min:0, max:10, precision:2, step:0.01 })
|
|
34
|
+
ui.add( obj, 'slider', { type:'slide' })
|
|
35
|
+
ui.add( obj, 'vector', { type:'number' })
|
|
36
|
+
```
|
|
37
|
+
**4 - callback return the value**
|
|
38
|
+
```sh
|
|
39
|
+
ui.add('number', { name:'Vector4', value:[0,0,0,0] }).onChange( function(v){ debug.innerHTML = v; } )
|
|
40
|
+
```
|
|
41
|
+
**5 - you can reset all value**
|
|
42
|
+
```sh
|
|
43
|
+
ui.clear();
|
|
44
|
+
```
|
|
45
|
+
**6 - other examples**
|
|
46
|
+
|
|
47
|
+
[**uil module**](http://lo-th.github.io/uil/examples/index_module.html)
|
|
48
|
+
|
|
49
|
+
[**uil listen**](http://lo-th.github.io/uil/examples/uil_listen.html)
|
|
50
|
+
|
|
51
|
+
[**uil color**](http://lo-th.github.io/uil/examples/uil_color.html)
|
|
52
|
+
|
|
53
|
+
[**uil stresstest**](http://lo-th.github.io/uil/examples/uil_stresstest.html)
|
|
54
|
+
|
|
55
|
+
[**uil group**](http://lo-th.github.io/uil/examples/uil_group.html)
|
|
56
|
+
|
|
57
|
+
[**uil to canvas**](http://lo-th.github.io/uil/examples/uil_to_canvas.html)
|
|
58
|
+
|
|
59
|
+
[**uil to three**](http://lo-th.github.io/uil/examples/uil_3d.html)
|
|
60
|
+
|
|
61
|
+
[**uil to three 2**](http://lo-th.github.io/uil/examples/uil_3d_2.html)
|
|
62
|
+
|
|
63
|
+
**7 - uil is on npm**
|
|
64
|
+
```sh
|
|
65
|
+
npm i uil
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**8 - creator Tools**
|
|
69
|
+
|
|
70
|
+
[**uil icon creator**](http://lo-th.github.io/uil/examples/uil_icon.html)
|
|
71
|
+
|
|
72
|
+
[**uil ARM creator**](http://lo-th.github.io/uil/examples/uil_mapARM.html)
|
|
73
|
+
|
|
74
|
+
[**uil KTX2 creator**](http://lo-th.github.io/uil/examples/uil_ktx2.html)
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
[npm]: https://img.shields.io/npm/v/uil
|
|
78
|
+
[npm-url]: https://www.npmjs.com/package/uil
|
|
79
|
+
[build-size]: https://badgen.net/bundlephobia/minzip/uil
|
|
80
|
+
[build-size-url]: https://bundlephobia.com/result?p=uil
|
|
81
|
+
[npm-downloads]: https://img.shields.io/npm/dw/uil
|
|
82
|
+
[npmtrends-url]: https://www.npmtrends.com/uil
|