amos-tool 1.6.4 → 1.6.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.
Files changed (33) hide show
  1. package/docs/Logger.html +505 -0
  2. package/docs/fonts/Montserrat/Montserrat-Bold.eot +0 -0
  3. package/docs/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
  4. package/docs/fonts/Montserrat/Montserrat-Bold.woff +0 -0
  5. package/docs/fonts/Montserrat/Montserrat-Bold.woff2 +0 -0
  6. package/docs/fonts/Montserrat/Montserrat-Regular.eot +0 -0
  7. package/docs/fonts/Montserrat/Montserrat-Regular.ttf +0 -0
  8. package/docs/fonts/Montserrat/Montserrat-Regular.woff +0 -0
  9. package/docs/fonts/Montserrat/Montserrat-Regular.woff2 +0 -0
  10. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.eot +0 -0
  11. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.svg +978 -0
  12. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.ttf +0 -0
  13. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff +0 -0
  14. package/docs/fonts/Source-Sans-Pro/sourcesanspro-light-webfont.woff2 +0 -0
  15. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.eot +0 -0
  16. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.svg +1049 -0
  17. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.ttf +0 -0
  18. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff +0 -0
  19. package/docs/fonts/Source-Sans-Pro/sourcesanspro-regular-webfont.woff2 +0 -0
  20. package/docs/global.html +16805 -0
  21. package/docs/index.html +808 -0
  22. package/docs/scripts/collapse.js +20 -0
  23. package/docs/scripts/linenumber.js +25 -0
  24. package/docs/scripts/nav.js +12 -0
  25. package/docs/scripts/polyfill.js +4 -0
  26. package/docs/scripts/prettify/Apache-License-2.0.txt +202 -0
  27. package/docs/scripts/prettify/lang-css.js +2 -0
  28. package/docs/scripts/prettify/prettify.js +28 -0
  29. package/docs/scripts/search.js +83 -0
  30. package/docs/styles/jsdoc.css +765 -0
  31. package/docs/styles/prettify.css +79 -0
  32. package/lib/completeUnit.js +20 -1
  33. package/package.json +1 -1
@@ -0,0 +1,79 @@
1
+ .pln {
2
+ color: #ddd;
3
+ }
4
+
5
+ /* string content */
6
+ .str {
7
+ color: #61ce3c;
8
+ }
9
+
10
+ /* a keyword */
11
+ .kwd {
12
+ color: #fbde2d;
13
+ }
14
+
15
+ /* a comment */
16
+ .com {
17
+ color: #aeaeae;
18
+ }
19
+
20
+ /* a type name */
21
+ .typ {
22
+ color: #8da6ce;
23
+ }
24
+
25
+ /* a literal value */
26
+ .lit {
27
+ color: #fbde2d;
28
+ }
29
+
30
+ /* punctuation */
31
+ .pun {
32
+ color: #ddd;
33
+ }
34
+
35
+ /* lisp open bracket */
36
+ .opn {
37
+ color: #000000;
38
+ }
39
+
40
+ /* lisp close bracket */
41
+ .clo {
42
+ color: #000000;
43
+ }
44
+
45
+ /* a markup tag name */
46
+ .tag {
47
+ color: #8da6ce;
48
+ }
49
+
50
+ /* a markup attribute name */
51
+ .atn {
52
+ color: #fbde2d;
53
+ }
54
+
55
+ /* a markup attribute value */
56
+ .atv {
57
+ color: #ddd;
58
+ }
59
+
60
+ /* a declaration */
61
+ .dec {
62
+ color: #EF5050;
63
+ }
64
+
65
+ /* a variable name */
66
+ .var {
67
+ color: #c82829;
68
+ }
69
+
70
+ /* a function name */
71
+ .fun {
72
+ color: #4271ae;
73
+ }
74
+
75
+ /* Specify class=linenums on a pre to get line numbering */
76
+ ol.linenums {
77
+ margin-top: 0;
78
+ margin-bottom: 0;
79
+ }
@@ -12,4 +12,23 @@ function toPixel(e) {
12
12
  t;
13
13
  }
14
14
 
15
- module.exports = completeUnit, module.exports.toPixel = toPixel;
15
+ var _100 = 100;
16
+
17
+ function toRealSize(e, t, i) {
18
+ if (-1 !== e.indexOf("%")) {
19
+ var r = parseFloat(e) / _100, n = "width" === t ? r * (i || window.innerWidth) : r * (i || window.innerHeight);
20
+ return Math.floor(n);
21
+ }
22
+ if (-1 !== e.indexOf("vw")) {
23
+ var o = parseFloat(e) / _100 * window.innerWidth;
24
+ return Math.floor(o);
25
+ }
26
+ if (-1 !== e.indexOf("vh")) {
27
+ var l = parseFloat(e) / _100 * window.innerHeight;
28
+ return Math.floor(l);
29
+ }
30
+ var a = parseFloat(e);
31
+ return isNaN(a) ? 0 : a;
32
+ }
33
+
34
+ module.exports = completeUnit, module.exports.toPixel = toPixel, module.exports.toRealSize = toRealSize;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amos-tool",
3
- "version": "1.6.4",
3
+ "version": "1.6.5",
4
4
  "description": "amos ui tool",
5
5
  "main": "index.js",
6
6
  "directories": {