@10yun/cv-mobile-ui 0.5.27 → 0.5.29

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 (681) hide show
  1. package/build/parse-pages.js +50 -14
  2. package/build/parse-pages2.js +11 -10
  3. package/other/uParse/components/wxParseAudio.vue +1 -1
  4. package/other/uParse/components/wxParseVideo.vue +1 -1
  5. package/package.json +1 -1
  6. package/plugins/request.js +84 -69
  7. package/ui-cv/components/cv-btn-base/cv-btn-base.vue +66 -14
  8. package/ui-cv/components/cv-code-sms/cv-code-sms.vue +22 -15
  9. package/ui-cv/components/cv-date-base/cv-date-base.vue +1 -1
  10. package/ui-cv/components/cv-input-text/input.css +13 -0
  11. package/ui-cv/components/cv-picker1/cv-picker1.vue +1 -1
  12. package/uni-ui/lib/uni-icons/changelog.md +22 -0
  13. package/uni-ui/lib/uni-icons/package.json +42 -0
  14. package/uni-ui/lib/uni-icons/readme.md +8 -0
  15. package/uview-plus/LICENSE +1 -1
  16. package/uview-plus/README.md +22 -12
  17. package/uview-plus/changelog.md +752 -0
  18. package/uview-plus/components/u--form/u--form.vue +1 -1
  19. package/uview-plus/components/u--image/u--image.vue +1 -1
  20. package/uview-plus/components/u--input/u--input.vue +3 -3
  21. package/uview-plus/components/u--text/u--text.vue +1 -1
  22. package/uview-plus/components/u--textarea/u--textarea.vue +1 -1
  23. package/uview-plus/{libs/config/props → components/u-action-sheet}/actionSheet.js +3 -2
  24. package/uview-plus/components/u-action-sheet/props.js +20 -13
  25. package/uview-plus/components/u-action-sheet/style.css +18 -4
  26. package/uview-plus/components/u-action-sheet/style.scss +2 -2
  27. package/uview-plus/components/u-action-sheet/u-action-sheet.vue +21 -13
  28. package/uview-plus/components/u-action-sheet-data/style.css +10 -0
  29. package/uview-plus/components/u-action-sheet-data/style.scss +12 -0
  30. package/uview-plus/components/u-action-sheet-data/u-action-sheet-data.vue +94 -0
  31. package/uview-plus/{libs/config/props → components/u-album}/album.js +5 -2
  32. package/uview-plus/components/u-album/props.js +40 -14
  33. package/uview-plus/components/u-album/style.css +16 -2
  34. package/uview-plus/components/u-album/style.scss +0 -1
  35. package/uview-plus/components/u-album/u-album.vue +55 -30
  36. package/uview-plus/components/u-alert/props.js +12 -11
  37. package/uview-plus/components/u-alert/style.css +17 -2
  38. package/uview-plus/components/u-alert/u-alert.vue +12 -6
  39. package/uview-plus/components/u-avatar/props.js +20 -18
  40. package/uview-plus/components/u-avatar/style.css +18 -2
  41. package/uview-plus/components/u-avatar/style.scss +1 -0
  42. package/uview-plus/components/u-avatar/u-avatar.vue +20 -15
  43. package/uview-plus/{libs/config/props → components/u-avatar-group}/avatarGroup.js +1 -1
  44. package/uview-plus/components/u-avatar-group/props.js +13 -12
  45. package/uview-plus/components/u-avatar-group/style.css +17 -2
  46. package/uview-plus/components/u-avatar-group/u-avatar-group.vue +2 -73
  47. package/uview-plus/{libs/config/props → components/u-back-top}/backtop.js +2 -2
  48. package/uview-plus/components/u-back-top/props.js +14 -13
  49. package/uview-plus/components/u-back-top/style.css +17 -2
  50. package/uview-plus/components/u-back-top/u-back-top.vue +11 -9
  51. package/uview-plus/{libs/config/props → components/u-badge}/badge.js +1 -1
  52. package/uview-plus/components/u-badge/props.js +18 -17
  53. package/uview-plus/components/u-badge/style.css +17 -2
  54. package/uview-plus/components/u-badge/u-badge.vue +11 -7
  55. package/uview-plus/components/u-box/props.js +27 -0
  56. package/uview-plus/components/u-box/style.css +77 -0
  57. package/uview-plus/components/u-box/style.scss +38 -0
  58. package/uview-plus/components/u-box/u-box.vue +3 -0
  59. package/uview-plus/{libs/config/props → components/u-button}/button.js +2 -1
  60. package/uview-plus/components/u-button/nvue-parse.scss +2 -2
  61. package/uview-plus/components/u-button/props.js +37 -40
  62. package/uview-plus/components/u-button/style.css +21 -5
  63. package/uview-plus/components/u-button/u-button.vue +32 -21
  64. package/uview-plus/components/u-button/vue-parse.scss +4 -3
  65. package/uview-plus/components/u-button/vue.scss +9 -8
  66. package/uview-plus/{libs/config/props → components/u-calendar}/calendar.js +7 -4
  67. package/uview-plus/components/u-calendar/header.vue +3 -1
  68. package/uview-plus/components/u-calendar/month.vue +43 -19
  69. package/uview-plus/components/u-calendar/props.js +45 -30
  70. package/uview-plus/components/u-calendar/style.css +17 -2
  71. package/uview-plus/components/u-calendar/u-calendar.vue +53 -17
  72. package/uview-plus/components/u-car-keyboard/props.js +5 -3
  73. package/uview-plus/components/u-car-keyboard/style.css +18 -3
  74. package/uview-plus/components/u-car-keyboard/u-car-keyboard.vue +205 -1
  75. package/uview-plus/components/u-card/card.js +40 -0
  76. package/uview-plus/components/u-card/props.js +134 -0
  77. package/uview-plus/components/u-card/style.css +60 -0
  78. package/uview-plus/components/u-card/style.scss +47 -0
  79. package/uview-plus/components/u-card/u-card.vue +3 -0
  80. package/uview-plus/components/u-cate-tab/style.css +97 -0
  81. package/uview-plus/components/u-cate-tab/style.scss +114 -0
  82. package/uview-plus/components/u-cate-tab/u-cate-tab.vue +3 -0
  83. package/uview-plus/components/u-cell/props.js +24 -23
  84. package/uview-plus/components/u-cell/style.css +43 -3
  85. package/uview-plus/components/u-cell/style.scss +25 -2
  86. package/uview-plus/components/u-cell/u-cell.vue +44 -31
  87. package/uview-plus/components/u-cell-group/props.js +6 -5
  88. package/uview-plus/components/u-cell-group/style.css +17 -2
  89. package/uview-plus/components/u-cell-group/u-cell-group.vue +10 -6
  90. package/uview-plus/components/u-checkbox/props.js +22 -16
  91. package/uview-plus/components/u-checkbox/style.css +17 -2
  92. package/uview-plus/components/u-checkbox/u-checkbox.vue +87 -57
  93. package/uview-plus/{libs/config/props → components/u-checkbox-group}/checkboxGroup.js +1 -1
  94. package/uview-plus/components/u-checkbox-group/props.js +21 -19
  95. package/uview-plus/components/u-checkbox-group/style.css +17 -2
  96. package/uview-plus/components/u-checkbox-group/u-checkbox-group.vue +5 -5
  97. package/uview-plus/components/u-circle-progress/props.js +5 -4
  98. package/uview-plus/components/u-circle-progress/style.css +23 -8
  99. package/uview-plus/components/u-circle-progress/u-circle-progress.vue +5 -4
  100. package/uview-plus/components/u-code/props.js +10 -9
  101. package/uview-plus/components/u-code/style.css +17 -2
  102. package/uview-plus/components/u-code/u-code.vue +6 -5
  103. package/uview-plus/components/u-code-input/props.js +28 -18
  104. package/uview-plus/components/u-code-input/style.css +22 -6
  105. package/uview-plus/components/u-code-input/style.scss +5 -4
  106. package/uview-plus/components/u-code-input/u-code-input.vue +57 -11
  107. package/uview-plus/components/u-col/props.js +9 -8
  108. package/uview-plus/components/u-col/style.css +29 -14
  109. package/uview-plus/components/u-col/u-col.vue +10 -8
  110. package/uview-plus/components/u-collapse/props.js +7 -6
  111. package/uview-plus/components/u-collapse/style.css +17 -2
  112. package/uview-plus/components/u-collapse/u-collapse.vue +4 -3
  113. package/uview-plus/{libs/config/props → components/u-collapse-item}/collapseItem.js +7 -1
  114. package/uview-plus/components/u-collapse-item/props.js +51 -14
  115. package/uview-plus/components/u-collapse-item/style.css +17 -2
  116. package/uview-plus/components/u-collapse-item/u-collapse-item.vue +3 -1
  117. package/uview-plus/{libs/config/props → components/u-column-notice}/columnNotice.js +2 -1
  118. package/uview-plus/components/u-column-notice/props.js +18 -13
  119. package/uview-plus/components/u-column-notice/style.css +17 -2
  120. package/uview-plus/components/u-column-notice/u-column-notice.vue +15 -7
  121. package/uview-plus/components/u-copy/u-copy.vue +1 -0
  122. package/uview-plus/components/u-count-down/props.js +8 -7
  123. package/uview-plus/components/u-count-down/style.css +17 -2
  124. package/uview-plus/components/u-count-down/u-count-down.vue +146 -1
  125. package/uview-plus/components/u-count-to/props.js +15 -14
  126. package/uview-plus/components/u-count-to/style.css +17 -2
  127. package/uview-plus/components/u-count-to/u-count-to.vue +7 -4
  128. package/uview-plus/{libs/config/props → components/u-datetime-picker}/datetimePicker.js +7 -1
  129. package/uview-plus/components/u-datetime-picker/props.js +68 -26
  130. package/uview-plus/components/u-datetime-picker/style.css +42 -1
  131. package/uview-plus/components/u-datetime-picker/style.scss +26 -0
  132. package/uview-plus/components/u-datetime-picker/u-datetime-picker.vue +140 -40
  133. package/uview-plus/components/u-divider/props.js +12 -11
  134. package/uview-plus/components/u-divider/style.css +17 -2
  135. package/uview-plus/components/u-divider/u-divider.vue +8 -5
  136. package/uview-plus/components/u-dropdown/props.js +12 -17
  137. package/uview-plus/components/u-dropdown/style.css +63 -3
  138. package/uview-plus/components/u-dropdown/style.scss +68 -18
  139. package/uview-plus/components/u-dropdown/u-dropdown.vue +208 -1
  140. package/uview-plus/components/u-dropdown-item/props.js +47 -37
  141. package/uview-plus/components/u-dropdown-item/style.css +19 -6
  142. package/uview-plus/components/u-dropdown-item/style.scss +4 -9
  143. package/uview-plus/components/u-dropdown-item/u-dropdown-item.vue +126 -1
  144. package/uview-plus/components/u-empty/props.js +15 -14
  145. package/uview-plus/components/u-empty/style.css +17 -2
  146. package/uview-plus/components/u-empty/u-empty.vue +12 -8
  147. package/uview-plus/components/u-float-button/style.css +41 -0
  148. package/uview-plus/components/u-float-button/style.scss +17 -0
  149. package/uview-plus/components/u-float-button/u-float-button.vue +164 -0
  150. package/uview-plus/{libs/config/props → components/u-form}/form.js +3 -3
  151. package/uview-plus/components/u-form/props.js +12 -11
  152. package/uview-plus/components/u-form/u-form.vue +1 -1
  153. package/uview-plus/{libs/config/props → components/u-form-item}/formItem.js +2 -0
  154. package/uview-plus/components/u-form-item/props.js +22 -11
  155. package/uview-plus/components/u-form-item/style.css +17 -4
  156. package/uview-plus/components/u-form-item/style.scss +0 -2
  157. package/uview-plus/components/u-form-item/u-form-item.vue +42 -15
  158. package/uview-plus/components/u-gap/props.js +8 -7
  159. package/uview-plus/components/u-gap/style.css +17 -2
  160. package/uview-plus/components/u-gap/u-gap.vue +8 -7
  161. package/uview-plus/components/u-grid/props.js +12 -6
  162. package/uview-plus/components/u-grid/style.css +23 -3
  163. package/uview-plus/components/u-grid/style.scss +8 -1
  164. package/uview-plus/components/u-grid/u-grid.vue +11 -4
  165. package/uview-plus/components/u-grid-item/props.js +6 -5
  166. package/uview-plus/components/u-grid-item/style.css +17 -2
  167. package/uview-plus/components/u-grid-item/u-grid-item.vue +17 -14
  168. package/uview-plus/{libs/config/props → components/u-icon}/icon.js +1 -1
  169. package/uview-plus/components/u-icon/props.js +21 -20
  170. package/uview-plus/components/u-icon/style.css +19 -4
  171. package/uview-plus/components/u-icon/style.scss +2 -3
  172. package/uview-plus/components/u-icon/u-icon.vue +85 -34
  173. package/uview-plus/components/u-image/props.js +20 -19
  174. package/uview-plus/components/u-image/style.css +17 -2
  175. package/uview-plus/components/u-image/u-image.vue +59 -24
  176. package/uview-plus/components/u-index-anchor/props.js +9 -8
  177. package/uview-plus/components/u-index-anchor/style.css +17 -2
  178. package/uview-plus/components/u-index-anchor/u-index-anchor.vue +12 -10
  179. package/uview-plus/components/u-index-item/props.js +5 -3
  180. package/uview-plus/components/u-index-item/style.css +17 -2
  181. package/uview-plus/components/u-index-item/u-index-item.vue +7 -6
  182. package/uview-plus/{libs/config/props → components/u-index-list}/indexList.js +3 -2
  183. package/uview-plus/components/u-index-list/props.js +14 -8
  184. package/uview-plus/components/u-index-list/style.css +19 -3
  185. package/uview-plus/components/u-index-list/style.scss +2 -1
  186. package/uview-plus/components/u-index-list/u-index-list.vue +193 -60
  187. package/uview-plus/{libs/config/props → components/u-input}/input.js +1 -1
  188. package/uview-plus/components/u-input/props.js +40 -38
  189. package/uview-plus/components/u-input/style.css +17 -2
  190. package/uview-plus/components/u-input/u-input.vue +70 -54
  191. package/uview-plus/components/u-keyboard/props.js +20 -19
  192. package/uview-plus/components/u-keyboard/style.css +17 -2
  193. package/uview-plus/components/u-keyboard/u-keyboard.vue +4 -3
  194. package/uview-plus/components/u-lazy-load/style.css +38 -0
  195. package/uview-plus/components/u-lazy-load/style.scss +17 -0
  196. package/uview-plus/components/u-lazy-load/u-lazy-load.vue +3 -0
  197. package/uview-plus/components/u-line/props.js +10 -9
  198. package/uview-plus/components/u-line/style.css +17 -2
  199. package/uview-plus/components/u-line/u-line.vue +7 -6
  200. package/uview-plus/components/u-line-progress/props.js +9 -8
  201. package/uview-plus/components/u-line-progress/style.css +17 -2
  202. package/uview-plus/components/u-line-progress/u-line-progress.vue +11 -8
  203. package/uview-plus/{libs/config/props → components/u-link}/link.js +1 -1
  204. package/uview-plus/components/u-link/props.js +11 -10
  205. package/uview-plus/components/u-link/style.css +17 -2
  206. package/uview-plus/components/u-link/u-link.vue +10 -7
  207. package/uview-plus/components/u-list/props.js +43 -18
  208. package/uview-plus/components/u-list/style.css +17 -2
  209. package/uview-plus/components/u-list/u-list.vue +41 -10
  210. package/uview-plus/components/u-list-item/props.js +5 -4
  211. package/uview-plus/components/u-list-item/style.css +17 -2
  212. package/uview-plus/components/u-list-item/u-list-item.vue +5 -4
  213. package/uview-plus/{libs/config/props → components/u-loading-icon}/loadingIcon.js +1 -1
  214. package/uview-plus/components/u-loading-icon/props.js +15 -14
  215. package/uview-plus/components/u-loading-icon/style.css +21 -5
  216. package/uview-plus/components/u-loading-icon/style.scss +3 -3
  217. package/uview-plus/components/u-loading-icon/u-loading-icon.vue +3 -1
  218. package/uview-plus/{libs/config/props → components/u-loading-page}/loadingPage.js +2 -1
  219. package/uview-plus/components/u-loading-page/props.js +19 -12
  220. package/uview-plus/components/u-loading-page/style.css +19 -4
  221. package/uview-plus/components/u-loading-page/u-loading-page.vue +15 -9
  222. package/uview-plus/components/u-loadmore/props.js +22 -21
  223. package/uview-plus/components/u-loadmore/style.css +17 -2
  224. package/uview-plus/components/u-loadmore/u-loadmore.vue +13 -9
  225. package/uview-plus/components/u-mask/u-mask.vue +122 -0
  226. package/uview-plus/{libs/config/props → components/u-modal}/modal.js +5 -1
  227. package/uview-plus/components/u-modal/props.js +40 -19
  228. package/uview-plus/components/u-modal/style.css +21 -2
  229. package/uview-plus/components/u-modal/style.scss +69 -65
  230. package/uview-plus/components/u-modal/u-modal.vue +184 -1
  231. package/uview-plus/{libs/config/props → components/u-navbar}/navbar.js +2 -1
  232. package/uview-plus/components/u-navbar/props.js +26 -19
  233. package/uview-plus/components/u-navbar/style.css +17 -2
  234. package/uview-plus/components/u-navbar/u-navbar.vue +25 -12
  235. package/uview-plus/components/u-navbar-mini/props.js +51 -0
  236. package/uview-plus/components/u-navbar-mini/style.css +60 -0
  237. package/uview-plus/components/u-navbar-mini/style.scss +38 -0
  238. package/uview-plus/components/u-navbar-mini/u-navbar-mini.vue +89 -0
  239. package/uview-plus/components/u-no-network/props.js +7 -6
  240. package/uview-plus/components/u-no-network/style.css +17 -2
  241. package/uview-plus/components/u-no-network/u-no-network.vue +8 -6
  242. package/uview-plus/{libs/config/props → components/u-notice-bar}/noticeBar.js +3 -2
  243. package/uview-plus/components/u-notice-bar/props.js +21 -16
  244. package/uview-plus/components/u-notice-bar/style.css +17 -2
  245. package/uview-plus/components/u-notice-bar/u-notice-bar.vue +10 -4
  246. package/uview-plus/components/u-notify/props.js +13 -12
  247. package/uview-plus/components/u-notify/style.css +17 -2
  248. package/uview-plus/components/u-notify/u-notify.vue +20 -16
  249. package/uview-plus/{libs/config/props → components/u-number-box}/numberBox.js +5 -1
  250. package/uview-plus/components/u-number-box/props.js +46 -25
  251. package/uview-plus/components/u-number-box/style.css +17 -2
  252. package/uview-plus/components/u-number-box/u-number-box.vue +72 -35
  253. package/uview-plus/components/u-number-keyboard/props.js +7 -6
  254. package/uview-plus/components/u-number-keyboard/style.css +19 -4
  255. package/uview-plus/components/u-number-keyboard/u-number-keyboard.vue +9 -6
  256. package/uview-plus/components/u-overlay/props.js +8 -7
  257. package/uview-plus/components/u-overlay/style.css +17 -2
  258. package/uview-plus/components/u-overlay/u-overlay.vue +14 -5
  259. package/uview-plus/components/u-parse/node/node.vue +12 -4
  260. package/uview-plus/components/u-parse/parser.js +1337 -1333
  261. package/uview-plus/components/u-parse/props.js +48 -47
  262. package/uview-plus/components/u-parse/u-parse.vue +6 -6
  263. package/uview-plus/{libs/config/props → components/u-picker}/picker.js +10 -4
  264. package/uview-plus/components/u-picker/props.js +60 -18
  265. package/uview-plus/components/u-picker/style.css +29 -2
  266. package/uview-plus/components/u-picker/style.scss +12 -1
  267. package/uview-plus/components/u-picker/u-picker.vue +174 -58
  268. package/uview-plus/components/u-picker-column/props.js +4 -3
  269. package/uview-plus/components/u-picker-column/style.css +17 -2
  270. package/uview-plus/components/u-picker-column/u-picker-column.vue +3 -3
  271. package/uview-plus/components/u-picker-data/style.css +10 -0
  272. package/uview-plus/components/u-picker-data/style.scss +12 -0
  273. package/uview-plus/components/u-picker-data/u-picker-data.vue +110 -0
  274. package/uview-plus/{libs/config/props → components/u-popup}/popup.js +1 -1
  275. package/uview-plus/components/u-popup/props.js +19 -18
  276. package/uview-plus/components/u-popup/style.css +27 -2
  277. package/uview-plus/components/u-popup/style.scss +86 -75
  278. package/uview-plus/components/u-popup/u-popup.vue +250 -1
  279. package/uview-plus/components/u-qrcode/qrcode.js +1235 -0
  280. package/uview-plus/components/u-qrcode/style.css +20 -0
  281. package/uview-plus/components/u-qrcode/style.scss +23 -0
  282. package/uview-plus/components/u-qrcode/u-qrcode.vue +3 -0
  283. package/uview-plus/components/u-radio/props.js +17 -16
  284. package/uview-plus/components/u-radio/style.css +17 -2
  285. package/uview-plus/components/u-radio/u-radio.vue +32 -27
  286. package/uview-plus/components/u-radio-group/props.js +26 -20
  287. package/uview-plus/{libs/config/props → components/u-radio-group}/radioGroup.js +4 -3
  288. package/uview-plus/components/u-radio-group/style.css +17 -2
  289. package/uview-plus/components/u-radio-group/u-radio-group.vue +12 -4
  290. package/uview-plus/components/u-rate/props.js +18 -17
  291. package/uview-plus/components/u-rate/style.css +17 -2
  292. package/uview-plus/components/u-rate/u-rate.vue +17 -14
  293. package/uview-plus/components/u-read-more/props.js +12 -11
  294. package/uview-plus/components/u-read-more/style.css +18 -2
  295. package/uview-plus/components/u-read-more/style.scss +23 -22
  296. package/uview-plus/components/u-read-more/u-read-more.vue +2 -118
  297. package/uview-plus/components/u-row/props.js +7 -6
  298. package/uview-plus/components/u-row/style.css +17 -2
  299. package/uview-plus/components/u-row/u-row.vue +9 -7
  300. package/uview-plus/components/u-row-notice/props.js +11 -10
  301. package/uview-plus/components/u-row-notice/style.css +18 -2
  302. package/uview-plus/components/u-row-notice/style.scss +1 -0
  303. package/uview-plus/components/u-row-notice/u-row-notice.vue +17 -15
  304. package/uview-plus/components/u-safe-bottom/props.js +5 -3
  305. package/uview-plus/components/u-safe-bottom/u-safe-bottom.vue +3 -1
  306. package/uview-plus/components/u-scroll-list/nvue.js +1 -3
  307. package/uview-plus/components/u-scroll-list/props.js +10 -9
  308. package/uview-plus/components/u-scroll-list/style.css +18 -2
  309. package/uview-plus/components/u-scroll-list/style.scss +2 -0
  310. package/uview-plus/components/u-scroll-list/u-scroll-list.vue +17 -12
  311. package/uview-plus/components/u-search/props.js +42 -27
  312. package/uview-plus/{libs/config/props → components/u-search}/search.js +3 -2
  313. package/uview-plus/components/u-search/style.css +23 -2
  314. package/uview-plus/components/u-search/style.scss +8 -0
  315. package/uview-plus/components/u-search/u-search.vue +22 -8
  316. package/uview-plus/components/u-select/style.css +45 -0
  317. package/uview-plus/components/u-select/style.scss +47 -0
  318. package/uview-plus/components/u-select/u-select.vue +3 -0
  319. package/uview-plus/components/u-skeleton/props.js +15 -14
  320. package/uview-plus/components/u-skeleton/style.css +17 -2
  321. package/uview-plus/components/u-skeleton/u-skeleton.vue +22 -19
  322. package/uview-plus/components/u-slider/mpwxs.js +2 -1
  323. package/uview-plus/components/u-slider/nvue.js +2 -1
  324. package/uview-plus/components/u-slider/props.js +50 -14
  325. package/uview-plus/{libs/config/props → components/u-slider}/slider.js +3 -1
  326. package/uview-plus/components/u-slider/style.css +81 -1
  327. package/uview-plus/components/u-slider/style.scss +76 -0
  328. package/uview-plus/components/u-slider/u-slider.vue +446 -1
  329. package/uview-plus/components/u-status-bar/props.js +10 -4
  330. package/uview-plus/{libs/config/props → components/u-status-bar}/statusBar.js +2 -1
  331. package/uview-plus/components/u-status-bar/u-status-bar.vue +23 -8
  332. package/uview-plus/components/u-steps/props.js +11 -10
  333. package/uview-plus/components/u-steps/style.css +21 -2
  334. package/uview-plus/components/u-steps/style.scss +4 -0
  335. package/uview-plus/components/u-steps/u-steps.vue +9 -5
  336. package/uview-plus/components/u-steps-item/props.js +13 -7
  337. package/uview-plus/components/u-steps-item/style.css +19 -3
  338. package/uview-plus/components/u-steps-item/style.scss +3 -2
  339. package/uview-plus/components/u-steps-item/u-steps-item.vue +53 -25
  340. package/uview-plus/components/u-sticky/props.js +10 -9
  341. package/uview-plus/components/u-sticky/u-sticky.vue +21 -14
  342. package/uview-plus/components/u-subsection/props.js +13 -12
  343. package/uview-plus/components/u-subsection/style.css +31 -16
  344. package/uview-plus/components/u-subsection/style.scss +13 -13
  345. package/uview-plus/components/u-subsection/u-subsection.vue +35 -22
  346. package/uview-plus/components/u-swipe-action/props.js +10 -4
  347. package/uview-plus/components/u-swipe-action/u-swipe-action.vue +18 -3
  348. package/uview-plus/components/u-swipe-action-item/alipay.sjs +229 -0
  349. package/uview-plus/components/u-swipe-action-item/index.wxs +20 -15
  350. package/uview-plus/components/u-swipe-action-item/nvue - backup.js +3 -2
  351. package/uview-plus/components/u-swipe-action-item/nvue.js +4 -3
  352. package/uview-plus/components/u-swipe-action-item/other.js +178 -0
  353. package/uview-plus/components/u-swipe-action-item/props.js +15 -10
  354. package/uview-plus/components/u-swipe-action-item/style.css +18 -2
  355. package/uview-plus/components/u-swipe-action-item/style.scss +1 -0
  356. package/uview-plus/{libs/config/props → components/u-swipe-action-item}/swipeActionItem.js +1 -0
  357. package/uview-plus/components/u-swipe-action-item/u-swipe-action-item.vue +85 -28
  358. package/uview-plus/components/u-swiper/props.js +28 -27
  359. package/uview-plus/components/u-swiper/style.css +20 -2
  360. package/uview-plus/components/u-swiper/style.scss +3 -0
  361. package/uview-plus/{libs/config/props → components/u-swiper}/swiper.js +1 -1
  362. package/uview-plus/components/u-swiper/u-swiper.vue +63 -52
  363. package/uview-plus/components/u-swiper-indicator/props.js +9 -8
  364. package/uview-plus/components/u-swiper-indicator/style.css +17 -2
  365. package/uview-plus/components/u-swiper-indicator/u-swiper-indicator.vue +10 -6
  366. package/uview-plus/components/u-switch/props.js +15 -14
  367. package/uview-plus/components/u-switch/style.css +17 -2
  368. package/uview-plus/components/u-switch/u-switch.vue +16 -14
  369. package/uview-plus/components/u-tabbar/props.js +13 -11
  370. package/uview-plus/components/u-tabbar/style.css +17 -2
  371. package/uview-plus/components/u-tabbar/u-tabbar.vue +6 -5
  372. package/uview-plus/components/u-tabbar-item/props.js +10 -9
  373. package/uview-plus/components/u-tabbar-item/style.css +22 -2
  374. package/uview-plus/components/u-tabbar-item/style.scss +5 -0
  375. package/uview-plus/components/u-tabbar-item/u-tabbar-item.vue +8 -5
  376. package/uview-plus/components/u-table/props.js +4 -3
  377. package/uview-plus/components/u-table/style.css +17 -2
  378. package/uview-plus/components/u-table/u-table.vue +3 -3
  379. package/uview-plus/components/u-tabs/props.js +21 -15
  380. package/uview-plus/components/u-tabs/style.css +22 -3
  381. package/uview-plus/components/u-tabs/style.scss +5 -1
  382. package/uview-plus/{libs/config/props → components/u-tabs}/tabs.js +9 -8
  383. package/uview-plus/components/u-tabs/u-tabs.vue +78 -24
  384. package/uview-plus/components/u-tabs-item/props.js +4 -3
  385. package/uview-plus/components/u-tabs-item/u-tabs-item.vue +3 -3
  386. package/uview-plus/components/u-tag/props.js +44 -18
  387. package/uview-plus/components/u-tag/style.css +17 -2
  388. package/uview-plus/components/u-tag/tag.js +35 -0
  389. package/uview-plus/components/u-tag/u-tag.vue +177 -1
  390. package/uview-plus/components/u-td/props.js +4 -3
  391. package/uview-plus/components/u-td/style.css +17 -2
  392. package/uview-plus/components/u-td/u-td.vue +3 -3
  393. package/uview-plus/components/u-text/props.js +30 -24
  394. package/uview-plus/components/u-text/style.css +17 -6
  395. package/uview-plus/components/u-text/style.scss +58 -62
  396. package/uview-plus/{libs/config/props → components/u-text}/text.js +4 -3
  397. package/uview-plus/components/u-text/u-text.vue +2 -143
  398. package/uview-plus/components/u-text/value.js +14 -12
  399. package/uview-plus/components/u-textarea/props.js +28 -26
  400. package/uview-plus/components/u-textarea/style.css +17 -2
  401. package/uview-plus/components/u-textarea/u-textarea.vue +2 -221
  402. package/uview-plus/components/u-toast/style.css +18 -3
  403. package/uview-plus/{libs/config/props → components/u-toast}/toast.js +2 -2
  404. package/uview-plus/components/u-toast/u-toast.vue +31 -21
  405. package/uview-plus/components/u-toolbar/props.js +15 -9
  406. package/uview-plus/components/u-toolbar/style.css +24 -2
  407. package/uview-plus/components/u-toolbar/style.scss +5 -0
  408. package/uview-plus/{libs/config/props → components/u-toolbar}/toolbar.js +1 -1
  409. package/uview-plus/components/u-toolbar/u-toolbar.vue +34 -23
  410. package/uview-plus/components/u-tooltip/props.js +15 -14
  411. package/uview-plus/components/u-tooltip/style.css +17 -2
  412. package/uview-plus/{libs/config/props → components/u-tooltip}/tooltip.js +1 -1
  413. package/uview-plus/components/u-tooltip/u-tooltip.vue +22 -44
  414. package/uview-plus/components/u-tr/props.js +4 -3
  415. package/uview-plus/components/u-tr/style.css +16 -1
  416. package/uview-plus/components/u-tr/u-tr.vue +3 -3
  417. package/uview-plus/components/u-transition/props.js +8 -7
  418. package/uview-plus/components/u-transition/style.css +17 -2
  419. package/uview-plus/components/u-transition/transition.js +18 -164
  420. package/uview-plus/components/u-transition/transitionMixin.js +163 -0
  421. package/uview-plus/components/u-transition/u-transition.vue +8 -7
  422. package/uview-plus/components/u-upload/mixin.js +6 -4
  423. package/uview-plus/components/u-upload/props.js +73 -26
  424. package/uview-plus/components/u-upload/style.css +44 -8
  425. package/uview-plus/components/u-upload/style.scss +22 -0
  426. package/uview-plus/components/u-upload/u-upload.vue +463 -106
  427. package/uview-plus/{libs/config/props → components/u-upload}/upload.js +13 -4
  428. package/uview-plus/components/u-upload/utils.js +82 -49
  429. package/uview-plus/components/u-view/style.css +26 -0
  430. package/uview-plus/components/u-view/style.scss +4 -0
  431. package/uview-plus/components/u-view/u-view.vue +3 -0
  432. package/uview-plus/components/u-waterfall/style.css +51 -0
  433. package/uview-plus/components/u-waterfall/style.scss +23 -0
  434. package/uview-plus/components/u-waterfall/u-waterfall.vue +3 -0
  435. package/uview-plus/index.css +2157 -943
  436. package/uview-plus/index.js +89 -21
  437. package/uview-plus/libs/config/config.js +23 -2
  438. package/uview-plus/libs/config/props.js +120 -94
  439. package/uview-plus/libs/css/color-libcss.scss +117 -0
  440. package/uview-plus/libs/css/color.scss +156 -0
  441. package/uview-plus/libs/css/common-libcss.scss +118 -14
  442. package/uview-plus/libs/css/common.scss +27 -12
  443. package/uview-plus/libs/css/components-libcss.scss +16 -1
  444. package/uview-plus/libs/css/components.scss +21 -2
  445. package/uview-plus/libs/css/flex-libcss.scss +1868 -924
  446. package/uview-plus/libs/css/flex.scss +151 -83
  447. package/uview-plus/libs/css/vue-libcss.scss +8 -4
  448. package/uview-plus/libs/css/vue.scss +3 -2
  449. package/uview-plus/libs/function/calc.js +64 -0
  450. package/uview-plus/libs/function/colorGradient.js +8 -8
  451. package/uview-plus/libs/function/debounce.js +2 -2
  452. package/uview-plus/libs/function/digit.js +5 -5
  453. package/uview-plus/libs/function/http.js +4 -0
  454. package/uview-plus/libs/function/index.js +213 -68
  455. package/uview-plus/libs/function/test.js +64 -32
  456. package/uview-plus/libs/function/throttle.js +3 -3
  457. package/uview-plus/libs/luch-request/core/Request.js +1 -0
  458. package/uview-plus/libs/mixin/button.js +6 -2
  459. package/uview-plus/libs/mixin/mixin.js +49 -13
  460. package/uview-plus/libs/mixin/mpMixin.js +6 -2
  461. package/uview-plus/libs/mixin/mpShare.js +24 -10
  462. package/uview-plus/libs/mixin/openType.js +4 -2
  463. package/uview-plus/libs/mixin/style.js +10 -9
  464. package/uview-plus/libs/mixin/touch.js +4 -2
  465. package/uview-plus/libs/util/gcanvas/bridge/bridge-weex.js +241 -0
  466. package/uview-plus/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +18 -0
  467. package/uview-plus/libs/util/gcanvas/context-2d/FillStylePattern.js +8 -0
  468. package/uview-plus/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +17 -0
  469. package/uview-plus/libs/util/gcanvas/context-2d/RenderingContext.js +666 -0
  470. package/uview-plus/libs/util/gcanvas/context-webgl/ActiveInfo.js +11 -0
  471. package/uview-plus/libs/util/gcanvas/context-webgl/Buffer.js +21 -0
  472. package/uview-plus/libs/util/gcanvas/context-webgl/Framebuffer.js +21 -0
  473. package/uview-plus/libs/util/gcanvas/context-webgl/GLenum.js +298 -0
  474. package/uview-plus/libs/util/gcanvas/context-webgl/GLmethod.js +142 -0
  475. package/uview-plus/libs/util/gcanvas/context-webgl/GLtype.js +23 -0
  476. package/uview-plus/libs/util/gcanvas/context-webgl/Program.js +21 -0
  477. package/uview-plus/libs/util/gcanvas/context-webgl/Renderbuffer.js +21 -0
  478. package/uview-plus/libs/util/gcanvas/context-webgl/RenderingContext.js +1191 -0
  479. package/uview-plus/libs/util/gcanvas/context-webgl/Shader.js +22 -0
  480. package/uview-plus/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +11 -0
  481. package/uview-plus/libs/util/gcanvas/context-webgl/Texture.js +22 -0
  482. package/uview-plus/libs/util/gcanvas/context-webgl/UniformLocation.js +22 -0
  483. package/uview-plus/libs/util/gcanvas/context-webgl/classUtils.js +3 -0
  484. package/uview-plus/libs/util/gcanvas/env/canvas.js +74 -0
  485. package/uview-plus/libs/util/gcanvas/env/image.js +96 -0
  486. package/uview-plus/libs/util/gcanvas/env/tool.js +24 -0
  487. package/uview-plus/libs/util/gcanvas/index.js +39 -0
  488. package/uview-plus/libs/util/route.js +6 -6
  489. package/uview-plus/libs/vue.js +3 -0
  490. package/uview-plus/package.json +15 -10
  491. package/uview-plus/types/comps/_common.d.ts +9 -0
  492. package/uview-plus/types/comps/actionSheet.d.ts +121 -0
  493. package/uview-plus/types/comps/album.d.ts +82 -0
  494. package/uview-plus/types/comps/alert.d.ts +55 -0
  495. package/uview-plus/types/comps/avatar.d.ts +85 -0
  496. package/uview-plus/types/comps/avatarGroup.d.ts +62 -0
  497. package/uview-plus/types/comps/backTop.d.ts +74 -0
  498. package/uview-plus/types/comps/badge.d.ts +76 -0
  499. package/uview-plus/types/comps/button.d.ts +169 -0
  500. package/uview-plus/types/comps/calendar.d.ts +164 -0
  501. package/uview-plus/types/comps/cell.d.ts +133 -0
  502. package/uview-plus/types/comps/cellGroup.d.ts +27 -0
  503. package/uview-plus/types/comps/checkbox.d.ts +69 -0
  504. package/uview-plus/types/comps/checkboxGroup.d.ts +93 -0
  505. package/uview-plus/types/comps/code.d.ts +69 -0
  506. package/uview-plus/types/comps/codeInput.d.ts +98 -0
  507. package/uview-plus/types/comps/col.d.ts +43 -0
  508. package/uview-plus/types/comps/collapse.d.ts +52 -0
  509. package/uview-plus/types/comps/collapseItem.d.ts +83 -0
  510. package/uview-plus/types/comps/countDown.d.ts +60 -0
  511. package/uview-plus/types/comps/countTo.d.ts +88 -0
  512. package/uview-plus/types/comps/datetimePicker.d.ts +146 -0
  513. package/uview-plus/types/comps/divider.d.ts +58 -0
  514. package/uview-plus/types/comps/empty.d.ts +72 -0
  515. package/uview-plus/types/comps/form.d.ts +76 -0
  516. package/uview-plus/types/comps/formItem.d.ts +68 -0
  517. package/uview-plus/types/comps/gap.d.ts +35 -0
  518. package/uview-plus/types/comps/grid.d.ts +34 -0
  519. package/uview-plus/types/comps/gridItem.d.ts +28 -0
  520. package/uview-plus/types/comps/icon.d.ts +93 -0
  521. package/uview-plus/types/comps/image.d.ts +119 -0
  522. package/uview-plus/types/comps/indexAnchor.d.ts +38 -0
  523. package/uview-plus/types/comps/indexItem.d.ts +18 -0
  524. package/uview-plus/types/comps/indexList.d.ts +39 -0
  525. package/uview-plus/types/comps/input.d.ts +234 -0
  526. package/uview-plus/types/comps/keyboard.d.ts +125 -0
  527. package/uview-plus/types/comps/line.d.ts +44 -0
  528. package/uview-plus/types/comps/lineProgress.d.ts +51 -0
  529. package/uview-plus/types/comps/link.d.ts +51 -0
  530. package/uview-plus/types/comps/list.d.ts +92 -0
  531. package/uview-plus/types/comps/listItem.d.ts +18 -0
  532. package/uview-plus/types/comps/loadMore.d.ts +108 -0
  533. package/uview-plus/types/comps/loadingIcon.d.ts +68 -0
  534. package/uview-plus/types/comps/loadingPage.d.ts +58 -0
  535. package/uview-plus/types/comps/modal.d.ts +115 -0
  536. package/uview-plus/types/comps/navbar.d.ts +113 -0
  537. package/uview-plus/types/comps/noNetwork.d.ts +40 -0
  538. package/uview-plus/types/comps/noticeBar.d.ts +85 -0
  539. package/uview-plus/types/comps/notify.d.ts +73 -0
  540. package/uview-plus/types/comps/numberBox.d.ts +155 -0
  541. package/uview-plus/types/comps/overlay.d.ts +46 -0
  542. package/uview-plus/types/comps/parse.d.ts +101 -0
  543. package/uview-plus/types/comps/picker.d.ts +115 -0
  544. package/uview-plus/types/comps/popup.d.ts +103 -0
  545. package/uview-plus/types/comps/radio.d.ts +77 -0
  546. package/uview-plus/types/comps/radioGroup.d.ts +97 -0
  547. package/uview-plus/types/comps/rate.d.ts +85 -0
  548. package/uview-plus/types/comps/readMore.d.ts +80 -0
  549. package/uview-plus/types/comps/row.d.ts +34 -0
  550. package/uview-plus/types/comps/safeBottom.d.ts +16 -0
  551. package/uview-plus/types/comps/scrollList.d.ts +51 -0
  552. package/uview-plus/types/comps/search.d.ts +172 -0
  553. package/uview-plus/types/comps/skeleton.d.ts +70 -0
  554. package/uview-plus/types/comps/slider.d.ts +79 -0
  555. package/uview-plus/types/comps/statusBar.d.ts +22 -0
  556. package/uview-plus/types/comps/steps.d.ts +48 -0
  557. package/uview-plus/types/comps/stepsItem.d.ts +41 -0
  558. package/uview-plus/types/comps/sticky.d.ts +48 -0
  559. package/uview-plus/types/comps/subsection.d.ts +64 -0
  560. package/uview-plus/types/comps/swipeAction.d.ts +24 -0
  561. package/uview-plus/types/comps/swipeActionItem.d.ts +58 -0
  562. package/uview-plus/types/comps/swiper.d.ts +142 -0
  563. package/uview-plus/types/comps/swiperIndicator.d.ts +37 -0
  564. package/uview-plus/types/comps/switch.d.ts +73 -0
  565. package/uview-plus/types/comps/tabbar.d.ts +54 -0
  566. package/uview-plus/types/comps/tabbarItem.d.ts +52 -0
  567. package/uview-plus/types/comps/tabs.d.ts +85 -0
  568. package/uview-plus/types/comps/tag.d.ts +93 -0
  569. package/uview-plus/types/comps/text.d.ts +110 -0
  570. package/uview-plus/types/comps/textarea.d.ts +158 -0
  571. package/uview-plus/types/comps/toast.d.ts +63 -0
  572. package/uview-plus/types/comps/tooltip.d.ts +71 -0
  573. package/uview-plus/types/comps/transition.d.ts +61 -0
  574. package/uview-plus/types/comps/upload.d.ts +204 -0
  575. package/uview-plus/types/comps.d.ts +101 -0
  576. package/uview-plus/types/index.d.ts +172 -0
  577. package/uview-plus/types/package.json +26 -0
  578. package/uview-ui/changelog.md +26 -0
  579. package/uview-ui/components/u--form/u--form.vue +1 -1
  580. package/uview-ui/components/u--image/u--image.vue +1 -1
  581. package/uview-ui/components/u--input/u--input.vue +1 -1
  582. package/uview-ui/components/u--text/u--text.vue +1 -1
  583. package/uview-ui/components/u--textarea/u--textarea.vue +1 -1
  584. package/uview-ui/components/u-action-sheet/props.js +1 -1
  585. package/uview-ui/components/u-action-sheet/style.css +1 -1
  586. package/uview-ui/components/u-avatar/style.css +1 -0
  587. package/uview-ui/components/u-avatar/style.scss +1 -0
  588. package/uview-ui/components/u-button/nvue-parse.scss +1 -1
  589. package/uview-ui/components/u-button/style.css +2 -2
  590. package/uview-ui/components/u-button/u-button.vue +7 -2
  591. package/uview-ui/components/u-button/vue-parse.scss +1 -1
  592. package/uview-ui/components/u-car-keyboard/style.css +1 -1
  593. package/uview-ui/components/u-checkbox/u-checkbox.vue +2 -2
  594. package/uview-ui/components/u-circle-progress/style.css +6 -6
  595. package/uview-ui/components/u-col/style.css +13 -13
  596. package/uview-ui/components/u-datetime-picker/props.js +4 -0
  597. package/uview-ui/components/u-datetime-picker/u-datetime-picker.vue +13 -2
  598. package/uview-ui/components/u-form-item/u-form-item.vue +1 -1
  599. package/uview-ui/components/u-icon/style.css +1 -1
  600. package/uview-ui/components/u-image/u-image.vue +3 -2
  601. package/uview-ui/components/u-input/style.css +3 -0
  602. package/uview-ui/components/u-input/style.scss +8 -0
  603. package/uview-ui/components/u-input/u-input.vue +5 -5
  604. package/uview-ui/components/u-loading-icon/style.css +1 -1
  605. package/uview-ui/components/u-loading-page/style.css +2 -2
  606. package/uview-ui/components/u-modal/props.js +5 -0
  607. package/uview-ui/components/u-modal/u-modal.vue +1 -1
  608. package/uview-ui/components/u-number-keyboard/style.css +2 -2
  609. package/uview-ui/components/u-parse/u-parse.vue +1 -1
  610. package/uview-ui/components/u-picker/u-picker.vue +5 -2
  611. package/uview-ui/components/u-popup/u-popup.vue +1 -1
  612. package/uview-ui/components/u-radio/props.js +1 -1
  613. package/uview-ui/components/u-radio/u-radio.vue +2 -2
  614. package/uview-ui/components/u-search/style.css +1 -1
  615. package/uview-ui/components/u-skeleton/u-skeleton.vue +2 -2
  616. package/uview-ui/components/u-steps-item/u-steps-item.vue +2 -2
  617. package/uview-ui/components/u-subsection/style.css +1 -1
  618. package/uview-ui/components/u-swipe-action-item/style.css +2 -2
  619. package/uview-ui/components/u-tabs/u-tabs.vue +10 -1
  620. package/uview-ui/components/u-toast/style.css +1 -1
  621. package/uview-ui/components/u-tooltip/u-tooltip.vue +1 -0
  622. package/uview-ui/components/u-upload/style.css +7 -4
  623. package/uview-ui/components/u-upload/style.scss +6 -0
  624. package/uview-ui/components/u-upload/u-upload.vue +6 -1
  625. package/uview-ui/libs/config/config.js +2 -2
  626. package/uview-ui/libs/config/props/datetimePicker.js +1 -0
  627. package/uview-ui/libs/config/props/modal.js +2 -1
  628. package/uview-ui/libs/mixin/mixin.js +3 -6
  629. package/uview-ui/package.json +5 -8
  630. package/uview-plus/components/u-slider/nvue - /345/211/257/346/234/254.js" +0 -175
  631. package/uview-plus/libs/config/props/tag.js +0 -29
  632. package/uview-plus/libs/config/props/transition.js +0 -18
  633. /package/uview-plus/{libs/config/props → components/u-alert}/alert.js +0 -0
  634. /package/uview-plus/{libs/config/props → components/u-avatar}/avatar.js +0 -0
  635. /package/uview-plus/{libs/config/props → components/u-car-keyboard}/carKeyboard.js +0 -0
  636. /package/uview-plus/{libs/config/props → components/u-cell}/cell.js +0 -0
  637. /package/uview-plus/{libs/config/props → components/u-cell-group}/cellGroup.js +0 -0
  638. /package/uview-plus/{libs/config/props → components/u-checkbox}/checkbox.js +0 -0
  639. /package/uview-plus/{libs/config/props → components/u-circle-progress}/circleProgress.js +0 -0
  640. /package/uview-plus/{libs/config/props → components/u-code}/code.js +0 -0
  641. /package/uview-plus/{libs/config/props → components/u-code-input}/codeInput.js +0 -0
  642. /package/uview-plus/{libs/config/props → components/u-col}/col.js +0 -0
  643. /package/uview-plus/{libs/config/props → components/u-collapse}/collapse.js +0 -0
  644. /package/uview-plus/{libs/config/props → components/u-count-down}/countDown.js +0 -0
  645. /package/uview-plus/{libs/config/props → components/u-count-to}/countTo.js +0 -0
  646. /package/uview-plus/{libs/config/props → components/u-divider}/divider.js +0 -0
  647. /package/uview-plus/{libs/config/props → components/u-empty}/empty.js +0 -0
  648. /package/uview-plus/{libs/config/props → components/u-gap}/gap.js +0 -0
  649. /package/uview-plus/{libs/config/props → components/u-grid}/grid.js +0 -0
  650. /package/uview-plus/{libs/config/props → components/u-grid-item}/gridItem.js +0 -0
  651. /package/uview-plus/{libs/config/props → components/u-image}/image.js +0 -0
  652. /package/uview-plus/{libs/config/props → components/u-index-anchor}/indexAnchor.js +0 -0
  653. /package/uview-plus/{libs/config/props → components/u-keyboard}/keyboard.js +0 -0
  654. /package/uview-plus/{libs/config/props → components/u-line}/line.js +0 -0
  655. /package/uview-plus/{libs/config/props → components/u-line-progress}/lineProgress.js +0 -0
  656. /package/uview-plus/{libs/config/props → components/u-list}/list.js +0 -0
  657. /package/uview-plus/{libs/config/props → components/u-list-item}/listItem.js +0 -0
  658. /package/uview-plus/{libs/config/props → components/u-loadmore}/loadmore.js +0 -0
  659. /package/uview-plus/{libs/config/props → components/u-no-network}/noNetwork.js +0 -0
  660. /package/uview-plus/{libs/config/props → components/u-notify}/notify.js +0 -0
  661. /package/uview-plus/{libs/config/props → components/u-number-keyboard}/numberKeyboard.js +0 -0
  662. /package/uview-plus/{libs/config/props → components/u-overlay}/overlay.js +0 -0
  663. /package/uview-plus/{libs/config/props → components/u-parse}/parse.js +0 -0
  664. /package/uview-plus/{libs/config/props → components/u-radio}/radio.js +0 -0
  665. /package/uview-plus/{libs/config/props → components/u-rate}/rate.js +0 -0
  666. /package/uview-plus/{libs/config/props → components/u-read-more}/readMore.js +0 -0
  667. /package/uview-plus/{libs/config/props → components/u-row}/row.js +0 -0
  668. /package/uview-plus/{libs/config/props → components/u-row-notice}/rowNotice.js +0 -0
  669. /package/uview-plus/{libs/config/props → components/u-scroll-list}/scrollList.js +0 -0
  670. /package/uview-plus/{libs/config/props → components/u-section}/section.js +0 -0
  671. /package/uview-plus/{libs/config/props → components/u-skeleton}/skeleton.js +0 -0
  672. /package/uview-plus/{libs/config/props → components/u-steps}/steps.js +0 -0
  673. /package/uview-plus/{libs/config/props → components/u-steps-item}/stepsItem.js +0 -0
  674. /package/uview-plus/{libs/config/props → components/u-sticky}/sticky.js +0 -0
  675. /package/uview-plus/{libs/config/props → components/u-subsection}/subsection.js +0 -0
  676. /package/uview-plus/{libs/config/props → components/u-swipe-action}/swipeAction.js +0 -0
  677. /package/uview-plus/{libs/config/props → components/u-swiper-indicator}/swipterIndicator.js +0 -0
  678. /package/uview-plus/{libs/config/props → components/u-switch}/switch.js +0 -0
  679. /package/uview-plus/{libs/config/props → components/u-tabbar}/tabbar.js +0 -0
  680. /package/uview-plus/{libs/config/props → components/u-tabbar-item}/tabbarItem.js +0 -0
  681. /package/uview-plus/{libs/config/props → components/u-textarea}/textarea.js +0 -0
@@ -0,0 +1,1191 @@
1
+ import GLenum from './GLenum';
2
+ import ActiveInfo from './ActiveInfo';
3
+ import Buffer from './Buffer';
4
+ import Framebuffer from './Framebuffer';
5
+ import Renderbuffer from './Renderbuffer';
6
+ import Texture from './Texture';
7
+ import Program from './Program';
8
+ import Shader from './Shader';
9
+ import ShaderPrecisionFormat from './ShaderPrecisionFormat';
10
+ import UniformLocation from './UniformLocation';
11
+ import GLmethod from './GLmethod';
12
+
13
+ const processArray = (array, checkArrayType = false) => {
14
+
15
+ function joinArray(arr, sep) {
16
+ let res = '';
17
+ for (let i = 0; i < arr.length; i++) {
18
+ if (i !== 0) {
19
+ res += sep;
20
+ }
21
+ res += arr[i];
22
+ }
23
+ return res;
24
+ }
25
+
26
+ let type = 'Float32Array';
27
+ if (checkArrayType) {
28
+ if (array instanceof Uint8Array) {
29
+ type = 'Uint8Array'
30
+ } else if (array instanceof Uint16Array) {
31
+ type = 'Uint16Array';
32
+ } else if (array instanceof Uint32Array) {
33
+ type = 'Uint32Array';
34
+ } else if (array instanceof Float32Array) {
35
+ type = 'Float32Array';
36
+ } else {
37
+ throw new Error('Check array type failed. Array type is ' + typeof array);
38
+ }
39
+ }
40
+
41
+ const ArrayTypes = {
42
+ Uint8Array: 1,
43
+ Uint16Array: 2,
44
+ Uint32Array: 4,
45
+ Float32Array: 14
46
+ };
47
+ return ArrayTypes[type] + ',' + btoa(joinArray(array, ','))
48
+ }
49
+
50
+ export default class WebGLRenderingContext {
51
+
52
+ // static GBridge = null;
53
+
54
+ className = 'WebGLRenderingContext';
55
+
56
+ constructor(canvas, type, attrs) {
57
+ this._canvas = canvas;
58
+ this._type = type;
59
+ this._version = 'WebGL 1.0';
60
+ this._attrs = attrs;
61
+ this._map = new Map();
62
+
63
+ Object.keys(GLenum)
64
+ .forEach(name => Object.defineProperty(this, name, {
65
+ value: GLenum[name]
66
+ }));
67
+ }
68
+
69
+ get canvas() {
70
+ return this._canvas;
71
+ }
72
+
73
+ activeTexture = function (textureUnit) {
74
+ WebGLRenderingContext.GBridge.callNative(
75
+ this._canvas.id,
76
+ GLmethod.activeTexture + ',' + textureUnit,
77
+ true
78
+ );
79
+ }
80
+
81
+ attachShader = function (progarm, shader) {
82
+ WebGLRenderingContext.GBridge.callNative(
83
+ this._canvas.id,
84
+ GLmethod.attachShader + ',' + progarm.id + ',' + shader.id,
85
+ true
86
+ );
87
+ }
88
+
89
+ bindAttribLocation = function (program, index, name) {
90
+ WebGLRenderingContext.GBridge.callNative(
91
+ this._canvas.id,
92
+ GLmethod.bindAttribLocation + ',' + program.id + ',' + index + ',' + name,
93
+ true
94
+ )
95
+ }
96
+
97
+ bindBuffer = function (target, buffer) {
98
+ WebGLRenderingContext.GBridge.callNative(
99
+ this._canvas.id,
100
+ GLmethod.bindBuffer + ',' + target + ',' + (buffer ? buffer.id : 0),
101
+ true
102
+ );
103
+ }
104
+
105
+ bindFramebuffer = function (target, framebuffer) {
106
+ WebGLRenderingContext.GBridge.callNative(
107
+ this._canvas.id,
108
+ GLmethod.bindFramebuffer + ',' + target + ',' + (framebuffer ? framebuffer.id : 0),
109
+ true
110
+ )
111
+ }
112
+
113
+ bindRenderbuffer = function (target, renderBuffer) {
114
+ WebGLRenderingContext.GBridge.callNative(
115
+ this._canvas.id,
116
+ GLmethod.bindRenderbuffer + ',' + target + ',' + (renderBuffer ? renderBuffer.id : 0),
117
+ true
118
+ )
119
+ }
120
+
121
+ bindTexture = function (target, texture) {
122
+ WebGLRenderingContext.GBridge.callNative(
123
+ this._canvas.id,
124
+ GLmethod.bindTexture + ',' + target + ',' + (texture ? texture.id : 0),
125
+ true
126
+ )
127
+ }
128
+
129
+ blendColor = function (r, g, b, a) {
130
+ WebGLRenderingContext.GBridge.callNative(
131
+ this._canvas.id,
132
+ GLmethod.blendColor + ',' + target + ',' + r + ',' + g + ',' + b + ',' + a,
133
+ true
134
+ )
135
+ }
136
+
137
+ blendEquation = function (mode) {
138
+ WebGLRenderingContext.GBridge.callNative(
139
+ this._canvas.id,
140
+ GLmethod.blendEquation + ',' + mode,
141
+ true
142
+ )
143
+ }
144
+
145
+ blendEquationSeparate = function (modeRGB, modeAlpha) {
146
+ WebGLRenderingContext.GBridge.callNative(
147
+ this._canvas.id,
148
+ GLmethod.blendEquationSeparate + ',' + modeRGB + ',' + modeAlpha,
149
+ true
150
+ )
151
+ }
152
+
153
+
154
+ blendFunc = function (sfactor, dfactor) {
155
+ WebGLRenderingContext.GBridge.callNative(
156
+ this._canvas.id,
157
+ GLmethod.blendFunc + ',' + sfactor + ',' + dfactor,
158
+ true
159
+ );
160
+ }
161
+
162
+ blendFuncSeparate = function (srcRGB, dstRGB, srcAlpha, dstAlpha) {
163
+ WebGLRenderingContext.GBridge.callNative(
164
+ this._canvas.id,
165
+ GLmethod.blendFuncSeparate + ',' + srcRGB + ',' + dstRGB + ',' + srcAlpha + ',' + dstAlpha,
166
+ true
167
+ );
168
+ }
169
+
170
+ bufferData = function (target, data, usage) {
171
+ WebGLRenderingContext.GBridge.callNative(
172
+ this._canvas.id,
173
+ GLmethod.bufferData + ',' + target + ',' + processArray(data, true) + ',' + usage,
174
+ true
175
+ )
176
+ }
177
+
178
+ bufferSubData = function (target, offset, data) {
179
+ WebGLRenderingContext.GBridge.callNative(
180
+ this._canvas.id,
181
+ GLmethod.bufferSubData + ',' + target + ',' + offset + ',' + processArray(data, true),
182
+ true
183
+ )
184
+ }
185
+
186
+ checkFramebufferStatus = function (target) {
187
+ const result = WebGLRenderingContext.GBridge.callNative(
188
+ this._canvas.id,
189
+ GLmethod.checkFramebufferStatus + ',' + target
190
+ );
191
+ return Number(result);
192
+ }
193
+
194
+ clear = function (mask) {
195
+ WebGLRenderingContext.GBridge.callNative(
196
+ this._canvas.id,
197
+ GLmethod.clear + ',' + mask
198
+ );
199
+ this._canvas._needRender = true;
200
+ }
201
+
202
+ clearColor = function (r, g, b, a) {
203
+ WebGLRenderingContext.GBridge.callNative(
204
+ this._canvas.id,
205
+ GLmethod.clearColor + ',' + r + ',' + g + ',' + b,
206
+ true
207
+ )
208
+ }
209
+
210
+ clearDepth = function (depth) {
211
+ WebGLRenderingContext.GBridge.callNative(
212
+ this._canvas.id,
213
+ GLmethod.clearDepth + ',' + depth,
214
+ true
215
+ )
216
+ }
217
+
218
+ clearStencil = function (s) {
219
+ WebGLRenderingContext.GBridge.callNative(
220
+ this._canvas.id,
221
+ GLmethod.clearStencil + ',' + s
222
+ );
223
+ }
224
+
225
+ colorMask = function (r, g, b, a) {
226
+ WebGLRenderingContext.GBridge.callNative(
227
+ this._canvas.id,
228
+ GLmethod.colorMask + ',' + r + ',' + g + ',' + b + ',' + a
229
+ )
230
+ }
231
+
232
+ compileShader = function (shader) {
233
+ WebGLRenderingContext.GBridge.callNative(
234
+ this._canvas.id,
235
+ GLmethod.compileShader + ',' + shader.id,
236
+ true
237
+ )
238
+ }
239
+
240
+ compressedTexImage2D = function (target, level, internalformat, width, height, border, pixels) {
241
+ WebGLRenderingContext.GBridge.callNative(
242
+ this._canvas.id,
243
+ GLmethod.compressedTexImage2D + ',' + target + ',' + level + ',' + internalformat + ',' +
244
+ width + ',' + height + ',' + border + ',' + processArray(pixels),
245
+ true
246
+ )
247
+ }
248
+
249
+ compressedTexSubImage2D = function (target, level, xoffset, yoffset, width, height, format, pixels) {
250
+ WebGLRenderingContext.GBridge.callNative(
251
+ this._canvas.id,
252
+ GLmethod.compressedTexSubImage2D + ',' + target + ',' + level + ',' + xoffset + ',' + yoffset + ',' +
253
+ width + ',' + height + ',' + format + ',' + processArray(pixels),
254
+ true
255
+ )
256
+ }
257
+
258
+
259
+ copyTexImage2D = function (target, level, internalformat, x, y, width, height, border) {
260
+ WebGLRenderingContext.GBridge.callNative(
261
+ this._canvas.id,
262
+ GLmethod.copyTexImage2D + ',' + target + ',' + level + ',' + internalformat + ',' + x + ',' + y + ',' +
263
+ width + ',' + height + ',' + border,
264
+ true
265
+ );
266
+ }
267
+
268
+ copyTexSubImage2D = function (target, level, xoffset, yoffset, x, y, width, height) {
269
+ WebGLRenderingContext.GBridge.callNative(
270
+ this._canvas.id,
271
+ GLmethod.copyTexSubImage2D + ',' + target + ',' + level + ',' + xoffset + ',' + yoffset + ',' + x + ',' + y + ',' +
272
+ width + ',' + height
273
+ );
274
+ }
275
+
276
+ createBuffer = function () {
277
+ const result = WebGLRenderingContext.GBridge.callNative(
278
+ this._canvas.id,
279
+ GLmethod.createBuffer + ''
280
+ );
281
+ const buffer = new Buffer(result);
282
+ this._map.set(buffer.uuid(), buffer);
283
+ return buffer;
284
+ }
285
+
286
+ createFramebuffer = function () {
287
+ const result = WebGLRenderingContext.GBridge.callNative(
288
+ this._canvas.id,
289
+ GLmethod.createFramebuffer + ''
290
+ );
291
+ const framebuffer = new Framebuffer(result);
292
+ this._map.set(framebuffer.uuid(), framebuffer);
293
+ return framebuffer;
294
+ }
295
+
296
+
297
+ createProgram = function () {
298
+ const id = WebGLRenderingContext.GBridge.callNative(
299
+ this._canvas.id,
300
+ GLmethod.createProgram + ''
301
+ );
302
+ const program = new Program(id);
303
+ this._map.set(program.uuid(), program);
304
+ return program;
305
+ }
306
+
307
+ createRenderbuffer = function () {
308
+ const id = WebGLRenderingContext.GBridge.callNative(
309
+ this._canvas.id,
310
+ GLmethod.createRenderbuffer + ''
311
+ )
312
+ const renderBuffer = new Renderbuffer(id);
313
+ this._map.set(renderBuffer.uuid(), renderBuffer);
314
+ return renderBuffer;
315
+ }
316
+
317
+ createShader = function (type) {
318
+ const id = WebGLRenderingContext.GBridge.callNative(
319
+ this._canvas.id,
320
+ GLmethod.createShader + ',' + type
321
+ )
322
+ const shader = new Shader(id, type);
323
+ this._map.set(shader.uuid(), shader);
324
+ return shader;
325
+ }
326
+
327
+ createTexture = function () {
328
+ const id = WebGLRenderingContext.GBridge.callNative(
329
+ this._canvas.id,
330
+ GLmethod.createTexture + ''
331
+ );
332
+ const texture = new Texture(id);
333
+ this._map.set(texture.uuid(), texture);
334
+ return texture;
335
+ }
336
+
337
+ cullFace = function (mode) {
338
+ WebGLRenderingContext.GBridge.callNative(
339
+ this._canvas.id,
340
+ GLmethod.cullFace + ',' + mode,
341
+ true
342
+ )
343
+ }
344
+
345
+
346
+ deleteBuffer = function (buffer) {
347
+ WebGLRenderingContext.GBridge.callNative(
348
+ this._canvas.id,
349
+ GLmethod.deleteBuffer + ',' + buffer.id,
350
+ true
351
+ )
352
+ }
353
+
354
+ deleteFramebuffer = function (framebuffer) {
355
+ WebGLRenderingContext.GBridge.callNative(
356
+ this._canvas.id,
357
+ GLmethod.deleteFramebuffer + ',' + framebuffer.id,
358
+ true
359
+ )
360
+ }
361
+
362
+ deleteProgram = function (program) {
363
+ WebGLRenderingContext.GBridge.callNative(
364
+ this._canvas.id,
365
+ GLmethod.deleteProgram + ',' + program.id,
366
+ true
367
+ )
368
+ }
369
+
370
+ deleteRenderbuffer = function (renderbuffer) {
371
+ WebGLRenderingContext.GBridge.callNative(
372
+ this._canvas.id,
373
+ GLmethod.deleteRenderbuffer + ',' + renderbuffer.id,
374
+ true
375
+ )
376
+ }
377
+
378
+ deleteShader = function (shader) {
379
+ WebGLRenderingContext.GBridge.callNative(
380
+ this._canvas.id,
381
+ GLmethod.deleteShader + ',' + shader.id,
382
+ true
383
+ )
384
+ }
385
+
386
+ deleteTexture = function (texture) {
387
+ WebGLRenderingContext.GBridge.callNative(
388
+ this._canvas.id,
389
+ GLmethod.deleteTexture + ',' + texture.id,
390
+ true
391
+ )
392
+ }
393
+
394
+ depthFunc = function (func) {
395
+ WebGLRenderingContext.GBridge.callNative(
396
+ this._canvas.id,
397
+ GLmethod.depthFunc + ',' + func
398
+ )
399
+ }
400
+
401
+ depthMask = function (flag) {
402
+ WebGLRenderingContext.GBridge.callNative(
403
+ this._canvas.id,
404
+ GLmethod.depthMask + ',' + Number(flag),
405
+ true
406
+ )
407
+ }
408
+
409
+ depthRange = function (zNear, zFar) {
410
+ WebGLRenderingContext.GBridge.callNative(
411
+ this._canvas.id,
412
+ GLmethod.depthRange + ',' + zNear + ',' + zFar,
413
+ true
414
+ )
415
+ }
416
+
417
+ detachShader = function (program, shader) {
418
+ WebGLRenderingContext.GBridge.callNative(
419
+ this._canvas.id,
420
+ GLmethod.detachShader + ',' + program.id + ',' + shader.id,
421
+ true
422
+ )
423
+ }
424
+
425
+ disable = function (cap) {
426
+ WebGLRenderingContext.GBridge.callNative(
427
+ this._canvas.id,
428
+ GLmethod.disable + ',' + cap,
429
+ true
430
+ )
431
+ }
432
+
433
+ disableVertexAttribArray = function (index) {
434
+ WebGLRenderingContext.GBridge.callNative(
435
+ this._canvas.id,
436
+ GLmethod.disableVertexAttribArray + ',' + index,
437
+ true
438
+ );
439
+ }
440
+
441
+ drawArrays = function (mode, first, count) {
442
+ WebGLRenderingContext.GBridge.callNative(
443
+ this._canvas.id,
444
+ GLmethod.drawArrays + ',' + mode + ',' + first + ',' + count
445
+ )
446
+ this._canvas._needRender = true;
447
+ }
448
+
449
+ drawElements = function (mode, count, type, offset) {
450
+ WebGLRenderingContext.GBridge.callNative(
451
+ this._canvas.id,
452
+ GLmethod.drawElements + ',' + mode + ',' + count + ',' + type + ',' + offset + ';'
453
+ );
454
+ this._canvas._needRender = true;
455
+ }
456
+
457
+ enable = function (cap) {
458
+ WebGLRenderingContext.GBridge.callNative(
459
+ this._canvas.id,
460
+ GLmethod.enable + ',' + cap,
461
+ true
462
+ );
463
+ }
464
+
465
+ enableVertexAttribArray = function (index) {
466
+ WebGLRenderingContext.GBridge.callNative(
467
+ this._canvas.id,
468
+ GLmethod.enableVertexAttribArray + ',' + index,
469
+ true
470
+ )
471
+ }
472
+
473
+
474
+ flush = function () {
475
+ WebGLRenderingContext.GBridge.callNative(
476
+ this._canvas.id,
477
+ GLmethod.flush + ''
478
+ )
479
+ }
480
+
481
+ framebufferRenderbuffer = function (target, attachment, textarget, texture, level) {
482
+ WebGLRenderingContext.GBridge.callNative(
483
+ this._canvas.id,
484
+ GLmethod.framebufferRenderbuffer + ',' + target + ',' + attachment + ',' + textarget + ',' + (texture ? texture.id : 0) + ',' + level,
485
+ true
486
+ )
487
+ }
488
+
489
+ framebufferTexture2D = function (target, attachment, textarget, texture, level) {
490
+ WebGLRenderingContext.GBridge.callNative(
491
+ this._canvas.id,
492
+ GLmethod.framebufferTexture2D + ',' + target + ',' + attachment + ',' + textarget + ',' + (texture ? texture.id : 0) + ',' + level,
493
+ true
494
+ )
495
+ }
496
+
497
+ frontFace = function (mode) {
498
+ WebGLRenderingContext.GBridge.callNative(
499
+ this._canvas.id,
500
+ GLmethod.frontFace + ',' + mode,
501
+ true
502
+ )
503
+ }
504
+
505
+ generateMipmap = function (target) {
506
+ WebGLRenderingContext.GBridge.callNative(
507
+ this._canvas.id,
508
+ GLmethod.generateMipmap + ',' + target,
509
+ true
510
+ )
511
+ }
512
+
513
+ getActiveAttrib = function (progarm, index) {
514
+ const resultString = WebGLRenderingContext.GBridge.callNative(
515
+ this._canvas.id,
516
+ GLmethod.getActiveAttrib + ',' + progarm.id + ',' + index
517
+ )
518
+ const [type, size, name] = resultString.split(',');
519
+ return new ActiveInfo({
520
+ type: Number(type),
521
+ size: Number(size),
522
+ name
523
+ });
524
+ }
525
+
526
+ getActiveUniform = function (progarm, index) {
527
+ const resultString = WebGLRenderingContext.GBridge.callNative(
528
+ this._canvas.id,
529
+ GLmethod.getActiveUniform + ',' + progarm.id + ',' + index
530
+ );
531
+ const [type, size, name] = resultString.split(',');
532
+ return new ActiveInfo({
533
+ type: Number(type),
534
+ size: Number(size),
535
+ name
536
+ })
537
+ }
538
+
539
+ getAttachedShaders = function (progarm) {
540
+ const result = WebGLRenderingContext.GBridge.callNative(
541
+ this._canvas.id,
542
+ GLmethod.getAttachedShaders + ',' + progarm.id
543
+ );
544
+ const [type, ...ids] = result;
545
+ return ids.map(id => this._map.get(Shader.uuid(id)));
546
+ }
547
+
548
+ getAttribLocation = function (progarm, name) {
549
+ return WebGLRenderingContext.GBridge.callNative(
550
+ this._canvas.id,
551
+ GLmethod.getAttribLocation + ',' + progarm.id + ',' + name
552
+ )
553
+ }
554
+
555
+ getBufferParameter = function (target, pname) {
556
+ const result = WebGLRenderingContext.GBridge.callNative(
557
+ this._canvas.id,
558
+ GLmethod.getBufferParameter + ',' + target + ',' + pname
559
+ );
560
+ const [type, res] = getBufferParameter;
561
+ return res;
562
+ }
563
+
564
+ getError = function () {
565
+ const result = WebGLRenderingContext.GBridge.callNative(
566
+ this._canvas.id,
567
+ GLmethod.getError + ''
568
+ )
569
+ return result;
570
+ }
571
+
572
+ getExtension = function (name) {
573
+ return null;
574
+ }
575
+
576
+ getFramebufferAttachmentParameter = function (target, attachment, pname) {
577
+ const result = WebGLRenderingContext.GBridge.callNative(
578
+ this._canvas.id,
579
+ GLmethod.getFramebufferAttachmentParameter + ',' + target + ',' + attachment + ',' + pname
580
+ )
581
+ switch (pname) {
582
+ case GLenum.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME:
583
+ return this._map.get(Renderbuffer.uuid(result)) || this._map.get(Texture.uuid(result)) || null;
584
+ default:
585
+ return result;
586
+ }
587
+ }
588
+
589
+ getParameter = function (pname) {
590
+ const result = WebGLRenderingContext.GBridge.callNative(
591
+ this._canvas.id,
592
+ GLmethod.getParameter + ',' + pname
593
+ )
594
+ switch (pname) {
595
+ case GLenum.VERSION:
596
+ return this._version;
597
+ case GLenum.ARRAY_BUFFER_BINDING: // buffer
598
+ case GLenum.ELEMENT_ARRAY_BUFFER_BINDING: // buffer
599
+ return this._map.get(Buffer.uuid(result)) || null;
600
+ case GLenum.CURRENT_PROGRAM: // program
601
+ return this._map.get(Program.uuid(result)) || null;
602
+ case GLenum.FRAMEBUFFER_BINDING: // framebuffer
603
+ return this._map.get(Framebuffer.uuid(result)) || null;
604
+ case GLenum.RENDERBUFFER_BINDING: // renderbuffer
605
+ return this._map.get(Renderbuffer.uuid(result)) || null;
606
+ case GLenum.TEXTURE_BINDING_2D: // texture
607
+ case GLenum.TEXTURE_BINDING_CUBE_MAP: // texture
608
+ return this._map.get(Texture.uuid(result)) || null;
609
+ case GLenum.ALIASED_LINE_WIDTH_RANGE: // Float32Array
610
+ case GLenum.ALIASED_POINT_SIZE_RANGE: // Float32Array
611
+ case GLenum.BLEND_COLOR: // Float32Array
612
+ case GLenum.COLOR_CLEAR_VALUE: // Float32Array
613
+ case GLenum.DEPTH_RANGE: // Float32Array
614
+ case GLenum.MAX_VIEWPORT_DIMS: // Int32Array
615
+ case GLenum.SCISSOR_BOX: // Int32Array
616
+ case GLenum.VIEWPORT: // Int32Array
617
+ case GLenum.COMPRESSED_TEXTURE_FORMATS: // Uint32Array
618
+ default:
619
+ const [type, ...res] = result.split(',');
620
+ if (res.length === 1) {
621
+ return Number(res[0]);
622
+ } else {
623
+ return res.map(Number);
624
+ }
625
+ }
626
+ }
627
+
628
+ getProgramInfoLog = function (progarm) {
629
+ return WebGLRenderingContext.GBridge.callNative(
630
+ this._canvas.id,
631
+ GLmethod.getProgramInfoLog + ',' + progarm.id
632
+ )
633
+ }
634
+
635
+ getProgramParameter = function (program, pname) {
636
+ const res = WebGLRenderingContext.GBridge.callNative(
637
+ this._canvas.id,
638
+ GLmethod.getProgramParameter + ',' + program.id + ',' + pname
639
+ );
640
+
641
+ const [type, result] = res.split(',').map(i => parseInt(i));
642
+
643
+ if (type === 1) {
644
+ return Boolean(result);
645
+ } else if (type === 2) {
646
+ return result;
647
+ } else {
648
+ throw new Error('Unrecongized program paramater ' + res + ', type: ' + typeof res);
649
+ }
650
+ }
651
+
652
+
653
+ getRenderbufferParameter = function (target, pname) {
654
+ const result = WebGLRenderingContext.GBridge.callNative(
655
+ this._canvas.id,
656
+ GLmethod.getRenderbufferParameter + ',' + target + ',' + pname
657
+ )
658
+ return result;
659
+ }
660
+
661
+
662
+ getShaderInfoLog = function (shader) {
663
+ return WebGLRenderingContext.GBridge.callNative(
664
+ this._canvas.id,
665
+ GLmethod.getShaderInfoLog + ',' + shader.id
666
+ );
667
+ }
668
+
669
+ getShaderParameter = function (shader, pname) {
670
+ return WebGLRenderingContext.GBridge.callNative(
671
+ this._canvas.id,
672
+ GLmethod.getShaderParameter + ',' + shader.id + ',' + pname
673
+ )
674
+ }
675
+
676
+ getShaderPrecisionFormat = function (shaderType, precisionType) {
677
+ const [rangeMin, rangeMax, precision] = WebGLRenderingContext.GBridge.callNative(
678
+ this._canvas.id,
679
+ GLmethod.getShaderPrecisionFormat + ',' + shaderType + ',' + precisionType
680
+ );
681
+ const shaderPrecisionFormat = new ShaderPrecisionFormat({
682
+ rangeMin: Number(rangeMin),
683
+ rangeMax: Number(rangeMax),
684
+ precision: Number(precision)
685
+ });
686
+ return shaderPrecisionFormat;
687
+ }
688
+
689
+ getShaderSource = function (shader) {
690
+ const result = WebGLRenderingContext.GBridge.callNative(
691
+ this._canvas.id,
692
+ GLmethod.getShaderSource + ',' + shader.id
693
+ );
694
+ return result;
695
+ }
696
+
697
+ getSupportedExtensions = function () {
698
+ return Object.keys({});
699
+ }
700
+
701
+ getTexParameter = function (target, pname) {
702
+ const result = WebGLRenderingContext.GBridge.callNative(
703
+ this._canvas.id,
704
+ GLmethod.getTexParameter + ',' + target + ',' + pname
705
+ )
706
+ return result;
707
+ }
708
+
709
+ getUniformLocation = function (program, name) {
710
+ const id = WebGLRenderingContext.GBridge.callNative(
711
+ this._canvas.id,
712
+ GLmethod.getUniformLocation + ',' + program.id + ',' + name
713
+ );
714
+ if (id === -1) {
715
+ return null;
716
+ } else {
717
+ return new UniformLocation(Number(id));
718
+ }
719
+ }
720
+
721
+ getVertexAttrib = function (index, pname) {
722
+ const result = WebGLRenderingContext.GBridge.callNative(
723
+ this._canvas.id,
724
+ GLmethod.getVertexAttrib + ',' + index + ',' + pname
725
+ );
726
+ switch (pname) {
727
+ case GLenum.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING:
728
+ return this._map.get(Buffer.uuid(result)) || null;
729
+ case GLenum.CURRENT_VERTEX_ATTRIB: // Float32Array
730
+ default:
731
+ return result;
732
+ }
733
+ }
734
+
735
+ getVertexAttribOffset = function (index, pname) {
736
+ const result = WebGLRenderingContext.GBridge.callNative(
737
+ this._canvas.id,
738
+ GLmethod.getVertexAttribOffset + ',' + index + ',' + pname
739
+ )
740
+ return Number(result);
741
+ }
742
+
743
+ isBuffer = function (buffer) {
744
+ const result = WebGLRenderingContext.GBridge.callNative(
745
+ this._canvas.id,
746
+ GLmethod.isBuffer + ',' + buffer.id
747
+ )
748
+ return Boolean(result);
749
+ }
750
+
751
+ isContextLost = function () {
752
+ return false;
753
+ }
754
+
755
+ isEnabled = function (cap) {
756
+ const result = WebGLRenderingContext.GBridge.callNative(
757
+ this._canvas.id,
758
+ GLmethod.isEnabled + ',' + cap
759
+ )
760
+ return Boolean(result);
761
+ }
762
+
763
+ isFramebuffer = function (framebuffer) {
764
+ const result = WebGLRenderingContext.GBridge.callNative(
765
+ this._canvas.id,
766
+ GLmethod.isFramebuffer + ',' + framebuffer.id
767
+ )
768
+ return Boolean(result);
769
+ }
770
+
771
+ isProgram = function (program) {
772
+ const result = WebGLRenderingContext.GBridge.callNative(
773
+ this._canvas.id,
774
+ GLmethod.isProgram + ',' + program.id
775
+ )
776
+ return Boolean(result);
777
+ }
778
+
779
+ isRenderbuffer = function (renderBuffer) {
780
+ const result = WebGLRenderingContext.GBridge.callNative(
781
+ this._canvas.id,
782
+ GLmethod.isRenderbuffer + ',' + renderbuffer.id
783
+ )
784
+ return Boolean(result);
785
+ }
786
+
787
+ isShader = function (shader) {
788
+ const result = WebGLRenderingContext.GBridge.callNative(
789
+ this._canvas.id,
790
+ GLmethod.isShader + ',' + shader.id
791
+ )
792
+ return Boolean(result);
793
+ }
794
+
795
+ isTexture = function (texture) {
796
+ const result = WebGLRenderingContext.GBridge.callNative(
797
+ this._canvas.id,
798
+ GLmethod.isTexture + ',' + texture.id
799
+ );
800
+ return Boolean(result);
801
+ }
802
+
803
+ lineWidth = function (width) {
804
+ WebGLRenderingContext.GBridge.callNative(
805
+ this._canvas.id,
806
+ GLmethod.lineWidth + ',' + width,
807
+ true
808
+ )
809
+ }
810
+
811
+ linkProgram = function (program) {
812
+ WebGLRenderingContext.GBridge.callNative(
813
+ this._canvas.id,
814
+ GLmethod.linkProgram + ',' + program.id,
815
+ true
816
+ );
817
+ }
818
+
819
+
820
+ pixelStorei = function (pname, param) {
821
+ WebGLRenderingContext.GBridge.callNative(
822
+ this._canvas.id,
823
+ GLmethod.pixelStorei + ',' + pname + ',' + Number(param)
824
+ )
825
+ }
826
+
827
+ polygonOffset = function (factor, units) {
828
+ WebGLRenderingContext.GBridge.callNative(
829
+ this._canvas.id,
830
+ GLmethod.polygonOffset + ',' + factor + ',' + units
831
+ )
832
+ }
833
+
834
+ readPixels = function (x, y, width, height, format, type, pixels) {
835
+ const result = WebGLRenderingContext.GBridge.callNative(
836
+ this._canvas.id,
837
+ GLmethod.readPixels + ',' + x + ',' + y + ',' + width + ',' + height + ',' + format + ',' + type
838
+ )
839
+ return result;
840
+ }
841
+
842
+ renderbufferStorage = function (target, internalFormat, width, height) {
843
+ WebGLRenderingContext.GBridge.callNative(
844
+ this._canvas.id,
845
+ GLmethod.renderbufferStorage + ',' + target + ',' + internalFormat + ',' + width + ',' + height,
846
+ true
847
+ )
848
+ }
849
+
850
+ sampleCoverage = function (value, invert) {
851
+ WebGLRenderingContext.GBridge.callNative(
852
+ this._canvas.id,
853
+ GLmethod.sampleCoverage + ',' + value + ',' + Number(invert),
854
+ true
855
+ )
856
+ }
857
+
858
+ scissor = function (x, y, width, height) {
859
+ WebGLRenderingContext.GBridge.callNative(
860
+ this._canvas.id,
861
+ GLmethod.scissor + ',' + x + ',' + y + ',' + width + ',' + height,
862
+ true
863
+ )
864
+ }
865
+
866
+ shaderSource = function (shader, source) {
867
+ WebGLRenderingContext.GBridge.callNative(
868
+ this._canvas.id,
869
+ GLmethod.shaderSource + ',' + shader.id + ',' + source
870
+ )
871
+ }
872
+
873
+ stencilFunc = function (func, ref, mask) {
874
+ WebGLRenderingContext.GBridge.callNative(
875
+ this._canvas.id,
876
+ GLmethod.stencilFunc + ',' + func + ',' + ref + ',' + mask,
877
+ true
878
+ )
879
+ }
880
+
881
+ stencilFuncSeparate = function (face, func, ref, mask) {
882
+ WebGLRenderingContext.GBridge.callNative(
883
+ this._canvas.id,
884
+ GLmethod.stencilFuncSeparate + ',' + face + ',' + func + ',' + ref + ',' + mask,
885
+ true
886
+ )
887
+ }
888
+
889
+ stencilMask = function (mask) {
890
+ WebGLRenderingContext.GBridge.callNative(
891
+ this._canvas.id,
892
+ GLmethod.stencilMask + ',' + mask,
893
+ true
894
+ )
895
+ }
896
+
897
+ stencilMaskSeparate = function (face, mask) {
898
+ WebGLRenderingContext.GBridge.callNative(
899
+ this._canvas.id,
900
+ GLmethod.stencilMaskSeparate + ',' + face + ',' + mask,
901
+ true
902
+ )
903
+ }
904
+
905
+ stencilOp = function (fail, zfail, zpass) {
906
+ WebGLRenderingContext.GBridge.callNative(
907
+ this._canvas.id,
908
+ GLmethod.stencilOp + ',' + fail + ',' + zfail + ',' + zpass
909
+ )
910
+ }
911
+
912
+ stencilOpSeparate = function (face, fail, zfail, zpass) {
913
+ WebGLRenderingContext.GBridge.callNative(
914
+ this._canvas.id,
915
+ GLmethod.stencilOp + ',' + face + ',' + fail + ',' + zfail + ',' + zpass,
916
+ true
917
+ )
918
+ }
919
+
920
+ texImage2D = function (...args) {
921
+ WebGLRenderingContext.GBridge.texImage2D(this._canvas.id, ...args);
922
+ }
923
+
924
+
925
+ texParameterf = function (target, pname, param) {
926
+ WebGLRenderingContext.GBridge.callNative(
927
+ this._canvas.id,
928
+ GLmethod.texParameterf + ',' + target + ',' + pname + ',' + param,
929
+ true
930
+ )
931
+ }
932
+
933
+ texParameteri = function (target, pname, param) {
934
+ WebGLRenderingContext.GBridge.callNative(
935
+ this._canvas.id,
936
+ GLmethod.texParameteri + ',' + target + ',' + pname + ',' + param
937
+ )
938
+ }
939
+
940
+ texSubImage2D = function (...args) {
941
+ WebGLRenderingContext.GBridge.texSubImage2D(this._canvas.id, ...args);
942
+ }
943
+
944
+ uniform1f = function (location, v0) {
945
+ WebGLRenderingContext.GBridge.callNative(
946
+ this._canvas.id,
947
+ GLmethod.uniform1f + ',' + location.id + ',' + v0
948
+ )
949
+ }
950
+
951
+ uniform1fv = function (location, value) {
952
+ WebGLRenderingContext.GBridge.callNative(
953
+ this._canvas.id,
954
+ GLmethod.uniform1fv + ',' + location.id + ',' + processArray(value),
955
+ true
956
+ )
957
+ }
958
+
959
+ uniform1i = function (location, v0) {
960
+ WebGLRenderingContext.GBridge.callNative(
961
+ this._canvas.id,
962
+ GLmethod.uniform1i + ',' + location.id + ',' + v0,
963
+ // true
964
+ )
965
+ }
966
+
967
+ uniform1iv = function (location, value) {
968
+ WebGLRenderingContext.GBridge.callNative(
969
+ this._canvas.id,
970
+ GLmethod.uniform1iv + ',' + location.id + ',' + processArray(value),
971
+ true
972
+ )
973
+ }
974
+
975
+ uniform2f = function (location, v0, v1) {
976
+ WebGLRenderingContext.GBridge.callNative(
977
+ this._canvas.id,
978
+ GLmethod.uniform2f + ',' + location.id + ',' + v0 + ',' + v1,
979
+ true
980
+ )
981
+ }
982
+
983
+ uniform2fv = function (location, value) {
984
+ WebGLRenderingContext.GBridge.callNative(
985
+ this._canvas.id,
986
+ GLmethod.uniform2fv + ',' + location.id + ',' + processArray(value),
987
+ true
988
+ )
989
+ }
990
+
991
+ uniform2i = function (location, v0, v1) {
992
+ WebGLRenderingContext.GBridge.callNative(
993
+ this._canvas.id,
994
+ GLmethod.uniform2i + ',' + location.id + ',' + v0 + ',' + v1,
995
+ true
996
+ )
997
+ }
998
+
999
+ uniform2iv = function (location, value) {
1000
+ WebGLRenderingContext.GBridge.callNative(
1001
+ this._canvas.id,
1002
+ GLmethod.uniform2iv + ',' + location.id + ',' + processArray(value),
1003
+ true
1004
+ )
1005
+ }
1006
+
1007
+ uniform3f = function (location, v0, v1, v2) {
1008
+ WebGLRenderingContext.GBridge.callNative(
1009
+ this._canvas.id,
1010
+ GLmethod.uniform3f + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2,
1011
+ true
1012
+ )
1013
+ }
1014
+
1015
+ uniform3fv = function (location, value) {
1016
+ WebGLRenderingContext.GBridge.callNative(
1017
+ this._canvas.id,
1018
+ GLmethod.uniform3fv + ',' + location.id + ',' + processArray(value),
1019
+ true
1020
+ )
1021
+ }
1022
+
1023
+ uniform3i = function (location, v0, v1, v2) {
1024
+ WebGLRenderingContext.GBridge.callNative(
1025
+ this._canvas.id,
1026
+ GLmethod.uniform3i + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2,
1027
+ true
1028
+ )
1029
+ }
1030
+
1031
+ uniform3iv = function (location, value) {
1032
+ WebGLRenderingContext.GBridge.callNative(
1033
+ this._canvas.id,
1034
+ GLmethod.uniform3iv + ',' + location.id + ',' + processArray(value),
1035
+ true
1036
+ )
1037
+ }
1038
+
1039
+ uniform4f = function (location, v0, v1, v2, v3) {
1040
+ WebGLRenderingContext.GBridge.callNative(
1041
+ this._canvas.id,
1042
+ GLmethod.uniform4f + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2 + ',' + v3,
1043
+ true
1044
+ )
1045
+ }
1046
+
1047
+ uniform4fv = function (location, value) {
1048
+ WebGLRenderingContext.GBridge.callNative(
1049
+ this._canvas.id,
1050
+ GLmethod.uniform4fv + ',' + location.id + ',' + processArray(value),
1051
+ true
1052
+ )
1053
+ }
1054
+
1055
+ uniform4i = function (location, v0, v1, v2, v3) {
1056
+ WebGLRenderingContext.GBridge.callNative(
1057
+ this._canvas.id,
1058
+ GLmethod.uniform4i + ',' + location.id + ',' + v0 + ',' + v1 + ',' + v2 + ',' + v3,
1059
+ true
1060
+ )
1061
+ }
1062
+
1063
+ uniform4iv = function (location, value) {
1064
+ WebGLRenderingContext.GBridge.callNative(
1065
+ this._canvas.id,
1066
+ GLmethod.uniform4iv + ',' + location.id + ',' + processArray(value, true),
1067
+ true
1068
+ )
1069
+ }
1070
+
1071
+ uniformMatrix2fv = function (location, transpose, value) {
1072
+ WebGLRenderingContext.GBridge.callNative(
1073
+ this._canvas.id,
1074
+ GLmethod.uniformMatrix2fv + ',' + location.id + ',' + Number(transpose) + ',' + processArray(value),
1075
+ true
1076
+ )
1077
+ }
1078
+
1079
+ uniformMatrix3fv = function (location, transpose, value) {
1080
+ WebGLRenderingContext.GBridge.callNative(
1081
+ this._canvas.id,
1082
+ GLmethod.uniformMatrix3fv + ',' + location.id + ',' + Number(transpose) + ',' + processArray(value),
1083
+ true
1084
+ )
1085
+ }
1086
+
1087
+ uniformMatrix4fv = function (location, transpose, value) {
1088
+ WebGLRenderingContext.GBridge.callNative(
1089
+ this._canvas.id,
1090
+ GLmethod.uniformMatrix4fv + ',' + location.id + ',' + Number(transpose) + ',' + processArray(value),
1091
+ true
1092
+ );
1093
+ }
1094
+
1095
+ useProgram = function (progarm) {
1096
+ WebGLRenderingContext.GBridge.callNative(
1097
+ this._canvas.id,
1098
+ GLmethod.useProgram + ',' + progarm.id + '',
1099
+ true
1100
+ )
1101
+ }
1102
+
1103
+
1104
+ validateProgram = function (program) {
1105
+ WebGLRenderingContext.GBridge.callNative(
1106
+ this._canvas.id,
1107
+ GLmethod.validateProgram + ',' + program.id,
1108
+ true
1109
+ )
1110
+ }
1111
+
1112
+ vertexAttrib1f = function (index, v0) {
1113
+ WebGLRenderingContext.GBridge.callNative(
1114
+ this._canvas.id,
1115
+ GLmethod.vertexAttrib1f + ',' + index + ',' + v0,
1116
+ true
1117
+ )
1118
+ }
1119
+
1120
+ vertexAttrib2f = function (index, v0, v1) {
1121
+ WebGLRenderingContext.GBridge.callNative(
1122
+ this._canvas.id,
1123
+ GLmethod.vertexAttrib2f + ',' + index + ',' + v0 + ',' + v1,
1124
+ true
1125
+ )
1126
+ }
1127
+
1128
+ vertexAttrib3f = function (index, v0, v1, v2) {
1129
+ WebGLRenderingContext.GBridge.callNative(
1130
+ this._canvas.id,
1131
+ GLmethod.vertexAttrib3f + ',' + index + ',' + v0 + ',' + v1 + ',' + v2,
1132
+ true
1133
+ )
1134
+ }
1135
+
1136
+ vertexAttrib4f = function (index, v0, v1, v2, v3) {
1137
+ WebGLRenderingContext.GBridge.callNative(
1138
+ this._canvas.id,
1139
+ GLmethod.vertexAttrib4f + ',' + index + ',' + v0 + ',' + v1 + ',' + v2 + ',' + v3,
1140
+ true
1141
+ )
1142
+ }
1143
+
1144
+ vertexAttrib1fv = function (index, value) {
1145
+ WebGLRenderingContext.GBridge.callNative(
1146
+ this._canvas.id,
1147
+ GLmethod.vertexAttrib1fv + ',' + index + ',' + processArray(value),
1148
+ true
1149
+ )
1150
+ }
1151
+
1152
+ vertexAttrib2fv = function (index, value) {
1153
+ WebGLRenderingContext.GBridge.callNative(
1154
+ this._canvas.id,
1155
+ GLmethod.vertexAttrib2fv + ',' + index + ',' + processArray(value),
1156
+ true
1157
+ )
1158
+ }
1159
+
1160
+ vertexAttrib3fv = function (index, value) {
1161
+ WebGLRenderingContext.GBridge.callNative(
1162
+ this._canvas.id,
1163
+ GLmethod.vertexAttrib3fv + ',' + index + ',' + processArray(value),
1164
+ true
1165
+ )
1166
+ }
1167
+
1168
+ vertexAttrib4fv = function (index, value) {
1169
+ WebGLRenderingContext.GBridge.callNative(
1170
+ this._canvas.id,
1171
+ GLmethod.vertexAttrib4fv + ',' + index + ',' + processArray(value),
1172
+ true
1173
+ )
1174
+ }
1175
+
1176
+ vertexAttribPointer = function (index, size, type, normalized, stride, offset) {
1177
+ WebGLRenderingContext.GBridge.callNative(
1178
+ this._canvas.id,
1179
+ GLmethod.vertexAttribPointer + ',' + index + ',' + size + ',' + type + ',' + Number(normalized) + ',' + stride + ',' + offset,
1180
+ true
1181
+ )
1182
+ }
1183
+
1184
+ viewport = function (x, y, width, height) {
1185
+ WebGLRenderingContext.GBridge.callNative(
1186
+ this._canvas.id,
1187
+ GLmethod.viewport + ',' + x + ',' + y + ',' + width + ',' + height,
1188
+ true
1189
+ )
1190
+ }
1191
+ }