@frangoteam/fuxa-min 1.1.19

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 (414) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +41 -0
  3. package/_images/Pipes/P1.svg +39 -0
  4. package/_images/Tanks/Fl.svg +7 -0
  5. package/api/alarms/index.js +132 -0
  6. package/api/auth/index.js +71 -0
  7. package/api/command/index.js +187 -0
  8. package/api/daq/index.js +79 -0
  9. package/api/diagnose/index.js +163 -0
  10. package/api/index.js +181 -0
  11. package/api/jwt-helper.js +106 -0
  12. package/api/plugins/index.js +109 -0
  13. package/api/projects/index.js +229 -0
  14. package/api/resources/index.js +118 -0
  15. package/api/scripts/index.js +82 -0
  16. package/api/users/index.js +109 -0
  17. package/dist/3rdpartylicenses.txt +1477 -0
  18. package/dist/Quicksand-Bold.071154c292aef0b8.woff +0 -0
  19. package/dist/Quicksand-Bold.6383d6475ed5c40f.woff2 +0 -0
  20. package/dist/Quicksand-Bold.f07d467887f9cfab.ttf +0 -0
  21. package/dist/Quicksand-Medium.0982a651e8d4315f.woff +0 -0
  22. package/dist/Quicksand-Medium.9d2733fbfb9b1be8.ttf +0 -0
  23. package/dist/Quicksand-Medium.b09302365c586eb2.woff2 +0 -0
  24. package/dist/Quicksand-Regular.16adf9eecd267273.woff +0 -0
  25. package/dist/Quicksand-Regular.78819724f6aeff59.woff2 +0 -0
  26. package/dist/Quicksand-Regular.8829564f0e14bf76.ttf +0 -0
  27. package/dist/assets/fonts/icomoon.eot +0 -0
  28. package/dist/assets/fonts/icomoon.svg +19 -0
  29. package/dist/assets/fonts/icomoon.ttf +0 -0
  30. package/dist/assets/fonts/icomoon.woff +0 -0
  31. package/dist/assets/fonts/myicons.eot +0 -0
  32. package/dist/assets/fonts/myicons.svg +19 -0
  33. package/dist/assets/fonts/myicons.ttf +0 -0
  34. package/dist/assets/fonts/myicons.woff +0 -0
  35. package/dist/assets/fonts/quicksand-bold/Quicksand-Bold.ttf +0 -0
  36. package/dist/assets/fonts/quicksand-bold/Quicksand-Bold.woff +0 -0
  37. package/dist/assets/fonts/quicksand-bold/Quicksand-Bold.woff2 +0 -0
  38. package/dist/assets/fonts/quicksand-medium/Quicksand-Medium.ttf +0 -0
  39. package/dist/assets/fonts/quicksand-medium/Quicksand-Medium.woff +0 -0
  40. package/dist/assets/fonts/quicksand-medium/Quicksand-Medium.woff2 +0 -0
  41. package/dist/assets/fonts/quicksand-regular/Quicksand-Regular.ttf +0 -0
  42. package/dist/assets/fonts/quicksand-regular/Quicksand-Regular.woff +0 -0
  43. package/dist/assets/fonts/quicksand-regular/Quicksand-Regular.woff2 +0 -0
  44. package/dist/assets/fonts/roboto-bold/roboto-bold-webfont.svg +10486 -0
  45. package/dist/assets/fonts/roboto-bold/roboto-bold-webfont.ttf +0 -0
  46. package/dist/assets/fonts/roboto-bold/roboto-bold-webfont.woff +0 -0
  47. package/dist/assets/fonts/roboto-bold/roboto-bold-webfont.woff2 +0 -0
  48. package/dist/assets/fonts/roboto-light/roboto-light-webfont.svg +9998 -0
  49. package/dist/assets/fonts/roboto-light/roboto-light-webfont.ttf +0 -0
  50. package/dist/assets/fonts/roboto-light/roboto-light-webfont.woff +0 -0
  51. package/dist/assets/fonts/roboto-light/roboto-light-webfont.woff2 +0 -0
  52. package/dist/assets/fonts/roboto-medium/roboto-medium-webfont.svg +10487 -0
  53. package/dist/assets/fonts/roboto-medium/roboto-medium-webfont.ttf +0 -0
  54. package/dist/assets/fonts/roboto-medium/roboto-medium-webfont.woff +0 -0
  55. package/dist/assets/fonts/roboto-medium/roboto-medium-webfont.woff2 +0 -0
  56. package/dist/assets/fonts/roboto-regular/roboto-regular-webfont.svg +10004 -0
  57. package/dist/assets/fonts/roboto-regular/roboto-regular-webfont.ttf +0 -0
  58. package/dist/assets/fonts/roboto-regular/roboto-regular-webfont.woff +0 -0
  59. package/dist/assets/fonts/roboto-regular/roboto-regular-webfont.woff2 +0 -0
  60. package/dist/assets/fonts/roboto-thin/roboto-thin-webfont.svg +10012 -0
  61. package/dist/assets/fonts/roboto-thin/roboto-thin-webfont.ttf +0 -0
  62. package/dist/assets/fonts/roboto-thin/roboto-thin-webfont.woff +0 -0
  63. package/dist/assets/fonts/roboto-thin/roboto-thin-webfont.woff2 +0 -0
  64. package/dist/assets/i18n/de.json +1308 -0
  65. package/dist/assets/i18n/en.json +1438 -0
  66. package/dist/assets/i18n/es.json +777 -0
  67. package/dist/assets/i18n/fr.json +1129 -0
  68. package/dist/assets/i18n/ko.json +774 -0
  69. package/dist/assets/i18n/pt.json +657 -0
  70. package/dist/assets/i18n/ru.json +1228 -0
  71. package/dist/assets/i18n/tr.json +673 -0
  72. package/dist/assets/i18n/ua.json +614 -0
  73. package/dist/assets/i18n/zh-cn.json +1252 -0
  74. package/dist/assets/images/align-bottom.svg +88 -0
  75. package/dist/assets/images/align-center.svg +86 -0
  76. package/dist/assets/images/align-left.svg +86 -0
  77. package/dist/assets/images/align-middle.svg +88 -0
  78. package/dist/assets/images/align-right.svg +88 -0
  79. package/dist/assets/images/align-top.svg +88 -0
  80. package/dist/assets/images/bag.svg +115 -0
  81. package/dist/assets/images/button.svg +22 -0
  82. package/dist/assets/images/chart.svg +17 -0
  83. package/dist/assets/images/circle.svg +84 -0
  84. package/dist/assets/images/compressor-a.svg +2 -0
  85. package/dist/assets/images/editvalue.svg +14 -0
  86. package/dist/assets/images/ellipse.svg +84 -0
  87. package/dist/assets/images/flip-orizontal.svg +86 -0
  88. package/dist/assets/images/flip-vertical.svg +82 -0
  89. package/dist/assets/images/gauge-donut.png +0 -0
  90. package/dist/assets/images/gauge-mat.png +0 -0
  91. package/dist/assets/images/gauge-zone.png +0 -0
  92. package/dist/assets/images/graphbar.svg +18 -0
  93. package/dist/assets/images/group.svg +91 -0
  94. package/dist/assets/images/iframe.svg +54 -0
  95. package/dist/assets/images/image.svg +95 -0
  96. package/dist/assets/images/led-circle.svg +77 -0
  97. package/dist/assets/images/line.svg +86 -0
  98. package/dist/assets/images/linecap-butt.svg +77 -0
  99. package/dist/assets/images/linecap-round.svg +77 -0
  100. package/dist/assets/images/linecap-square.svg +82 -0
  101. package/dist/assets/images/linejoin-bevel.svg +77 -0
  102. package/dist/assets/images/linejoin-miter.svg +77 -0
  103. package/dist/assets/images/linejoin-round.svg +77 -0
  104. package/dist/assets/images/logo.svg +18 -0
  105. package/dist/assets/images/path.svg +100 -0
  106. package/dist/assets/images/pencil.svg +98 -0
  107. package/dist/assets/images/pipe.svg +15 -0
  108. package/dist/assets/images/progress-v.svg +79 -0
  109. package/dist/assets/images/rect.svg +84 -0
  110. package/dist/assets/images/select-pointer.svg +93 -0
  111. package/dist/assets/images/selectvalue.svg +14 -0
  112. package/dist/assets/images/semaphore.svg +19 -0
  113. package/dist/assets/images/slider.svg +17 -0
  114. package/dist/assets/images/switch.svg +15 -0
  115. package/dist/assets/images/table.svg +55 -0
  116. package/dist/assets/images/text.svg +294 -0
  117. package/dist/assets/images/to-bottom.svg +163 -0
  118. package/dist/assets/images/to-path.svg +94 -0
  119. package/dist/assets/images/to-top.svg +163 -0
  120. package/dist/assets/images/to_top.svg +88 -0
  121. package/dist/assets/images/todelete.svg +13 -0
  122. package/dist/assets/images/ungroup.svg +108 -0
  123. package/dist/assets/images/value.svg +81 -0
  124. package/dist/assets/images/valve-a.svg +2 -0
  125. package/dist/assets/images/webcam.svg +16 -0
  126. package/dist/assets/lib/ext-styles.css +28 -0
  127. package/dist/assets/lib/gauge/gauge.js +988 -0
  128. package/dist/assets/lib/gauge/gauge.min.js +1 -0
  129. package/dist/assets/lib/nouislider/nouislider.min.css +1 -0
  130. package/dist/assets/lib/nouislider/nouislider.min.js +1 -0
  131. package/dist/assets/lib/numeral/locales.min.js +7 -0
  132. package/dist/assets/lib/numeral/numeral.min.js +8 -0
  133. package/dist/assets/lib/pdfkit-table/index.js +967 -0
  134. package/dist/assets/lib/svg/raphael.min.js +1 -0
  135. package/dist/assets/lib/svg/svg.js +5573 -0
  136. package/dist/assets/lib/svg/svg.min.js +13 -0
  137. package/dist/assets/lib/svgeditor/extensions/ext-bundle.min.js +1 -0
  138. package/dist/assets/lib/svgeditor/extensions/ext-html_button.min.css +1 -0
  139. package/dist/assets/lib/svgeditor/fuxa-editor.min.js +23 -0
  140. package/dist/assets/lib/svgeditor/jquery-plugin.min.css +2 -0
  141. package/dist/assets/lib/svgeditor/jquery-plugin.min.js +52 -0
  142. package/dist/assets/lib/svgeditor/jquery-ui-1.8.17.custom.min.js +54 -0
  143. package/dist/assets/lib/svgeditor/jquery.min.js +4 -0
  144. package/dist/assets/lib/svgeditor/shapes/ape-shapes.js +39 -0
  145. package/dist/assets/lib/svgeditor/shapes/img/agitator-disc.svg +17 -0
  146. package/dist/assets/lib/svgeditor/shapes/img/agitator-paddle.svg +16 -0
  147. package/dist/assets/lib/svgeditor/shapes/img/agitator-prop.svg +15 -0
  148. package/dist/assets/lib/svgeditor/shapes/img/agitator-turbo.svg +19 -0
  149. package/dist/assets/lib/svgeditor/shapes/img/anim-eli.svg +13 -0
  150. package/dist/assets/lib/svgeditor/shapes/img/anim-piston.svg +14 -0
  151. package/dist/assets/lib/svgeditor/shapes/img/centrifugal.svg +68 -0
  152. package/dist/assets/lib/svgeditor/shapes/img/centrifugal1.svg +67 -0
  153. package/dist/assets/lib/svgeditor/shapes/img/centrifuge1.svg +67 -0
  154. package/dist/assets/lib/svgeditor/shapes/img/centrifuge2.svg +16 -0
  155. package/dist/assets/lib/svgeditor/shapes/img/centrifuge3.svg +16 -0
  156. package/dist/assets/lib/svgeditor/shapes/img/centrifuge4.svg +16 -0
  157. package/dist/assets/lib/svgeditor/shapes/img/compair.svg +92 -0
  158. package/dist/assets/lib/svgeditor/shapes/img/compdiaph.svg +16 -0
  159. package/dist/assets/lib/svgeditor/shapes/img/compejector.svg +16 -0
  160. package/dist/assets/lib/svgeditor/shapes/img/compreci.svg +17 -0
  161. package/dist/assets/lib/svgeditor/shapes/img/compreci2.svg +68 -0
  162. package/dist/assets/lib/svgeditor/shapes/img/compressor-fan.svg +18 -0
  163. package/dist/assets/lib/svgeditor/shapes/img/compressor-piston.svg +16 -0
  164. package/dist/assets/lib/svgeditor/shapes/img/compressor-void.svg +16 -0
  165. package/dist/assets/lib/svgeditor/shapes/img/compring.svg +72 -0
  166. package/dist/assets/lib/svgeditor/shapes/img/compring2.svg +72 -0
  167. package/dist/assets/lib/svgeditor/shapes/img/comprotary.svg +16 -0
  168. package/dist/assets/lib/svgeditor/shapes/img/comprotary2.svg +18 -0
  169. package/dist/assets/lib/svgeditor/shapes/img/compscrew.svg +16 -0
  170. package/dist/assets/lib/svgeditor/shapes/img/compsilence.svg +20 -0
  171. package/dist/assets/lib/svgeditor/shapes/img/compturbo.svg +72 -0
  172. package/dist/assets/lib/svgeditor/shapes/img/crusher1.svg +16 -0
  173. package/dist/assets/lib/svgeditor/shapes/img/crusher2.svg +16 -0
  174. package/dist/assets/lib/svgeditor/shapes/img/crusher3.svg +16 -0
  175. package/dist/assets/lib/svgeditor/shapes/img/crusher4.svg +17 -0
  176. package/dist/assets/lib/svgeditor/shapes/img/crusher5.svg +18 -0
  177. package/dist/assets/lib/svgeditor/shapes/img/crusher6.svg +16 -0
  178. package/dist/assets/lib/svgeditor/shapes/img/crusher7.svg +21 -0
  179. package/dist/assets/lib/svgeditor/shapes/img/diaph.svg +16 -0
  180. package/dist/assets/lib/svgeditor/shapes/img/drier1.svg +63 -0
  181. package/dist/assets/lib/svgeditor/shapes/img/drier2.svg +17 -0
  182. package/dist/assets/lib/svgeditor/shapes/img/drier3.svg +23 -0
  183. package/dist/assets/lib/svgeditor/shapes/img/drier4.svg +18 -0
  184. package/dist/assets/lib/svgeditor/shapes/img/drier5.svg +16 -0
  185. package/dist/assets/lib/svgeditor/shapes/img/exchanger-filter.svg +16 -0
  186. package/dist/assets/lib/svgeditor/shapes/img/exchanger-heat.svg +16 -0
  187. package/dist/assets/lib/svgeditor/shapes/img/exchanger-tube.svg +16 -0
  188. package/dist/assets/lib/svgeditor/shapes/img/exchanger1.svg +67 -0
  189. package/dist/assets/lib/svgeditor/shapes/img/exchanger2.svg +16 -0
  190. package/dist/assets/lib/svgeditor/shapes/img/exchanger3.svg +15 -0
  191. package/dist/assets/lib/svgeditor/shapes/img/exchanger4.svg +15 -0
  192. package/dist/assets/lib/svgeditor/shapes/img/exchanger5.svg +16 -0
  193. package/dist/assets/lib/svgeditor/shapes/img/exchanger6.svg +71 -0
  194. package/dist/assets/lib/svgeditor/shapes/img/exchanger7.svg +16 -0
  195. package/dist/assets/lib/svgeditor/shapes/img/exchanger8.svg +16 -0
  196. package/dist/assets/lib/svgeditor/shapes/img/exchanger9.svg +16 -0
  197. package/dist/assets/lib/svgeditor/shapes/img/feeder.svg +17 -0
  198. package/dist/assets/lib/svgeditor/shapes/img/feeder2.svg +16 -0
  199. package/dist/assets/lib/svgeditor/shapes/img/feeder3.svg +63 -0
  200. package/dist/assets/lib/svgeditor/shapes/img/filter2.svg +68 -0
  201. package/dist/assets/lib/svgeditor/shapes/img/filter3.svg +17 -0
  202. package/dist/assets/lib/svgeditor/shapes/img/fitting1.svg +67 -0
  203. package/dist/assets/lib/svgeditor/shapes/img/fitting10.svg +16 -0
  204. package/dist/assets/lib/svgeditor/shapes/img/fitting11.svg +17 -0
  205. package/dist/assets/lib/svgeditor/shapes/img/fitting12.svg +16 -0
  206. package/dist/assets/lib/svgeditor/shapes/img/fitting13.svg +15 -0
  207. package/dist/assets/lib/svgeditor/shapes/img/fitting2.svg +15 -0
  208. package/dist/assets/lib/svgeditor/shapes/img/fitting3.svg +17 -0
  209. package/dist/assets/lib/svgeditor/shapes/img/fitting4.svg +16 -0
  210. package/dist/assets/lib/svgeditor/shapes/img/fitting5.svg +16 -0
  211. package/dist/assets/lib/svgeditor/shapes/img/fitting6.svg +16 -0
  212. package/dist/assets/lib/svgeditor/shapes/img/fitting7.svg +15 -0
  213. package/dist/assets/lib/svgeditor/shapes/img/fitting8.svg +15 -0
  214. package/dist/assets/lib/svgeditor/shapes/img/fitting9.svg +15 -0
  215. package/dist/assets/lib/svgeditor/shapes/img/misc1.svg +75 -0
  216. package/dist/assets/lib/svgeditor/shapes/img/misc2.svg +71 -0
  217. package/dist/assets/lib/svgeditor/shapes/img/misc3.svg +15 -0
  218. package/dist/assets/lib/svgeditor/shapes/img/misc4.svg +16 -0
  219. package/dist/assets/lib/svgeditor/shapes/img/misc5.svg +16 -0
  220. package/dist/assets/lib/svgeditor/shapes/img/misc6.svg +15 -0
  221. package/dist/assets/lib/svgeditor/shapes/img/misc7.svg +64 -0
  222. package/dist/assets/lib/svgeditor/shapes/img/misc8.svg +15 -0
  223. package/dist/assets/lib/svgeditor/shapes/img/motor-simb.svg +17 -0
  224. package/dist/assets/lib/svgeditor/shapes/img/nozzle.svg +15 -0
  225. package/dist/assets/lib/svgeditor/shapes/img/nozzle2.svg +15 -0
  226. package/dist/assets/lib/svgeditor/shapes/img/pipi1.svg +16 -0
  227. package/dist/assets/lib/svgeditor/shapes/img/pipi2.svg +17 -0
  228. package/dist/assets/lib/svgeditor/shapes/img/pipi3.svg +15 -0
  229. package/dist/assets/lib/svgeditor/shapes/img/pipi4.svg +15 -0
  230. package/dist/assets/lib/svgeditor/shapes/img/pipi5.svg +16 -0
  231. package/dist/assets/lib/svgeditor/shapes/img/pipi6.svg +15 -0
  232. package/dist/assets/lib/svgeditor/shapes/img/pipi7.svg +16 -0
  233. package/dist/assets/lib/svgeditor/shapes/img/pumpblower.svg +76 -0
  234. package/dist/assets/lib/svgeditor/shapes/img/pumpcentri1.svg +64 -0
  235. package/dist/assets/lib/svgeditor/shapes/img/pumpcentri2.svg +64 -0
  236. package/dist/assets/lib/svgeditor/shapes/img/pumpfeed.svg +64 -0
  237. package/dist/assets/lib/svgeditor/shapes/img/pumpgear.svg +18 -0
  238. package/dist/assets/lib/svgeditor/shapes/img/pumpgear2.svg +19 -0
  239. package/dist/assets/lib/svgeditor/shapes/img/pumphidra.svg +68 -0
  240. package/dist/assets/lib/svgeditor/shapes/img/pumphorizo.svg +68 -0
  241. package/dist/assets/lib/svgeditor/shapes/img/pumpjet.svg +68 -0
  242. package/dist/assets/lib/svgeditor/shapes/img/pumpperis.svg +20 -0
  243. package/dist/assets/lib/svgeditor/shapes/img/pumpscreew.svg +17 -0
  244. package/dist/assets/lib/svgeditor/shapes/img/pumpscreew2.svg +72 -0
  245. package/dist/assets/lib/svgeditor/shapes/img/pumpturbi.svg +64 -0
  246. package/dist/assets/lib/svgeditor/shapes/img/pumpvacuum.svg +72 -0
  247. package/dist/assets/lib/svgeditor/shapes/img/shape-arrow.svg +13 -0
  248. package/dist/assets/lib/svgeditor/shapes/img/shape-circle.svg +13 -0
  249. package/dist/assets/lib/svgeditor/shapes/img/shape-circleindi.svg +13 -0
  250. package/dist/assets/lib/svgeditor/shapes/img/shape-cloud.svg +63 -0
  251. package/dist/assets/lib/svgeditor/shapes/img/shape-cone.svg +71 -0
  252. package/dist/assets/lib/svgeditor/shapes/img/shape-corner.svg +15 -0
  253. package/dist/assets/lib/svgeditor/shapes/img/shape-cross.svg +15 -0
  254. package/dist/assets/lib/svgeditor/shapes/img/shape-cylinder.svg +71 -0
  255. package/dist/assets/lib/svgeditor/shapes/img/shape-delay.svg +13 -0
  256. package/dist/assets/lib/svgeditor/shapes/img/shape-diamond.svg +13 -0
  257. package/dist/assets/lib/svgeditor/shapes/img/shape-display.svg +15 -0
  258. package/dist/assets/lib/svgeditor/shapes/img/shape-docu.svg +15 -0
  259. package/dist/assets/lib/svgeditor/shapes/img/shape-doublearrow.svg +13 -0
  260. package/dist/assets/lib/svgeditor/shapes/img/shape-drop.svg +15 -0
  261. package/dist/assets/lib/svgeditor/shapes/img/shape-halfcircle.svg +13 -0
  262. package/dist/assets/lib/svgeditor/shapes/img/shape-heart.svg +15 -0
  263. package/dist/assets/lib/svgeditor/shapes/img/shape-looplimit.svg +13 -0
  264. package/dist/assets/lib/svgeditor/shapes/img/shape-maninput.svg +15 -0
  265. package/dist/assets/lib/svgeditor/shapes/img/shape-nosymbol.svg +15 -0
  266. package/dist/assets/lib/svgeditor/shapes/img/shape-octagon.svg +15 -0
  267. package/dist/assets/lib/svgeditor/shapes/img/shape-offpage.svg +13 -0
  268. package/dist/assets/lib/svgeditor/shapes/img/shape-or.svg +15 -0
  269. package/dist/assets/lib/svgeditor/shapes/img/shape-or2.svg +17 -0
  270. package/dist/assets/lib/svgeditor/shapes/img/shape-parallelogram.svg +15 -0
  271. package/dist/assets/lib/svgeditor/shapes/img/shape-pentagon.svg +15 -0
  272. package/dist/assets/lib/svgeditor/shapes/img/shape-poval.svg +15 -0
  273. package/dist/assets/lib/svgeditor/shapes/img/shape-prepara.svg +13 -0
  274. package/dist/assets/lib/svgeditor/shapes/img/shape-rectangle.svg +13 -0
  275. package/dist/assets/lib/svgeditor/shapes/img/shape-rectindi.svg +16 -0
  276. package/dist/assets/lib/svgeditor/shapes/img/shape-star4.svg +15 -0
  277. package/dist/assets/lib/svgeditor/shapes/img/shape-switch.svg +15 -0
  278. package/dist/assets/lib/svgeditor/shapes/img/shape-tape.svg +15 -0
  279. package/dist/assets/lib/svgeditor/shapes/img/shape-tee.svg +63 -0
  280. package/dist/assets/lib/svgeditor/shapes/img/shape-ticket.svg +13 -0
  281. package/dist/assets/lib/svgeditor/shapes/img/shape-trape.svg +13 -0
  282. package/dist/assets/lib/svgeditor/shapes/img/shape-triangle.svg +13 -0
  283. package/dist/assets/lib/svgeditor/shapes/img/shape-vor.svg +14 -0
  284. package/dist/assets/lib/svgeditor/shapes/img/tank1.svg +63 -0
  285. package/dist/assets/lib/svgeditor/shapes/img/tank2.svg +15 -0
  286. package/dist/assets/lib/svgeditor/shapes/img/tank3.svg +15 -0
  287. package/dist/assets/lib/svgeditor/shapes/img/tank4.svg +15 -0
  288. package/dist/assets/lib/svgeditor/shapes/img/tank5.svg +15 -0
  289. package/dist/assets/lib/svgeditor/shapes/img/tank6.svg +68 -0
  290. package/dist/assets/lib/svgeditor/shapes/img/tank7.svg +15 -0
  291. package/dist/assets/lib/svgeditor/shapes/img/tank8.svg +15 -0
  292. package/dist/assets/lib/svgeditor/shapes/img/tank9.svg +21 -0
  293. package/dist/assets/lib/svgeditor/shapes/img/valve-ax.svg +13 -0
  294. package/dist/assets/lib/svgeditor/shapes/img/valve-bx.svg +13 -0
  295. package/dist/assets/lib/svgeditor/shapes/img/valve-cx.svg +13 -0
  296. package/dist/assets/lib/svgeditor/shapes/img/webcam.svg +6 -0
  297. package/dist/assets/lib/svgeditor/shapes/my-shapes.js +178 -0
  298. package/dist/assets/lib/svgeditor/shapes/proc-comp-shapes.js +105 -0
  299. package/dist/assets/lib/svgeditor/shapes/proc-general-shapes.js +60 -0
  300. package/dist/assets/lib/svgeditor/shapes/proc-pumps-shapes.js +112 -0
  301. package/dist/assets/lib/svgeditor/shapes/proc-shapes.js +606 -0
  302. package/dist/assets/lib/svgeditor/shapes/shapes.js +30 -0
  303. package/dist/assets/lib/svgeditor/svg-editor.min.css +1 -0
  304. package/dist/assets/lib/uplot/placement.min.js +2 -0
  305. package/dist/assets/project.demo.fuxap +1 -0
  306. package/dist/favicon.ico +0 -0
  307. package/dist/icomoon.86abfb46e057ade8.eot +0 -0
  308. package/dist/icomoon.c1f8b59bad308d66.woff +0 -0
  309. package/dist/icomoon.ce427f75e21963af.ttf +0 -0
  310. package/dist/icomoon.dfb0a89feb346906.svg +19 -0
  311. package/dist/index.html +50 -0
  312. package/dist/logo.0e8e64e69250a450.svg +18 -0
  313. package/dist/main.a356f552d9838b9e.js +1 -0
  314. package/dist/material-icons-outlined.78a93b2079680a08.woff +0 -0
  315. package/dist/material-icons-outlined.f86cb7b0aa53f0fe.woff2 +0 -0
  316. package/dist/material-icons-round.92dc7ca2f4c591e7.woff +0 -0
  317. package/dist/material-icons-round.b10ec9db5b7fbc74.woff2 +0 -0
  318. package/dist/material-icons-sharp.3885863ee4746422.woff2 +0 -0
  319. package/dist/material-icons-sharp.a71cb2bf66c604de.woff +0 -0
  320. package/dist/material-icons-two-tone.588d63134de807a7.woff +0 -0
  321. package/dist/material-icons-two-tone.675bd578bd14533e.woff2 +0 -0
  322. package/dist/material-icons.4ad034d2c499d9b6.woff +0 -0
  323. package/dist/material-icons.59322316b3fd6063.woff2 +0 -0
  324. package/dist/polyfills.2696a6f9dc75535e.js +1 -0
  325. package/dist/roboto-bold-webfont.29ac6158e35aee95.woff +0 -0
  326. package/dist/roboto-bold-webfont.568ab1fa3f154a77.svg +10486 -0
  327. package/dist/roboto-bold-webfont.6bcfbdc216b3bc78.woff2 +0 -0
  328. package/dist/roboto-bold-webfont.7c22a4dfdee2ff33.ttf +0 -0
  329. package/dist/roboto-light-webfont.13492ec56771eeee.svg +9998 -0
  330. package/dist/roboto-light-webfont.61fa26c99b07ac83.woff2 +0 -0
  331. package/dist/roboto-light-webfont.95295ce84942d8ce.ttf +0 -0
  332. package/dist/roboto-light-webfont.ae19119a2889dfdf.woff +0 -0
  333. package/dist/roboto-medium-webfont.30344f0411888055.woff +0 -0
  334. package/dist/roboto-medium-webfont.57fb00cab0317d2d.woff2 +0 -0
  335. package/dist/roboto-medium-webfont.a40869e060a388c0.ttf +0 -0
  336. package/dist/roboto-medium-webfont.ea02241c29620c02.svg +10487 -0
  337. package/dist/roboto-regular-webfont.2b0501b72f5a94d5.ttf +0 -0
  338. package/dist/roboto-regular-webfont.2ce0ba9a06424965.svg +10004 -0
  339. package/dist/roboto-regular-webfont.ae47f6f1292d196f.woff2 +0 -0
  340. package/dist/roboto-regular-webfont.f58066a2d9061006.woff +0 -0
  341. package/dist/roboto-thin-webfont.0a64479870f676e8.ttf +0 -0
  342. package/dist/roboto-thin-webfont.0f7221f5c7e972ef.woff2 +0 -0
  343. package/dist/roboto-thin-webfont.51b221e22714b1fe.svg +10012 -0
  344. package/dist/roboto-thin-webfont.dac941649dd4eac0.woff +0 -0
  345. package/dist/runtime.8ef63094e52a66ba.js +1 -0
  346. package/dist/scripts.1c3385254ff4c93c.js +1 -0
  347. package/dist/styles.cf8e3cf50d039a5c.css +1 -0
  348. package/fuxa.js +39 -0
  349. package/main.js +381 -0
  350. package/package.json +68 -0
  351. package/paths.js +44 -0
  352. package/project.default.json +11 -0
  353. package/project.demo.fuxap +1 -0
  354. package/runtime/alarms/alarmstorage.js +205 -0
  355. package/runtime/alarms/index.js +678 -0
  356. package/runtime/devices/bacnet/index.js +730 -0
  357. package/runtime/devices/device-utils.js +95 -0
  358. package/runtime/devices/device.js +551 -0
  359. package/runtime/devices/ethernetip/index.js +381 -0
  360. package/runtime/devices/fuxaserver/index.js +310 -0
  361. package/runtime/devices/httprequest/index.js +495 -0
  362. package/runtime/devices/index.js +489 -0
  363. package/runtime/devices/modbus/datatypes.js +122 -0
  364. package/runtime/devices/modbus/index.js +730 -0
  365. package/runtime/devices/mqtt/index.js +618 -0
  366. package/runtime/devices/odbc/index.js +408 -0
  367. package/runtime/devices/opcua/index.js +817 -0
  368. package/runtime/devices/s7/datatypes.js +88 -0
  369. package/runtime/devices/s7/index.js +702 -0
  370. package/runtime/devices/template/index.js +141 -0
  371. package/runtime/events.js +33 -0
  372. package/runtime/index.js +559 -0
  373. package/runtime/jobs/cleaner.js +74 -0
  374. package/runtime/jobs/fonts/LICENSE.txt +202 -0
  375. package/runtime/jobs/fonts/Roboto-Black.ttf +0 -0
  376. package/runtime/jobs/fonts/Roboto-BlackItalic.ttf +0 -0
  377. package/runtime/jobs/fonts/Roboto-Bold.ttf +0 -0
  378. package/runtime/jobs/fonts/Roboto-BoldItalic.ttf +0 -0
  379. package/runtime/jobs/fonts/Roboto-Italic.ttf +0 -0
  380. package/runtime/jobs/fonts/Roboto-Light.ttf +0 -0
  381. package/runtime/jobs/fonts/Roboto-LightItalic.ttf +0 -0
  382. package/runtime/jobs/fonts/Roboto-Medium.ttf +0 -0
  383. package/runtime/jobs/fonts/Roboto-MediumItalic.ttf +0 -0
  384. package/runtime/jobs/fonts/Roboto-Regular.ttf +0 -0
  385. package/runtime/jobs/fonts/Roboto-Thin.ttf +0 -0
  386. package/runtime/jobs/fonts/Roboto-ThinItalic.ttf +0 -0
  387. package/runtime/jobs/helper/image-generator.js +82 -0
  388. package/runtime/jobs/index.js +214 -0
  389. package/runtime/jobs/report.js +353 -0
  390. package/runtime/logger.js +113 -0
  391. package/runtime/notificator/index.js +383 -0
  392. package/runtime/notificator/notifystorage.js +179 -0
  393. package/runtime/plugins/index.js +255 -0
  394. package/runtime/project/index.js +959 -0
  395. package/runtime/project/prjstorage.js +222 -0
  396. package/runtime/scripts/index.js +313 -0
  397. package/runtime/scripts/msm.js +146 -0
  398. package/runtime/storage/calculator.js +227 -0
  399. package/runtime/storage/daqstorage.js +188 -0
  400. package/runtime/storage/influxdb/index.js +240 -0
  401. package/runtime/storage/sqlite/currentstorage.js +144 -0
  402. package/runtime/storage/sqlite/index.js +695 -0
  403. package/runtime/storage/tdengine/index.js +106 -0
  404. package/runtime/users/index.js +123 -0
  405. package/runtime/users/usrstorage.js +201 -0
  406. package/runtime/utils.js +284 -0
  407. package/screenshot/feature-action-move.gif +0 -0
  408. package/screenshot/fuxa-ani.gif +0 -0
  409. package/screenshot/fuxa-device.gif +0 -0
  410. package/screenshot/fuxa-editor.png +0 -0
  411. package/screenshot/fuxa-hmi.gif +0 -0
  412. package/screenshot/fuxa-home.png +0 -0
  413. package/screenshot/fuxa-test.gif +0 -0
  414. package/settings.default.js +65 -0
@@ -0,0 +1,988 @@
1
+ // Generated by CoffeeScript 1.11.1
2
+ (function() {
3
+ var AnimatedText, AnimatedTextFactory, Bar, BaseDonut, BaseGauge, Donut, Gauge, GaugePointer, TextRenderer, ValueUpdater, addCommas, cutHex, formatNumber, mergeObjects, secondsToString,
4
+ slice = [].slice,
5
+ hasProp = {}.hasOwnProperty,
6
+ extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
7
+ indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
8
+
9
+ (function() {
10
+ var browserRequestAnimationFrame, isCancelled, j, lastId, len, vendor, vendors;
11
+ vendors = ['ms', 'moz', 'webkit', 'o'];
12
+ for (j = 0, len = vendors.length; j < len; j++) {
13
+ vendor = vendors[j];
14
+ if (window.requestAnimationFrame) {
15
+ break;
16
+ }
17
+ window.requestAnimationFrame = window[vendor + 'RequestAnimationFrame'];
18
+ window.cancelAnimationFrame = window[vendor + 'CancelAnimationFrame'] || window[vendor + 'CancelRequestAnimationFrame'];
19
+ }
20
+ browserRequestAnimationFrame = null;
21
+ lastId = 0;
22
+ isCancelled = {};
23
+ if (!requestAnimationFrame) {
24
+ window.requestAnimationFrame = function(callback, element) {
25
+ var currTime, id, lastTime, timeToCall;
26
+ currTime = new Date().getTime();
27
+ timeToCall = Math.max(0, 16 - (currTime - lastTime));
28
+ id = window.setTimeout(function() {
29
+ return callback(currTime + timeToCall);
30
+ }, timeToCall);
31
+ lastTime = currTime + timeToCall;
32
+ return id;
33
+ };
34
+ return window.cancelAnimationFrame = function(id) {
35
+ return clearTimeout(id);
36
+ };
37
+ } else if (!window.cancelAnimationFrame) {
38
+ browserRequestAnimationFrame = window.requestAnimationFrame;
39
+ window.requestAnimationFrame = function(callback, element) {
40
+ var myId;
41
+ myId = ++lastId;
42
+ browserRequestAnimationFrame(function() {
43
+ if (!isCancelled[myId]) {
44
+ return callback();
45
+ }
46
+ }, element);
47
+ return myId;
48
+ };
49
+ return window.cancelAnimationFrame = function(id) {
50
+ return isCancelled[id] = true;
51
+ };
52
+ }
53
+ })();
54
+
55
+ secondsToString = function(sec) {
56
+ var hr, min;
57
+ hr = Math.floor(sec / 3600);
58
+ min = Math.floor((sec - (hr * 3600)) / 60);
59
+ sec -= (hr * 3600) + (min * 60);
60
+ sec += '';
61
+ min += '';
62
+ while (min.length < 2) {
63
+ min = '0' + min;
64
+ }
65
+ while (sec.length < 2) {
66
+ sec = '0' + sec;
67
+ }
68
+ hr = hr ? hr + ':' : '';
69
+ return hr + min + ':' + sec;
70
+ };
71
+
72
+ formatNumber = function() {
73
+ var digits, num, value;
74
+ num = 1 <= arguments.length ? slice.call(arguments, 0) : [];
75
+ value = num[0];
76
+ digits = 0 || num[1];
77
+ return addCommas(value.toFixed(digits));
78
+ };
79
+
80
+ mergeObjects = function(obj1, obj2) {
81
+ var key, out, val;
82
+ out = {};
83
+ for (key in obj1) {
84
+ if (!hasProp.call(obj1, key)) continue;
85
+ val = obj1[key];
86
+ out[key] = val;
87
+ }
88
+ for (key in obj2) {
89
+ if (!hasProp.call(obj2, key)) continue;
90
+ val = obj2[key];
91
+ out[key] = val;
92
+ }
93
+ return out;
94
+ };
95
+
96
+ addCommas = function(nStr) {
97
+ var rgx, x, x1, x2;
98
+ nStr += '';
99
+ x = nStr.split('.');
100
+ x1 = x[0];
101
+ x2 = '';
102
+ if (x.length > 1) {
103
+ x2 = '.' + x[1];
104
+ }
105
+ rgx = /(\d+)(\d{3})/;
106
+ while (rgx.test(x1)) {
107
+ x1 = x1.replace(rgx, '$1' + ' ' + '$2');
108
+ }
109
+ return x1 + x2;
110
+ };
111
+
112
+ cutHex = function(nStr) {
113
+ if (nStr.charAt(0) === "#") {
114
+ return nStr.substring(1, 7);
115
+ }
116
+ return nStr;
117
+ };
118
+
119
+ ValueUpdater = (function() {
120
+ ValueUpdater.prototype.animationSpeed = 32;
121
+
122
+ function ValueUpdater(addToAnimationQueue, clear) {
123
+ if (addToAnimationQueue == null) {
124
+ addToAnimationQueue = true;
125
+ }
126
+ this.clear = clear != null ? clear : true;
127
+ if (addToAnimationQueue) {
128
+ AnimationUpdater.add(this);
129
+ }
130
+ }
131
+
132
+ ValueUpdater.prototype.update = function(force) {
133
+ var diff;
134
+ if (force == null) {
135
+ force = false;
136
+ }
137
+ if (force || this.displayedValue !== this.value) {
138
+ if (this.ctx && this.clear) {
139
+ this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
140
+ }
141
+ diff = this.value - this.displayedValue;
142
+ if (Math.abs(diff / this.animationSpeed) <= 0.001) {
143
+ this.displayedValue = this.value;
144
+ } else {
145
+ this.displayedValue = this.displayedValue + diff / this.animationSpeed;
146
+ }
147
+ this.render();
148
+ return true;
149
+ }
150
+ return false;
151
+ };
152
+
153
+ return ValueUpdater;
154
+
155
+ })();
156
+
157
+ BaseGauge = (function(superClass) {
158
+ extend(BaseGauge, superClass);
159
+
160
+ function BaseGauge() {
161
+ return BaseGauge.__super__.constructor.apply(this, arguments);
162
+ }
163
+
164
+ BaseGauge.prototype.displayScale = 1;
165
+
166
+ BaseGauge.prototype.forceUpdate = true;
167
+
168
+ BaseGauge.prototype.setTextField = function(textField, fractionDigits) {
169
+ return this.textField = textField instanceof TextRenderer ? textField : new TextRenderer(textField, fractionDigits);
170
+ };
171
+
172
+ BaseGauge.prototype.setMinValue = function(minValue, updateStartValue) {
173
+ var gauge, j, len, ref, results;
174
+ this.minValue = minValue;
175
+ if (updateStartValue == null) {
176
+ updateStartValue = true;
177
+ }
178
+ if (updateStartValue) {
179
+ this.displayedValue = this.minValue;
180
+ ref = this.gp || [];
181
+ results = [];
182
+ for (j = 0, len = ref.length; j < len; j++) {
183
+ gauge = ref[j];
184
+ results.push(gauge.displayedValue = this.minValue);
185
+ }
186
+ return results;
187
+ }
188
+ };
189
+
190
+ BaseGauge.prototype.setOptions = function(options) {
191
+ if (options == null) {
192
+ options = null;
193
+ }
194
+ this.options = mergeObjects(this.options, options);
195
+ if (this.textField) {
196
+ this.textField.el.style.fontSize = options.fontSize + 'px';
197
+ this.textField.fractionDigits = this.options.fractionDigits;
198
+ }
199
+ if (this.options.angle > .5) {
200
+ this.options.angle = .5;
201
+ }
202
+ this.configDisplayScale();
203
+ return this;
204
+ };
205
+
206
+ BaseGauge.prototype.configDisplayScale = function() {
207
+ var backingStorePixelRatio, devicePixelRatio, height, prevDisplayScale, width;
208
+ prevDisplayScale = this.displayScale;
209
+ if (this.options.highDpiSupport === false) {
210
+ delete this.displayScale;
211
+ } else {
212
+ devicePixelRatio = window.devicePixelRatio || 1;
213
+ backingStorePixelRatio = this.ctx.webkitBackingStorePixelRatio || this.ctx.mozBackingStorePixelRatio || this.ctx.msBackingStorePixelRatio || this.ctx.oBackingStorePixelRatio || this.ctx.backingStorePixelRatio || 1;
214
+ this.displayScale = 1; //devicePixelRatio / backingStorePixelRatio;
215
+ }
216
+ if (this.displayScale !== prevDisplayScale) {
217
+ width = this.canvas.G__width || this.canvas.width;
218
+ height = this.canvas.G__height || this.canvas.height;
219
+ this.canvas.width = width * this.displayScale;
220
+ this.canvas.height = height * this.displayScale;
221
+ this.canvas.G__width = width;
222
+ this.canvas.G__height = height;
223
+ }
224
+ return this;
225
+ };
226
+
227
+ BaseGauge.prototype.parseValue = function(value) {
228
+ value = parseFloat(value) || Number(value);
229
+ if (isFinite(value)) {
230
+ return value;
231
+ } else {
232
+ return 0;
233
+ }
234
+ };
235
+
236
+ return BaseGauge;
237
+
238
+ })(ValueUpdater);
239
+
240
+ TextRenderer = (function() {
241
+ function TextRenderer(el, fractionDigits1) {
242
+ this.el = el;
243
+ this.fractionDigits = fractionDigits1;
244
+ }
245
+
246
+ TextRenderer.prototype.render = function(gauge) {
247
+ return this.el.innerHTML = formatNumber(gauge.displayedValue, this.fractionDigits);
248
+ };
249
+
250
+ return TextRenderer;
251
+
252
+ })();
253
+
254
+ AnimatedText = (function(superClass) {
255
+ extend(AnimatedText, superClass);
256
+
257
+ AnimatedText.prototype.displayedValue = 0;
258
+
259
+ AnimatedText.prototype.value = 0;
260
+
261
+ AnimatedText.prototype.setVal = function(value) {
262
+ return this.value = 1 * value;
263
+ };
264
+
265
+ function AnimatedText(elem1, text) {
266
+ this.elem = elem1;
267
+ this.text = text != null ? text : false;
268
+ AnimatedText.__super__.constructor.call(this);
269
+ if (this.elem === void 0) {
270
+ throw new Error('The element isn\'t defined.');
271
+ }
272
+ this.value = 1 * this.elem.innerHTML;
273
+ if (this.text) {
274
+ this.value = 0;
275
+ }
276
+ }
277
+
278
+ AnimatedText.prototype.render = function() {
279
+ var textVal;
280
+ if (this.text) {
281
+ textVal = secondsToString(this.displayedValue.toFixed(0));
282
+ } else {
283
+ textVal = addCommas(formatNumber(this.displayedValue));
284
+ }
285
+ return this.elem.innerHTML = textVal;
286
+ };
287
+
288
+ return AnimatedText;
289
+
290
+ })(ValueUpdater);
291
+
292
+ AnimatedTextFactory = {
293
+ create: function(objList) {
294
+ var elem, j, len, out;
295
+ out = [];
296
+ for (j = 0, len = objList.length; j < len; j++) {
297
+ elem = objList[j];
298
+ out.push(new AnimatedText(elem));
299
+ }
300
+ return out;
301
+ }
302
+ };
303
+
304
+ GaugePointer = (function(superClass) {
305
+ extend(GaugePointer, superClass);
306
+
307
+ GaugePointer.prototype.displayedValue = 0;
308
+
309
+ GaugePointer.prototype.value = 0;
310
+
311
+ GaugePointer.prototype.options = {
312
+ strokeWidth: 0.035,
313
+ length: 0.1,
314
+ color: "#000000",
315
+ iconPath: null,
316
+ iconScale: 1.0,
317
+ iconAngle: 0
318
+ };
319
+
320
+ GaugePointer.prototype.img = null;
321
+
322
+ function GaugePointer(gauge1) {
323
+ this.gauge = gauge1;
324
+ if (this.gauge === void 0) {
325
+ throw new Error('The element isn\'t defined.');
326
+ }
327
+ this.ctx = this.gauge.ctx;
328
+ this.canvas = this.gauge.canvas;
329
+ GaugePointer.__super__.constructor.call(this, false, false);
330
+ this.setOptions();
331
+ }
332
+
333
+ GaugePointer.prototype.setOptions = function(options) {
334
+ if (options == null) {
335
+ options = null;
336
+ }
337
+ this.options = mergeObjects(this.options, options);
338
+ this.length = 2 * this.gauge.radius * this.gauge.options.radiusScale * this.options.length;
339
+ this.strokeWidth = this.canvas.height * this.options.strokeWidth;
340
+ this.maxValue = this.gauge.maxValue;
341
+ this.minValue = this.gauge.minValue;
342
+ this.animationSpeed = this.gauge.animationSpeed;
343
+ this.options.angle = this.gauge.options.angle;
344
+ if (this.options.iconPath) {
345
+ this.img = new Image();
346
+ return this.img.src = this.options.iconPath;
347
+ }
348
+ };
349
+
350
+ GaugePointer.prototype.render = function() {
351
+ var angle, endX, endY, imgX, imgY, startX, startY, x, y;
352
+ angle = this.gauge.getAngle.call(this, this.displayedValue);
353
+ x = Math.round(this.length * Math.cos(angle));
354
+ y = Math.round(this.length * Math.sin(angle));
355
+ startX = Math.round(this.strokeWidth * Math.cos(angle - Math.PI / 2));
356
+ startY = Math.round(this.strokeWidth * Math.sin(angle - Math.PI / 2));
357
+ endX = Math.round(this.strokeWidth * Math.cos(angle + Math.PI / 2));
358
+ endY = Math.round(this.strokeWidth * Math.sin(angle + Math.PI / 2));
359
+ this.ctx.beginPath();
360
+ this.ctx.fillStyle = this.options.color;
361
+ this.ctx.arc(0, 0, this.strokeWidth, 0, Math.PI * 2, false);
362
+ this.ctx.fill();
363
+ this.ctx.beginPath();
364
+ this.ctx.moveTo(startX, startY);
365
+ this.ctx.lineTo(x, y);
366
+ this.ctx.lineTo(endX, endY);
367
+ this.ctx.fill();
368
+ if (this.img) {
369
+ imgX = Math.round(this.img.width * this.options.iconScale);
370
+ imgY = Math.round(this.img.height * this.options.iconScale);
371
+ this.ctx.save();
372
+ this.ctx.translate(x, y);
373
+ this.ctx.rotate(angle + Math.PI / 180.0 * (90 + this.options.iconAngle));
374
+ this.ctx.drawImage(this.img, -imgX / 2, -imgY / 2, imgX, imgY);
375
+ return this.ctx.restore();
376
+ }
377
+ };
378
+
379
+ return GaugePointer;
380
+
381
+ })(ValueUpdater);
382
+
383
+ Bar = (function() {
384
+ function Bar(elem1) {
385
+ this.elem = elem1;
386
+ }
387
+
388
+ Bar.prototype.updateValues = function(arrValues) {
389
+ this.value = arrValues[0];
390
+ this.maxValue = arrValues[1];
391
+ this.avgValue = arrValues[2];
392
+ return this.render();
393
+ };
394
+
395
+ Bar.prototype.render = function() {
396
+ var avgPercent, valPercent;
397
+ if (this.textField) {
398
+ this.textField.text(formatNumber(this.value));
399
+ }
400
+ if (this.maxValue === 0) {
401
+ this.maxValue = this.avgValue * 2;
402
+ }
403
+ valPercent = (this.value / this.maxValue) * 100;
404
+ avgPercent = (this.avgValue / this.maxValue) * 100;
405
+ $(".bar-value", this.elem).css({
406
+ "width": valPercent + "%"
407
+ });
408
+ return $(".typical-value", this.elem).css({
409
+ "width": avgPercent + "%"
410
+ });
411
+ };
412
+
413
+ return Bar;
414
+
415
+ })();
416
+
417
+ Gauge = (function(superClass) {
418
+ extend(Gauge, superClass);
419
+
420
+ Gauge.prototype.elem = null;
421
+
422
+ Gauge.prototype.value = [20];
423
+
424
+ Gauge.prototype.maxValue = 80;
425
+
426
+ Gauge.prototype.minValue = 0;
427
+
428
+ Gauge.prototype.displayedAngle = 0;
429
+
430
+ Gauge.prototype.displayedValue = 0;
431
+
432
+ Gauge.prototype.lineWidth = 40;
433
+
434
+ Gauge.prototype.paddingTop = 0.1;
435
+
436
+ Gauge.prototype.paddingBottom = 0.1;
437
+
438
+ Gauge.prototype.percentColors = null;
439
+
440
+ Gauge.prototype.options = {
441
+ colorStart: "#6fadcf",
442
+ colorStop: void 0,
443
+ gradientType: 0,
444
+ strokeColor: "#e0e0e0",
445
+ pointer: {
446
+ length: 0.8,
447
+ strokeWidth: 0.035,
448
+ iconScale: 1.0
449
+ },
450
+ angle: 0.15,
451
+ lineWidth: 0.44,
452
+ radiusScale: 1.0,
453
+ fontSize: 40,
454
+ limitMax: false,
455
+ limitMin: false
456
+ };
457
+
458
+ function Gauge(canvas) {
459
+ var h, w;
460
+ this.canvas = canvas;
461
+ Gauge.__super__.constructor.call(this);
462
+ this.percentColors = null;
463
+ if (typeof G_vmlCanvasManager !== 'undefined') {
464
+ this.canvas = window.G_vmlCanvasManager.initElement(this.canvas);
465
+ }
466
+ this.ctx = this.canvas.getContext('2d');
467
+ h = this.canvas.clientHeight;
468
+ w = this.canvas.clientWidth;
469
+ this.canvas.height = h;
470
+ this.canvas.width = w;
471
+ this.gp = [new GaugePointer(this)];
472
+ this.setOptions();
473
+ }
474
+
475
+ Gauge.prototype.setOptions = function(options) {
476
+ var gauge, j, len, phi, ref;
477
+ if (options == null) {
478
+ options = null;
479
+ }
480
+ Gauge.__super__.setOptions.call(this, options);
481
+ this.configPercentColors();
482
+ this.extraPadding = 0;
483
+ if (this.options.angle < 0) {
484
+ phi = Math.PI * (1 + this.options.angle);
485
+ this.extraPadding = Math.sin(phi);
486
+ }
487
+ this.availableHeight = this.canvas.height * (1 - this.paddingTop - this.paddingBottom);
488
+ this.lineWidth = this.availableHeight * this.options.lineWidth;
489
+ this.radius = (this.availableHeight - this.lineWidth / 2) / (1.0 + this.extraPadding);
490
+ this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height);
491
+ ref = this.gp;
492
+ for (j = 0, len = ref.length; j < len; j++) {
493
+ gauge = ref[j];
494
+ gauge.setOptions(this.options.pointer);
495
+ gauge.render();
496
+ }
497
+ this.render();
498
+ return this;
499
+ };
500
+
501
+ Gauge.prototype.configPercentColors = function() {
502
+ var bval, gval, i, j, ref, results, rval;
503
+ this.percentColors = null;
504
+ if (this.options.percentColors !== void 0) {
505
+ this.percentColors = new Array();
506
+ results = [];
507
+ for (i = j = 0, ref = this.options.percentColors.length - 1; 0 <= ref ? j <= ref : j >= ref; i = 0 <= ref ? ++j : --j) {
508
+ rval = parseInt((cutHex(this.options.percentColors[i][1])).substring(0, 2), 16);
509
+ gval = parseInt((cutHex(this.options.percentColors[i][1])).substring(2, 4), 16);
510
+ bval = parseInt((cutHex(this.options.percentColors[i][1])).substring(4, 6), 16);
511
+ results.push(this.percentColors[i] = {
512
+ pct: this.options.percentColors[i][0],
513
+ color: {
514
+ r: rval,
515
+ g: gval,
516
+ b: bval
517
+ }
518
+ });
519
+ }
520
+ return results;
521
+ }
522
+ };
523
+
524
+ Gauge.prototype.set = function(value) {
525
+ var gp, i, j, l, len, m, ref, ref1, val;
526
+ if (!(value instanceof Array)) {
527
+ value = [value];
528
+ }
529
+ for (i = j = 0, ref = value.length - 1; 0 <= ref ? j <= ref : j >= ref; i = 0 <= ref ? ++j : --j) {
530
+ value[i] = this.parseValue(value[i]);
531
+ }
532
+ if (value.length > this.gp.length) {
533
+ for (i = l = 0, ref1 = value.length - this.gp.length; 0 <= ref1 ? l < ref1 : l > ref1; i = 0 <= ref1 ? ++l : --l) {
534
+ gp = new GaugePointer(this);
535
+ gp.setOptions(this.options.pointer);
536
+ this.gp.push(gp);
537
+ }
538
+ } else if (value.length < this.gp.length) {
539
+ this.gp = this.gp.slice(this.gp.length - value.length);
540
+ }
541
+ i = 0;
542
+ for (m = 0, len = value.length; m < len; m++) {
543
+ val = value[m];
544
+ if (val > this.maxValue) {
545
+ if (this.options.limitMax) {
546
+ val = this.maxValue;
547
+ } else {
548
+ this.maxValue = val + 1;
549
+ }
550
+ } else if (val < this.minValue) {
551
+ if (this.options.limitMin) {
552
+ val = this.minValue;
553
+ } else {
554
+ this.minValue = val - 1;
555
+ }
556
+ }
557
+ this.gp[i].value = val;
558
+ this.gp[i++].setOptions({
559
+ minValue: this.minValue,
560
+ maxValue: this.maxValue,
561
+ angle: this.options.angle
562
+ });
563
+ }
564
+ this.value = Math.max(Math.min(value[value.length - 1], this.maxValue), this.minValue);
565
+ AnimationUpdater.add(this);
566
+ AnimationUpdater.run(this.forceUpdate);
567
+ return this.forceUpdate = false;
568
+ };
569
+
570
+ Gauge.prototype.getAngle = function(value) {
571
+ return (1 + this.options.angle) * Math.PI + ((value - this.minValue) / (this.maxValue - this.minValue)) * (1 - this.options.angle * 2) * Math.PI;
572
+ };
573
+
574
+ Gauge.prototype.getColorForPercentage = function(pct, grad) {
575
+ var color, endColor, i, j, rangePct, ref, startColor;
576
+ if (pct === 0) {
577
+ color = this.percentColors[0].color;
578
+ } else {
579
+ color = this.percentColors[this.percentColors.length - 1].color;
580
+ for (i = j = 0, ref = this.percentColors.length - 1; 0 <= ref ? j <= ref : j >= ref; i = 0 <= ref ? ++j : --j) {
581
+ if (pct <= this.percentColors[i].pct) {
582
+ if (grad === true) {
583
+ startColor = this.percentColors[i - 1] || this.percentColors[0];
584
+ endColor = this.percentColors[i];
585
+ rangePct = (pct - startColor.pct) / (endColor.pct - startColor.pct);
586
+ color = {
587
+ r: Math.floor(startColor.color.r * (1 - rangePct) + endColor.color.r * rangePct),
588
+ g: Math.floor(startColor.color.g * (1 - rangePct) + endColor.color.g * rangePct),
589
+ b: Math.floor(startColor.color.b * (1 - rangePct) + endColor.color.b * rangePct)
590
+ };
591
+ } else {
592
+ color = this.percentColors[i].color;
593
+ }
594
+ break;
595
+ }
596
+ }
597
+ }
598
+ return 'rgb(' + [color.r, color.g, color.b].join(',') + ')';
599
+ };
600
+
601
+ Gauge.prototype.getColorForValue = function(val, grad) {
602
+ var pct;
603
+ pct = (val - this.minValue) / (this.maxValue - this.minValue);
604
+ return this.getColorForPercentage(pct, grad);
605
+ };
606
+
607
+ Gauge.prototype.renderStaticLabels = function(staticLabels, w, h, radius) {
608
+ var font, fontsize, j, len, match, re, ref, rest, rotationAngle, value;
609
+ this.ctx.save();
610
+ this.ctx.translate(w, h);
611
+ font = staticLabels.font || "10px Times";
612
+ re = /\d+\.?\d?/;
613
+ match = font.match(re)[0];
614
+ rest = font.slice(match.length);
615
+ fontsize = parseFloat(match) * this.displayScale;
616
+ this.ctx.font = fontsize + rest;
617
+ this.ctx.fillStyle = staticLabels.color || "#000000";
618
+ this.ctx.textBaseline = "bottom";
619
+ this.ctx.textAlign = "center";
620
+ ref = staticLabels.labels;
621
+ for (j = 0, len = ref.length; j < len; j++) {
622
+ value = ref[j];
623
+ if (value.label !== void 0) {
624
+ if ((!this.options.limitMin || value >= this.minValue) && (!this.options.limitMax || value <= this.maxValue)) {
625
+ font = value.font || staticLabels.font;
626
+ match = font.match(re)[0];
627
+ rest = font.slice(match.length);
628
+ fontsize = parseFloat(match) * this.displayScale;
629
+ this.ctx.font = fontsize + rest;
630
+ rotationAngle = this.getAngle(value.label) - 3 * Math.PI / 2;
631
+ this.ctx.rotate(rotationAngle);
632
+ this.ctx.fillText(formatNumber(value.label, staticLabels.fractionDigits), 0, -radius - this.lineWidth / 2);
633
+ this.ctx.rotate(-rotationAngle);
634
+ }
635
+ } else {
636
+ if ((!this.options.limitMin || value >= this.minValue) && (!this.options.limitMax || value <= this.maxValue)) {
637
+ rotationAngle = this.getAngle(value) - 3 * Math.PI / 2;
638
+ this.ctx.rotate(rotationAngle);
639
+ this.ctx.fillText(formatNumber(value, staticLabels.fractionDigits), 0, -radius - this.lineWidth / 2);
640
+ this.ctx.rotate(-rotationAngle);
641
+ }
642
+ }
643
+ }
644
+ return this.ctx.restore();
645
+ };
646
+
647
+ Gauge.prototype.renderTicks = function(ticksOptions, w, h, radius) {
648
+ var currentDivision, currentSubDivision, divColor, divLength, divWidth, divisionCount, j, lineWidth, range, rangeDivisions, ref, results, scaleMutate, st, subColor, subDivisions, subLength, subWidth, subdivisionCount, t, tmpRadius;
649
+ if (ticksOptions !== {}) {
650
+ divisionCount = ticksOptions.divisions || 0;
651
+ subdivisionCount = ticksOptions.subDivisions || 0;
652
+ divColor = ticksOptions.divColor || '#fff';
653
+ subColor = ticksOptions.subColor || '#fff';
654
+ divLength = ticksOptions.divLength || 0.7;
655
+ subLength = ticksOptions.subLength || 0.2;
656
+ range = parseFloat(this.maxValue) - parseFloat(this.minValue);
657
+ rangeDivisions = parseFloat(range) / parseFloat(ticksOptions.divisions);
658
+ subDivisions = parseFloat(rangeDivisions) / parseFloat(ticksOptions.subDivisions);
659
+ currentDivision = parseFloat(this.minValue);
660
+ currentSubDivision = 0.0 + subDivisions;
661
+ lineWidth = range / 400;
662
+ divWidth = lineWidth * (ticksOptions.divWidth || 1);
663
+ subWidth = lineWidth * (ticksOptions.subWidth || 1);
664
+ results = [];
665
+ for (t = j = 0, ref = divisionCount + 1; j < ref; t = j += 1) {
666
+ this.ctx.lineWidth = this.lineWidth * divLength;
667
+ scaleMutate = (this.lineWidth / 2) * (1 - divLength);
668
+ tmpRadius = (this.radius * this.options.radiusScale) + scaleMutate;
669
+ this.ctx.strokeStyle = divColor;
670
+ this.ctx.beginPath();
671
+ this.ctx.arc(0, 0, tmpRadius, this.getAngle(currentDivision - divWidth), this.getAngle(currentDivision + divWidth), false);
672
+ this.ctx.stroke();
673
+ currentSubDivision = currentDivision + subDivisions;
674
+ currentDivision += rangeDivisions;
675
+ if (t !== ticksOptions.divisions && subdivisionCount > 0) {
676
+ results.push((function() {
677
+ var l, ref1, results1;
678
+ results1 = [];
679
+ for (st = l = 0, ref1 = subdivisionCount - 1; l < ref1; st = l += 1) {
680
+ this.ctx.lineWidth = this.lineWidth * subLength;
681
+ scaleMutate = (this.lineWidth / 2) * (1 - subLength);
682
+ tmpRadius = (this.radius * this.options.radiusScale) + scaleMutate;
683
+ this.ctx.strokeStyle = subColor;
684
+ this.ctx.beginPath();
685
+ this.ctx.arc(0, 0, tmpRadius, this.getAngle(currentSubDivision - subWidth), this.getAngle(currentSubDivision + subWidth), false);
686
+ this.ctx.stroke();
687
+ results1.push(currentSubDivision += subDivisions);
688
+ }
689
+ return results1;
690
+ }).call(this));
691
+ } else {
692
+ results.push(void 0);
693
+ }
694
+ }
695
+ return results;
696
+ }
697
+ };
698
+
699
+ Gauge.prototype.render = function() {
700
+ var displayedAngle, fillStyle, gauge, h, j, l, len, len1, max, min, radius, ref, ref1, scaleMutate, tmpRadius, w, zone;
701
+ w = this.canvas.width / 2;
702
+ h = (this.canvas.height * this.paddingTop + this.availableHeight) - ((this.radius + this.lineWidth / 2) * this.extraPadding);
703
+ displayedAngle = this.getAngle(this.displayedValue);
704
+ if (this.textField) {
705
+ this.textField.render(this);
706
+ }
707
+ this.ctx.lineCap = "butt";
708
+ radius = this.radius * this.options.radiusScale;
709
+ if (this.options.staticLabels) {
710
+ this.renderStaticLabels(this.options.staticLabels, w, h, radius);
711
+ }
712
+ if (this.options.staticZones) {
713
+ this.ctx.save();
714
+ this.ctx.translate(w, h);
715
+ this.ctx.lineWidth = this.lineWidth;
716
+ ref = this.options.staticZones;
717
+ for (j = 0, len = ref.length; j < len; j++) {
718
+ zone = ref[j];
719
+ min = zone.min;
720
+ if (this.options.limitMin && min < this.minValue) {
721
+ min = this.minValue;
722
+ }
723
+ max = zone.max;
724
+ if (this.options.limitMax && max > this.maxValue) {
725
+ max = this.maxValue;
726
+ }
727
+ tmpRadius = this.radius * this.options.radiusScale;
728
+ if (zone.height) {
729
+ this.ctx.lineWidth = this.lineWidth * zone.height;
730
+ scaleMutate = (this.lineWidth / 2) * (zone.offset || 1 - zone.height);
731
+ tmpRadius = (this.radius * this.options.radiusScale) + scaleMutate;
732
+ }
733
+ this.ctx.strokeStyle = zone.strokeStyle;
734
+ this.ctx.beginPath();
735
+ this.ctx.arc(0, 0, tmpRadius, this.getAngle(min), this.getAngle(max), false);
736
+ this.ctx.stroke();
737
+ }
738
+ } else {
739
+ if (this.options.customFillStyle !== void 0) {
740
+ fillStyle = this.options.customFillStyle(this);
741
+ } else if (this.percentColors !== null) {
742
+ fillStyle = this.getColorForValue(this.displayedValue, this.options.generateGradient);
743
+ } else if (this.options.colorStop !== void 0) {
744
+ if (this.options.gradientType === 0) {
745
+ fillStyle = this.ctx.createRadialGradient(w, h, 9, w, h, 70);
746
+ } else {
747
+ fillStyle = this.ctx.createLinearGradient(0, 0, w, 0);
748
+ }
749
+ fillStyle.addColorStop(0, this.options.colorStart);
750
+ fillStyle.addColorStop(1, this.options.colorStop);
751
+ } else {
752
+ fillStyle = this.options.colorStart;
753
+ }
754
+ this.ctx.strokeStyle = fillStyle;
755
+ this.ctx.beginPath();
756
+ this.ctx.arc(w, h, radius, (1 + this.options.angle) * Math.PI, displayedAngle, false);
757
+ this.ctx.lineWidth = this.lineWidth;
758
+ this.ctx.stroke();
759
+ this.ctx.strokeStyle = this.options.strokeColor;
760
+ this.ctx.beginPath();
761
+ this.ctx.arc(w, h, radius, displayedAngle, (2 - this.options.angle) * Math.PI, false);
762
+ this.ctx.stroke();
763
+ this.ctx.save();
764
+ this.ctx.translate(w, h);
765
+ }
766
+ if (this.options.renderTicks) {
767
+ this.renderTicks(this.options.renderTicks, w, h, radius);
768
+ }
769
+ this.ctx.restore();
770
+ this.ctx.translate(w, h);
771
+ ref1 = this.gp;
772
+ for (l = 0, len1 = ref1.length; l < len1; l++) {
773
+ gauge = ref1[l];
774
+ gauge.update(true);
775
+ }
776
+ return this.ctx.translate(-w, -h);
777
+ };
778
+
779
+ return Gauge;
780
+
781
+ })(BaseGauge);
782
+
783
+ BaseDonut = (function(superClass) {
784
+ extend(BaseDonut, superClass);
785
+
786
+ BaseDonut.prototype.lineWidth = 15;
787
+
788
+ BaseDonut.prototype.displayedValue = 0;
789
+
790
+ BaseDonut.prototype.value = 33;
791
+
792
+ BaseDonut.prototype.maxValue = 80;
793
+
794
+ BaseDonut.prototype.minValue = 0;
795
+
796
+ BaseDonut.prototype.options = {
797
+ lineWidth: 0.10,
798
+ colorStart: "#6f6ea0",
799
+ colorStop: "#c0c0db",
800
+ strokeColor: "#eeeeee",
801
+ shadowColor: "#d5d5d5",
802
+ angle: 0.35,
803
+ radiusScale: 1.0
804
+ };
805
+
806
+ function BaseDonut(canvas) {
807
+ this.canvas = canvas;
808
+ BaseDonut.__super__.constructor.call(this);
809
+ if (typeof G_vmlCanvasManager !== 'undefined') {
810
+ this.canvas = window.G_vmlCanvasManager.initElement(this.canvas);
811
+ }
812
+ this.ctx = this.canvas.getContext('2d');
813
+ this.setOptions();
814
+ this.render();
815
+ }
816
+
817
+ BaseDonut.prototype.getAngle = function(value) {
818
+ return (1 - this.options.angle) * Math.PI + ((value - this.minValue) / (this.maxValue - this.minValue)) * ((2 + this.options.angle) - (1 - this.options.angle)) * Math.PI;
819
+ };
820
+
821
+ BaseDonut.prototype.setOptions = function(options) {
822
+ if (options == null) {
823
+ options = null;
824
+ }
825
+ BaseDonut.__super__.setOptions.call(this, options);
826
+ this.lineWidth = this.canvas.height * this.options.lineWidth;
827
+ this.radius = this.options.radiusScale * (this.canvas.height / 2 - this.lineWidth / 2);
828
+ return this;
829
+ };
830
+
831
+ BaseDonut.prototype.set = function(value) {
832
+ this.value = this.parseValue(value);
833
+ if (this.value > this.maxValue) {
834
+ if (this.options.limitMax) {
835
+ this.value = this.maxValue;
836
+ } else {
837
+ this.maxValue = this.value;
838
+ }
839
+ } else if (this.value < this.minValue) {
840
+ if (this.options.limitMin) {
841
+ this.value = this.minValue;
842
+ } else {
843
+ this.minValue = this.value;
844
+ }
845
+ }
846
+ AnimationUpdater.add(this);
847
+ AnimationUpdater.run(this.forceUpdate);
848
+ return this.forceUpdate = false;
849
+ };
850
+
851
+ BaseDonut.prototype.render = function() {
852
+ var displayedAngle, grdFill, h, start, stop, w;
853
+ displayedAngle = this.getAngle(this.displayedValue);
854
+ w = this.canvas.width / 2;
855
+ h = this.canvas.height / 2;
856
+ if (this.textField) {
857
+ this.textField.render(this);
858
+ }
859
+ grdFill = this.ctx.createRadialGradient(w, h, 39, w, h, 70);
860
+ grdFill.addColorStop(0, this.options.colorStart);
861
+ grdFill.addColorStop(1, this.options.colorStop);
862
+ start = this.radius - this.lineWidth / 2;
863
+ stop = this.radius + this.lineWidth / 2;
864
+ this.ctx.strokeStyle = this.options.strokeColor;
865
+ this.ctx.beginPath();
866
+ this.ctx.arc(w, h, this.radius, (1 - this.options.angle) * Math.PI, (2 + this.options.angle) * Math.PI, false);
867
+ this.ctx.lineWidth = this.lineWidth;
868
+ this.ctx.lineCap = "round";
869
+ this.ctx.stroke();
870
+ this.ctx.strokeStyle = grdFill;
871
+ this.ctx.beginPath();
872
+ this.ctx.arc(w, h, this.radius, (1 - this.options.angle) * Math.PI, displayedAngle, false);
873
+ return this.ctx.stroke();
874
+ };
875
+
876
+ return BaseDonut;
877
+
878
+ })(BaseGauge);
879
+
880
+ Donut = (function(superClass) {
881
+ extend(Donut, superClass);
882
+
883
+ function Donut() {
884
+ return Donut.__super__.constructor.apply(this, arguments);
885
+ }
886
+
887
+ Donut.prototype.strokeGradient = function(w, h, start, stop) {
888
+ var grd;
889
+ grd = this.ctx.createRadialGradient(w, h, start, w, h, stop);
890
+ grd.addColorStop(0, this.options.shadowColor);
891
+ grd.addColorStop(0.12, this.options._orgStrokeColor);
892
+ grd.addColorStop(0.88, this.options._orgStrokeColor);
893
+ grd.addColorStop(1, this.options.shadowColor);
894
+ return grd;
895
+ };
896
+
897
+ Donut.prototype.setOptions = function(options) {
898
+ var h, start, stop, w;
899
+ if (options == null) {
900
+ options = null;
901
+ }
902
+ Donut.__super__.setOptions.call(this, options);
903
+ w = this.canvas.width / 2;
904
+ h = this.canvas.height / 2;
905
+ start = this.radius - this.lineWidth / 2;
906
+ stop = this.radius + this.lineWidth / 2;
907
+ this.options._orgStrokeColor = this.options.strokeColor;
908
+ this.options.strokeColor = this.strokeGradient(w, h, start, stop);
909
+ return this;
910
+ };
911
+
912
+ return Donut;
913
+
914
+ })(BaseDonut);
915
+
916
+ window.AnimationUpdater = {
917
+ elements: [],
918
+ animId: null,
919
+ addAll: function(list) {
920
+ var elem, j, len, results;
921
+ results = [];
922
+ for (j = 0, len = list.length; j < len; j++) {
923
+ elem = list[j];
924
+ results.push(AnimationUpdater.elements.push(elem));
925
+ }
926
+ return results;
927
+ },
928
+ add: function(object) {
929
+ if (indexOf.call(AnimationUpdater.elements, object) < 0) {
930
+ return AnimationUpdater.elements.push(object);
931
+ }
932
+ },
933
+ run: function(force) {
934
+ var elem, finished, isCallback, j, k, l, len, ref, toRemove;
935
+ if (force == null) {
936
+ force = false;
937
+ }
938
+ isCallback = isFinite(parseFloat(force));
939
+ if (isCallback || force === true) {
940
+ finished = true;
941
+ toRemove = [];
942
+ ref = AnimationUpdater.elements;
943
+ for (k = j = 0, len = ref.length; j < len; k = ++j) {
944
+ elem = ref[k];
945
+ if (elem.update(force === true)) {
946
+ finished = false;
947
+ } else {
948
+ toRemove.push(k);
949
+ }
950
+ }
951
+ for (l = toRemove.length - 1; l >= 0; l += -1) {
952
+ k = toRemove[l];
953
+ AnimationUpdater.elements.splice(k, 1);
954
+ }
955
+ return AnimationUpdater.animId = finished ? null : requestAnimationFrame(AnimationUpdater.run);
956
+ } else if (force === false) {
957
+ if (AnimationUpdater.animId === !null) {
958
+ cancelAnimationFrame(AnimationUpdater.animId);
959
+ }
960
+ return AnimationUpdater.animId = requestAnimationFrame(AnimationUpdater.run);
961
+ }
962
+ }
963
+ };
964
+
965
+ if (typeof window.define === 'function' && (window.define.amd != null)) {
966
+ define(function() {
967
+ return {
968
+ Gauge: Gauge,
969
+ Donut: Donut,
970
+ BaseDonut: BaseDonut,
971
+ TextRenderer: TextRenderer
972
+ };
973
+ });
974
+ } else if (typeof module !== 'undefined' && (module.exports != null)) {
975
+ module.exports = {
976
+ Gauge: Gauge,
977
+ Donut: Donut,
978
+ BaseDonut: BaseDonut,
979
+ TextRenderer: TextRenderer
980
+ };
981
+ } else {
982
+ window.Gauge = Gauge;
983
+ window.Donut = Donut;
984
+ window.BaseDonut = BaseDonut;
985
+ window.TextRenderer = TextRenderer;
986
+ }
987
+
988
+ }).call(this);