pixuireactcomponents 1.2.0 → 1.2.1

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 (399) hide show
  1. package/README.md +5 -6
  2. package/package.json +9 -66
  3. package/tsconfig.json +27 -13
  4. package/.eslintignore +0 -7
  5. package/.eslintrc.js +0 -48
  6. package/.pixiderc/apps.json +0 -12
  7. package/.pixiderc/devel-config.meta.json +0 -23
  8. package/.pixiderc/postinstall.js +0 -17
  9. package/.pixiderc/util.js +0 -136
  10. package/.pixiderc/webpack.js +0 -180
  11. package/faas/helloworld.js +0 -8
  12. package/gen/pbo/pandora_pb.d.ts +0 -1179
  13. package/gen/pbo/pandora_pb.js +0 -10475
  14. package/gen/pbo/pandora_pb_service.d.ts +0 -1317
  15. package/gen/pbo/pandora_pb_service.js +0 -2307
  16. package/gen/pbo/test_pb.d.ts +0 -99
  17. package/gen/pbo/test_pb.js +0 -889
  18. package/gen/pbo/test_pb_service.d.ts +0 -82
  19. package/gen/pbo/test_pb_service.js +0 -117
  20. package/lib/assets/border.png +0 -0
  21. package/lib/assets/check.html +0 -54
  22. package/lib/assets/pixui.png +0 -0
  23. package/lib/assets/preact.png +0 -0
  24. package/lib/check/main.less +0 -63
  25. package/lib/check/main.tsx +0 -42
  26. package/lib/check/tool.js +0 -3
  27. package/lib/check/util.tsx +0 -107
  28. package/lib/dom.ts +0 -16
  29. package/lib/ext.d.ts +0 -95
  30. package/lib/grpc-web/dist/ChunkParser.js +0 -115
  31. package/lib/grpc-web/dist/ChunkParser.js.map +0 -1
  32. package/lib/grpc-web/dist/Code.js +0 -58
  33. package/lib/grpc-web/dist/Code.js.map +0 -1
  34. package/lib/grpc-web/dist/client.js +0 -299
  35. package/lib/grpc-web/dist/client.js.map +0 -1
  36. package/lib/grpc-web/dist/debug.js +0 -16
  37. package/lib/grpc-web/dist/debug.js.map +0 -1
  38. package/lib/grpc-web/dist/detach.js +0 -7
  39. package/lib/grpc-web/dist/detach.js.map +0 -1
  40. package/lib/grpc-web/dist/index.js +0 -29
  41. package/lib/grpc-web/dist/index.js.map +0 -1
  42. package/lib/grpc-web/dist/invoke.js +0 -32
  43. package/lib/grpc-web/dist/invoke.js.map +0 -1
  44. package/lib/grpc-web/dist/message.js +0 -3
  45. package/lib/grpc-web/dist/message.js.map +0 -1
  46. package/lib/grpc-web/dist/metadata.js +0 -5
  47. package/lib/grpc-web/dist/metadata.js.map +0 -1
  48. package/lib/grpc-web/dist/service.js +0 -3
  49. package/lib/grpc-web/dist/service.js.map +0 -1
  50. package/lib/grpc-web/dist/transports/Transport.js +0 -13
  51. package/lib/grpc-web/dist/transports/Transport.js.map +0 -1
  52. package/lib/grpc-web/dist/transports/http/fetch.js +0 -112
  53. package/lib/grpc-web/dist/transports/http/fetch.js.map +0 -1
  54. package/lib/grpc-web/dist/transports/http/http.js +0 -15
  55. package/lib/grpc-web/dist/transports/http/http.js.map +0 -1
  56. package/lib/grpc-web/dist/transports/http/xhr.js +0 -127
  57. package/lib/grpc-web/dist/transports/http/xhr.js.map +0 -1
  58. package/lib/grpc-web/dist/transports/http/xhrUtil.js +0 -37
  59. package/lib/grpc-web/dist/transports/http/xhrUtil.js.map +0 -1
  60. package/lib/grpc-web/dist/transports/websocket/websocket.js +0 -95
  61. package/lib/grpc-web/dist/transports/websocket/websocket.js.map +0 -1
  62. package/lib/grpc-web/dist/typings/ChunkParser.d.ts +0 -17
  63. package/lib/grpc-web/dist/typings/Code.d.ts +0 -20
  64. package/lib/grpc-web/dist/typings/client.d.ts +0 -22
  65. package/lib/grpc-web/dist/typings/debug.d.ts +0 -1
  66. package/lib/grpc-web/dist/typings/detach.d.ts +0 -1
  67. package/lib/grpc-web/dist/typings/index.d.ts +0 -60
  68. package/lib/grpc-web/dist/typings/invoke.d.ts +0 -17
  69. package/lib/grpc-web/dist/typings/message.d.ts +0 -8
  70. package/lib/grpc-web/dist/typings/metadata.d.ts +0 -2
  71. package/lib/grpc-web/dist/typings/service.d.ts +0 -16
  72. package/lib/grpc-web/dist/typings/transports/Transport.d.ts +0 -22
  73. package/lib/grpc-web/dist/typings/transports/http/fetch.d.ts +0 -6
  74. package/lib/grpc-web/dist/typings/transports/http/http.d.ts +0 -5
  75. package/lib/grpc-web/dist/typings/transports/http/xhr.d.ts +0 -27
  76. package/lib/grpc-web/dist/typings/transports/http/xhrUtil.d.ts +0 -3
  77. package/lib/grpc-web/dist/typings/transports/websocket/websocket.d.ts +0 -2
  78. package/lib/grpc-web/dist/typings/unary.d.ts +0 -20
  79. package/lib/grpc-web/dist/typings/util.d.ts +0 -2
  80. package/lib/grpc-web/dist/unary.js +0 -44
  81. package/lib/grpc-web/dist/unary.js.map +0 -1
  82. package/lib/grpc-web/dist/util.js +0 -11
  83. package/lib/grpc-web/dist/util.js.map +0 -1
  84. package/lib/grpcTransport/PixHttp2Transport.ts +0 -104
  85. package/lib/grpcTransport/PixLuaTransport.ts +0 -80
  86. package/lib/pi_component/tinyList/tinyList.js +0 -573
  87. package/lib/pi_component/tinyList/tinyList.tsx +0 -586
  88. package/lib/preact/compat/src/Children.js +0 -26
  89. package/lib/preact/compat/src/PureComponent.js +0 -19
  90. package/lib/preact/compat/src/events.js +0 -36
  91. package/lib/preact/compat/src/forwardRef.js +0 -29
  92. package/lib/preact/compat/src/index.d.ts +0 -121
  93. package/lib/preact/compat/src/index.js +0 -159
  94. package/lib/preact/compat/src/internal.d.ts +0 -45
  95. package/lib/preact/compat/src/memo.js +0 -34
  96. package/lib/preact/compat/src/portals.js +0 -85
  97. package/lib/preact/compat/src/render.js +0 -166
  98. package/lib/preact/compat/src/suspense-list.d.ts +0 -14
  99. package/lib/preact/compat/src/suspense-list.js +0 -127
  100. package/lib/preact/compat/src/suspense.d.ts +0 -15
  101. package/lib/preact/compat/src/suspense.js +0 -165
  102. package/lib/preact/compat/src/util.js +0 -23
  103. package/lib/preact/hooks/src/index.d.ts +0 -133
  104. package/lib/preact/hooks/src/index.js +0 -339
  105. package/lib/preact/hooks/src/internal.d.ts +0 -55
  106. package/lib/preact/src/clone-element.js +0 -27
  107. package/lib/preact/src/compat.ts +0 -0
  108. package/lib/preact/src/component.js +0 -219
  109. package/lib/preact/src/constants.js +0 -3
  110. package/lib/preact/src/create-context.js +0 -55
  111. package/lib/preact/src/create-element.js +0 -102
  112. package/lib/preact/src/css.d.ts +0 -30341
  113. package/lib/preact/src/diff/catch-error.js +0 -41
  114. package/lib/preact/src/diff/children.js +0 -259
  115. package/lib/preact/src/diff/index.js +0 -445
  116. package/lib/preact/src/diff/props.js +0 -163
  117. package/lib/preact/src/index.d.ts +0 -275
  118. package/lib/preact/src/index.js +0 -14
  119. package/lib/preact/src/internal.d.ts +0 -94
  120. package/lib/preact/src/jsx.d.ts +0 -884
  121. package/lib/preact/src/options.js +0 -16
  122. package/lib/preact/src/render.js +0 -98
  123. package/lib/preact/src/util.js +0 -25
  124. package/lib/preact-router/.travis.yml +0 -3
  125. package/lib/preact-router/LICENSE +0 -21
  126. package/lib/preact-router/README.md +0 -254
  127. package/lib/preact-router/index.d.ts +0 -71
  128. package/lib/preact-router/match/index.d.ts +0 -16
  129. package/lib/preact-router/match/package.json +0 -13
  130. package/lib/preact-router/match/src/cjs.js +0 -4
  131. package/lib/preact-router/match/src/index.js +0 -36
  132. package/lib/preact-router/package-lock.json +0 -12330
  133. package/lib/preact-router/package.json +0 -78
  134. package/lib/preact-router/src/cjs.js +0 -11
  135. package/lib/preact-router/src/index.js +0 -270
  136. package/lib/preact-router/src/util.js +0 -87
  137. package/lib/react-window/src/FixedSizeGrid.js +0 -244
  138. package/lib/react-window/src/FixedSizeList.js +0 -130
  139. package/lib/react-window/src/VariableSizeGrid.js +0 -507
  140. package/lib/react-window/src/VariableSizeList.js +0 -316
  141. package/lib/react-window/src/__tests__/FixedSizeGrid.js +0 -1336
  142. package/lib/react-window/src/__tests__/FixedSizeList.js +0 -966
  143. package/lib/react-window/src/__tests__/VariableSizeGrid.js +0 -779
  144. package/lib/react-window/src/__tests__/VariableSizeList.js +0 -442
  145. package/lib/react-window/src/__tests__/__snapshots__/FixedSizeGrid.js.snap +0 -912
  146. package/lib/react-window/src/__tests__/__snapshots__/FixedSizeList.js.snap +0 -568
  147. package/lib/react-window/src/__tests__/__snapshots__/VariableSizeGrid.js.snap +0 -542
  148. package/lib/react-window/src/__tests__/__snapshots__/VariableSizeList.js.snap +0 -331
  149. package/lib/react-window/src/__tests__/areEqual.js +0 -32
  150. package/lib/react-window/src/__tests__/shouldComponentUpdate.js +0 -36
  151. package/lib/react-window/src/areEqual.js +0 -18
  152. package/lib/react-window/src/createGridComponent.js +0 -919
  153. package/lib/react-window/src/createListComponent.js +0 -729
  154. package/lib/react-window/src/domHelpers.js +0 -72
  155. package/lib/react-window/src/index.js +0 -9
  156. package/lib/react-window/src/shallowDiffers.js +0 -17
  157. package/lib/react-window/src/shouldComponentUpdate.js +0 -16
  158. package/lib/react-window/src/test.js.flow +0 -382
  159. package/lib/react-window/src/timer.js +0 -36
  160. package/src/app/demopage.tsx +0 -77
  161. package/src/app/index.html +0 -48
  162. package/src/app/main.tsx +0 -30
  163. package/src/asset/Textures/Alert/bg_tips.png +0 -0
  164. package/src/asset/Textures/Alert/btn_zhedie_a.png +0 -0
  165. package/src/asset/Textures/Alert/com_home_bg_left.png +0 -0
  166. package/src/asset/Textures/Alert/com_home_bg_rightbar.png +0 -0
  167. package/src/asset/Textures/Commons/com_home_bg_a.png +0 -0
  168. package/src/asset/Textures/Commons/com_home_bg_back_top.png +0 -0
  169. package/src/asset/Textures/Commons/com_home_bg_bottombar_sheet.png +0 -0
  170. package/src/asset/Textures/Commons/com_home_bg_list_xiala.png +0 -0
  171. package/src/asset/Textures/Commons/com_home_bg_rightbar_line.png +0 -0
  172. package/src/asset/Textures/Commons/com_home_bg_rightbar_selected.png +0 -0
  173. package/src/asset/Textures/Commons/com_home_bg_touxiang_140.png +0 -0
  174. package/src/asset/Textures/Commons/com_home_bg_touxiang_60.png +0 -0
  175. package/src/asset/Textures/Commons/com_home_bg_touxiang_80.png +0 -0
  176. package/src/asset/Textures/Commons/com_home_btn_back.png +0 -0
  177. package/src/asset/Textures/Commons/com_home_btn_bottombar.png +0 -0
  178. package/src/asset/Textures/Commons/com_home_btn_bottombar_fadongtai.png +0 -0
  179. package/src/asset/Textures/Commons/com_home_btn_close.png +0 -0
  180. package/src/asset/Textures/Commons/com_home_btn_guanzhu_126.png +0 -0
  181. package/src/asset/Textures/Commons/com_home_btn_guanzhu_86.png +0 -0
  182. package/src/asset/Textures/Commons/com_home_btn_left_bianji.png +0 -0
  183. package/src/asset/Textures/Commons/com_home_btn_left_dongtai.png +0 -0
  184. package/src/asset/Textures/Commons/com_home_btn_left_touxiang.png +0 -0
  185. package/src/asset/Textures/Commons/com_home_btn_selet.png +0 -0
  186. package/src/asset/Textures/Commons/com_home_btn_yiguanzhu_126.png +0 -0
  187. package/src/asset/Textures/Commons/com_home_btn_yiguanzhu_86.png +0 -0
  188. package/src/asset/Textures/Commons/com_home_icon_bottombar_fadongtai.png +0 -0
  189. package/src/asset/Textures/Commons/com_home_icon_bottombar_red.png +0 -0
  190. package/src/asset/Textures/Commons/com_home_icon_loading.png +0 -0
  191. package/src/asset/Textures/Commons/com_home_pic_touxiang_moren.png +0 -0
  192. package/src/asset/Textures/Commons/com_home_tab_left_a.png +0 -0
  193. package/src/asset/Textures/Commons/com_home_tab_left_b.png +0 -0
  194. package/src/asset/Textures/Commons/com_home_tab_left_c.png +0 -0
  195. package/src/asset/Textures/Commons/feedItems/gc1_huati_icon_middle_v.png +0 -0
  196. package/src/asset/Textures/Commons/feedItems/gc1_huati_icon_middle_yonghurenzheng.png +0 -0
  197. package/src/asset/Textures/Commons/feedItems/pinglun_bg.png +0 -0
  198. package/src/asset/Textures/Commons/feedItems/pinglun_bg_line.png +0 -0
  199. package/src/asset/Textures/Commons/feedItems/pinglun_bg_middle_chakan.png +0 -0
  200. package/src/asset/Textures/Commons/feedItems/pinglun_bg_middle_input.png +0 -0
  201. package/src/asset/Textures/Commons/feedItems/pinglun_bg_zan.png +0 -0
  202. package/src/asset/Textures/Commons/feedItems/pinglun_btn_middle_input.png +0 -0
  203. package/src/asset/Textures/Commons/feedItems/pinglun_btn_more.png +0 -0
  204. package/src/asset/Textures/Commons/feedItems/pinglun_btn_normal.png +0 -0
  205. package/src/asset/Textures/Commons/feedItems/pinglun_btn_photo_more.png +0 -0
  206. package/src/asset/Textures/Commons/feedItems/pinglun_btn_zhedie_a.png +0 -0
  207. package/src/asset/Textures/Commons/feedItems/pinglun_btn_zhedie_a_shadow.png +0 -0
  208. package/src/asset/Textures/Commons/feedItems/pinglun_btn_zhedie_b_normal.png +0 -0
  209. package/src/asset/Textures/Commons/feedItems/pinglun_btn_zhedie_b_pressed.png +0 -0
  210. package/src/asset/Textures/Commons/feedItems/pinglun_icon_a_normal.png +0 -0
  211. package/src/asset/Textures/Commons/feedItems/pinglun_icon_a_pressed.png +0 -0
  212. package/src/asset/Textures/Commons/feedItems/pinglun_icon_b_normal.png +0 -0
  213. package/src/asset/Textures/Commons/feedItems/pinglun_icon_c_normal.png +0 -0
  214. package/src/asset/Textures/Commons/feedItems/pinglun_icon_d.png +0 -0
  215. package/src/asset/Textures/Commons/feedItems/pinglun_icon_e.png +0 -0
  216. package/src/asset/Textures/Commons/feedItems/pinglun_icon_f_share.png +0 -0
  217. package/src/asset/Textures/Commons/feedItems/pinglun_icon_middle_input_back.png +0 -0
  218. package/src/asset/Textures/Commons/gc1_huati_bg_middle_topbtn.png +0 -0
  219. package/src/asset/Textures/Commons/gc1_huati_bg_middle_topbtn_pressd.png +0 -0
  220. package/src/asset/Textures/Commons/karaoke/rukou_bg_music.png +0 -0
  221. package/src/asset/Textures/Commons/karaoke/rukou_btn_a.png +0 -0
  222. package/src/asset/Textures/Commons/karaoke/rukou_btn_b.png +0 -0
  223. package/src/asset/Textures/Commons/karaoke/rukou_icon_b.png +0 -0
  224. package/src/asset/Textures/Commons/karaoke/rukou_icon_d.png +0 -0
  225. package/src/asset/Textures/Commons/karaoke/rukou_icon_e.png +0 -0
  226. package/src/asset/Textures/Commons/rukou_bg_bottombar_line.png +0 -0
  227. package/src/asset/Textures/Commons/rukou_icon_a.png +0 -0
  228. package/src/asset/Textures/Commons/tc_bianji_tab_a.png +0 -0
  229. package/src/asset/Textures/Commons/tc_zanshang_bg_line.png +0 -0
  230. package/src/asset/Textures/Commons/touxiang_bg_tishikuang.png +0 -0
  231. package/src/asset/Textures/Commons/video/rukou_icon_shipin.png +0 -0
  232. package/src/asset/Textures/Commons/video/xiangce_btn_bofang.png +0 -0
  233. package/src/asset/Textures/Commons/voice/rukou_icon_yuyin.png +0 -0
  234. package/src/asset/Textures/Commons/voice/tc_yuyin_bg.png +0 -0
  235. package/src/asset/Textures/Commons/voice/tc_yuyin_bg_load.png +0 -0
  236. package/src/asset/Textures/Commons/voice/tc_yuyin_bg_xinhao_a.png +0 -0
  237. package/src/asset/Textures/Commons/voice/tc_yuyin_bg_xinhao_b.png +0 -0
  238. package/src/asset/Textures/Commons/xiangce_icon_bottombar_gulita.png +0 -0
  239. package/src/asset/Textures/SocialSecond/com_tc_bg.png +0 -0
  240. package/src/asset/Textures/SocialSecond/com_tc_bg_bottom.png +0 -0
  241. package/src/asset/Textures/SocialSecond/com_tc_bg_input.png +0 -0
  242. package/src/asset/Textures/SocialSecond/com_tc_bg_tips.png +0 -0
  243. package/src/asset/Textures/SocialSecond/com_tc_bg_topbar_a.png +0 -0
  244. package/src/asset/Textures/SocialSecond/com_tc_bg_topbar_line.png +0 -0
  245. package/src/asset/Textures/SocialSecond/com_tc_bg_upload_photo.png +0 -0
  246. package/src/asset/Textures/SocialSecond/com_tc_bg_upload_photo_line.png +0 -0
  247. package/src/asset/Textures/SocialSecond/com_tc_bg_zhaopian_line.png +0 -0
  248. package/src/asset/Textures/SocialSecond/com_tc_btn.png +0 -0
  249. package/src/asset/Textures/SocialSecond/com_tc_btn_close.png +0 -0
  250. package/src/asset/Textures/SocialSecond/com_tc_btn_upload_photo.png +0 -0
  251. package/src/asset/Textures/SocialSecond/com_tc_radio_normal.png +0 -0
  252. package/src/asset/Textures/SocialSecond/com_tc_radio_normal_@slice_0.png +0 -0
  253. package/src/asset/Textures/SocialSecond/com_tc_radio_selected.png +0 -0
  254. package/src/asset/Textures/SocialSecond/com_tc_tab_a.png +0 -0
  255. package/src/asset/Textures/SocialSecond/gc1_huati_bg_middle_topbar.png +0 -0
  256. package/src/asset/Textures/SocialSecond/gc1_huati_bg_middle_topbar_pre.png +0 -0
  257. package/src/asset/Textures/SocialSecond/newmessage_bg_left_line.png +0 -0
  258. package/src/asset/Textures/SocialSecond/newmessage_bg_left_normal.png +0 -0
  259. package/src/asset/Textures/SocialSecond/newmessage_bg_left_selected.png +0 -0
  260. package/src/asset/Textures/SocialSecond/newmessage_bg_middle_new.png +0 -0
  261. package/src/asset/Textures/SocialSecond/paihang_bg_list.png +0 -0
  262. package/src/asset/Textures/SocialSecond/paihang_bg_list_line.png +0 -0
  263. package/src/asset/Textures/SocialSecond/paihang_bg_list_my.png +0 -0
  264. package/src/asset/Textures/SocialSecond/paihang_bg_list_top.png +0 -0
  265. package/src/asset/Textures/SocialSecond/paihang_bg_topbar_a.png +0 -0
  266. package/src/asset/Textures/SocialSecond/paihang_icon_topbar_selected.png +0 -0
  267. package/src/asset/Textures/SocialSecond/paihang_pic_1.png +0 -0
  268. package/src/asset/Textures/SocialSecond/paihang_pic_2.png +0 -0
  269. package/src/asset/Textures/SocialSecond/tc_fadongtai_btn_close.png +0 -0
  270. package/src/asset/Textures/SocialSecond/tc_guanzhu_bg_topbar.png +0 -0
  271. package/src/asset/Textures/SocialSecond/tc_guanzhu_bg_topbar_selected.png +0 -0
  272. package/src/asset/Textures/SocialSecond/tc_liwu_bg.png +0 -0
  273. package/src/asset/Textures/SocialSecond/tc_liwu_bg_daoju.png +0 -0
  274. package/src/asset/Textures/SocialSecond/tc_liwu_btn_a.png +0 -0
  275. package/src/asset/Textures/SocialSecond/tc_liwu_btn_b.png +0 -0
  276. package/src/asset/Textures/SocialSecond/tc_liwu_btn_c.png +0 -0
  277. package/src/asset/Textures/SocialSecond/tc_liwu_pic_daoju1.png +0 -0
  278. package/src/asset/Textures/SocialSecond/tc_liwu_pic_daoju2.png +0 -0
  279. package/src/asset/Textures/SocialSecond/tc_liwu_pic_daoju3.png +0 -0
  280. package/src/asset/Textures/SocialSecond/tc_pinglun_bg.png +0 -0
  281. package/src/asset/Textures/SocialSecond/tc_shipin_tianjiashipin.png +0 -0
  282. package/src/asset/Textures/SocialSecond/tc_yuyin_bg.png +0 -0
  283. package/src/asset/Textures/SocialSecond/tc_yuyin_bg_delete.png +0 -0
  284. package/src/asset/Textures/SocialSecond/tc_yuyin_bg_xinhao_a.png +0 -0
  285. package/src/asset/Textures/SocialSecond/tc_yuyin_bg_xinhao_b.png +0 -0
  286. package/src/asset/Textures/SocialSecond/tc_yuyin_star.png +0 -0
  287. package/src/asset/Textures/SocialSecond/tc_yuyin_stop.png +0 -0
  288. package/src/asset/Textures/SocialSecond/tc_zanshang_bg_line.png +0 -0
  289. package/src/asset/Textures/SocialSecond/touxiang_bg_tishikuang.png +0 -0
  290. package/src/asset/Textures/SocialSecond/xiangce_huadong.png +0 -0
  291. package/src/asset/Textures/SocialSecond/xiangce_huadong_xuanzhong.png +0 -0
  292. package/src/asset/Textures/SocialSecond/xiangce_icon_xiazai.png +0 -0
  293. package/src/asset/Textures/SocialVideo/com_home_btn_close.png +0 -0
  294. package/src/asset/Textures/SocialVideo/tc_shipin_bg_guodu.png +0 -0
  295. package/src/asset/Textures/SocialVideo/tc_shipin_jinduanjian.png +0 -0
  296. package/src/asset/Textures/SocialVideo/tc_shipin_jindutiao.png +0 -0
  297. package/src/asset/Textures/SocialVideo/tc_shipin_jindutiao_hui.png +0 -0
  298. package/src/asset/Textures/SocialVideo/tc_shipin_play.png +0 -0
  299. package/src/asset/Textures/SocialVideo/tc_shipin_play_big.png +0 -0
  300. package/src/asset/Textures/SocialVideo/tc_shipin_stop.png +0 -0
  301. package/src/asset/laugh.gif +0 -0
  302. package/src/asset/npms.png +0 -0
  303. package/src/asset/pixui.png +0 -0
  304. package/src/asset/preact.png +0 -0
  305. package/src/asset/template.html +0 -47
  306. package/src/common/frame/appsettings.js +0 -111
  307. package/src/common/frame/common.js +0 -17
  308. package/src/common/frame/platform-api-callback.js +0 -341
  309. package/src/common/frame/platform-api.d.ts +0 -156
  310. package/src/common/frame/platform-api.js +0 -479
  311. package/src/common/main.less +0 -119
  312. package/src/pixUIReactComponents/README.md +0 -8
  313. package/src/pixUIReactComponents/package.json +0 -11
  314. package/src/pixUIReactComponents/tsconfig.json +0 -45
  315. package/src/pixUIReactUtils/GenerateConstructorAndGeterSeter.js +0 -227
  316. package/src/pixUIReactUtils/MakeImage.js +0 -207
  317. package/src/pixUIReactUtils/README.md +0 -124
  318. package/src/pixUIReactUtils/Version.js +0 -3
  319. package/src/pixUIReactUtils/img/makeImage.png +0 -0
  320. package/src/pixUIReactUtils/index.js +0 -1
  321. package/src/pixUIReactUtils/package.json +0 -16
  322. package/src/preprocess/index.html +0 -48
  323. package/src/preprocess/main.tsx +0 -17
  324. package/src/preprocess/preprocesspage.tsx +0 -41
  325. /package/{src/pixUIReactComponents/cmdAfterTsBuild.js → cmdAfterTsBuild.js} +0 -0
  326. /package/{src/pixUIReactComponents/index.js → index.js} +0 -0
  327. /package/{src/pixUIReactComponents/tools → tools}/EventDispatcherJs.tsx +0 -0
  328. /package/{src/pixUIReactComponents/tools → tools}/Logger.tsx +0 -0
  329. /package/{src/pixUIReactComponents/tools → tools}/img/logger.png +0 -0
  330. /package/{src/pixUIReactComponents/tools → tools}/tools.md +0 -0
  331. /package/{src/pixUIReactComponents/ui → ui}/components/bulletscreen/BulletItemAnimation.tsx +0 -0
  332. /package/{src/pixUIReactComponents/ui → ui}/components/bulletscreen/BulletScreenAnimation.tsx +0 -0
  333. /package/{src/pixUIReactComponents/ui → ui}/components/bulletscreen/bullet.less +0 -0
  334. /package/{src/pixUIReactComponents/ui → ui}/components/button/Button.tsx +0 -0
  335. /package/{src/pixUIReactComponents/ui → ui}/components/carousel/Carousel.tsx +0 -0
  336. /package/{src/pixUIReactComponents/ui → ui}/components/checkBox/CheckBox.tsx +0 -0
  337. /package/{src/pixUIReactComponents/ui → ui}/components/dropdown/Dropdown.tsx +0 -0
  338. /package/{src/pixUIReactComponents/ui → ui}/components/dropdown/DropdownOptionUI.tsx +0 -0
  339. /package/{src/pixUIReactComponents/ui → ui}/components/dropdown/DropdownSpreadMainUI.tsx +0 -0
  340. /package/{src/pixUIReactComponents/ui → ui}/components/dropdown/DropdownUnspreadMainUI.tsx +0 -0
  341. /package/{src/pixUIReactComponents/ui → ui}/components/gradient/GradientText.tsx +0 -0
  342. /package/{src/pixUIReactComponents/ui → ui}/components/outlinetext/OutlineText.tsx +0 -0
  343. /package/{src/pixUIReactComponents/ui → ui}/components/progress/Progress.tsx +0 -0
  344. /package/{src/pixUIReactComponents/ui → ui}/components/slapface/Slapface.tsx +0 -0
  345. /package/{src/pixUIReactComponents/ui → ui}/components/slapface/less/Slapface.less +0 -0
  346. /package/{src/pixUIReactComponents/ui → ui}/components/slider/Slider.tsx +0 -0
  347. /package/{src/pixUIReactComponents/ui → ui}/components/tab/Tab.tsx +0 -0
  348. /package/{src/pixUIReactComponents/ui → ui}/components/tab/Tabs.tsx +0 -0
  349. /package/{src/pixUIReactComponents/ui → ui}/components/togglegroup/ToggleGroup.tsx +0 -0
  350. /package/{src/pixUIReactComponents/ui → ui}/components/videoplayer/VideoPlayer.tsx +0 -0
  351. /package/{src/pixUIReactComponents/ui → ui}/components/waterfallcomponent/WaterfallComponent.jsx +0 -0
  352. /package/{src/pixUIReactComponents/ui → ui}/components/waterfallcomponent/less/WaterfallComponent.less +0 -0
  353. /package/{src/pixUIReactComponents/ui → ui}/sample/Images.tsx +0 -0
  354. /package/{src/pixUIReactComponents/ui → ui}/sample/OutlineText/OutlineDemo.tsx +0 -0
  355. /package/{src/pixUIReactComponents/ui → ui}/sample/Slapface/SlapfaceDemo.tsx +0 -0
  356. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/btn_close.png +0 -0
  357. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/changtai_button.jpg +0 -0
  358. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/checkbox0.png +0 -0
  359. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/checkbox1.png +0 -0
  360. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/data_arrow_down.png +0 -0
  361. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/data_arrow_up.png +0 -0
  362. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/dot.png +0 -0
  363. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/inner.png +0 -0
  364. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/item_reddot.png +0 -0
  365. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/loading.png +0 -0
  366. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/money_dropdown.png +0 -0
  367. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/money_dropdownall.png +0 -0
  368. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/outer.png +0 -0
  369. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic1.png +0 -0
  370. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic2.png +0 -0
  371. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic3.png +0 -0
  372. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic4.png +0 -0
  373. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic5.png +0 -0
  374. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/slapface_samplepic6.png +0 -0
  375. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/tab_choosed.png +0 -0
  376. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/tabs_bg.png +0 -0
  377. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/video_pause.png +0 -0
  378. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/video_play.png +0 -0
  379. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/video_reload.png +0 -0
  380. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/xuanfu_button.jpg +0 -0
  381. /package/{src/pixUIReactComponents/ui → ui}/sample/asset/yaxia_button.jpg +0 -0
  382. /package/{src/pixUIReactComponents/ui → ui}/sample/bulletscreen/BulletDemo.tsx +0 -0
  383. /package/{src/pixUIReactComponents/ui → ui}/sample/button/ButtonDemo.tsx +0 -0
  384. /package/{src/pixUIReactComponents/ui → ui}/sample/carousel/carouselDemo.tsx +0 -0
  385. /package/{src/pixUIReactComponents/ui → ui}/sample/checkBox/checkBoxDemo.tsx +0 -0
  386. /package/{src/pixUIReactComponents/ui → ui}/sample/dropdown/DropdownDemo.tsx +0 -0
  387. /package/{src/pixUIReactComponents/ui → ui}/sample/dropdown/MoneyDropdownOption.tsx +0 -0
  388. /package/{src/pixUIReactComponents/ui → ui}/sample/dropdown/MoneyDropdownSpreadMain.tsx +0 -0
  389. /package/{src/pixUIReactComponents/ui → ui}/sample/dropdown/MoneyDropdownUnspreadMain.tsx +0 -0
  390. /package/{src/pixUIReactComponents/ui → ui}/sample/gradient/GradientDemo.tsx +0 -0
  391. /package/{src/pixUIReactComponents/ui → ui}/sample/less/video.less +0 -0
  392. /package/{src/pixUIReactComponents/ui → ui}/sample/progress/ProgressDemo.tsx +0 -0
  393. /package/{src/pixUIReactComponents/ui → ui}/sample/slider/SliderDemo.tsx +0 -0
  394. /package/{src/pixUIReactComponents/ui → ui}/sample/tab/TabDemo.tsx +0 -0
  395. /package/{src/pixUIReactComponents/ui → ui}/sample/tab/TopTab.tsx +0 -0
  396. /package/{src/pixUIReactComponents/ui → ui}/sample/togglegroup/ToggleGroupDemo.tsx +0 -0
  397. /package/{src/pixUIReactComponents/ui → ui}/sample/videoplayer/VideoPlayerDemo.tsx +0 -0
  398. /package/{src/pixUIReactComponents/ui → ui}/sample/waterfallcomponent/WaterfallComponentDemo.jsx +0 -0
  399. /package/{src/pixUIReactComponents/ui → ui}/ui.md +0 -0
@@ -1,889 +0,0 @@
1
- // source: test.proto
2
- /**
3
- * @fileoverview
4
- * @enhanceable
5
- * @suppress {messageConventions} JS Compiler reports an error if a variable or
6
- * field starts with 'MSG_' and isn't a translatable message.
7
- * @public
8
- */
9
- // GENERATED CODE -- DO NOT EDIT!
10
- /* eslint-disable */
11
- // @ts-nocheck
12
-
13
- var jspb = require('google-protobuf');
14
- var goog = jspb;
15
- var global = Function('return this')();
16
-
17
- goog.exportSymbol('proto.mb.PingMsg', null, global);
18
- goog.exportSymbol('proto.mb.StreamPoint', null, global);
19
- goog.exportSymbol('proto.mb.StreamRequest', null, global);
20
- goog.exportSymbol('proto.mb.StreamResponse', null, global);
21
- /**
22
- * Generated by JsPbCodeGenerator.
23
- * @param {Array=} opt_data Optional initial data array, typically from a
24
- * server response, or constructed directly in Javascript. The array is used
25
- * in place and becomes part of the constructed object. It is not cloned.
26
- * If no data is provided, the constructed object will be empty, but still
27
- * valid.
28
- * @extends {jspb.Message}
29
- * @constructor
30
- */
31
- proto.mb.PingMsg = function(opt_data) {
32
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
33
- };
34
- goog.inherits(proto.mb.PingMsg, jspb.Message);
35
- if (goog.DEBUG && !COMPILED) {
36
- /**
37
- * @public
38
- * @override
39
- */
40
- proto.mb.PingMsg.displayName = 'proto.mb.PingMsg';
41
- }
42
- /**
43
- * Generated by JsPbCodeGenerator.
44
- * @param {Array=} opt_data Optional initial data array, typically from a
45
- * server response, or constructed directly in Javascript. The array is used
46
- * in place and becomes part of the constructed object. It is not cloned.
47
- * If no data is provided, the constructed object will be empty, but still
48
- * valid.
49
- * @extends {jspb.Message}
50
- * @constructor
51
- */
52
- proto.mb.StreamPoint = function(opt_data) {
53
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
54
- };
55
- goog.inherits(proto.mb.StreamPoint, jspb.Message);
56
- if (goog.DEBUG && !COMPILED) {
57
- /**
58
- * @public
59
- * @override
60
- */
61
- proto.mb.StreamPoint.displayName = 'proto.mb.StreamPoint';
62
- }
63
- /**
64
- * Generated by JsPbCodeGenerator.
65
- * @param {Array=} opt_data Optional initial data array, typically from a
66
- * server response, or constructed directly in Javascript. The array is used
67
- * in place and becomes part of the constructed object. It is not cloned.
68
- * If no data is provided, the constructed object will be empty, but still
69
- * valid.
70
- * @extends {jspb.Message}
71
- * @constructor
72
- */
73
- proto.mb.StreamRequest = function(opt_data) {
74
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
75
- };
76
- goog.inherits(proto.mb.StreamRequest, jspb.Message);
77
- if (goog.DEBUG && !COMPILED) {
78
- /**
79
- * @public
80
- * @override
81
- */
82
- proto.mb.StreamRequest.displayName = 'proto.mb.StreamRequest';
83
- }
84
- /**
85
- * Generated by JsPbCodeGenerator.
86
- * @param {Array=} opt_data Optional initial data array, typically from a
87
- * server response, or constructed directly in Javascript. The array is used
88
- * in place and becomes part of the constructed object. It is not cloned.
89
- * If no data is provided, the constructed object will be empty, but still
90
- * valid.
91
- * @extends {jspb.Message}
92
- * @constructor
93
- */
94
- proto.mb.StreamResponse = function(opt_data) {
95
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
96
- };
97
- goog.inherits(proto.mb.StreamResponse, jspb.Message);
98
- if (goog.DEBUG && !COMPILED) {
99
- /**
100
- * @public
101
- * @override
102
- */
103
- proto.mb.StreamResponse.displayName = 'proto.mb.StreamResponse';
104
- }
105
-
106
-
107
-
108
- if (jspb.Message.GENERATE_TO_OBJECT) {
109
- /**
110
- * Creates an object representation of this proto.
111
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
112
- * Optional fields that are not set will be set to undefined.
113
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
114
- * For the list of reserved names please see:
115
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
116
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
117
- * JSPB instance for transitional soy proto support:
118
- * http://goto/soy-param-migration
119
- * @return {!Object}
120
- */
121
- proto.mb.PingMsg.prototype.toObject = function(opt_includeInstance) {
122
- return proto.mb.PingMsg.toObject(opt_includeInstance, this);
123
- };
124
-
125
-
126
- /**
127
- * Static version of the {@see toObject} method.
128
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
129
- * the JSPB instance for transitional soy proto support:
130
- * http://goto/soy-param-migration
131
- * @param {!proto.mb.PingMsg} msg The msg instance to transform.
132
- * @return {!Object}
133
- * @suppress {unusedLocalVariables} f is only used for nested messages
134
- */
135
- proto.mb.PingMsg.toObject = function(includeInstance, msg) {
136
- var f, obj = {
137
- no: jspb.Message.getFieldWithDefault(msg, 1, 0),
138
- nameFirst: jspb.Message.getFieldWithDefault(msg, 2, "")
139
- };
140
-
141
- if (includeInstance) {
142
- obj.$jspbMessageInstance = msg;
143
- }
144
- return obj;
145
- };
146
- }
147
-
148
-
149
- /**
150
- * Deserializes binary data (in protobuf wire format).
151
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
152
- * @return {!proto.mb.PingMsg}
153
- */
154
- proto.mb.PingMsg.deserializeBinary = function(bytes) {
155
- var reader = new jspb.BinaryReader(bytes);
156
- var msg = new proto.mb.PingMsg;
157
- return proto.mb.PingMsg.deserializeBinaryFromReader(msg, reader);
158
- };
159
-
160
-
161
- /**
162
- * Deserializes binary data (in protobuf wire format) from the
163
- * given reader into the given message object.
164
- * @param {!proto.mb.PingMsg} msg The message object to deserialize into.
165
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
166
- * @return {!proto.mb.PingMsg}
167
- */
168
- proto.mb.PingMsg.deserializeBinaryFromReader = function(msg, reader) {
169
- while (reader.nextField()) {
170
- if (reader.isEndGroup()) {
171
- break;
172
- }
173
- var field = reader.getFieldNumber();
174
- switch (field) {
175
- case 1:
176
- var value = /** @type {number} */ (reader.readInt32());
177
- msg.setNo(value);
178
- break;
179
- case 2:
180
- var value = /** @type {string} */ (reader.readString());
181
- msg.setNameFirst(value);
182
- break;
183
- default:
184
- reader.skipField();
185
- break;
186
- }
187
- }
188
- return msg;
189
- };
190
-
191
-
192
- /**
193
- * Serializes the message to binary data (in protobuf wire format).
194
- * @return {!Uint8Array}
195
- */
196
- proto.mb.PingMsg.prototype.serializeBinary = function() {
197
- var writer = new jspb.BinaryWriter();
198
- proto.mb.PingMsg.serializeBinaryToWriter(this, writer);
199
- return writer.getResultBuffer();
200
- };
201
-
202
-
203
- /**
204
- * Serializes the given message to binary data (in protobuf wire
205
- * format), writing to the given BinaryWriter.
206
- * @param {!proto.mb.PingMsg} message
207
- * @param {!jspb.BinaryWriter} writer
208
- * @suppress {unusedLocalVariables} f is only used for nested messages
209
- */
210
- proto.mb.PingMsg.serializeBinaryToWriter = function(message, writer) {
211
- var f = undefined;
212
- f = message.getNo();
213
- if (f !== 0) {
214
- writer.writeInt32(
215
- 1,
216
- f
217
- );
218
- }
219
- f = message.getNameFirst();
220
- if (f.length > 0) {
221
- writer.writeString(
222
- 2,
223
- f
224
- );
225
- }
226
- };
227
-
228
-
229
- /**
230
- * optional int32 no = 1;
231
- * @return {number}
232
- */
233
- proto.mb.PingMsg.prototype.getNo = function() {
234
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
235
- };
236
-
237
-
238
- /**
239
- * @param {number} value
240
- * @return {!proto.mb.PingMsg} returns this
241
- */
242
- proto.mb.PingMsg.prototype.setNo = function(value) {
243
- return jspb.Message.setProto3IntField(this, 1, value);
244
- };
245
-
246
-
247
- /**
248
- * optional string name_first = 2;
249
- * @return {string}
250
- */
251
- proto.mb.PingMsg.prototype.getNameFirst = function() {
252
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
253
- };
254
-
255
-
256
- /**
257
- * @param {string} value
258
- * @return {!proto.mb.PingMsg} returns this
259
- */
260
- proto.mb.PingMsg.prototype.setNameFirst = function(value) {
261
- return jspb.Message.setProto3StringField(this, 2, value);
262
- };
263
-
264
-
265
- if (jspb.Message.GENERATE_FROM_OBJECT) {
266
-
267
- /**
268
- * The raw object form of PingMsg as accepted by the `fromObject` method.
269
- * @record
270
- */
271
- proto.mb.PingMsg.ObjectFormat = function() {
272
- /** @type {?|undefined} */
273
- this.no;
274
-
275
- /** @type {?|undefined} */
276
- this.nameFirst;
277
- };
278
-
279
- /**
280
- * Loads data from an object into a new instance of this proto.
281
- * @param {!proto.mb.PingMsg.ObjectFormat} obj
282
- * The object representation of this proto to load the data from.
283
- * @return {!proto.mb.PingMsg}
284
- */
285
- proto.mb.PingMsg.fromObject = function(obj) {
286
- var msg = new proto.mb.PingMsg();
287
- obj.no != null && jspb.Message.setField(msg, 1, obj.no);
288
- obj.nameFirst != null && jspb.Message.setField(msg, 2, obj.nameFirst);
289
- return msg;
290
- };
291
- }
292
-
293
-
294
-
295
-
296
- if (jspb.Message.GENERATE_TO_OBJECT) {
297
- /**
298
- * Creates an object representation of this proto.
299
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
300
- * Optional fields that are not set will be set to undefined.
301
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
302
- * For the list of reserved names please see:
303
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
304
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
305
- * JSPB instance for transitional soy proto support:
306
- * http://goto/soy-param-migration
307
- * @return {!Object}
308
- */
309
- proto.mb.StreamPoint.prototype.toObject = function(opt_includeInstance) {
310
- return proto.mb.StreamPoint.toObject(opt_includeInstance, this);
311
- };
312
-
313
-
314
- /**
315
- * Static version of the {@see toObject} method.
316
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
317
- * the JSPB instance for transitional soy proto support:
318
- * http://goto/soy-param-migration
319
- * @param {!proto.mb.StreamPoint} msg The msg instance to transform.
320
- * @return {!Object}
321
- * @suppress {unusedLocalVariables} f is only used for nested messages
322
- */
323
- proto.mb.StreamPoint.toObject = function(includeInstance, msg) {
324
- var f, obj = {
325
- name: jspb.Message.getFieldWithDefault(msg, 1, ""),
326
- value: jspb.Message.getFieldWithDefault(msg, 2, 0),
327
- ping: (f = msg.getPing()) && proto.mb.PingMsg.toObject(includeInstance, f)
328
- };
329
-
330
- if (includeInstance) {
331
- obj.$jspbMessageInstance = msg;
332
- }
333
- return obj;
334
- };
335
- }
336
-
337
-
338
- /**
339
- * Deserializes binary data (in protobuf wire format).
340
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
341
- * @return {!proto.mb.StreamPoint}
342
- */
343
- proto.mb.StreamPoint.deserializeBinary = function(bytes) {
344
- var reader = new jspb.BinaryReader(bytes);
345
- var msg = new proto.mb.StreamPoint;
346
- return proto.mb.StreamPoint.deserializeBinaryFromReader(msg, reader);
347
- };
348
-
349
-
350
- /**
351
- * Deserializes binary data (in protobuf wire format) from the
352
- * given reader into the given message object.
353
- * @param {!proto.mb.StreamPoint} msg The message object to deserialize into.
354
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
355
- * @return {!proto.mb.StreamPoint}
356
- */
357
- proto.mb.StreamPoint.deserializeBinaryFromReader = function(msg, reader) {
358
- while (reader.nextField()) {
359
- if (reader.isEndGroup()) {
360
- break;
361
- }
362
- var field = reader.getFieldNumber();
363
- switch (field) {
364
- case 1:
365
- var value = /** @type {string} */ (reader.readString());
366
- msg.setName(value);
367
- break;
368
- case 2:
369
- var value = /** @type {number} */ (reader.readInt64());
370
- msg.setValue(value);
371
- break;
372
- case 3:
373
- var value = new proto.mb.PingMsg;
374
- reader.readMessage(value,proto.mb.PingMsg.deserializeBinaryFromReader);
375
- msg.setPing(value);
376
- break;
377
- default:
378
- reader.skipField();
379
- break;
380
- }
381
- }
382
- return msg;
383
- };
384
-
385
-
386
- /**
387
- * Serializes the message to binary data (in protobuf wire format).
388
- * @return {!Uint8Array}
389
- */
390
- proto.mb.StreamPoint.prototype.serializeBinary = function() {
391
- var writer = new jspb.BinaryWriter();
392
- proto.mb.StreamPoint.serializeBinaryToWriter(this, writer);
393
- return writer.getResultBuffer();
394
- };
395
-
396
-
397
- /**
398
- * Serializes the given message to binary data (in protobuf wire
399
- * format), writing to the given BinaryWriter.
400
- * @param {!proto.mb.StreamPoint} message
401
- * @param {!jspb.BinaryWriter} writer
402
- * @suppress {unusedLocalVariables} f is only used for nested messages
403
- */
404
- proto.mb.StreamPoint.serializeBinaryToWriter = function(message, writer) {
405
- var f = undefined;
406
- f = message.getName();
407
- if (f.length > 0) {
408
- writer.writeString(
409
- 1,
410
- f
411
- );
412
- }
413
- f = message.getValue();
414
- if (f !== 0) {
415
- writer.writeInt64(
416
- 2,
417
- f
418
- );
419
- }
420
- f = message.getPing();
421
- if (f != null) {
422
- writer.writeMessage(
423
- 3,
424
- f,
425
- proto.mb.PingMsg.serializeBinaryToWriter
426
- );
427
- }
428
- };
429
-
430
-
431
- /**
432
- * optional string name = 1;
433
- * @return {string}
434
- */
435
- proto.mb.StreamPoint.prototype.getName = function() {
436
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
437
- };
438
-
439
-
440
- /**
441
- * @param {string} value
442
- * @return {!proto.mb.StreamPoint} returns this
443
- */
444
- proto.mb.StreamPoint.prototype.setName = function(value) {
445
- return jspb.Message.setProto3StringField(this, 1, value);
446
- };
447
-
448
-
449
- /**
450
- * optional int64 value = 2;
451
- * @return {number}
452
- */
453
- proto.mb.StreamPoint.prototype.getValue = function() {
454
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
455
- };
456
-
457
-
458
- /**
459
- * @param {number} value
460
- * @return {!proto.mb.StreamPoint} returns this
461
- */
462
- proto.mb.StreamPoint.prototype.setValue = function(value) {
463
- return jspb.Message.setProto3IntField(this, 2, value);
464
- };
465
-
466
-
467
- /**
468
- * optional PingMsg ping = 3;
469
- * @return {?proto.mb.PingMsg}
470
- */
471
- proto.mb.StreamPoint.prototype.getPing = function() {
472
- return /** @type{?proto.mb.PingMsg} */ (
473
- jspb.Message.getWrapperField(this, proto.mb.PingMsg, 3));
474
- };
475
-
476
-
477
- /**
478
- * @param {?proto.mb.PingMsg|undefined} value
479
- * @return {!proto.mb.StreamPoint} returns this
480
- */
481
- proto.mb.StreamPoint.prototype.setPing = function(value) {
482
- return jspb.Message.setWrapperField(this, 3, value);
483
- };
484
-
485
-
486
- /**
487
- * Clears the message field making it undefined.
488
- * @return {!proto.mb.StreamPoint} returns this
489
- */
490
- proto.mb.StreamPoint.prototype.clearPing = function() {
491
- return this.setPing(undefined);
492
- };
493
-
494
-
495
- /**
496
- * Returns whether this field is set.
497
- * @return {boolean}
498
- */
499
- proto.mb.StreamPoint.prototype.hasPing = function() {
500
- return jspb.Message.getField(this, 3) != null;
501
- };
502
-
503
-
504
- if (jspb.Message.GENERATE_FROM_OBJECT) {
505
-
506
- /**
507
- * The raw object form of StreamPoint as accepted by the `fromObject` method.
508
- * @record
509
- */
510
- proto.mb.StreamPoint.ObjectFormat = function() {
511
- /** @type {?|undefined} */
512
- this.name;
513
-
514
- /** @type {?|undefined} */
515
- this.value;
516
-
517
- /** @type {?|undefined} */
518
- this.ping;
519
- };
520
-
521
- /**
522
- * Loads data from an object into a new instance of this proto.
523
- * @param {!proto.mb.StreamPoint.ObjectFormat} obj
524
- * The object representation of this proto to load the data from.
525
- * @return {!proto.mb.StreamPoint}
526
- */
527
- proto.mb.StreamPoint.fromObject = function(obj) {
528
- var msg = new proto.mb.StreamPoint();
529
- obj.name != null && jspb.Message.setField(msg, 1, obj.name);
530
- obj.value != null && jspb.Message.setField(msg, 2, obj.value);
531
- obj.ping && jspb.Message.setWrapperField(
532
- msg, 3, proto.mb.PingMsg.fromObject(obj.ping));
533
- return msg;
534
- };
535
- }
536
-
537
-
538
-
539
-
540
- if (jspb.Message.GENERATE_TO_OBJECT) {
541
- /**
542
- * Creates an object representation of this proto.
543
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
544
- * Optional fields that are not set will be set to undefined.
545
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
546
- * For the list of reserved names please see:
547
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
548
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
549
- * JSPB instance for transitional soy proto support:
550
- * http://goto/soy-param-migration
551
- * @return {!Object}
552
- */
553
- proto.mb.StreamRequest.prototype.toObject = function(opt_includeInstance) {
554
- return proto.mb.StreamRequest.toObject(opt_includeInstance, this);
555
- };
556
-
557
-
558
- /**
559
- * Static version of the {@see toObject} method.
560
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
561
- * the JSPB instance for transitional soy proto support:
562
- * http://goto/soy-param-migration
563
- * @param {!proto.mb.StreamRequest} msg The msg instance to transform.
564
- * @return {!Object}
565
- * @suppress {unusedLocalVariables} f is only used for nested messages
566
- */
567
- proto.mb.StreamRequest.toObject = function(includeInstance, msg) {
568
- var f, obj = {
569
- pt: (f = msg.getPt()) && proto.mb.StreamPoint.toObject(includeInstance, f)
570
- };
571
-
572
- if (includeInstance) {
573
- obj.$jspbMessageInstance = msg;
574
- }
575
- return obj;
576
- };
577
- }
578
-
579
-
580
- /**
581
- * Deserializes binary data (in protobuf wire format).
582
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
583
- * @return {!proto.mb.StreamRequest}
584
- */
585
- proto.mb.StreamRequest.deserializeBinary = function(bytes) {
586
- var reader = new jspb.BinaryReader(bytes);
587
- var msg = new proto.mb.StreamRequest;
588
- return proto.mb.StreamRequest.deserializeBinaryFromReader(msg, reader);
589
- };
590
-
591
-
592
- /**
593
- * Deserializes binary data (in protobuf wire format) from the
594
- * given reader into the given message object.
595
- * @param {!proto.mb.StreamRequest} msg The message object to deserialize into.
596
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
597
- * @return {!proto.mb.StreamRequest}
598
- */
599
- proto.mb.StreamRequest.deserializeBinaryFromReader = function(msg, reader) {
600
- while (reader.nextField()) {
601
- if (reader.isEndGroup()) {
602
- break;
603
- }
604
- var field = reader.getFieldNumber();
605
- switch (field) {
606
- case 1:
607
- var value = new proto.mb.StreamPoint;
608
- reader.readMessage(value,proto.mb.StreamPoint.deserializeBinaryFromReader);
609
- msg.setPt(value);
610
- break;
611
- default:
612
- reader.skipField();
613
- break;
614
- }
615
- }
616
- return msg;
617
- };
618
-
619
-
620
- /**
621
- * Serializes the message to binary data (in protobuf wire format).
622
- * @return {!Uint8Array}
623
- */
624
- proto.mb.StreamRequest.prototype.serializeBinary = function() {
625
- var writer = new jspb.BinaryWriter();
626
- proto.mb.StreamRequest.serializeBinaryToWriter(this, writer);
627
- return writer.getResultBuffer();
628
- };
629
-
630
-
631
- /**
632
- * Serializes the given message to binary data (in protobuf wire
633
- * format), writing to the given BinaryWriter.
634
- * @param {!proto.mb.StreamRequest} message
635
- * @param {!jspb.BinaryWriter} writer
636
- * @suppress {unusedLocalVariables} f is only used for nested messages
637
- */
638
- proto.mb.StreamRequest.serializeBinaryToWriter = function(message, writer) {
639
- var f = undefined;
640
- f = message.getPt();
641
- if (f != null) {
642
- writer.writeMessage(
643
- 1,
644
- f,
645
- proto.mb.StreamPoint.serializeBinaryToWriter
646
- );
647
- }
648
- };
649
-
650
-
651
- /**
652
- * optional StreamPoint pt = 1;
653
- * @return {?proto.mb.StreamPoint}
654
- */
655
- proto.mb.StreamRequest.prototype.getPt = function() {
656
- return /** @type{?proto.mb.StreamPoint} */ (
657
- jspb.Message.getWrapperField(this, proto.mb.StreamPoint, 1));
658
- };
659
-
660
-
661
- /**
662
- * @param {?proto.mb.StreamPoint|undefined} value
663
- * @return {!proto.mb.StreamRequest} returns this
664
- */
665
- proto.mb.StreamRequest.prototype.setPt = function(value) {
666
- return jspb.Message.setWrapperField(this, 1, value);
667
- };
668
-
669
-
670
- /**
671
- * Clears the message field making it undefined.
672
- * @return {!proto.mb.StreamRequest} returns this
673
- */
674
- proto.mb.StreamRequest.prototype.clearPt = function() {
675
- return this.setPt(undefined);
676
- };
677
-
678
-
679
- /**
680
- * Returns whether this field is set.
681
- * @return {boolean}
682
- */
683
- proto.mb.StreamRequest.prototype.hasPt = function() {
684
- return jspb.Message.getField(this, 1) != null;
685
- };
686
-
687
-
688
- if (jspb.Message.GENERATE_FROM_OBJECT) {
689
-
690
- /**
691
- * The raw object form of StreamRequest as accepted by the `fromObject` method.
692
- * @record
693
- */
694
- proto.mb.StreamRequest.ObjectFormat = function() {
695
- /** @type {?|undefined} */
696
- this.pt;
697
- };
698
-
699
- /**
700
- * Loads data from an object into a new instance of this proto.
701
- * @param {!proto.mb.StreamRequest.ObjectFormat} obj
702
- * The object representation of this proto to load the data from.
703
- * @return {!proto.mb.StreamRequest}
704
- */
705
- proto.mb.StreamRequest.fromObject = function(obj) {
706
- var msg = new proto.mb.StreamRequest();
707
- obj.pt && jspb.Message.setWrapperField(
708
- msg, 1, proto.mb.StreamPoint.fromObject(obj.pt));
709
- return msg;
710
- };
711
- }
712
-
713
-
714
-
715
-
716
- if (jspb.Message.GENERATE_TO_OBJECT) {
717
- /**
718
- * Creates an object representation of this proto.
719
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
720
- * Optional fields that are not set will be set to undefined.
721
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
722
- * For the list of reserved names please see:
723
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
724
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
725
- * JSPB instance for transitional soy proto support:
726
- * http://goto/soy-param-migration
727
- * @return {!Object}
728
- */
729
- proto.mb.StreamResponse.prototype.toObject = function(opt_includeInstance) {
730
- return proto.mb.StreamResponse.toObject(opt_includeInstance, this);
731
- };
732
-
733
-
734
- /**
735
- * Static version of the {@see toObject} method.
736
- * @param {boolean|undefined} includeInstance Deprecated. Whether to include
737
- * the JSPB instance for transitional soy proto support:
738
- * http://goto/soy-param-migration
739
- * @param {!proto.mb.StreamResponse} msg The msg instance to transform.
740
- * @return {!Object}
741
- * @suppress {unusedLocalVariables} f is only used for nested messages
742
- */
743
- proto.mb.StreamResponse.toObject = function(includeInstance, msg) {
744
- var f, obj = {
745
- pt: (f = msg.getPt()) && proto.mb.StreamPoint.toObject(includeInstance, f)
746
- };
747
-
748
- if (includeInstance) {
749
- obj.$jspbMessageInstance = msg;
750
- }
751
- return obj;
752
- };
753
- }
754
-
755
-
756
- /**
757
- * Deserializes binary data (in protobuf wire format).
758
- * @param {jspb.ByteSource} bytes The bytes to deserialize.
759
- * @return {!proto.mb.StreamResponse}
760
- */
761
- proto.mb.StreamResponse.deserializeBinary = function(bytes) {
762
- var reader = new jspb.BinaryReader(bytes);
763
- var msg = new proto.mb.StreamResponse;
764
- return proto.mb.StreamResponse.deserializeBinaryFromReader(msg, reader);
765
- };
766
-
767
-
768
- /**
769
- * Deserializes binary data (in protobuf wire format) from the
770
- * given reader into the given message object.
771
- * @param {!proto.mb.StreamResponse} msg The message object to deserialize into.
772
- * @param {!jspb.BinaryReader} reader The BinaryReader to use.
773
- * @return {!proto.mb.StreamResponse}
774
- */
775
- proto.mb.StreamResponse.deserializeBinaryFromReader = function(msg, reader) {
776
- while (reader.nextField()) {
777
- if (reader.isEndGroup()) {
778
- break;
779
- }
780
- var field = reader.getFieldNumber();
781
- switch (field) {
782
- case 1:
783
- var value = new proto.mb.StreamPoint;
784
- reader.readMessage(value,proto.mb.StreamPoint.deserializeBinaryFromReader);
785
- msg.setPt(value);
786
- break;
787
- default:
788
- reader.skipField();
789
- break;
790
- }
791
- }
792
- return msg;
793
- };
794
-
795
-
796
- /**
797
- * Serializes the message to binary data (in protobuf wire format).
798
- * @return {!Uint8Array}
799
- */
800
- proto.mb.StreamResponse.prototype.serializeBinary = function() {
801
- var writer = new jspb.BinaryWriter();
802
- proto.mb.StreamResponse.serializeBinaryToWriter(this, writer);
803
- return writer.getResultBuffer();
804
- };
805
-
806
-
807
- /**
808
- * Serializes the given message to binary data (in protobuf wire
809
- * format), writing to the given BinaryWriter.
810
- * @param {!proto.mb.StreamResponse} message
811
- * @param {!jspb.BinaryWriter} writer
812
- * @suppress {unusedLocalVariables} f is only used for nested messages
813
- */
814
- proto.mb.StreamResponse.serializeBinaryToWriter = function(message, writer) {
815
- var f = undefined;
816
- f = message.getPt();
817
- if (f != null) {
818
- writer.writeMessage(
819
- 1,
820
- f,
821
- proto.mb.StreamPoint.serializeBinaryToWriter
822
- );
823
- }
824
- };
825
-
826
-
827
- /**
828
- * optional StreamPoint pt = 1;
829
- * @return {?proto.mb.StreamPoint}
830
- */
831
- proto.mb.StreamResponse.prototype.getPt = function() {
832
- return /** @type{?proto.mb.StreamPoint} */ (
833
- jspb.Message.getWrapperField(this, proto.mb.StreamPoint, 1));
834
- };
835
-
836
-
837
- /**
838
- * @param {?proto.mb.StreamPoint|undefined} value
839
- * @return {!proto.mb.StreamResponse} returns this
840
- */
841
- proto.mb.StreamResponse.prototype.setPt = function(value) {
842
- return jspb.Message.setWrapperField(this, 1, value);
843
- };
844
-
845
-
846
- /**
847
- * Clears the message field making it undefined.
848
- * @return {!proto.mb.StreamResponse} returns this
849
- */
850
- proto.mb.StreamResponse.prototype.clearPt = function() {
851
- return this.setPt(undefined);
852
- };
853
-
854
-
855
- /**
856
- * Returns whether this field is set.
857
- * @return {boolean}
858
- */
859
- proto.mb.StreamResponse.prototype.hasPt = function() {
860
- return jspb.Message.getField(this, 1) != null;
861
- };
862
-
863
-
864
- if (jspb.Message.GENERATE_FROM_OBJECT) {
865
-
866
- /**
867
- * The raw object form of StreamResponse as accepted by the `fromObject` method.
868
- * @record
869
- */
870
- proto.mb.StreamResponse.ObjectFormat = function() {
871
- /** @type {?|undefined} */
872
- this.pt;
873
- };
874
-
875
- /**
876
- * Loads data from an object into a new instance of this proto.
877
- * @param {!proto.mb.StreamResponse.ObjectFormat} obj
878
- * The object representation of this proto to load the data from.
879
- * @return {!proto.mb.StreamResponse}
880
- */
881
- proto.mb.StreamResponse.fromObject = function(obj) {
882
- var msg = new proto.mb.StreamResponse();
883
- obj.pt && jspb.Message.setWrapperField(
884
- msg, 1, proto.mb.StreamPoint.fromObject(obj.pt));
885
- return msg;
886
- };
887
- }
888
-
889
- goog.object.extend(exports, proto.mb);