作者 燕成杰

保证金支付

正在显示 34 个修改的文件 包含 8 行增加4759 行删除

要显示太多修改。

为保证性能只显示 34 of 34+ 个文件。

@@ -18,10 +18,13 @@ export const sendProduct = (data) => request({url: 'product/product_publish',met @@ -18,10 +18,13 @@ export const sendProduct = (data) => request({url: 'product/product_publish',met
18 export const getLastInfo = () => request({url: 'product/last_fabu_data',method: 'post',}) 18 export const getLastInfo = () => request({url: 'product/last_fabu_data',method: 'post',})
19 19
20 // 缴纳保证金 /api/user/user_cert_withdraw 20 // 缴纳保证金 /api/user/user_cert_withdraw
21 - export const payGuarantee = () => request({url: 'user/user_cert_withdraw',method: 'post',}) 21 + export const payGuarantee = (openid) => request({url: 'user/user_cert_withdraw',method: 'post',data:{openid}})
22 22
23 // 获取微信授权登录页面 /api/user/getAuthorizeUrl 23 // 获取微信授权登录页面 /api/user/getAuthorizeUrl
24 export const authorization = (redirect_uri) => request({url: 'user/getAuthorizeUrl',method: 'post',data:{redirect_uri}}) 24 export const authorization = (redirect_uri) => request({url: 'user/getAuthorizeUrl',method: 'post',data:{redirect_uri}})
25 25
26 // 获取微信用户openid /api/user/getOpenid 26 // 获取微信用户openid /api/user/getOpenid
27 -export const getOpenid = (code) => request({url: 'user/getOpenid',method: 'post',data:{code}})  
  27 +export const getOpenid = (code) => request({url: 'user/getOpenid',method: 'post',data:{code}})
  28 +
  29 +// 缴纳保证金 /api/user/user_cert_withdraw
  30 +export const userCertWithdraw = (openid) => request({url: 'user/user_cert_withdraw',method: 'post',data:{openid}})
@@ -33,7 +33,6 @@ @@ -33,7 +33,6 @@
33 }; 33 };
34 }, 34 },
35 created() { 35 created() {
36 - console.log('������');  
37 }, 36 },
38 methods: { 37 methods: {
39 choosebtn() { 38 choosebtn() {
@@ -50,7 +49,7 @@ @@ -50,7 +49,7 @@
50 let token = uni.getStorageSync('token') 49 let token = uni.getStorageSync('token')
51 console.log(token); 50 console.log(token);
52 if(!token) return this.showLogin = true 51 if(!token) return this.showLogin = true
53 - uni.redirectTo({ 52 + uni.navigateTo({
54 url: "/pages/index/send" 53 url: "/pages/index/send"
55 }) 54 })
56 }, 55 },
@@ -19,10 +19,10 @@ @@ -19,10 +19,10 @@
19 "#USER", 19 "#USER",
20 "/" 20 "/"
21 ], 21 ],
22 - "_resolved": "https://registry.npmjs.org/jweixin-module/-/jweixin-module-1.6.0.tgz", 22 + "_resolved": "https://registry.npmmirror.com/jweixin-module/-/jweixin-module-1.6.0.tgz",
23 "_shasum": "4a7ea614083e3c9c3f49e2fdc2bb882cfa58dfcd", 23 "_shasum": "4a7ea614083e3c9c3f49e2fdc2bb882cfa58dfcd",
24 "_spec": "jweixin-module", 24 "_spec": "jweixin-module",
25 - "_where": "F:\\minigroup\\Bitcoin", 25 + "_where": "D:\\项目\\元象印届\\Bitcoin",
26 "author": { 26 "author": {
27 "name": "Shengqiang Guo" 27 "name": "Shengqiang Guo"
28 }, 28 },
1 -MIT License  
2 -  
3 -Copyright (c) 2020 echo.  
4 -  
5 -Permission is hereby granted, free of charge, to any person obtaining a copy  
6 -of this software and associated documentation files (the "Software"), to deal  
7 -in the Software without restriction, including without limitation the rights  
8 -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell  
9 -copies of the Software, and to permit persons to whom the Software is  
10 -furnished to do so, subject to the following conditions:  
11 -  
12 -The above copyright notice and this permission notice shall be included in all  
13 -copies or substantial portions of the Software.  
14 -  
15 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR  
16 -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,  
17 -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE  
18 -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER  
19 -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,  
20 -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE  
21 -SOFTWARE.  
1 - <font color="#5677fc">`开源不易,需要鼓励。给 ThorUI项目点个 star吧`</font> [GitHub](https://github.com/dingyong0214/ThorUI-uniapp)  
2 -  
3 -# ThorUI  
4 -ThorUI组件库,uni-app版本,v3编译,支持nvue uni-app编译模式(原weex编译模式),easycom组件模式(无需手动引入,开发工具自带智能感知)  
5 -  
6 -| ![微信小程序](https://thorui.cn/img/applets.jpg) |![H5二维码](https://thorui.cn/img/h5_qrcode.png) |![QQ小程序](https://thorui.cn/img/qq_applets.png) |![Android](https://thorui.cn/img/thorui_apk.png) |![ThorUI示例](https://thorui.cn/img/thorui-extend.jpg) |  
7 -| ------------ | ------------ | ------------ | ------------ | ------------ |  
8 -| 微信小程序 |H5二维码 | QQ小程序 | Android App |ThorUI示例 |  
9 -  
10 ----  
11 -  
12 -## 网站介绍  
13 -  
14 -[https://www.thorui.cn/](https://www.thorui.cn/)  
15 -  
16 ----  
17 -  
18 -## ThorUI组件文档  
19 -  
20 -[https://thorui.cn/doc/](https://thorui.cn/doc/)  
21 -  
22 ----  
23 -  
24 -## 交流群  
25 -  
26 -<font color="#5677fc">`QQ群1:745733024`</font>  
27 -  
28 -<font color="#5677fc">`QQ群2:881906325`</font>  
29 -  
30 -<font color="#5677fc">`QQ群3:605135318`</font>  
31 -  
32 -<font color="#5677fc">`QQ群4:928308676`</font>  
33 -  
34 -<font color="#5677fc">`会员群:加入会员可进`</font>  
35 -  
36 ----  
37 -  
38 -## 更新日志  
39 -  
40 -### V1.9.0 (2022-05-28)  
41 -  
42 -1.card 卡片组件优化,当header部分内容不传值时可使用默认插槽自定义内容。  
43 -  
44 -2.修复组件使用wxs初始化报错的问题。  
45 -  
46 -3.优化部分组件vue3下兼容问题。  
47 -  
48 -4.商城模板优化,调整vue3下样式出错问题。  
49 -  
50 -5.优化并删除filters使用。  
51 -  
52 -6.tui-countdown 倒计时 组件优化,支持支付宝、百度、QQ、字节小程序。  
53 -  
54 -7.tui-divider 分隔符 组件优化,支持支付宝、百度、QQ、字节小程序。  
55 -  
56 -8.tui-scroll-top 回到顶部 组件优化,支持支付宝、百度、QQ、字节小程序。  
57 -  
58 -9.tui-alert 弹框 组件优化,支持支付宝、百度、QQ、字节小程序。  
59 -  
60 -10.tui-no-data 暂无数据 组件优化,支持支付宝、百度、QQ、字节小程序。  
61 -  
62 -11.tui-toast 提示 组件优化,支持支付宝、百度、QQ、字节小程序。  
63 -  
64 -12.tui-datetime 日期时间选择器 组件优化,支持支付宝、百度、QQ、字节小程序。  
65 -  
66 -13.tui-fab 悬浮按钮 组件优化,支持支付宝、百度、QQ、字节小程序。  
67 -  
68 -14.tui-tabbar 标签栏 组件优化,支持支付宝、百度、QQ、字节小程序。  
69 -  
70 -15.tui-tabs 标签页 组件优化,支持支付宝、百度、QQ、字节小程序。  
71 -  
72 -16.tui-collapse 折叠面板 组件优化,支持支付宝、百度、QQ、字节小程序。  
73 -  
74 -17.tui-upload 图片上传 组件优化,支持支付宝、百度、QQ、字节小程序。  
75 -  
76 -18.tui-skeleton 骨架屏 组件优化,支持支付宝、百度、QQ、字节小程序。  
77 -  
78 -19.tui-calendar 日历 组件优化,支持支付宝、百度、QQ、字节小程序。  
79 -  
80 -20.tui-steps 步骤条 组件优化,支持支付宝、百度、QQ、字节小程序。  
81 -  
82 -21.tui-drawer 抽屉 组件优化,支持支付宝、百度、QQ、字节小程序。  
83 -  
84 -22.tui-swipe-action 滑动菜单 组件优化,支持支付宝、百度、QQ、字节小程序。  
85 -  
86 -23.tui-bottom-navigation 底部导航菜单 组件优化,支持支付宝、百度、QQ、字节小程序。  
87 -  
88 -24.tui-cascade-selection 级联选择 组件优化,支持支付宝、百度、QQ、字节小程序。  
89 -  
90 -25.tui-circular-progress 圆形进度条 组件优化,支持支付宝、百度、QQ、字节小程序。  
91 -  
92 -26.tui-navigation-bar 自定义导航栏 组件优化,支持支付宝、百度、QQ、字节小程序。  
93 -  
94 -27.tui-bubble-popup 气泡弹框 组件优化,支持支付宝、百度、QQ、字节小程序。  
95 -  
96 -28.tui-image-group 图片组合 组件优化,支持支付宝、百度、QQ、字节小程序。  
97 -  
98 -<font color="#5677fc">`扫码体验[ThorUI组件库]小程序`</font>  
99 -  
100 -![ThorUI组件库](https://thorui.cn/img/applets_sm.jpg)  
101 -  
102 -========================  
103 -  
104 -【ThorUI示例V1.4.0】更新:  
105 -  
106 -1.修复组件使用wxs初始化报错的问题。  
107 -  
108 -2.内嵌ucharts图表,当thorui图表无法满足时推荐使用。  
109 -  
110 -3.tui-gallery 图片预览 组件优化,修复索引显示可能出错的问题。  
111 -  
112 -4.优化部分vue3下兼容问题。  
113 -  
114 -5.tui-label 标签 组件优化,支持支付宝、百度、QQ、字节小程序。  
115 -  
116 -6.tui-picker 选择器 组件优化,支持支付宝、百度、QQ、字节小程序。  
117 -  
118 -7.tui-swiper-dot swiper指示点 组件优化,支持支付宝、百度、QQ、字节小程序。  
119 -  
120 -8.tui-progress 进度条 组件优化,支持支付宝、百度、QQ、字节小程序。  
121 -  
122 -9.tui-index-list 索引列表 组件优化,支持支付宝、百度、QQ、字节小程序。  
123 -  
124 -10。tui-gallery 图片预览 组件优化,支持支付宝、百度、QQ、字节小程序。  
125 -  
126 -11.tui-loading 加载动画 组件优化,支持支付宝、百度、QQ、字节小程序。  
127 -  
128 -12.tui-dialog 对话框 组件优化,支持支付宝、百度、QQ、字节小程序。  
129 -  
130 -13.tui-msg 提示页 组件优化,支持支付宝、百度、QQ、字节小程序。  
131 -  
132 -14.tui-searchbar 搜索栏 组件优化,支持支付宝、百度、QQ、字节小程序。  
133 -  
134 -15.tui-copy-text 长按复制 组件优化,支持支付宝、百度、QQ、字节小程序。  
135 -  
136 -16.tui-tab 标签页 组件优化,支持支付宝、百度、QQ、字节小程序。  
137 -  
138 -17.tui-cubic-bezier 贝塞尔曲线 组件优化,支持支付宝、百度、QQ、字节小程序。  
139 -  
140 -18.tui-drag 拖拽排序 组件优化,支持支付宝、百度、QQ小程序、字节小程序。  
141 -  
142 -19.tui-slide-verify 滑动验证码 组件优化,支持支付宝、百度、QQ、字节小程序。  
143 -  
144 -20.tui-digital-keyboard 数字键盘 组件优化,支持支付宝、百度、QQ、字节小程序。  
145 -  
146 -21.tui-digital-roller 数字滚轮 组件优化,支持支付宝、百度、QQ、字节小程序。  
147 -  
148 -22.tui-timer 计时器 组件优化,支持支付宝、百度、QQ、字节小程序。  
149 -  
150 -23.tui-table 表格 组件优化,支持支付宝小程序。  
151 -  
152 -24.tui-grade 评分 组件优化,支持支付宝、百度、QQ、字节小程序。  
153 -  
154 -25.tui-countdown-verify 验证码倒计时 组件优化,支持支付宝、百度、QQ、字节小程序。  
155 -  
156 -26.tui-slider 滑动选择器 组件优化,支持支付宝、百度、QQ、字节小程序。  
157 -  
158 -27.tui-rotate-verify 旋转图片验证 组件优化,支持支付宝、百度、QQ、字节小程序。  
159 -  
160 -28.tui-scale-horizontal 刻度尺滚动选择器 组件优化,支持支付宝、百度、QQ、字节小程序。  
161 -  
162 -29.tui-scale-vertical 刻度尺滚动选择器 组件优化,支持支付宝、百度、QQ、字节小程序。  
163 -  
164 -30.tui-waterfall 瀑布流 组件优化,支持支付宝、百度、QQ、字节小程序。  
165 -  
166 -31.tui-lazyload-img 图片懒加载 组件优化,支持支付宝、百度、QQ、字节小程序。  
167 -  
168 -32.tui-overflow-hidden 内容超出隐藏 组件优化,支持支付宝、百度、QQ、字节小程序。  
169 -  
170 -33.tui-org-tree 组织架构树 组件优化,支持支付宝、百度、QQ、字节小程序。  
171 -  
172 -34.tui-landscape 压屏窗 组件优化,支持支付宝、百度、QQ、字节小程序。  
173 -  
174 -35.tui-tree-view 树型菜单 组件优化,支持支付宝、百度、QQ、字节小程序。  
175 -  
176 -36.tui-charts-column 柱状图表 组件优化,支持支付宝、百度、QQ、字节小程序。  
177 -  
178 -37.tui-charts-bar 横向柱状图表 组件优化,支持支付宝、百度、QQ、字节小程序。  
179 -  
180 -38.tui-charts-line 折线图表 组件优化,支持支付宝、百度、QQ、字节小程序。  
181 -  
182 -39.tui-charts-pie 饼状图表 组件优化,支持支付宝、百度、QQ、字节小程序。  
183 -  
184 -40.tui-charts-area 面积图表 组件优化,支持支付宝、百度、QQ、字节小程序。  
185 -  
186 -41.tui-charts-funnel 漏斗图表 组件优化,支持支付宝、百度、QQ、字节小程序。  
187 -  
188 -42.tui-charts-scatter 散点图表 组件优化,支持支付宝、百度、QQ、字节小程序。  
189 -  
190 -43.tui-charts-radar 雷达图表 组件优化,支持支付宝、百度、QQ、字节小程序。  
191 -  
192 -44.tui-banner-arc Banner底部圆弧效果 组件优化,支持支付宝、百度、QQ、字节小程序。  
193 -  
194 -45.tui-data-checkbox 数据选择器 组件优化,支持支付宝、百度、QQ、字节小程序。  
195 -  
196 -46、tui-poster 绘制海报 组件优化,支持支付宝、百度、QQ、字节小程序。  
197 -  
198 -=====================  
199 -  
200 -<font color="#5677fc">`扫码体验[ThorUI示例]小程序`</font>  
201 -  
202 -![ThorUI示例](https://thorui.cn/img/thorui-extend__sm.jpg)  
203 -  
204 -=====================  
205 -  
206 -其中【ThorUI示例】项目只对会员开放。点此 [开通会员](https://thorui.cn/doc/docs/member.html)  
207 -  
208 -  
209 -### V1.8.0 (2022-04-19)  
210 -  
211 -1.tui-countdown(倒计时)组件优化,修复已知问题。  
212 -  
213 -2.tui-button(按钮)组件优化,支持支付宝、百度、QQ、字节小程序。  
214 -  
215 -3.tui-tag(标签)组件优化,支持支付宝、百度、QQ、字节小程序。  
216 -  
217 -4.tui-badge(徽章)组件优化,支持支付宝、百度、QQ、字节小程序。  
218 -  
219 -5.tui-list-view(列表)组件优化,支持支付宝、百度、QQ、字节小程序。  
220 -  
221 -6.tui-list-cell(列表Item)组件优化,支持支付宝、百度、QQ、字节小程序。  
222 -  
223 -7.tui-card(卡片)组件优化,支持支付宝、百度、QQ、字节小程序。  
224 -  
225 -8.tui-grid(宫格)组件优化,支持支付宝、百度、QQ、字节小程序。  
226 -  
227 -9.tui-grid-item(宫格Item)组件优化,支持支付宝、百度、QQ、字节小程序。  
228 -  
229 -10.tui-loading(加载中)组件优化,支持支付宝、百度、QQ、字节小程序。  
230 -  
231 -11.tui-loadmore(加载更多)组件优化,支持支付宝、百度、QQ、字节小程序。  
232 -  
233 -12.tui-nomore(没有更多了)组件优化,支持支付宝、百度、QQ、字节小程序。  
234 -  
235 -13.tui-footer(页脚)组件优化,支持支付宝、百度、QQ、字节小程序。  
236 -  
237 -14.tui-tips(消息提示)组件优化,支持支付宝、百度、QQ、字节小程序。  
238 -  
239 -15.tui-sticky(吸顶容器)组件优化,支持支付宝、百度、QQ、字节小程序。  
240 -  
241 -16.tui-keyboard(数字键盘)组件优化,支持支付宝、百度、QQ、字节小程序。  
242 -  
243 -17.tui-keyboard-input(数字键盘输入框)组件优化,支持支付宝、百度、QQ、字节小程序。  
244 -  
245 -18.tui-time-axis(时间轴)组件优化,支持支付宝、百度、QQ、字节小程序。  
246 -  
247 -19.tui-timeaxis-item(时间轴Item)组件优化,支持支付宝、百度、QQ、字节小程序。  
248 -  
249 -20.tui-top-dropdown(顶部弹出层)组件优化,支持支付宝、百度、QQ、字节小程序。  
250 -  
251 -21.tui-bottom-popup(底部弹出层)组件优化,支持支付宝、百度、QQ、字节小程序。  
252 -  
253 -22.tui-dropdown-list(下拉列表)组件优化,支持支付宝、百度、QQ、字节小程序。  
254 -  
255 -23.tui-actionsheet(操作菜单)组件优化,支持支付宝、百度、QQ、字节小程序。  
256 -  
257 -24.tui-numberbox(数字框)组件优化,支持支付宝、百度、QQ、字节小程序。  
258 -  
259 -25.tui-rate(评分)组件优化,支持支付宝、百度、QQ、字节小程序。  
260 -  
261 -26.tui-modal(弹框)组件优化,支持支付宝、百度、QQ、字节小程序。  
262 -  
263 -<font color="#5677fc">`扫码体验[ThorUI组件库]小程序`</font>  
264 -  
265 -![ThorUI组件库](https://thorui.cn/img/applets_sm.jpg)  
266 -  
267 -========================  
268 -  
269 -【ThorUI示例V1.3.0】更新:  
270 -  
271 -1.新增 tui-banner-arc(banner底部圆弧效果)组件。  
272 -  
273 -2.新增 tui-data-checkbox(数据选择器)组件。  
274 -  
275 -3.新增 tui-charts-area(面积图表-css版)组件。  
276 -  
277 -4.新增 tui-charts-funnel(漏斗图表-css版)组件。  
278 -  
279 -5.新增 tui-charts-scatter(散点图表-css版)组件。  
280 -  
281 -6.新增 tui-charts-radar(雷达图表-css版)组件。  
282 -  
283 -7.新增 tui-poster(绘制海报)组件,配置数据绘制海报。  
284 -  
285 -8.小程序端 tui-input(输入框) 组件优化,修复已知问题。  
286 -  
287 -9.tui-tab(标签页)组件优化,修复已知问题。  
288 -  
289 -10.其他已知问题优化。  
290 -  
291 -=====================  
292 -  
293 -<font color="#5677fc">`扫码体验[ThorUI示例]小程序`</font>  
294 -  
295 -![ThorUI示例](https://thorui.cn/img/thorui-extend__sm.jpg)  
296 -  
297 -=====================  
298 -  
299 -其中【ThorUI示例】项目只对会员开放。点此 [开通会员](https://thorui.cn/doc/docs/member.html)  
300 -  
301 -  
302 -### V1.7.2 (2022-02-25)  
303 -  
304 -1.tui-time-axis(时间轴)组件优化,新增属性来设置节点层级。  
305 -  
306 -2.tui-steps(步骤条)组件优化,字体图标支持设置字体大小。  
307 -  
308 -3.tui-datetime(日期时间选择器)组件优化,新增属性 maskClosable 来设置是否可点击遮罩关闭选择器。  
309 -  
310 -4.tui-datetime(日期时间选择器)组件优化,优化微信小程序端快速滚动点击确定按钮时数据未更新的问题。  
311 -  
312 -5.tui-datetime (日期时间选择器)组件优化,可设置标题。  
313 -  
314 -6.优化tui-numberbox组件,修复数据类型问题。  
315 -  
316 -7.优化tui-tabs(标签页)组件,可控制底部滑块是否显示。  
317 -  
318 -8.微信小程序tui-tabbar(标签栏)组件优化,修复页面路径传值错误的问题。  
319 -  
320 -9.tui-calendar(日历)组件优化,选择日期时显示标题内容可配置。  
321 -  
322 -10.tui-cascade-selection(级联选择器) 默认选中优化,当一次性传入所有数据时默认选项传值可为字符串数组,如:['安徽省','阜阳市','颍上县']  
323 -  
324 -11.tui-skeleton(骨架屏)组件优化,加入背景动画效果。  
325 -  
326 -12.tui-upload(上传组件优化),新增属性控制删除图片时是否弹框确认。  
327 -  
328 -13.已知问题优化。  
329 -  
330 -<font color="#5677fc">`扫码体验[ThorUI组件库]小程序`</font>  
331 -  
332 -![ThorUI组件库](https://thorui.cn/img/applets_sm.jpg)  
333 -  
334 -========================  
335 -  
336 -【ThorUI示例V1.2.2】更新:  
337 -  
338 -1.tui-index-list(索引列表)组件优化,修复App端右侧索引随页面滚动的bug。  
339 -  
340 -2.tui-textarea (多行输入框) 组件优化,修复初始化赋值时计数错误问题。  
341 -  
342 -3.tui-picker(选择器)组件优化,优化微信小程序端快速滚动点击确定按钮时数据未更新的问题。  
343 -  
344 -4.tui-utils.js(工具库)优化,优化日期格式化方法,新增isMs(时间戳精度是否为毫秒)参数。(当 type=2 精度为秒时,参数isMs需要传入false)  
345 -  
346 -5.tui-picker(选择器)组件优化,新增属性 maskClosable 来设置是否可点击遮罩关闭选择器。  
347 -  
348 -6.新增 tui-week-date(周日期选择)组件。  
349 -  
350 -7.新增 tui-vcode(验证码)组件。  
351 -  
352 -8.新增 tui-divide-list(分隔列表组件)。  
353 -  
354 -9.新增 tui-select(选择框)组件。  
355 -  
356 -10.新增 tui-amount-inwords(数字金额转大写)组件。  
357 -  
358 -11.已知问题优化。  
359 -  
360 -=====================  
361 -  
362 -<font color="#5677fc">`扫码体验[ThorUI示例]小程序`</font>  
363 -  
364 -![ThorUI示例](https://thorui.cn/img/thorui-extend__sm.jpg)  
365 -  
366 -=====================  
367 -  
368 -其中【ThorUI示例】项目只对会员开放。点此 [开通会员](https://thorui.cn/doc/docs/member.html)  
369 -  
370 -  
371 -### V1.7.1 (2021-10-01)  
372 -  
373 -1.微信小程序版wx:key赋值优化,去除警告。  
374 -  
375 -2.tui-icon(图标组件优化),修复同时引入组件和样式文件冲突的问题。  
376 -  
377 -3.tui-calendar(日历)组件优化,选择区间时需选择起始和结束日期才可点击确定按钮。  
378 -  
379 -4.微信小程序版本索引列表(吸顶效果)页面优化,修复索引和吸顶索引不一致的问题。  
380 -  
381 -5.tui-numberbox(数字框)组件优化,当步长step为整数时,value支持传入小数。  
382 -  
383 -<font color="#5677fc">`扫码体验[ThorUI组件库]小程序`</font>  
384 -  
385 -![ThorUI组件库](https://thorui.cn/img/applets_sm.jpg)  
386 -  
387 -========================  
388 -  
389 -【ThorUI示例V1.2.1】更新:  
390 -  
391 -1.tui-searchbar(搜索栏)组件优化,新增属性showLabel、showInput用于控制是否显示占位标签和输入框。  
392 -  
393 -2.tui-rotate-verify (旋转图片验证) 组件优化,新增type类型,当type=2时,返回旋转角度,可传给后端进行验证。  
394 -  
395 -3.tui-input(输入框)、tui-textarea (多行输入框)组件优化,修复v-model赋值Number类型值报错的问题。  
396 -  
397 -4.tui-waterfall(瀑布流)组件优化,修复已知问题。  
398 -  
399 -5.微信小程序版本 tui-table(表格)组件优化,修复数字或英文内容换行显示不正确问题。  
400 -  
401 -6.其他已知问题优化。  
402 -  
403 -=====================  
404 -  
405 -<font color="#5677fc">`扫码体验[ThorUI示例]小程序`</font>  
406 -  
407 -![ThorUI示例](https://thorui.cn/img/thorui-extend__sm.jpg)  
408 -  
409 -=====================  
410 -  
411 -其中【ThorUI示例】项目只对会员开放。点此 [开通会员](https://thorui.cn/doc/docs/member.html)  
412 -  
413 -  
414 -### V1.7.0(2021-09-17)  
415 -  
416 -1.修复tui-bottom-navigation(底部导航菜单)组件编译到小程序点击二级菜单报错的问题。  
417 -  
418 -2.tui-datetime(日期时间选择器)组件优化,可以自定义设置滚动区域高度。  
419 -  
420 -3.tui-datetime(日期时间选择器)组件优化,新增类型type=8,即选择:时分秒+小时。  
421 -  
422 -4.tui-cascade-selection(级联选择器)组件优化,修复编译到小程序端索引错乱问题。  
423 -  
424 -5.uni-app端所有 commonJS 改为 ES6 模块规范,详见文档升级指南。  
425 -  
426 -6.组件兼容vue3调整优化,支持情况与uni-app同步。  
427 -  
428 -7.tui-icon(字体图标组件优化),删除以前播放(play)图标,新增播放(play)、暂停(suspend)图标;删除以前不可见(unseen)图标,新增可见(seen),不可见(unseen)图标。  
429 -  
430 -8.tui-icon(字体图标组件优化),uni-app版新增支持包含App-Nvue、支付宝/百度/字节/QQ小程序。  
431 -  
432 -9.微信小程序原生版组件属性类型调整,修复高版本调试基础库出现警告提示。  
433 -  
434 -10.tui-swipe-action(滑动菜单)组件优化,修复已知问题。  
435 -  
436 -<font color="#5677fc">`扫码体验[ThorUI组件库]小程序`</font>  
437 -  
438 -![ThorUI组件库](https://thorui.cn/img/applets_sm.jpg)  
439 -  
440 -=====================  
441 -  
442 -【ThorUI示例V1.2.0】更新:  
443 -  
444 -1.tui-picker(选择器)组件新增暗黑模式示例。  
445 -  
446 -2.tui-charts-pie(饼状图表-css版)组件优化,修复部分场景可能导致样式错乱的问题。  
447 -  
448 -3.tui-charts-line(折线图表-css版)组件优化,修复部分Android手机显示空白问题。  
449 -  
450 -4.图表组件(所有)优化,修复其它已知问题。  
451 -  
452 -5.tui-form(表单验证)组件优化,部分平台不支持在props中嵌套传入Function函数,model和rules参数由props传入改为校验方法validate中传入。  
453 -  
454 -6.tui-slider(滑动选择器)组件优化,修复已知问题。  
455 -  
456 -7.tui-timer(计时器)组件优化,修复冒号换成文字时显示错误的问题。  
457 -  
458 -8.uni-app端所有 commonJS 改为 ES6 模块规范,详见文档升级指南。  
459 -  
460 -9.组件兼容vue3调整优化,支持情况与uni-app同步。  
461 -  
462 -10.tui-progress(进度条)组件优化。  
463 -  
464 -11.tui-checkbox(多项选择器)组件优化,修复v-model手动修改值视图不更新的问题。  
465 -  
466 -12.tui-radio(单项选择器)组件优化,修复v-model手动修改值视图不更新的问题。  
467 -  
468 -13.微信小程序原生版组件属性类型调整,修复高版本调试基础库出现警告提示。  
469 -  
470 -14.tui-tab(标签页)组件优化,支持设置左右间距,需传入属性leftGap(距离左侧间隙)值。  
471 -  
472 -15.tui-row/tui-col(栅格布局)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
473 -  
474 -16.tui-form-button(按钮)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
475 -  
476 -17.tui-popup(弹层动画)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
477 -  
478 -18.tui-input(输入框) 组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
479 -  
480 -19.tui-radio(单项选择器)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
481 -  
482 -20.tui-checkbox(多项选择器)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
483 -  
484 -21.tui-switch(开关选择器)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
485 -  
486 -22.tui-textarea(多行输入框)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
487 -  
488 -23.tui-alerts(警告提示)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
489 -  
490 -24.新增 tui-status-bar(状态栏)组件。  
491 -  
492 -25.tui-pagination(分页器)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
493 -  
494 -26.tui-segmented-control(分段器)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
495 -  
496 -27.tui-notice-bar(通告栏)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
497 -  
498 -28.tui-form(表单验证)组件优化,uni-app版新增支持App-Nvue、支付宝/百度/字节/QQ小程序。  
499 -  
500 -29.其他已知问题优化。  
501 -  
502 -=====================  
503 -  
504 -<font color="#5677fc">`扫码体验[ThorUI示例]小程序`</font>  
505 -  
506 -![ThorUI示例](https://thorui.cn/img/thorui-extend__sm.jpg)  
507 -  
508 -=====================  
509 -  
510 -其中【ThorUI示例】项目只对会员开放。点此 [开通会员](https://thorui.cn/doc/docs/member.html)  
511 -  
512 -  
513 -### V1.6.5(2021-05-24)  
514 -  
515 -1.tui-validation(表单验证)优化,新增validator自定义验证配置项,具体查看文档。  
516 -  
517 -2.tui-round-progress(圆形进度条)组件优化,修复已知问题。  
518 -  
519 -3.tui-cascade-selection(级联选择器)组件优化,修复已知问题。  
520 -  
521 -4.tui-tabs(标签页)组件优化,选项卡可设置数字角标。  
522 -  
523 -<font color="#5677fc">`扫码体验[ThorUI组件库]小程序`</font>  
524 -  
525 -![ThorUI组件库](https://thorui.cn/img/applets_sm.jpg)  
526 -  
527 -=====================  
528 -  
529 -【ThorUI示例V1.1.0】更新:  
530 -  
531 -1.tui-org-tree(组织架构树)组件优化,可控制节点内容排版方式、节点选中状态、展开收起子节点,具体查看文档。  
532 -  
533 -2.新增tui-form(表单)组件,主要用于表单验证。  
534 -  
535 -3.新增tui-input(输入框)组件,原生input组件增强。  
536 -  
537 -4.新增tui-textarea(多行输入框)组件。  
538 -  
539 -5.新增tui-label(标签)组件,用来改进表单组件的可用性。  
540 -  
541 -6.新增tui-radio(单项选择器)组件。  
542 -  
543 -7.新增tui-checkbox(多项选择器)组件。  
544 -  
545 -8.新增tui-switch(开关)组件。  
546 -  
547 -9.新增tui-picker(选择器)组件,支持1~3级数据。  
548 -  
549 -10.新增tui-landscape(压屏窗)组件。  
550 -  
551 -11.新增tui-segmented-control(分段器)组件。  
552 -  
553 -12.新增tui-notice-bar(通告栏)组件。  
554 -  
555 -13.新增tui-alerts(警告框)组件。  
556 -  
557 -14.新增tui-request(数据请求)封装,支持Promise,支持请求拦截和响应拦截,支持请求未结束之前阻止重复请求等。  
558 -  
559 -15.tui-utils(工具类)优化,具体查看文档。  
560 -  
561 -16.新增tui-row组件,配合组件tui-col组件使用(24栅格化布局)。  
562 -  
563 -17.新增tui-tree-view(树型菜单)组件。  
564 -  
565 -18.新增tui-charts-column(柱状图-css版)组件。  
566 -  
567 -19.新增tui-charts-bar(横向柱状图-css版)组件。  
568 -  
569 -20.新增tui-charts-line(折线图表-css版)组件。  
570 -  
571 -21.新增tui-charts-pie(饼状图表-css版)组件。  
572 -  
573 -22.tui-lazyload-img(图片懒加载)组件优化,修复已知问题。  
574 -  
575 -23.新增tui-pagination(分页器)组件。  
576 -  
577 -<font color="#5677fc">`扫码体验[ThorUI示例]小程序`</font>  
578 -  
579 -![ThorUI示例](https://thorui.cn/img/thorui-extend__sm.jpg)  
580 -  
581 -=====================  
582 -  
583 -<font color="#5677fc">`其中【ThorUI示例】项目只对会员开放。`</font>  
584 -  
585 -注:会员专用内容加入会员才可使用,点此 [开通会员](https://thorui.cn/doc/docs/member.html)  
586 -  
587 - ### 部分功能截图  
588 -  
589 -| ![](https://thorui.cn/img/V165/t_01.jpg) |![](https://thorui.cn/img/V165/t_02.jpg) |![](https://thorui.cn/img/V165/t_03.jpg) |  
590 -| ------------ | ------------ | ------------ |  
591 -| ![](https://thorui.cn/img/V165/t_04.jpg) |![](https://thorui.cn/img/V165/t_05.jpg) |![](https://thorui.cn/img/V165/t_06.jpg) |  
592 -| ![](https://thorui.cn/img/V165/t_07.jpg) |![](https://thorui.cn/img/V165/t_08.jpg) |![](https://thorui.cn/img/V165/t_09.jpg) |  
593 -| ![](https://thorui.cn/img/V165/t_10.png) |![](https://thorui.cn/img/V165/t_11.jpg) |![](https://thorui.cn/img/V165/t_12.jpg) |  
594 -| ![](https://thorui.cn/img/V165/t_13.jpg) |![](https://thorui.cn/img/V165/t_14.png) |![](https://thorui.cn/img/V165/t_15.jpg) |  
595 -| ![](https://thorui.cn/img/V165/t_16.jpg) |![](https://thorui.cn/img/V165/t_17.jpg) |![](https://thorui.cn/img/V165/t_18.jpg) |  
596 -| ![](https://thorui.cn/img/V165/t_19.jpg) |![](https://thorui.cn/img/V165/t_20.jpg) |![](https://thorui.cn/img/V165/t_21.jpg) |  
597 -| ![](https://thorui.cn/img/V165/t_22.jpg) | | |  
598 -  
599 -### V1.6.2 (2021-03-21)  
600 -  
601 -1.tui-actionsheet(操作菜单)组件优化,点击事件返回参数中新增按钮obj对象数据。  
602 -  
603 -2.tui-upload(图片上传)组件优化,可设置展示图片的宽高。  
604 -  
605 -3.圆形进度条组件优化,修复已知问题。  
606 -  
607 -4.tui-validation.js(表单验证)优化,具体查看文档。  
608 -  
609 -5.tui-numberbox(数字框组件优化),修复已知问题。  
610 -  
611 -6.修复productNvue页,回到顶部在android端失效的问题。  
612 -  
613 -<font color="#5677fc">`扫码体验[ThorUI组件库]小程序`</font>  
614 -  
615 -![ThorUI组件库](https://thorui.cn/img/applets_sm.jpg)  
616 -  
617 -=====================  
618 -  
619 -【ThorUI示例V1.0.2】更新:  
620 -  
621 -1.ThorUI示例个人中心内容对会员开放(个人中心、分享、会员介绍、版本介绍、开源地址、帮助中心等)。  
622 -  
623 -2.tui-timer(计时器)组件优化,可设置初始时间。  
624 -  
625 -3.tui-poster.js(生成海报)优化,修复已知问题,保存图片到本地相册时新增相册权限判断。  
626 -  
627 -4.新增tui-scale(刻度尺滚动选择器)组件。  
628 -  
629 -5.新增tui-waterfall(瀑布流)组件。  
630 -  
631 -6.新增tui-lazyload-img(图片懒加载)组件。  
632 -  
633 -7.新增tui-overflow-hidden(内容超出隐藏)组件。  
634 -  
635 -8.新增tui-org-tree(组织架构树)组件。  
636 -  
637 -<font color="#5677fc">`扫码体验[ThorUI示例]小程序`</font>  
638 -  
639 -![ThorUI示例](https://thorui.cn/img/thorui-extend__sm.jpg)  
640 -  
641 -=====================  
642 -  
643 -<font color="#5677fc">`其中【ThorUI示例】项目只对会员开放。`</font>  
644 -  
645 -注:会员专用内容加入会员才可使用,点此 [开通会员](https://thorui.cn/doc/docs/member.html)  
646 -  
647 - ### 部分功能截图  
648 -  
649 -| ![](https://thorui.cn/img/V162/1.png) |![](https://thorui.cn/img/V162/2.png) |![](https://thorui.cn/img/V162/3.png) |  
650 -| ------------ | ------------ | ------------ |  
651 -| ![](https://thorui.cn/img/V162/4.png) |![](https://thorui.cn/img/V162/5.jpg) |![](https://thorui.cn/img/V162/6.png) |  
652 -| ![](https://thorui.cn/img/V162/7.jpg) |![](https://thorui.cn/img/V162/8.jpg) |![](https://thorui.cn/img/V162/9.png) |  
653 -| ![](https://thorui.cn/img/V162/10.png) |![](https://thorui.cn/img/V162/11.jpg) |![](https://thorui.cn/img/V162/12.jpg) |  
654 -  
655 -  
656 -### V1.6.1 (2021-01-19)  
657 -  
658 -【ThorUI组件库V1.6.1】更新:  
659 -  
660 -1.商城模板更新:  
661 -  
662 - 1)商城模板拆分成单独模板项目。  
663 -  
664 - 2)个人中心,新增未登录状态。  
665 -  
666 - 3)个人信息页面操作优化。  
667 -  
668 - 4)编辑地址页面优化,新增省市区城市选择。  
669 -  
670 - 5)新增我的钱包页面。  
671 -  
672 - 6)新增充值确认页面。  
673 -  
674 - 7)新增我的银行卡页面。  
675 -  
676 - 8)新增交易记录页面。  
677 -  
678 - 9)商品详情页分享优化,新增生成分享海报。  
679 -  
680 -2.优化滑动菜单组件多个触摸点滑动问题。  
681 -  
682 -3.消息提示组件(tui-tips)优化,支持自定义背景色,字体颜色以及字体大小,参数type废弃。  
683 -  
684 -4.圆形进度条组件优化,修复activeMode=forwards(动画从上次结束点接着播)时且上次进度大于当前进度时进度条不刷新bug。  
685 -  
686 -5.优化日历组件(tui-calendar)滚动穿透问题。  
687 -  
688 -6.优化顶部选项卡示例左右切换过快出现闪动的问题,优化下拉刷新出现动画不关闭的问题。  
689 -  
690 -7.上传图片组件(tui-upload)优化,新增一键上传方法uploadAllImage(当属性serverUrl传空时,父级可调用该方法一次性上传所有图片)。  
691 -  
692 -8.新增富文本渲染示例。  
693 -  
694 -=====================  
695 -  
696 -【ThorUI示例V1.0.1】更新:  
697 -  
698 -1.数字滚轮组件(tui-digital-roller)优化,支持数字中带逗号(,)。  
699 -  
700 -2.拖拽排序组件(tui-drag)优化,修复编译到小程序端不执行change和sortend事件的bug。  
701 -  
702 -3.新增grade评分组件,支持滑动半星。  
703 -  
704 -4.新增图片裁剪组件(tui-cropper),裁剪框可显示为圆形。  
705 -  
706 -5.新增短信验证码倒计时组件。  
707 -  
708 -6.新增滑动选择器组件,支持区间选择。  
709 -  
710 -7.新增旋转图片验证组件。  
711 -  
712 -8.新增付费成品入口。  
713 -  
714 -=====================  
715 -  
716 -<font color="#5677fc">`其中【ThorUI示例】项目组件,以及商城模板只对会员开放。`</font>  
717 -  
718 -注:会员专用内容加入会员才可使用,点此 [开通会员](https://thorui.cn/doc/docs/member.html)  
719 -  
720 - ### 部分功能截图  
721 -  
722 -| ![](https://thorui.cn/img/V161/1.png) |![](https://thorui.cn/img/V161/2.png) |![](https://thorui.cn/img/V161/3.png) |  
723 -| ------------ | ------------ | ------------ |  
724 -| ![](https://thorui.cn/img/V161/4.png) |![](https://thorui.cn/img/V161/5.png) |![](https://thorui.cn/img/V161/6.png) |  
725 -| ![](https://thorui.cn/img/V161/7.png) |![](https://thorui.cn/img/V161/8.png) |![](https://thorui.cn/img/V161/9.png) |  
726 -| ![](https://thorui.cn/img/V161/10.jpg) |![](https://thorui.cn/img/V161/11.png) |![](https://thorui.cn/img/V161/12.jpg) |  
727 -| ![](https://thorui.cn/img/V161/13.jpg) |![](https://thorui.cn/img/V161/14.png) |![](https://thorui.cn/img/V161/15.jpg) |  
728 -  
729 -  
730 -### V1.6.0 (2020-11-15)  
731 -  
732 -【ThorUI组件库V1.6.0】更新:  
733 -  
734 -1.tui-fab悬浮按钮组件优化,默认按钮支持自定内容,替换自带加号。  
735 -  
736 -2.修复裁剪组件在小程序端设置isBase64为true时裁剪出错的问题。  
737 -  
738 -3.tui-drawer抽屉组件优化,支持left,right,bottom,top方向弹出,可自定义背景色。  
739 -  
740 -4.倒计时组件优化,新增毫秒展示。  
741 -  
742 -5.时间选择器优化,支持header,body等部分背景色修改。  
743 -  
744 -6.宫格组件优化,可去掉宫格边框线条。  
745 -  
746 -7.修复地图周边兴趣点在H5端出错的问题。  
747 -  
748 -8.新增[ThorUI示例]入口。  
749 -  
750 -=====================  
751 -  
752 -【ThorUI示例V1.0.0】更新:  
753 -  
754 -1.新增scroll-view常用布局案例。  
755 -  
756 -2.新增swiper指示点组件及使用案例。  
757 -  
758 -3.新增长形进度条组件以及使用案例。  
759 -  
760 -4.新增checkbox常用布局案例。  
761 -  
762 -5.新增input常用布局案例。  
763 -  
764 -6.新增radio常用布局案例。  
765 -  
766 -7.新增地图选点示例。  
767 -  
768 -8.地图周边兴趣点布局调整以及可分页加载数据。  
769 -  
770 -9.新增生成海报示例。  
771 -  
772 -10.新增类似微信联系人索引列表组件以及示例。  
773 -  
774 -11.新增左滑菜单组件 wxs实现。  
775 -  
776 -12.新增图片预览组件。  
777 -  
778 -13.新增loading样式。  
779 -14.新增panel布局案例。  
780 -  
781 -15.新增preview布局案例。  
782 -  
783 -16.新增表单常用布局案例。  
784 -  
785 -17.新增dialog组件以及使用案例。  
786 -  
787 -18.新增msg组件以及使用案例。  
788 -  
789 -19.新增搜索searchbar组件。  
790 -  
791 -20.新增表单按钮组件,可自定义背景色。  
792 -  
793 -21.新增长按复制组件,长按弹出菜单。  
794 -  
795 -22.新增贝赛尔曲线组件,加入购物车效果等。  
796 -  
797 -23.新增tab标签页组件,可超出一屏。  
798 -  
799 -24.新增图片裁剪组件(App端使用组件,使用5+ api裁剪)。  
800 -  
801 -25.新增拖拽排序组件以及使用案例。  
802 -  
803 -26.新增滑动验证码组件以及使用案例。  
804 -  
805 -27.新增类似微信数字键盘组件以及使用案例。  
806 -  
807 -28.新增工具库(常用数据处理)。  
808 -  
809 -29.新增popup弹层动画组件。  
810 -  
811 -30.新增计时器组件以及使用案例。  
812 -  
813 -31.新增table表格组件以及使用案例。  
814 -  
815 -32.新增多端适配组件,以及使用案例。  
816 -  
817 -33.新增咖啡点单模板预览入口。  
818 -  
819 -34.新增签到模板预览入口。  
820 -  
821 -35.新增个人中心页面(内部页面,不对外开放),包含分享,会员介绍,版本介绍,开源地址,帮助中心,反馈建议,我要合作,福利专享等页面。  
822 -  
823 -<font color="#5677fc">`扫码体验小程序`</font>  
824 -  
825 -![ThorUI示例](https://thorui.cn/img/thorui-extend__sm.jpg)  
826 -  
827 -=====================  
828 -  
829 -<font color="#5677fc">`【ThorUI示例】项目只对会员开放。`</font>  
830 -  
831 -注:会员专用内容加入会员才可使用(¥150/永久),付费模板会员可享受折扣。  
832 -如若需要,请联系QQ:3168647172 或 3039218619。  
833 -  
834 - ### 部分功能截图  
835 -  
836 -| ![](https://thorui.cn/img/V160/1.png) |![](https://thorui.cn/img/V160/2.png) |![](https://thorui.cn/img/V160/3.png) |  
837 -| ------------ | ------------ | ------------ |  
838 -| ![](https://thorui.cn/img/V160/4.png) |![](https://thorui.cn/img/V160/5.png) |![](https://thorui.cn/img/V160/6.png) |  
839 -| ![](https://thorui.cn/img/V160/7.png) |![](https://thorui.cn/img/V160/8.png) |![](https://thorui.cn/img/V160/9.png) |  
840 -| ![](https://thorui.cn/img/V160/10.png) |![](https://thorui.cn/img/V160/11.png) |![](https://thorui.cn/img/V160/12.png) |  
841 -| ![](https://thorui.cn/img/V160/13.png) |![](https://thorui.cn/img/V160/14.png) |![](https://thorui.cn/img/V160/15.png) |  
842 -| ![](https://thorui.cn/img/V160/16.png) |![](https://thorui.cn/img/V160/17.png) |![](https://thorui.cn/img/V160/18.png) |  
843 -| ![](https://thorui.cn/img/V160/19.png) |![](https://thorui.cn/img/V160/20.png) |![](https://thorui.cn/img/V160/21.png) |  
844 -| ![](https://thorui.cn/img/V160/22.png) |![](https://thorui.cn/img/V160/23.png) |![](https://thorui.cn/img/V160/24.png) |  
845 -| ![](https://thorui.cn/img/V160/25.png) |![](https://thorui.cn/img/V160/26.png) |![](https://thorui.cn/img/V160/27.png) |  
846 -| ![](https://thorui.cn/img/V160/28.png) |![](https://thorui.cn/img/V160/29.png) |![](https://thorui.cn/img/V160/30.png) |  
847 -| ![](https://thorui.cn/img/V160/31.png) |![](https://thorui.cn/img/V160/32.png) |![](https://thorui.cn/img/V160/33.png) |  
848 -| ![](https://thorui.cn/img/V160/34.png) |![](https://thorui.cn/img/V160/35.png) |![](https://thorui.cn/img/V160/36.png) |  
849 -| ![](https://thorui.cn/img/V160/37.png) |![](https://thorui.cn/img/V160/38.png) |![](https://thorui.cn/img/V160/39.png) |  
850 -| ![](https://thorui.cn/img/V160/40.png) |![](https://thorui.cn/img/V160/41.png) |![](https://thorui.cn/img/V160/42.png) |  
851 -| ![](https://thorui.cn/img/V160/43.png) |![](https://thorui.cn/img/V160/44.png) |![](https://thorui.cn/img/V160/45.png) |  
852 -| ![](https://thorui.cn/img/V160/46.png) |![](https://thorui.cn/img/V160/47.png) |![](https://thorui.cn/img/V160/48.png) |  
853 -| ![](https://thorui.cn/img/V160/49.png) |![](https://thorui.cn/img/V160/50.png) |![](https://thorui.cn/img/V160/51.png) |  
854 -| ![](https://thorui.cn/img/V160/52.png) |![](https://thorui.cn/img/V160/53.png) |![](https://thorui.cn/img/V160/54.png) |  
855 -  
856 -  
857 -  
858 ----  
859 -  
860 -### V1.5.8(2020-09-01)  
861 -  
862 -1.tui-navigation-bar组件优化,可设置背景透明 【设置该属性,则背景透明,只出现内容,isOpacity和maxOpacity失效】  
863 -  
864 -2.tui-swipe-action组件优化,背景色改为配置。modal弹框、抽屉、tabbar等组件z-index改为配置,具体查看文档。  
865 -  
866 -3.修复小程序端tui-numberbox组件输入比最小值小的数无法自动重置成最小值的问题。  
867 -  
868 -4.优化索引列表在H5端滑动切换索引会引起页面回弹的问题。  
869 -  
870 -5.tui-bottom-popup组件优化,可设置z-index以及显示时垂直方向移动的距离translateY。  
871 -  
872 -6.nvue版thor-icon组件优化,更换字体base64。  
873 -  
874 -7.商城模板更新【会员专用】。  
875 -  
876 - 1).首页调整,新增拼团模块  
877 -  
878 - 2).拼团列表  
879 -  
880 - 3).拼团商品详情  
881 -  
882 - 4).正在拼团中列表  
883 -  
884 - 5).我的拼团  
885 -  
886 - 6).拼团详情  
887 -  
888 - 7).退款/售后列表  
889 -  
890 - 8).退款详情  
891 -  
892 - 9).申请售后  
893 -  
894 -8.新增简单咖啡点单模板,类似weStoreCafe【该模板为付费模板¥100,会员2折】  
895 -  
896 - 1).点单  
897 -  
898 - 2).账单结算  
899 -  
900 - 3).编辑地址  
901 -  
902 - 4).地址列表  
903 -  
904 - 5).我的订单  
905 -  
906 - 6).订单详情  
907 -  
908 - 7).微信登录/验证码登录  
909 -  
910 -9.修复部分已知bug。  
911 -  
912 - --------------------------  
913 -  
914 - 注:会员专用内容加入会员才可使用(¥150/永久),付费模板会员可享受折扣。  
915 -  
916 - 如若需要,请联系QQ:3168647172 或 3039218619。  
917 -  
918 - ### 部分功能截图  
919 -  
920 -| ![](https://thorui.cn/img/V158/1.png) |![](https://thorui.cn/img/V158/2.png) |![](https://thorui.cn/img/V158/3.png) |  
921 -| ------------ | ------------ | ------------ |  
922 -| ![](https://thorui.cn/img/V158/4.png) |![](https://thorui.cn/img/V158/5.png) |![](https://thorui.cn/img/V158/6.png) |  
923 -| ![](https://thorui.cn/img/V158/7.png) |![](https://thorui.cn/img/V158/8.png) |![](https://thorui.cn/img/V158/9.png) |  
924 -| ![](https://thorui.cn/img/V158/10.png) |![](https://thorui.cn/img/V158/11.png) |![](https://thorui.cn/img/V158/12.png) |  
925 -| ![](https://thorui.cn/img/V158/13.png) |![](https://thorui.cn/img/V158/14.png) |![](https://thorui.cn/img/V158/15.png) |  
926 -| ![](https://thorui.cn/img/V158/16.png) |![](https://thorui.cn/img/V158/17.png) |![](https://thorui.cn/img/V158/18.png) |  
927 -| ![](https://thorui.cn/img/V158/19.png) |![](https://thorui.cn/img/V158/20.png) | |  
928 -  
929 ----  
930 -  
931 -### V1.5.6(2020-08-18)  
932 -  
933 -1.修复tui-tabs组件宽度不正确的bug。  
934 -  
935 -2.修复级联选择组件(tui-cascade-selection)默认数据不生效的bug。  
936 -  
937 -3.优化tui-button按钮组件,新增props:preventClick[是否阻止用户重复点击,设为true则200ms内只执行一次点击事件,默认false]  
938 -  
939 - --------------------------  
940 -  
941 - 注:加入会员享受更多权益(¥150/永久)。  
942 -  
943 - 如若需要,请联系QQ:3168647172 或 3039218619。  
944 -  
945 -### V1.5.5(2020-08-16)  
946 -  
947 -1.自定义导航栏组件优化,新增props:maxOpacity(最大不透明度值),dropDownHide(下拉隐藏NavigationBar,主要针对有回弹效果ios端)。  
948 -  
949 -2.上传组件优化,可限制上传图片类型,单张图片大小,sizeType,sourceType。  
950 -  
951 -3.倒计时组件优化,可每秒返回剩余时间,默认不返回。  
952 -  
953 -4.tui-modal弹框组件优化,修复transform导致元素内字体模糊的问题。  
954 -  
955 -5.tui-button按钮组件优化,新增link样式配置,具体查看文档。  
956 -  
957 -6.tui-tabs标签页组件优化,新增props:width(tabs宽度)设置。  
958 -  
959 -7.tui-image-group图片组合组件优化,横向展示支持多行。  
960 -  
961 -8.裁剪组件优化,修复网络图片在小程序端裁剪出现空白的问题。  
962 -  
963 -9.商城模板更新【会员专用】。  
964 -  
965 - 1).首页改版,新增秒杀模块  
966 -  
967 - 2).选择优惠券(提交订单)  
968 -  
969 - 3).开具发票  
970 -  
971 - 4).发票详情  
972 -  
973 - 5).查看发票,发送至邮箱  
974 -  
975 - 6).商品评论  
976 -  
977 - 7).评论详情,评论回复  
978 -  
979 - 8).评价晒单  
980 -  
981 - 9).店铺  
982 -  
983 - 10).店铺详情  
984 -  
985 - 11).限时秒杀列表  
986 -  
987 - 12).秒杀详情  
988 -  
989 - 13).商品详情优化,新增视频播放入口  
990 -  
991 - --------------------------  
992 -  
993 - 注:会员专用内容加入会员才可使用(¥150/永久)。  
994 -  
995 - 如若需要,请联系QQ:3168647172 或 3039218619。  
996 -  
997 - ### 部分功能截图  
998 -  
999 -| ![](https://thorui.cn/img/V155/1.png) |![](https://thorui.cn/img/V155/2.png) |![](https://thorui.cn/img/V155/3.png) |  
1000 -| ------------ | ------------ | ------------ |  
1001 -| ![](https://thorui.cn/img/V155/4.png) |![](https://thorui.cn/img/V155/5.png) |![](https://thorui.cn/img/V155/6.jpg) |  
1002 -| ![](https://thorui.cn/img/V155/7.png) |![](https://thorui.cn/img/V155/8.png) |![](https://thorui.cn/img/V155/9.png) |  
1003 -| ![](https://thorui.cn/img/V155/10.png) |![](https://thorui.cn/img/V155/11.png) |![](https://thorui.cn/img/V155/12.png) |  
1004 -| ![](https://thorui.cn/img/V155/13.png) |![](https://thorui.cn/img/V155/14.png) |![](https://thorui.cn/img/V155/15.png) |  
1005 -| ![](https://thorui.cn/img/V155/16.png) |![](https://thorui.cn/img/V155/17.png) |![](https://thorui.cn/img/V155/18.png) |  
1006 -| ![](https://thorui.cn/img/V155/19.png) |![](https://thorui.cn/img/V155/20.png) |![](https://thorui.cn/img/V155/21.png) |  
1007 -| ![](https://thorui.cn/img/V155/22.png) |![](https://thorui.cn/img/V155/23.png) |![](https://thorui.cn/img/V155/24.png) |  
1008 -  
1009 -  
1010 -### V1.5.2(2020-07-20)  
1011 -  
1012 -1.步骤条组件优化,支持自定义图标,支持设置线条为虚线。  
1013 -  
1014 -2.修复图片裁剪组件(wxs版)初始化裁剪不正确的问题。  
1015 -  
1016 -3.按钮(tui-button)组件支持表单提交,详见文档。  
1017 -  
1018 -4.图片上传组件(tui-upload)新增props:header,formData,修复初始化图片不显示的bug。  
1019 -  
1020 -5.tabbar组件与自定义导航栏组件(NavBar)背景支持设置高斯模糊(ios端)。  
1021 -  
1022 -6.uni-app版本骨架屏修复编译到小程序端无法获取到组件节点的bug。  
1023 -  
1024 -7.日历组件单个日期选择和区间选择支持设置默认选中。  
1025 -  
1026 -8.新增多语言模板。源码地址 :[ThorUI-utag](https://github.com/dingyong0214/ThorUI-utag)  
1027 -  
1028 -9.新增拖拽排序组件,wxs实现,详细查看多语言模板示例。  
1029 -  
1030 -10.新增签到模板(点star获取源码)。获取步骤如下:  
1031 -  
1032 - 1)去GitHub给ThorUI项目点star,项目地址分别为:[ThorUI](https://github.com/dingyong0214/ThorUI)[ThorUI-uniapp](https://github.com/dingyong0214/ThorUI-uniapp)  
1033 -  
1034 - 2)加QQ3039218619,截图发送到该QQ即可获取源码。  
1035 -  
1036 ---------------------------  
1037 -  
1038 -注:自1.4.2版本之后,ThorUI只对uni-app版本进行开源,小程序原生版付费会员才可使用(¥150/永久),1.4.2版本之前不受影响。  
1039 -如若需要,请联系QQ:3168647172。  
1040 -  
1041 -  
1042 -### 部分功能截图  
1043 -| ![](https://thorui.cn/img/V152/1.png) |![](https://thorui.cn/img/V152/2.png) |![](https://thorui.cn/img/V152/3.png) |  
1044 -| ------------ | ------------ | ------------ |  
1045 -| ![](https://thorui.cn/img/V152/4.png) |![](https://thorui.cn/img/V152/5.png) |![](https://thorui.cn/img/V152/6.png) |  
1046 -| ![](https://thorui.cn/img/V152/7.png) |![](https://thorui.cn/img/V152/8.png) |![](https://thorui.cn/img/V152/9.png) |  
1047 -| ![](https://thorui.cn/img/V152/10.png) |![](https://thorui.cn/img/V152/11.png) |![](https://thorui.cn/img/V152/12.png) |  
1048 -| ![](https://thorui.cn/img/V152/13.png) |![](https://thorui.cn/img/V152/14.png) |![](https://thorui.cn/img/V152/17.png) |  
1049 -  
1050 -[![Watch the video](https://thorui.cn/img/V152/6.png)](https://thorui.cn/img/V152/0720.MP4)  
1051 -  
1052 -### V1.5.1(2020-06-06)  
1053 -  
1054 -1.日历组件支持农历(古历)。  
1055 -  
1056 -2.sticky吸顶组件新增wxs实现(tui-sticky-wxs)。  
1057 -  
1058 -3.新增圆形进度条组件renderjs实现(App、H5端)与canvas 2d实现(小程序端)以及nuve版本。  
1059 -  
1060 -4.图片裁剪组件优化,手势事件改为wxs实现。  
1061 -  
1062 -5.级联选择器组件优化,支持设置默认选中。  
1063 -  
1064 -6.新增图片颜色分析器组件,传入图片分析图片色彩。  
1065 -  
1066 -7.新增中文转拼音组件,可处理多音字。  
1067 -  
1068 -8.新增update页面(App端资源更新页面)。  
1069 -  
1070 -9.解决H5端异步请求数据后复制文本(clipboard)报错bug。  
1071 -解决方案:  
1072 -①.新增参数event,调用方法时传入此参数;  
1073 -②.异步请求转同步。  
1074 -  
1075 -10.修复其它已知bug。  
1076 -  
1077 -注:自1.4.2版本之后,ThorUI只对uni-app版本进行开源,小程序原生版付费会员才可使用(¥150/永久),1.4.2版本之前不受影响。  
1078 -如若需要,请联系QQ:3168647172。  
1079 -  
1080 -### 部分功能截图  
1081 -| ![](https://thorui.cn/img/v151/1.png) |![](https://thorui.cn/img/v151/2.png) |![](https://thorui.cn/img/v151/3.png) |  
1082 -| ------------ | ------------ | ------------ |  
1083 -  
1084 -  
1085 -### V1.5.0 (2020-05-12)  
1086 -  
1087 -1.新增日历组件 。  
1088 -  
1089 -2.新增图片裁剪组件。  
1090 -  
1091 -3.新增头像、图片组合组件。  
1092 -  
1093 -4.新增顶部NavationBar导航组件。  
1094 -  
1095 -5.新增圆形进度条组件。  
1096 -  
1097 -6.新增底部导航组件。  
1098 -  
1099 -7.新增级联选择组件cascade-selection。  
1100 -  
1101 -8.新增步骤条组件。  
1102 -  
1103 -9.新增气泡框组件。  
1104 -  
1105 -10.countdown倒计时组件优化,可只显示秒数倒计时。  
1106 -  
1107 -11.回到顶部组件优化,新增回首页,分享按钮,可自定义控制显示。  
1108 -  
1109 -12.日期时间选择组件优化,新增秒数选择,单位可置顶展示。  
1110 -  
1111 -13.新增垂直分类菜单左右联动联动案例。  
1112 -  
1113 -14.地图支持H5。  
1114 -  
1115 -15.表单验证优化:非必填情况下,如果值为空,则不进行校验,不为空则进行校验。  
1116 -  
1117 -16.发布H5、QQ小程序以及Android App。H5地址:https://www.thorui.cn/h5/#/ ,QQ小程序搜索ThorUI,apk前往https://www.thorui.cn/ 下载。  
1118 -  
1119 -17.针对支付宝小程序做了部分优化调整。  
1120 -  
1121 -18.nvue支持uni-app编译模式。  
1122 -  
1123 -19.新增自定义tabbar使用模板,小程序参考:https://github.com/dingyong0214/AfterSale ,uni-app参考:https://github.com/dingyong0214/tabbar-uniapp。  
1124 -  
1125 -20.引入优化uParse。  
1126 -  
1127 -21.搜索页面新增关键词高亮显示。  
1128 -  
1129 -22.新增navbar上拉加载下拉刷新案例。  
1130 -  
1131 -23.v3编译支持。  
1132 -  
1133 -24.支持easycom组件模式,直接在页面中使用组件,无需引入注册。  
1134 -  
1135 -25.优化sticky组件,新增普通案例和异步加载案例。  
1136 -  
1137 -26.整体优化调整,项目重构,部分模板完善。  
1138 -  
1139 -### 部分功能截图  
1140 -| ![](https://thorui.cn/img/v150/v1501.png) |![](https://thorui.cn/img/v150/v1502.png) |![](https://thorui.cn/img/v150/v1503.png) |  
1141 -| ------------ | ------------ | ------------ |  
1142 -| ![](https://thorui.cn/img/v150/v1504.png) |![](https://thorui.cn/img/v150/v1505.png) |![](https://thorui.cn/img/v150/v1506.png) |  
1143 -| ![](https://thorui.cn/img/v150/v1507.png) |![](https://thorui.cn/img/v150/v1508.png) |![](https://thorui.cn/img/v150/v1509.jpg) |  
1144 -  
1145 -  
1146 -  
1147 -### V1.4.2  
1148 -  
1149 -1.modal组件优化,宽高以及padding值可设置  
1150 -  
1151 -2.rate评分组件支持小数,如4星半,4.6星等  
1152 -  
1153 -3.tabs组件优化  
1154 -  
1155 -4.商城模板新增优惠券页面  
1156 -  
1157 -5.商城模板新增订单详情页面  
1158 -  
1159 -6.分包,解决小程序预览时包体积超出限制的问题  
1160 -  
1161 -### 功能截图  
1162 -| ![](https://thorui.cn/img/v142/1.jpg) |![](https://thorui.cn/img/v142/2.jpg) |![](https://thorui.cn/img/v142/3.jpg) |  
1163 -| ------------ | ------------ | ------------ |  
1164 -  
1165 -  
1166 -### V1.4.1  
1167 -  
1168 -1.新增文档相关链接信息。  
1169 -  
1170 -2.新增骨架屏组件(extend=>骨架屏)。  
1171 -  
1172 -3.新增网络请求示例。  
1173 -  
1174 -4.调整sticky组件,支持索引列表吸顶效果。  
1175 -  
1176 -5.新增吸顶&索引列表,非scroll-view实现(code[首页]=>索引列表=>索引&吸顶效果)。  
1177 -  
1178 -6.已知问题修复以及优化。  
1179 -  
1180 -### 功能截图  
1181 -| ![](https://thorui.cn/img/V141/1.png) |![](https://thorui.cn/img/V141/2.jpg) |  
1182 -| ------------ | ------------ |  
1183 -| ![](https://thorui.cn/img/V141/3.jpg) |![](https://thorui.cn/img/V141/4.png) |  
1184 -  
1185 -### V1.4.0  
1186 -  
1187 -1.新增日期时间选择器组件。  
1188 -  
1189 -2.H5新增复制文本功能。  
1190 -  
1191 -3.新增悬浮按钮组件。  
1192 -  
1193 -4.新增Tabbar组件。  
1194 -  
1195 -5.新增tabs标签页组件。  
1196 -  
1197 -6.新增折叠面板组件。  
1198 -  
1199 -7.新增图片上传组件。  
1200 -  
1201 -8.NumberBox组件优化调整。  
1202 -  
1203 -9.Modal组件优化调整。  
1204 -  
1205 -10.sticky组件优化调整。  
1206 -  
1207 -11.countdown组件优化调整。  
1208 -  
1209 -12.商城模板新增购物车、我的、提交订单、支付成功、我的订单、地址列表、新增地址、设置、用户信息等页面。  
1210 -  
1211 -13.修改已知bug。  
1212 -  
1213 -### 功能截图  
1214 -| ![](https://thorui.cn/img/V140/1.png) |![](https://thorui.cn/img/V140/2.png) | ![](https://thorui.cn/img/V140/3.png) |  
1215 -| ------------ | ------------ | ------------ |  
1216 -| ![](https://thorui.cn/img/V140/4.png) |![](https://thorui.cn/img/V140/5.png) | ![](https://thorui.cn/img/V140/6.png) |  
1217 -| ![](https://thorui.cn/img/V140/7.png) |![](https://thorui.cn/img/V140/8.png) | ![](https://thorui.cn/img/V140/9.png) |  
1218 -| ![](https://thorui.cn/img/V140/10.png) |![](https://thorui.cn/img/V140/11.png) | ![](https://thorui.cn/img/V140/12.png) |  
1219 -| ![](https://thorui.cn/img/V140/13.png) |![](https://thorui.cn/img/V140/14.png) | ![](https://thorui.cn/img/V140/15.png) |  
1220 -  
1221 -### V1.3.2  
1222 -  
1223 -1.修复H5端发行报错的问题。  
1224 -  
1225 -2.扩展基础组件(保留了之前版本):alert、tips、button、toast。  
1226 -  
1227 -3.新增表单验证功能,只需配置相应验证即可。  
1228 -  
1229 -4.新增返回顶部组件,nvue返回顶部看首页[nvue商品列表]  
1230 -  
1231 -5.优化部分页面,修复已知bug。  
1232 -  
1233 -### 功能截图  
1234 -| ![](https://thorui.cn/img/V132/4.jpg) |![](https://thorui.cn/img/V132/2.jpg) | ![](https://thorui.cn/img/V132/3.jpg) |  
1235 -| ------------ | ------------ | ------------ |  
1236 -| | | |  
1237 -  
1238 -### V1.3.0  
1239 -1.新增倒计时组件:时分秒倒计时,支持设置大小,颜色等。  
1240 -  
1241 -2.新增分隔符组件:Divider分隔符,可设置占据高度,线条宽度,颜色等。  
1242 -  
1243 -3.新增卡片轮播:包含顶部轮播,秒杀商品轮播等。  
1244 -  
1245 -4.nvue下拉刷新优化。  
1246 -  
1247 -5.修复已知bug。  
1248 -  
1249 -### V1.2.2  
1250 -1.新增组件Modal弹框:可设置按钮数,按钮样式,提示文字样式等,还可自定义弹框内容。  
1251 -  
1252 -2.修复部分已知bug。  
1253 -  
1254 -### V1.2.1  
1255 -1.修复部分兼容性问题。  
1256 -  
1257 -2.修复部分已知bug。  
1258 -  
1259 -### V1.2.0  
1260 -1.新增组件NumberBox数字框:可设置步长,支持浮点数,支持调整样式(可单独设置)。  
1261 -  
1262 -2.新增组件Rate评分:可设置星星数,可设置大小颜色。  
1263 -  
1264 -3.新增聊天模板,包含:消息列表,好友列表,聊天界面等。  
1265 -  
1266 -4.新增商城模板,包含:商城首页,商城列表,商城详情等。  
1267 -  
1268 -5.优化部分体验。  
1269 -  
1270 -### V1.1.0  
1271 -1.将基础组件移出扩展,单独出来。  
1272 -  
1273 -2.扩展改为单独tab bar选项extend。  
1274 -  
1275 -3.新增滚动消息(extend=>滚动消息):包括顶部通告栏,滚动新闻,以及搜索框中出现的热搜产品。  
1276 -  
1277 -4.新增弹层下拉选择(extend=>弹层下拉选择):包含顶部下拉选择列表、输入框下拉选择以及底部分享弹层。  
1278 -  
1279 -5.新增ActionSheet操作菜单(extend=>ActionSheet):可加入提示信息,可单独设置字体样式。  
1280 -  
1281 -6.新增新闻模板(extend=>新闻模板):包含新闻列表,新闻详情,评论等。  
1282 -  
1283 -7.部分功能优化,修复已知bug。  
1284 -  
1285 -### V1.0.0  
1286 -1.【地图】新增拖拽定位功能  
1287 -  
1288 -2.【扩展】新增基础组件,包括:字体图标,按钮,Grid宫格,List列表,Card卡片...  
1289 -  
1290 -3.【扩展】新增数字键盘  
1291 -  
1292 -4.【扩展】新增时间轴  
1293 -  
1294 -5.完善thor(个人中心)功能,包括:关于Thor UI,模拟登录,GitHub地址复制,赞赏,反馈,更新日志等  
1295 -  
1296 -6.已知bug修复,以及部分功能优化  
1297 -  
1298 -  
1299 -### 商城模板部分截图  
1300 -  
1301 -  
1302 -| ![商城首页](https://thorui.cn/img/mall/1.png) | ![](https://thorui.cn/img/mall/2.png) | ![](https://thorui.cn/img/mall/3.png) | ![](https://thorui.cn/img/mall/4.png) |  
1303 -| ------------ | ------------ | ------------ | ------------ |  
1304 -| ![](https://thorui.cn/img/mall/5.png) | ![](https://thorui.cn/img/mall/6.png) | ![](https://thorui.cn/img/mall/7.png)| ![](https://thorui.cn/img/mall/8.png) |  
1305 -| ![](https://thorui.cn/img/mall/9.png)| ![](https://thorui.cn/img/mall/10.png) | | |  
1306 -  
1307 -  
1308 -### 新闻模板部分截图  
1309 -  
1310 -| ![](https://thorui.cn/img/news/1.png) | ![](https://thorui.cn/img/news/2.png)| ![](https://thorui.cn/img/news/3.png) |  
1311 -| ------------ | ------------ | ------------ |  
1312 -| ![](https://thorui.cn/img/news/4.png) | ![](https://thorui.cn/img/news/5.png) | ![](https://thorui.cn/img/news/6.png) |  
1313 -  
1314 -  
1315 -### 聊天模板截图  
1316 -| ![](https://thorui.cn/img/chat/1.png) | ![](https://thorui.cn/img/chat/2.png) | ![](https://thorui.cn/img/chat/3.png) |  
1317 -| ------------ | ------------ | ------------ |  
1318 -| | | |  
1319 -  
1320 -  
1321 -### 组件功能部分截图  
1322 -  
1323 -| ![消息提示](https://thorui.cn/img/function/1.jpg)| ![吸顶容器](https://thorui.cn/img/function/2.jpg) | ![数字键盘](https://thorui.cn/img/function/3.jpg) | ![锁频键盘](https://thorui.cn/img/function/4.jpg) | ![时间轴](https://thorui.cn/img/function/5.jpg) |  
1324 -| ------------ | ------------ | ------------ | ------------ | ------------ |  
1325 -| ![消息滚动](https://thorui.cn/img/function/6.jpg) | ![弹层,下拉选择](https://thorui.cn/img/function/7.jpg) | ![抽奖转盘](https://thorui.cn/img/function/8.jpg) | ![抽屉](https://thorui.cn/img/function/9.jpg) | ![滑动菜单](https://thorui.cn/img/function/10.png) |  
1326 -| ![二维码生成](https://thorui.cn/img/function/11.png) | ![地图-拖拽定位](https://thorui.cn/img/function/12.png) |![地图-周边地点](https://thorui.cn/img/function/13.png) | ![基础组件](https://thorui.cn/img/function/14.png) | ![索引列表-城市选择](https://thorui.cn/img/function/15.png) |  
1327 -| ![索引列表](https://thorui.cn/img/function/16.png) | ![顶部选项卡](https://thorui.cn/img/function/17.png) | ![rate评分](https://thorui.cn/img/function/18.png) |![数字输入框](https://thorui.cn/img/function/19.png) | |  
1328 -  
1329 -  
1330 -  
1331 -## 赞赏  
1332 -  
1333 -![image](https://thorui.cn/img/reward_small.jpg)  
1 -// #ifdef H5  
2 -/**  
3 - * clipboard.min.js Add support for ES6 module import  
4 - * @author echo.  
5 - * https://www.thorui.cn/doc  
6 - **/  
7 -function select(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var i=t.hasAttribute("readonly");i||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),i||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var n=window.getSelection(),r=document.createRange();r.selectNodeContents(t),n.removeAllRanges(),n.addRange(r),e=n.toString()}return e}class ClipboardAction{constructor(t){this.resolveOptions(t),this.initSelection()}resolveOptions(t={}){this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}initSelection(){this.text?this.selectFake():this.target&&this.selectTarget()}selectFake(){const t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=(()=>this.removeFake()),this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";let e=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=`${e}px`,this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=select(this.fakeElem),this.copyText()}removeFake(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}selectTarget(){this.selectedText=select(this.target),this.copyText()}copyText(){let t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}handleResult(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}clearSelection(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}set action(t="copy"){if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')}get action(){return this._action}set target(t){if(void 0!==t){if(!t||"object"!=typeof t||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}}get target(){return this._target}destroy(){this.removeFake()}}function Emitter(){}Emitter.prototype={on:function(t,e,i){var n=this.e||(this.e={});return(n[t]||(n[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var n=this;function r(){n.off(t,r),e.apply(i,arguments)}return r._=e,this.on(t,r,i)},emit:function(t){for(var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),n=0,r=i.length;n<r;n++)i[n].fn.apply(i[n].ctx,e);return this},off:function(t,e){var i=this.e||(this.e={}),n=i[t],r=[];if(n&&e)for(var o=0,s=n.length;o<s;o++)n[o].fn!==e&&n[o].fn._!==e&&r.push(n[o]);return r.length?i[t]=r:delete i[t],this}};let is={node:function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},nodeList:function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||exports.node(t[0]))},string:function(t){return"string"==typeof t||t instanceof String},fn:function(t){return"[object Function]"===Object.prototype.toString.call(t)}};var DOCUMENT_NODE_TYPE=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var proto=Element.prototype;proto.matches=proto.matchesSelector||proto.mozMatchesSelector||proto.msMatchesSelector||proto.oMatchesSelector||proto.webkitMatchesSelector}function closest(t,e){for(;t&&t.nodeType!==DOCUMENT_NODE_TYPE;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}function _delegate(t,e,i,n,r){var o=listener.apply(this,arguments);return t.addEventListener(i,o,r),{destroy:function(){t.removeEventListener(i,o,r)}}}function delegate(t,e,i,n,r){return"function"==typeof t.addEventListener?_delegate.apply(null,arguments):"function"==typeof i?_delegate.bind(null,document).apply(null,arguments):("string"==typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,function(t){return _delegate(t,e,i,n,r)}))}function listener(t,e,i,n){return function(i){i.delegateTarget=closest(i.target,e),i.delegateTarget&&n.call(t,i)}}function listen(t,e,i){if(!t&&!e&&!i)throw new Error("Missing required arguments");if(!is.string(e))throw new TypeError("Second argument must be a String");if(!is.fn(i))throw new TypeError("Third argument must be a Function");if(is.node(t))return listenNode(t,e,i);if(is.nodeList(t))return listenNodeList(t,e,i);if(is.string(t))return listenSelector(t,e,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function listenNode(t,e,i){return t.addEventListener(e,i),{destroy:function(){t.removeEventListener(e,i)}}}function listenNodeList(t,e,i){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,i)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,i)})}}}function listenSelector(t,e,i){return delegate(document.body,t,e,i)}class Clipboard extends Emitter{constructor(t,e){super(),this.resolveOptions(e),this.listenClick(t)}resolveOptions(t={}){this.action="function"==typeof t.action?t.action:this.defaultAction,this.target="function"==typeof t.target?t.target:this.defaultTarget,this.text="function"==typeof t.text?t.text:this.defaultText,this.container="object"==typeof t.container?t.container:document.body}listenClick(t){this.listener=listen(t,"click",t=>this.onClick(t))}onClick(t){const e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new ClipboardAction({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}defaultAction(t){return getAttributeValue("action",t)}defaultTarget(t){const e=getAttributeValue("target",t);if(e)return document.querySelector(e)}static isSupported(t=["copy","cut"]){const e="string"==typeof t?[t]:t;let i=!!document.queryCommandSupported;return e.forEach(t=>{i=i&&!!document.queryCommandSupported(t)}),i}defaultText(t){return getAttributeValue("text",t)}destroy(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}function getAttributeValue(t,e){const i=`data-clipboard-${t}`;if(e.hasAttribute(i))return e.getAttribute(i)}export default Clipboard;  
8 -// #endif  
1 -/**  
2 - * 复制文本 兼容H5  
3 - * 来自 ThorUI www.thorui.cn | 文档地址: www.donarui.com  
4 - * @author echo.  
5 - * @version 1.0.0  
6 - **/  
7 -// #ifdef H5  
8 -import ClipboardJS from "./clipboard.min.js"  
9 -// #endif  
10 -const thorui = {  
11 - /**  
12 - * data 需要复制的数据  
13 - * callback 回调  
14 - * e 当用户点击后需要先请求接口再进行复制时,需要传入此参数,或者将异步请求转为同步 (H5端)  
15 - * **/  
16 - getClipboardData: function(data,callback,e) {  
17 - // #ifdef APP-PLUS || MP  
18 - uni.setClipboardData({  
19 - data: data,  
20 - success(res) {  
21 - ("function" == typeof callback) && callback(true)  
22 - },  
23 - fail(res) {  
24 - ("function" == typeof callback) && callback(false)  
25 - }  
26 - })  
27 - // #endif  
28 -  
29 - // #ifdef H5  
30 - let event = window.event || e || {}  
31 - let clipboard = new ClipboardJS("", {  
32 - text: () => data  
33 - })  
34 - clipboard.on('success', (e) => {  
35 - ("function" == typeof callback) && callback(true)  
36 - clipboard.off('success')  
37 - clipboard.off('error')  
38 - clipboard.destroy()  
39 - });  
40 - clipboard.on('error', (e) => {  
41 - ("function" == typeof callback) && callback(false)  
42 - clipboard.off('success')  
43 - clipboard.off('error')  
44 - clipboard.destroy()  
45 - });  
46 - clipboard.onClick(event)  
47 - // #endif  
48 - }  
49 -};  
50 -  
51 -export default {  
52 - getClipboardData: thorui.getClipboardData  
53 -};  
54 -  
55 -  
1 -var _createClass=function(){function a(a,b){for(var c,d=0;d<b.length;d++)c=b[d],c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(a,c.key,c)}return function(b,c,d){return c&&a(b.prototype,c),d&&a(b,d),b}}();function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}if(!pv)var pv={map:function(a,b){var c={};return b?a.map(function(a,d){return c.index=d,b.call(c,a)}):a.slice()},naturalOrder:function(c,a){return c<a?-1:c>a?1:0},sum:function(a,b){var c={};return a.reduce(b?function(a,e,d){return c.index=d,a+b.call(c,e)}:function(a,b){return a+b},0)},max:function(a,b){return Math.max.apply(null,b?pv.map(a,b):a)}};var MMCQ=function(){function a(a,c,d){return(a<<10)+(c<<5)+d}function b(a){function b(){c.sort(a),d=!0}var c=[],d=!1;return{push:function(a){c.push(a),d=!1},peek:function(a){return d||b(),void 0===a&&(a=c.length-1),c[a]},pop:function(){return d||b(),c.pop()},size:function(){return c.length},map:function(a){return c.map(a)},debug:function(){return d||b(),c}}}function c(a,b,c,d,e,f,g){var h=this;h.r1=a,h.r2=b,h.g1=c,h.g2=d,h.b1=e,h.b2=f,h.histo=g}function d(){this.vboxes=new b(function(c,a){return pv.naturalOrder(c.vbox.count()*c.vbox.volume(),a.vbox.count()*a.vbox.volume())})}function e(b){var c,d,e,f,g=Array(32768);return b.forEach(function(b){d=b[0]>>3,e=b[1]>>3,f=b[2]>>3,c=a(d,e,f),g[c]=(g[c]||0)+1}),g}function f(a,b){var d,e,f,g=1e6,h=0,i=1e6,j=0,k=1e6,l=0;return a.forEach(function(a){d=a[0]>>3,e=a[1]>>3,f=a[2]>>3,d<g?g=d:d>h&&(h=d),e<i?i=e:e>j&&(j=e),f<k?k=f:f>l&&(l=f)}),new c(g,h,i,j,k,l,b)}function g(b,c){function d(a){var b,d,e,f,g,h=a+"1",i=a+"2",j=0;for(l=c[h];l<=c[i];l++)if(r[l]>q/2){for(e=c.copy(),f=c.copy(),b=l-c[h],d=c[i]-l,g=b<=d?Math.min(c[i]-1,~~(l+d/2)):Math.max(c[h],~~(l-1-b/2));!r[g];)g++;for(j=s[g];!j&&r[g-1];)j=s[--g];return e[i]=g,f[h]=e[i]+1,[e,f]}}if(c.count()){var e=c.r2-c.r1+1,f=c.g2-c.g1+1,g=c.b2-c.b1+1,h=pv.max([e,f,g]);if(1==c.count())return[c.copy()];var l,m,n,o,p,q=0,r=[],s=[];if(h==e)for(l=c.r1;l<=c.r2;l++){for(o=0,m=c.g1;m<=c.g2;m++)for(n=c.b1;n<=c.b2;n++)p=a(l,m,n),o+=b[p]||0;q+=o,r[l]=q}else if(h==f)for(l=c.g1;l<=c.g2;l++){for(o=0,m=c.r1;m<=c.r2;m++)for(n=c.b1;n<=c.b2;n++)p=a(m,l,n),o+=b[p]||0;q+=o,r[l]=q}else for(l=c.b1;l<=c.b2;l++){for(o=0,m=c.r1;m<=c.r2;m++)for(n=c.g1;n<=c.g2;n++)p=a(m,n,l),o+=b[p]||0;q+=o,r[l]=q}return r.forEach(function(a,b){s[b]=q-a}),h==e?d("r"):h==f?d("g"):d("b")}}return c.prototype={volume:function(a){var b=this;return(!b._volume||a)&&(b._volume=(b.r2-b.r1+1)*(b.g2-b.g1+1)*(b.b2-b.b1+1)),b._volume},count:function(b){var c=this,d=c.histo;if(!c._count_set||b){var e,f,g,h,l=0;for(f=c.r1;f<=c.r2;f++)for(g=c.g1;g<=c.g2;g++)for(h=c.b1;h<=c.b2;h++)e=a(f,g,h),l+=d[e]||0;c._count=l,c._count_set=!0}return c._count},copy:function(){var a=this;return new c(a.r1,a.r2,a.g1,a.g2,a.b1,a.b2,a.histo)},avg:function(b){var c=this,d=c.histo;if(!c._avg||b){var e,f,g,h,l,m=0,n=0,o=0,p=0;for(f=c.r1;f<=c.r2;f++)for(g=c.g1;g<=c.g2;g++)for(h=c.b1;h<=c.b2;h++)l=a(f,g,h),e=d[l]||0,m+=e,n+=8*(e*(f+.5)),o+=8*(e*(g+.5)),p+=8*(e*(h+.5));c._avg=m?[~~(n/m),~~(o/m),~~(p/m)]:[~~(8*(c.r1+c.r2+1)/2),~~(8*(c.g1+c.g2+1)/2),~~(8*(c.b1+c.b2+1)/2)]}return c._avg},contains:function(a){var b=this,c=a[0]>>3;return gval=a[1]>>3,bval=a[2]>>3,c>=b.r1&&c<=b.r2&&gval>=b.g1&&gval<=b.g2&&bval>=b.b1&&bval<=b.b2}},d.prototype={push:function(a){this.vboxes.push({vbox:a,color:a.avg()})},palette:function(){return this.vboxes.map(function(a){return a.color})},size:function(){return this.vboxes.size()},map:function(a){for(var b=this.vboxes,c=0;c<b.size();c++)if(b.peek(c).vbox.contains(a))return b.peek(c).color;return this.nearest(a)},nearest:function(a){for(var b,c,d,e=Math.pow,f=this.vboxes,g=0;g<f.size();g++)c=Math.sqrt(e(a[0]-f.peek(g).color[0],2)+e(a[1]-f.peek(g).color[1],2)+e(a[2]-f.peek(g).color[2],2)),(c<b||void 0===b)&&(b=c,d=f.peek(g).color);return d},forcebw:function(){var a=this.vboxes;a.sort(function(c,a){return pv.naturalOrder(pv.sum(c.color),pv.sum(a.color))});var b=a[0].color;5>b[0]&&5>b[1]&&5>b[2]&&(a[0].color=[0,0,0]);var c=a.length-1,d=a[c].color;251<d[0]&&251<d[1]&&251<d[2]&&(a[c].color=[255,255,255])}},{quantize:function(a,c){function h(a,b){for(var c,d=1,e=0;1000>e;){if(c=a.pop(),!c.count()){a.push(c),e++;continue}var f=g(i,c),h=f[0],j=f[1];if(!h)return;if(a.push(h),j&&(a.push(j),d++),d>=b)return;if(1000<e++)return}}if(!a.length||2>c||256<c)return!1;var i=e(a),j=0;i.forEach(function(){j++}),j<=c;var k=f(a,i),l=new b(function(c,a){return pv.naturalOrder(c.count(),a.count())});l.push(k),h(l,.75*c);for(var m=new b(function(c,a){return pv.naturalOrder(c.count()*c.volume(),a.count()*a.volume())});l.size();)m.push(l.pop());h(m,c-m.size());for(var n=new d;m.size();)n.push(m.pop());return n}}}(),ColorAnalysis=function(){function a(b){_classCallCheck(this,a),this.canvasId=b}return _createClass(a,[{key:"getPalette",value:function(a,c){var b=this,d=a.width,e=a.height,f=a.imgPath,h=a.maxColors,j=a.step;("undefined"==typeof h||2>h)&&(h=2),256<h&&(h=10),("undefined"==typeof j||1>j)&&(j=10);var g=uni.createCanvasContext(this.canvasId);g.drawImage(f,0,0,d,e),g.draw(!1,function(){uni.canvasGetImageData({canvasId:b.canvasId,x:0,y:0,width:d,height:e,success:function(f){for(var k,l,m,n,o,p=f.data,q=[],s=0;s<d*e;s+=j)k=4*s,l=p[k+0],m=p[k+1],n=p[k+2],o=p[k+3],125<=o&&!(250<l&&250<m&&250<n)&&q.push([l,m,n]);var t=MMCQ.quantize(q,h),u=t?t.palette():null;c&&c(u)}})})}}]),a}();export default ColorAnalysis;  
1 -/**  
2 - * 表单验证  
3 - * @author echo.  
4 - * @version 1.6.5  
5 - **/  
6 -  
7 -const form = {  
8 - //非必填情况下,如果值为空,则不进行校验  
9 - //当出现错误时返回错误消息,否则返回空即为验证通过  
10 - /*  
11 - formData:Object 表单对象。{key:value,key:value},key==rules.name  
12 - rules: Array [{name:name,rule:[],msg:[],validator:[],{name:name,rule:[],msg:[],validator:[]}]  
13 - name:name 属性=> 元素的名称  
14 - rule:字符串数组 ["required","isMobile","isEmail","isCarNo","isIdCard","isAmount","isNum","isChinese","isNotChinese","isEnglish",isEnAndNo","isSpecial","isEmoji",""isDate","isUrl","isSame:key","range:[1,9]","minLength:9","maxLength:Number","isKeyword:key1,key2,key3..."]  
15 - msg:数组 []。 与数组 rule 长度相同,对应的错误提示信息  
16 - validator:[{msg:'错误消息',method:Function}],自定义验证方法组,函数约定:(value)=>{ return true or false}  
17 - */  
18 - validation: function(formData, rules) {  
19 - for (let item of rules) {  
20 - let key = item.name;  
21 - let rule = item.rule;  
22 - let validator = item.validator;  
23 - let msgArr = item.msg;  
24 - if (!key || !rule || rule.length === 0 || !msgArr || msgArr.length === 0 || (!~rule.indexOf(  
25 - "required") && formData[key].toString()  
26 - .length === 0)) {  
27 - continue;  
28 - }  
29 - for (let i = 0, length = rule.length; i < length; i++) {  
30 - let ruleItem = rule[i];  
31 - let msg = msgArr[i];  
32 - if (!msg || !ruleItem) continue;  
33 - //数据处理  
34 - let value = null;  
35 - if (~ruleItem.indexOf(":")) {  
36 - let temp = ruleItem.split(":");  
37 - ruleItem = temp[0];  
38 - value = temp[1];  
39 - }  
40 - let isError = false;  
41 - switch (ruleItem) {  
42 - case "required":  
43 - isError = form._isNullOrEmpty(formData[key]);  
44 - break;  
45 - case "isMobile":  
46 - isError = !form._isMobile(formData[key]);  
47 - break;  
48 - case "isEmail":  
49 - isError = !form._isEmail(formData[key]);  
50 - break;  
51 - case "isCarNo":  
52 - isError = !form._isCarNo(formData[key]);  
53 - break;  
54 - case "isIdCard":  
55 - isError = !form._isIdCard(formData[key]);  
56 - break;  
57 - case "isAmount":  
58 - isError = !form._isAmount(formData[key]);  
59 - break;  
60 - case "isNum":  
61 - isError = !form._isNum(formData[key]);  
62 - break;  
63 - case "isChinese":  
64 - isError = !form._isChinese(formData[key]);  
65 - break;  
66 - case "isNotChinese":  
67 - isError = !form._isNotChinese(formData[key]);  
68 - break;  
69 - case "isEnglish":  
70 - isError = !form._isEnglish(formData[key]);  
71 - break;  
72 - case "isEnAndNo":  
73 - isError = !form._isEnAndNo(formData[key]);  
74 - break;  
75 - case "isEnOrNo":  
76 - isError = !form._isEnOrNo(formData[key]);  
77 - break;  
78 - case "isSpecial":  
79 - isError = form._isSpecial(formData[key]);  
80 - break;  
81 - case "isEmoji":  
82 - isError = form._isEmoji(formData[key]);  
83 - break;  
84 - case "isDate":  
85 - isError = !form._isDate(formData[key]);  
86 - break;  
87 - case "isUrl":  
88 - isError = !form._isUrl(formData[key]);  
89 - break;  
90 - case "isSame":  
91 - isError = !form._isSame(formData[key], formData[value]);  
92 - break;  
93 - case "range":  
94 - let range = null;  
95 - try {  
96 - range = JSON.parse(value);  
97 - if (range.length <= 1) {  
98 - throw new Error("range值传入有误!")  
99 - }  
100 - } catch (e) {  
101 - return "range值传入有误!"  
102 - }  
103 - isError = !form._isRange(formData[key], range[0], range[1])  
104 - break;  
105 - case "minLength":  
106 - isError = !form._minLength(formData[key], value)  
107 - break;  
108 - case "maxLength":  
109 - isError = !form._maxLength(formData[key], value)  
110 - break;  
111 - case "isKeyword":  
112 - isError = !form._isKeyword(formData[key], value)  
113 - break;  
114 - default:  
115 - break;  
116 - }  
117 -  
118 - if (isError) {  
119 - return msg;  
120 - }  
121 - }  
122 - if (validator && validator.length > 0) {  
123 - for (let model of validator) {  
124 - let func = model.method;  
125 - if (func && !func(formData[key])) {  
126 - return model.msg;  
127 - }  
128 - }  
129 - }  
130 - }  
131 - return "";  
132 - },  
133 - //允许填写字符串null或者undefined  
134 - _isNullOrEmpty: function(value) {  
135 - return (value === null || value === '' || value === undefined) ? true : false;  
136 - },  
137 - _isMobile: function(value) {  
138 - return /^(?:13\d|14\d|15\d|16\d|17\d|18\d|19\d)\d{5}(\d{3}|\*{3})$/.test(value);  
139 - },  
140 - _isEmail: function(value) {  
141 - return /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(value);  
142 - },  
143 - _isCarNo: function(value) {  
144 - // 新能源车牌  
145 - const xreg =  
146 - /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/;  
147 - // 旧车牌  
148 - const creg =  
149 - /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;  
150 - if (value.length === 7) {  
151 - return creg.test(value);  
152 - } else if (value.length === 8) {  
153 - return xreg.test(value);  
154 - } else {  
155 - return false;  
156 - }  
157 - },  
158 - _isIdCard: function(value) {  
159 - let idCard = value;  
160 - if (idCard.length == 15) {  
161 - return this.__isValidityBrithBy15IdCard;  
162 - } else if (idCard.length == 18) {  
163 - let arrIdCard = idCard.split("");  
164 - if (this.__isValidityBrithBy18IdCard(idCard) && this.__isTrueValidateCodeBy18IdCard(arrIdCard)) {  
165 - return true;  
166 - } else {  
167 - return false;  
168 - }  
169 - } else {  
170 - return false;  
171 - }  
172 - },  
173 - __isTrueValidateCodeBy18IdCard: function(arrIdCard) {  
174 - let sum = 0;  
175 - let Wi = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1];  
176 - let ValideCode = [1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2];  
177 - if (arrIdCard[17].toLowerCase() == 'x') {  
178 - arrIdCard[17] = 10;  
179 - }  
180 - for (let i = 0; i < 17; i++) {  
181 - sum += Wi[i] * arrIdCard[i];  
182 - }  
183 - let valCodePosition = sum % 11;  
184 - if (arrIdCard[17] == ValideCode[valCodePosition]) {  
185 - return true;  
186 - } else {  
187 - return false;  
188 - }  
189 - },  
190 - __isValidityBrithBy18IdCard: function(idCard18) {  
191 - let year = idCard18.substring(6, 10);  
192 - let month = idCard18.substring(10, 12);  
193 - let day = idCard18.substring(12, 14);  
194 - let temp_date = new Date(year, parseFloat(month) - 1, parseFloat(day));  
195 - if (temp_date.getFullYear() != parseFloat(year) || temp_date.getMonth() != parseFloat(month) - 1 ||  
196 - temp_date.getDate() !=  
197 - parseFloat(day)) {  
198 - return false;  
199 - } else {  
200 - return true;  
201 - }  
202 - },  
203 - __isValidityBrithBy15IdCard: function(idCard15) {  
204 - let year = idCard15.substring(6, 8);  
205 - let month = idCard15.substring(8, 10);  
206 - let day = idCard15.substring(10, 12);  
207 - let temp_date = new Date(year, parseFloat(month) - 1, parseFloat(day));  
208 -  
209 - if (temp_date.getYear() != parseFloat(year) || temp_date.getMonth() != parseFloat(month) - 1 ||  
210 - temp_date.getDate() !=  
211 - parseFloat(day)) {  
212 - return false;  
213 - } else {  
214 - return true;  
215 - }  
216 - },  
217 - _isAmount: function(value) {  
218 - //金额,只允许保留两位小数  
219 - return /^([0-9]*[.]?[0-9])[0-9]{0,1}$/.test(value);  
220 - },  
221 - _isNum: function(value) {  
222 - //只能为数字  
223 - return /^[0-9]+$/.test(value);  
224 - },  
225 - //是否全部为中文  
226 - _isChinese: function(value) {  
227 - let reg = /^[\u4e00-\u9fa5]+$/;  
228 - return value !== "" && reg.test(value) && !form._isSpecial(value) && !form._isEmoji(value)  
229 - },  
230 - //是否不包含中文,可以有特殊字符  
231 - _isNotChinese: function(value) {  
232 - let reg = /.*[\u4e00-\u9fa5]+.*$/;  
233 - let result = true;  
234 - if (reg.test(value)) {  
235 - result = false  
236 - }  
237 - return result  
238 - },  
239 - _isEnglish: function(value) {  
240 - return /^[a-zA-Z]*$/.test(value)  
241 - },  
242 - _isEnAndNo: function(value) {  
243 - //8~20位数字和字母组合  
244 - return /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/.test(value);  
245 - },  
246 - _isEnOrNo: function(value) {  
247 - //英文或者数字  
248 - let reg = /.*[\u4e00-\u9fa5]+.*$/;  
249 - let result = true;  
250 - if (reg.test(value) || form._isSpecial(value) || form._isEmoji(value)) {  
251 - result = false  
252 - }  
253 - return result  
254 - },  
255 - _isSpecial: function(value) {  
256 - //是否包含特殊字符  
257 - let regEn = /[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/im,  
258 - regCn = /[·!#¥(——):;“”‘、,|《。》?、【】[\]]/im;  
259 - if (regEn.test(value) || regCn.test(value)) {  
260 - return true;  
261 - }  
262 - return false;  
263 - },  
264 - _isEmoji: function(value) {  
265 - //是否包含表情  
266 - return /\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g.test(value);  
267 - },  
268 - _isDate: function(value) {  
269 - //2019-10-12  
270 - const reg =  
271 - /^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$/;  
272 - return reg.test(value);  
273 - },  
274 - _isUrl: function(value) {  
275 - return /^((https?|ftp|file):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})(:[0-9]{1,5})?((\/?)|(\/[\\\w_!~*\\'()\\\.;?:@&=+$,%#-]+)+\/?)$/.test(value);  
276 - },  
277 - _isSame: function(value1, value2) {  
278 - return value1 === value2  
279 - },  
280 - _isRange: function(value, range1, range2) {  
281 - if ((!range1 && range1 != 0) && (!range2 && range2 != 0)) {  
282 - return true;  
283 - } else if (!range1 && range1 != 0) {  
284 - return value <= range2  
285 - } else if (!range2 && range2 != 0) {  
286 - return value >= range1  
287 - } else {  
288 - return value >= range1 && value <= range2  
289 - }  
290 - },  
291 - _minLength: function(value, min) {  
292 - return value.length >= Number(min)  
293 - },  
294 - _maxLength: function(value, max) {  
295 - return value.length <= Number(max)  
296 - },  
297 - _isKeyword: function(value, keywords) {  
298 - //是否包含关键词,敏感词,多个以英文逗号分隔,包含则为false,弹出提示语!  
299 - let result = true;  
300 - if (!keywords) return result;  
301 - let key = keywords.split(',');  
302 - for (let i = 0, len = key.length; i < len; i++) {  
303 - if (~value.indexOf(key[i])) {  
304 - result = false;  
305 - break;  
306 - }  
307 - }  
308 - return result;  
309 - }  
310 -};  
311 -export default {  
312 - validation: form.validation  
313 -};  
1 -const form={validation:function(a,b){for(let c of b){let b=c.name,d=c.rule,e=c.msg;if(b&&d&&0!==d.length&&e&&0!==e.length)for(let c=0,f=d.length;c<f;c++){let f=d[c],g=e[c];if(!f||!g||!~d.indexOf("required")&&0===a[b].toString().length)continue;let h=null;if(~f.indexOf(":")){let a=f.split(":");f=a[0],h=a[1]}let i=!1;switch(f){case"required":i=form._isNullOrEmpty(a[b]);break;case"isMobile":i=!form._isMobile(a[b]);break;case"isEmail":i=!form._isEmail(a[b]);break;case"isCarNo":i=!form._isCarNo(a[b]);break;case"isIdCard":i=!form._isIdCard(a[b]);break;case"isAmount":i=!form._isAmount(a[b]);break;case"isNum":i=!form._isNum(a[b]);break;case"isChinese":i=!form._isChinese(a[b]);break;case"isEnglish":i=!form._isEnglish(a[b]);break;case"isEnAndNo":i=!form._isEnAndNo(a[b]);break;case"isEnOrNo":i=!form._isEnOrNo(a[b]);break;case"isSpecial":i=form._isSpecial(a[b]);break;case"isEmoji":i=form._isEmoji(a[b]);break;case"isDate":i=!form._isDate(a[b]);break;case"isUrl":i=!form._isUrl(a[b]);break;case"isSame":i=!form._isSame(a[b],a[h]);break;case"range":let c=null;try{if(c=JSON.parse(h),1>=c.length)throw new Error("range\u503C\u4F20\u5165\u6709\u8BEF\uFF01")}catch(a){return"range\u503C\u4F20\u5165\u6709\u8BEF\uFF01"}i=!form._isRange(a[b],c[0],c[1]);break;case"minLength":i=!form._minLength(a[b],h);break;case"maxLength":i=!form._maxLength(a[b],h);break;default:}if(i)return g}}return""},_isNullOrEmpty:function(a){return!(null!==a&&""!==a&&a!==void 0)},_isMobile:function(a){return /^(?:13\d|14\d|15\d|16\d|17\d|18\d|19\d)\d{5}(\d{3}|\*{3})$/.test(a)},_isEmail:function(a){return /^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(a)},_isCarNo:function(a){const b=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,c=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===a.length?c.test(a):8===a.length&&b.test(a)},_isIdCard:function(a){let b=a;if(15==b.length)return this.__isValidityBrithBy15IdCard;if(18==b.length){let a=b.split("");return!!(this.__isValidityBrithBy18IdCard(b)&&this.__isTrueValidateCodeBy18IdCard(a))}return!1},__isTrueValidateCodeBy18IdCard:function(a){let b=0,c=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1];"x"==a[17].toLowerCase()&&(a[17]=10);for(let d=0;17>d;d++)b+=c[d]*a[d];let d=b%11;return!(a[17]!=[1,0,10,9,8,7,6,5,4,3,2][d])},__isValidityBrithBy18IdCard:function(a){let b=a.substring(6,10),c=a.substring(10,12),d=a.substring(12,14),e=new Date(b,parseFloat(c)-1,parseFloat(d));return e.getFullYear()==parseFloat(b)&&e.getMonth()==parseFloat(c)-1&&e.getDate()==parseFloat(d)},__isValidityBrithBy15IdCard:function(a){let b=a.substring(6,8),c=a.substring(8,10),d=a.substring(10,12),e=new Date(b,parseFloat(c)-1,parseFloat(d));return e.getYear()==parseFloat(b)&&e.getMonth()==parseFloat(c)-1&&e.getDate()==parseFloat(d)},_isAmount:function(a){return /^([0-9]*[.]?[0-9])[0-9]{0,1}$/.test(a)},_isNum:function(a){return /^[0-9]+$/.test(a)},_isChinese:function(a){let b=/.*[\u4e00-\u9fa5]+.*$/;return""!==a&&b.test(a)&&!form._isSpecial(a)&&!form._isEmoji(a)},_isEnglish:function(a){return /^[a-zA-Z]*$/.test(a)},_isEnAndNo:function(a){return /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,20}$/.test(a)},_isEnOrNo:function(a){let b=/.*[\u4e00-\u9fa5]+.*$/,c=!0;return(b.test(a)||form._isSpecial(a)||form._isEmoji(a))&&(c=!1),c},_isSpecial:function(a){let b=/[`~!@#$%^&*()_+<>?:"{},.\/;'[\]]/im,c=/[·!#¥(——):;“”‘、,|《。》?、【】[\]]/im;return!!(b.test(a)||c.test(a))},_isEmoji:function(a){return /\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g.test(a)},_isDate:function(a){const b=/^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$/;return b.test(a)},_isUrl:function(a){return /^((https?|ftp|file):\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/.test(a)},_isSame:function(a,b){return a===b},_isRange:function(a,b,c){return!(b||0==b||c||0==c)||(b||0==b?c||0==c?a>=b&&a<=c:a>=b:a<=c)},_minLength:function(a,b){return a.length>=+b},_maxLength:function(a,b){return a.length<=+b}};module.exports={validation:form.validation};  
1 -var _createClass=function(){function L(Y,Z){for(var e=0;e<Z.length;e++){var L=Z[e];L.enumerable=L.enumerable||false;L.configurable=true;if("value"in L)L.writable=true;Object.defineProperty(Y,L.key,L)}}return function(Y,Z,e){if(Z)L(Y.prototype,Z);if(e)L(Y,e);return Y}}();var _polyphone;function _classCallCheck(Y,Z){if(!(Y instanceof Z)){throw new TypeError("Cannot call a class as a function")}}function _defineProperty(Y,Z,e){if(Z in Y){Object.defineProperty(Y,Z,{value:e,enumerable:true,configurable:true,writable:true})}else{Y[Z]=e}return Y}var _private={charsDict:"YDYQSXMWZSSXJBYMGCCZQPSSQBYCDSCDQLDYLYBSSJGYZZJJFKCCLZDHWDWZJLJPFYYNWJJTMYHZWZHFLZPPQHGSCYYYNJQYXXGJHHSDSJNKKTMOMLCRXYPSNQSECCQZGGLLYJLMYZZSECYKYYHQWJSSGGYXYZYJWWKDJHYCHMYXJTLXJYQBYXZLDWRDJRWYSRLDZJPCBZJJBRCFTLECZSTZFXXZHTRQHYBDLYCZSSYMMRFMYQZPWWJJYFCRWFDFZQPYDDWYXKYJAWJFFXYPSFTZYHHYZYSWCJYXSCLCXXWZZXNBGNNXBXLZSZSBSGPYSYZDHMDZBQBZCWDZZYYTZHBTSYYBZGNTNXQYWQSKBPHHLXGYBFMJEBJHHGQTJCYSXSTKZHLYCKGLYSMZXYALMELDCCXGZYRJXSDLTYZCQKCNNJWHJTZZCQLJSTSTBNXBTYXCEQXGKWJYFLZQLYHYXSPSFXLMPBYSXXXYDJCZYLLLSJXFHJXPJBTFFYABYXBHZZBJYZLWLCZGGBTSSMDTJZXPTHYQTGLJSCQFZKJZJQNLZWLSLHDZBWJNCJZYZSQQYCQYRZCJJWYBRTWPYFTWEXCSKDZCTBZHYZZYYJXZCFFZZMJYXXSDZZOTTBZLQWFCKSZSXFYRLNYJMBDTHJXSQQCCSBXYYTSYFBXDZTGBCNSLCYZZPSAZYZZSCJCSHZQYDXLBPJLLMQXTYDZXSQJTZPXLCGLQT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MGRXXZCLHNELJJTJTPWJYBJJBXJJTJTEEKHWSLJPLPSFYZPQQBDLQJJTYYQLYZKDKSQJYYQZLDQTGJQYZJSUCMRYQTHTEJMFCTYHYPKMHYZWJDQFHYYXWSHCTXRLJHQXHCCYYYJLTKTTYTMXGTCJTZAYYOCZLYLBSZYWJYTSJYHBYSHFJLYGJXXTMZYYLTXXYPZLXYJZYZYYPNHMYMDYYLBLHLSYYQQLLNJJYMSOYQBZGDLYXYLCQYXTSZEGXHZGLHWBLJHEYXTWQMAKBPQCGYSHHEGQCMWYYWLJYJHYYZLLJJYLHZYHMGSLJLJXCJJYCLYCJPCPZJZJMMYLCQLNQLJQJSXYJMLSZLJQLYCMMHCFMMFPQQMFYLQMCFFQMMMMHMZNFHHJGTTHHKHSLNCHHYQDXTMMQDCYZYXYQMYQYLTDCYYYZAZZCYMZYDLZFFFMMYCQZWZZMABTBYZTDMNZZGGDFTYPCGQYTTSSFFWFDTZQSSYSTWXJHXYTSXXYLBYQHWWKXHZXWZNNZZJZJJQJCCCHYYXBZXZCYZTLLCQXYNJYCYYCYNZZQYYYEWYCZDCJYCCHYJLBTZYYCQWMPWPYMLGKDLDLGKQQBGYCHJXY",fullDict:{a:"啊阿锕",ai:"埃挨哎唉哀皑癌蔼矮艾碍爱隘诶捱嗳嗌嫒瑷暧砹锿霭",an:"鞍氨安俺按暗岸胺案谙埯揞犴庵桉铵鹌顸黯",ang:"肮昂盎",ao:"凹敖熬翱袄傲奥懊澳坳拗嗷噢岙廒遨媪骜聱螯鏊鳌鏖",ba:"芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸茇菝萆捭岜灞杷钯粑鲅魃",bai:"白柏百摆佰败拜稗薜掰鞴",ban:"斑班搬扳般颁板版扮拌伴瓣半办绊阪坂豳钣瘢癍舨",bang:"邦帮梆榜膀绑棒磅蚌镑傍谤蒡螃",bao:"苞胞包褒雹保堡饱宝抱报暴豹鲍爆勹葆宀孢煲鸨褓趵龅",bo:"剥薄玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳亳蕃啵饽檗擘礴钹鹁簸跛",bei:"杯碑悲卑北辈背贝钡倍狈备惫焙被孛陂邶埤蓓呗怫悖碚鹎褙鐾",ben:"奔苯本笨畚坌锛",beng:"崩绷甭泵蹦迸唪嘣甏",bi:"逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛匕仳俾芘荜荸吡哔狴庳愎滗濞弼妣婢嬖璧贲畀铋秕裨筚箅篦舭襞跸髀",bian:"鞭边编贬扁便变卞辨辩辫遍匾弁苄忭汴缏煸砭碥稹窆蝙笾鳊",biao:"标彪膘表婊骠飑飙飚灬镖镳瘭裱鳔",bie:"鳖憋别瘪蹩鳘",bin:"彬斌濒滨宾摈傧浜缤玢殡膑镔髌鬓",bing:"兵冰柄丙秉饼炳病并禀邴摒绠枋槟燹",bu:"捕卜哺补埠不布步簿部怖拊卟逋瓿晡钚醭",ca:"擦嚓礤",cai:"猜裁材才财睬踩采彩菜蔡",can:"餐参蚕残惭惨灿骖璨粲黪",cang:"苍舱仓沧藏伧",cao:"操糙槽曹草艹嘈漕螬艚",ce:"厕策侧册测刂帻恻",ceng:"层蹭噌",cha:"插叉茬茶查碴搽察岔差诧猹馇汊姹杈楂槎檫钗锸镲衩",chai:"拆柴豺侪茈瘥虿龇",chan:"搀掺蝉馋谗缠铲产阐颤冁谄谶蒇廛忏潺澶孱羼婵嬗骣觇禅镡裣蟾躔",chang:"昌猖场尝常长偿肠厂敞畅唱倡伥鬯苌菖徜怅惝阊娼嫦昶氅鲳",chao:"超抄钞朝嘲潮巢吵炒怊绉晁耖",che:"车扯撤掣彻澈坼屮砗",chen:"郴臣辰尘晨忱沉陈趁衬称谌抻嗔宸琛榇肜胂碜龀",cheng:"撑城橙成呈乘程惩澄诚承逞骋秤埕嵊徵浈枨柽樘晟塍瞠铖裎蛏酲",chi:"吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽傺墀芪茌搋叱哧啻嗤彳饬沲媸敕胝眙眵鸱瘛褫蚩螭笞篪豉踅踟魑",chong:"充冲虫崇宠茺忡憧铳艟",chou:"抽酬畴踌稠愁筹仇绸瞅丑俦圳帱惆溴妯瘳雠鲋",chu:"臭初出橱厨躇锄雏滁除楚础储矗搐触处亍刍憷绌杵楮樗蜍蹰黜",chuan:"揣川穿椽传船喘串掾舛惴遄巛氚钏镩舡",chuang:"疮窗幢床闯创怆",chui:"吹炊捶锤垂陲棰槌",chun:"春椿醇唇淳纯蠢促莼沌肫朐鹑蝽",chuo:"戳绰蔟辶辍镞踔龊",ci:"疵茨磁雌辞慈瓷词此刺赐次荠呲嵯鹚螅糍趑",cong:"聪葱囱匆从丛偬苁淙骢琮璁枞",cu:"凑粗醋簇猝殂蹙",cuan:"蹿篡窜汆撺昕爨",cui:"摧崔催脆瘁粹淬翠萃悴璀榱隹",cun:"村存寸磋忖皴",cuo:"撮搓措挫错厝脞锉矬痤鹾蹉躜",da:"搭达答瘩打大耷哒嗒怛妲疸褡笪靼鞑",dai:"呆歹傣戴带殆代贷袋待逮怠埭甙呔岱迨逯骀绐玳黛",dan:"耽担丹单郸掸胆旦氮但惮淡诞弹蛋亻儋卩萏啖澹檐殚赕眈瘅聃箪",dang:"当挡党荡档谠凼菪宕砀铛裆",dao:"刀捣蹈倒岛祷导到稻悼道盗叨啁忉洮氘焘忑纛",de:"德得的锝",deng:"蹬灯登等瞪凳邓噔嶝戥磴镫簦",di:"堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔氐籴诋谛邸坻莜荻嘀娣柢棣觌砥碲睇镝羝骶",dian:"颠掂滇碘点典靛垫电佃甸店惦奠淀殿丶阽坫埝巅玷癜癫簟踮",diao:"碉叼雕凋刁掉吊钓调轺铞蜩粜貂",die:"跌爹碟蝶迭谍叠佚垤堞揲喋渫轶牒瓞褶耋蹀鲽鳎",ding:"丁盯叮钉顶鼎锭定订丢仃啶玎腚碇町铤疔耵酊",dong:"东冬董懂动栋侗恫冻洞垌咚岽峒夂氡胨胴硐鸫",dou:"兜抖斗陡豆逗痘蔸钭窦窬蚪篼酡",du:"都督毒犊独读堵睹赌杜镀肚度渡妒芏嘟渎椟橐牍蠹笃髑黩",duan:"端短锻段断缎彖椴煅簖",dui:"堆兑队对怼憝碓",dun:"墩吨蹲敦顿囤钝盾遁炖砘礅盹镦趸",duo:"掇哆多夺垛躲朵跺舵剁惰堕咄哚缍柁铎裰踱",e:"蛾峨鹅俄额讹娥恶厄扼遏鄂饿噩谔垩垭苊莪萼呃愕屙婀轭曷腭硪锇锷鹗颚鳄",en:"恩蒽摁唔嗯",er:"而儿耳尔饵洱二贰迩珥铒鸸鲕",fa:"发罚筏伐乏阀法珐垡砝",fan:"藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛蘩幡犭梵攵燔畈蹯",fang:"坊芳方肪房防妨仿访纺放匚邡彷钫舫鲂",fei:"菲非啡飞肥匪诽吠肺废沸费芾狒悱淝妃绋绯榧腓斐扉祓砩镄痱蜚篚翡霏鲱",fen:"芬酚吩氛分纷坟焚汾粉奋份忿愤粪偾瀵棼愍鲼鼢",feng:"丰封枫蜂峰锋风疯烽逢冯缝讽奉凤俸酆葑沣砜",fu:"佛否夫敷肤孵扶拂辐幅氟符伏俘服浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐匐凫郛芙苻茯莩菔呋幞滏艴孚驸绂桴赙黻黼罘稃馥虍蚨蜉蝠蝮麸趺跗鳆",ga:"噶嘎蛤尬呷尕尜旮钆",gai:"该改概钙盖溉丐陔垓戤赅胲",gan:"干甘杆柑竿肝赶感秆敢赣坩苷尴擀泔淦澉绀橄旰矸疳酐",gang:"冈刚钢缸肛纲岗港戆罡颃筻",gong:"杠工攻功恭龚供躬公宫弓巩汞拱贡共蕻廾咣珙肱蚣蛩觥",gao:"篙皋高膏羔糕搞镐稿告睾诰郜蒿藁缟槔槁杲锆",ge:"哥歌搁戈鸽胳疙割革葛格阁隔铬个各鬲仡哿塥嗝纥搿膈硌铪镉袼颌虼舸骼髂",gei:"给",gen:"根跟亘茛哏艮",geng:"耕更庚羹埂耿梗哽赓鲠",gou:"钩勾沟苟狗垢构购够佝诟岣遘媾缑觏彀鸲笱篝鞲",gu:"辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇嘏诂菰哌崮汩梏轱牯牿胍臌毂瞽罟钴锢瓠鸪鹄痼蛄酤觚鲴骰鹘",gua:"刮瓜剐寡挂褂卦诖呱栝鸹",guai:"乖拐怪哙",guan:"棺关官冠观管馆罐惯灌贯倌莞掼涫盥鹳鳏",guang:"光广逛犷桄胱疒",gui:"瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽匦刿庋宄妫桧炅晷皈簋鲑鳜",gun:"辊滚棍丨衮绲磙鲧",guo:"锅郭国果裹过馘蠃埚掴呙囗帼崞猓椁虢锞聒蜮蜾蝈",ha:"哈",hai:"骸孩海氦亥害骇咴嗨颏醢",han:"酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉邗菡撖阚瀚晗焓颔蚶鼾",hen:"夯痕很狠恨",hang:"杭航沆绗珩桁",hao:"壕嚎豪毫郝好耗号浩薅嗥嚆濠灏昊皓颢蚝",he:"呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺诃劾壑藿嗑嗬阖盍蚵翮",hei:"嘿黑",heng:"哼亨横衡恒訇蘅",hong:"轰哄烘虹鸿洪宏弘红黉讧荭薨闳泓",hou:"喉侯猴吼厚候后堠後逅瘊篌糇鲎骺",hu:"呼乎忽瑚壶葫胡蝴狐糊湖弧虎唬护互沪户冱唿囫岵猢怙惚浒滹琥槲轷觳烀煳戽扈祜鹕鹱笏醐斛",hua:"花哗华猾滑画划化话劐浍骅桦铧稞",huai:"槐徊怀淮坏还踝",huan:"欢环桓缓换患唤痪豢焕涣宦幻郇奂垸擐圜洹浣漶寰逭缳锾鲩鬟",huang:"荒慌黄磺蝗簧皇凰惶煌晃幌恍谎隍徨湟潢遑璜肓癀蟥篁鳇",hui:"灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘诙茴荟蕙哕喙隳洄彗缋珲晖恚虺蟪麾",hun:"荤昏婚魂浑混诨馄阍溷缗",huo:"豁活伙火获或惑霍货祸攉嚯夥钬锪镬耠蠖",ji:"击圾基机畸稽积箕肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪居丌乩剞佶佴脔墼芨芰萁蒺蕺掎叽咭哜唧岌嵴洎彐屐骥畿玑楫殛戟戢赍觊犄齑矶羁嵇稷瘠瘵虮笈笄暨跻跽霁鲚鲫髻麂",jia:"嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁伽郏拮岬浃迦珈戛胛恝铗镓痂蛱笳袈跏",jian:"歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件健舰剑饯渐溅涧建僭谏谫菅蒹搛囝湔蹇謇缣枧柙楗戋戬牮犍毽腱睑锏鹣裥笕箴翦趼踺鲣鞯",jiang:"僵姜将浆江疆蒋桨奖讲匠酱降茳洚绛缰犟礓耩糨豇",jiao:"蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫佼僬茭挢噍峤徼姣纟敫皎鹪蛟醮跤鲛",jie:"窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届偈讦诘喈嗟獬婕孑桀獒碣锴疖袷颉蚧羯鲒骱髫",jin:"巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸尽卺荩堇噤馑廑妗缙瑾槿赆觐钅锓衿矜",jing:"劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净刭儆阱菁獍憬泾迳弪婧肼胫腈旌",jiong:"炯窘冂迥扃",jiu:"揪究纠玖韭久灸九酒厩救旧臼舅咎就疚僦啾阄柩桕鹫赳鬏",ju:"鞠拘狙疽驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧倨讵苣苴莒掬遽屦琚枸椐榘榉橘犋飓钜锔窭裾趄醵踽龃雎鞫",juan:"捐鹃娟倦眷卷绢鄄狷涓桊蠲锩镌隽",jue:"撅攫抉掘倔爵觉决诀绝厥劂谲矍蕨噘崛獗孓珏桷橛爝镢蹶觖",jun:"均菌钧军君峻俊竣浚郡骏捃狻皲筠麇",ka:"喀咖卡佧咔胩",ke:"咯坷苛柯棵磕颗科壳咳可渴克刻客课岢恪溘骒缂珂轲氪瞌钶疴窠蝌髁",kai:"开揩楷凯慨剀垲蒈忾恺铠锎",kan:"刊堪勘坎砍看侃凵莰莶戡龛瞰",kang:"康慷糠扛抗亢炕坑伉闶钪",kao:"考拷烤靠尻栲犒铐",ken:"肯啃垦恳垠裉颀",keng:"吭忐铿",kong:"空恐孔控倥崆箜",kou:"抠口扣寇芤蔻叩眍筘",ku:"枯哭窟苦酷库裤刳堀喾绔骷",kua:"夸垮挎跨胯侉",kuai:"块筷侩快蒯郐蒉狯脍",kuan:"宽款髋",kuang:"匡筐狂框矿眶旷况诓诳邝圹夼哐纩贶",kui:"亏盔岿窥葵奎魁傀馈愧溃馗匮夔隗揆喹喟悝愦阕逵暌睽聩蝰篑臾跬",kun:"坤昆捆困悃阃琨锟醌鲲髡",kuo:"括扩廓阔蛞",la:"垃拉喇蜡腊辣啦剌摺邋旯砬瘌",lai:"莱来赖崃徕涞濑赉睐铼癞籁",lan:"蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥啉岚懔漤榄斓罱镧褴",lang:"琅榔狼廊郎朗浪莨蒗啷阆锒稂螂",lao:"捞劳牢老佬姥酪烙涝唠崂栳铑铹痨醪",le:"勒乐肋仂叻嘞泐鳓",lei:"雷镭蕾磊累儡垒擂类泪羸诔荽咧漯嫘缧檑耒酹",ling:"棱冷拎玲菱零龄铃伶羚凌灵陵岭领另令酃塄苓呤囹泠绫柃棂瓴聆蛉翎鲮",leng:"楞愣",li:"厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐痢立粒沥隶力璃哩俪俚郦坜苈莅蓠藜捩呖唳喱猁溧澧逦娌嫠骊缡珞枥栎轹戾砺詈罹锂鹂疠疬蛎蜊蠡笠篥粝醴跞雳鲡鳢黧",lian:"俩联莲连镰廉怜涟帘敛脸链恋炼练挛蔹奁潋濂娈琏楝殓臁膦裢蠊鲢",liang:"粮凉梁粱良两辆量晾亮谅墚椋踉靓魉",liao:"撩聊僚疗燎寥辽潦了撂镣廖料蓼尥嘹獠寮缭钌鹩耢",lie:"列裂烈劣猎冽埒洌趔躐鬣",lin:"琳林磷霖临邻鳞淋凛赁吝蔺嶙廪遴檩辚瞵粼躏麟",liu:"溜琉榴硫馏留刘瘤流柳六抡偻蒌泖浏遛骝绺旒熘锍镏鹨鎏",long:"龙聋咙笼窿隆垄拢陇弄垅茏泷珑栊胧砻癃",lou:"楼娄搂篓漏陋喽嵝镂瘘耧蝼髅",lu:"芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮垆摅撸噜泸渌漉璐栌橹轳辂辘氇胪镥鸬鹭簏舻鲈",lv:"驴吕铝侣旅履屡缕虑氯律率滤绿捋闾榈膂稆褛",luan:"峦孪滦卵乱栾鸾銮",lue:"掠略锊",lun:"轮伦仑沦纶论囵",luo:"萝螺罗逻锣箩骡裸落洛骆络倮荦摞猡泺椤脶镙瘰雒",ma:"妈麻玛码蚂马骂嘛吗唛犸嬷杩麽",mai:"埋买麦卖迈脉劢荬咪霾",man:"瞒馒蛮满蔓曼慢漫谩墁幔缦熳镘颟螨鳗鞔",mang:"芒茫盲忙莽邙漭朦硭蟒",meng:"氓萌蒙檬盟锰猛梦孟勐甍瞢懵礞虻蜢蠓艋艨黾",miao:"猫苗描瞄藐秒渺庙妙喵邈缈缪杪淼眇鹋蜱",mao:"茅锚毛矛铆卯茂冒帽貌贸侔袤勖茆峁瑁昴牦耄旄懋瞀蛑蝥蟊髦",me:"么",mei:"玫枚梅酶霉煤没眉媒镁每美昧寐妹媚坶莓嵋猸浼湄楣镅鹛袂魅",men:"门闷们扪玟焖懑钔",mi:"眯醚靡糜迷谜弥米秘觅泌蜜密幂芈冖谧蘼嘧猕獯汨宓弭脒敉糸縻麋",mian:"棉眠绵冕免勉娩缅面沔湎腼眄",mie:"蔑灭咩蠛篾",min:"民抿皿敏悯闽苠岷闵泯珉",ming:"明螟鸣铭名命冥茗溟暝瞑酩",miu:"谬",mo:"摸摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谟茉蓦馍嫫镆秣瘼耱蟆貊貘",mou:"谋牟某厶哞婺眸鍪",mu:"拇牡亩姆母墓暮幕募慕木目睦牧穆仫苜呒沐毪钼",na:"拿哪呐钠那娜纳内捺肭镎衲箬",nai:"氖乃奶耐奈鼐艿萘柰",nan:"南男难囊喃囡楠腩蝻赧",nao:"挠脑恼闹孬垴猱瑙硇铙蛲",ne:"淖呢讷",nei:"馁",nen:"嫩能枘恁",ni:"妮霓倪泥尼拟你匿腻逆溺伲坭猊怩滠昵旎祢慝睨铌鲵",nian:"蔫拈年碾撵捻念廿辇黏鲇鲶",niang:"娘酿",niao:"鸟尿茑嬲脲袅",nie:"捏聂孽啮镊镍涅乜陧蘖嗫肀颞臬蹑",nin:"您柠",ning:"狞凝宁拧泞佞蓥咛甯聍",niu:"牛扭钮纽狃忸妞蚴",nong:"脓浓农侬",nu:"奴努怒呶帑弩胬孥驽",nv:"女恧钕衄",nuan:"暖",nuenue:"虐",nue:"疟谑",nuo:"挪懦糯诺傩搦喏锘",ou:"哦欧鸥殴藕呕偶沤怄瓯耦",pa:"啪趴爬帕怕琶葩筢",pai:"拍排牌徘湃派俳蒎",pan:"攀潘盘磐盼畔判叛爿泮袢襻蟠蹒",pang:"乓庞旁耪胖滂逄",pao:"抛咆刨炮袍跑泡匏狍庖脬疱",pei:"呸胚培裴赔陪配佩沛掊辔帔淠旆锫醅霈",pen:"喷盆湓",peng:"砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯堋嘭怦蟛",pi:"砒霹批披劈琵毗啤脾疲皮匹痞僻屁譬丕陴邳郫圮鼙擗噼庀媲纰枇甓睥罴铍痦癖疋蚍貔",pian:"篇偏片骗谝骈犏胼褊翩蹁",piao:"飘漂瓢票剽嘌嫖缥殍瞟螵",pie:"撇瞥丿苤氕",pin:"拼频贫品聘拚姘嫔榀牝颦",ping:"乒坪苹萍平凭瓶评屏俜娉枰鲆",po:"坡泼颇婆破魄迫粕叵鄱溥珀钋钷皤笸",pou:"剖裒踣",pu:"扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑匍噗濮璞氆镤镨蹼",qi:"期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫亟亓圻芑萋葺嘁屺岐汔淇骐绮琪琦杞桤槭欹祺憩碛蛴蜞綦綮趿蹊鳍麒",qia:"掐恰洽葜",qian:"牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉佥阡芊芡荨掮岍悭慊骞搴褰缱椠肷愆钤虔箝",qiang:"枪呛腔羌墙蔷强抢嫱樯戗炝锖锵镪襁蜣羟跫跄",qiao:"橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍劁诮谯荞愀憔缲樵毳硗跷鞒",qie:"切茄且怯窃郄唼惬妾挈锲箧",qin:"钦侵亲秦琴勤芹擒禽寝沁芩蓁蕲揿吣嗪噙溱檎螓衾",qing:"青轻氢倾卿清擎晴氰情顷请庆倩苘圊檠磬蜻罄箐謦鲭黥",qiong:"琼穷邛茕穹筇銎",qiu:"秋丘邱球求囚酋泅俅氽巯艽犰湫逑遒楸赇鸠虬蚯蝤裘糗鳅鼽",qu:"趋区蛆曲躯屈驱渠取娶龋趣去诎劬蕖蘧岖衢阒璩觑氍祛磲癯蛐蠼麴瞿黢",quan:"圈颧权醛泉全痊拳犬券劝诠荃獾悛绻辁畎铨蜷筌鬈",que:"缺炔瘸却鹊榷确雀阙悫",qun:"裙群逡",ran:"然燃冉染苒髯",rang:"瓤壤攘嚷让禳穰",rao:"饶扰绕荛娆桡",ruo:"惹若弱",re:"热偌",ren:"壬仁人忍韧任认刃妊纫仞荏葚饪轫稔衽",reng:"扔仍",ri:"日",rong:"戎茸蓉荣融熔溶容绒冗嵘狨缛榕蝾",rou:"揉柔肉糅蹂鞣",ru:"茹蠕儒孺如辱乳汝入褥蓐薷嚅洳溽濡铷襦颥",ruan:"软阮朊",rui:"蕊瑞锐芮蕤睿蚋",run:"闰润",sa:"撒洒萨卅仨挲飒",sai:"腮鳃塞赛噻",san:"三叁伞散彡馓氵毵糁霰",sang:"桑嗓丧搡磉颡",sao:"搔骚扫嫂埽臊瘙鳋",se:"瑟色涩啬铩铯穑",sen:"森",seng:"僧",sha:"莎砂杀刹沙纱傻啥煞脎歃痧裟霎鲨",shai:"筛晒酾",shan:"珊苫杉山删煽衫闪陕擅赡膳善汕扇缮剡讪鄯埏芟潸姗骟膻钐疝蟮舢跚鳝",shang:"墒伤商赏晌上尚裳垧绱殇熵觞",shao:"梢捎稍烧芍勺韶少哨邵绍劭苕潲蛸笤筲艄",she:"奢赊蛇舌舍赦摄射慑涉社设厍佘猞畲麝",shen:"砷申呻伸身深娠绅神沈审婶甚肾慎渗诜谂吲哂渖椹矧蜃",sheng:"声生甥牲升绳省盛剩胜圣丞渑媵眚笙",shi:"师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试谥埘莳蓍弑唑饣轼耆贳炻礻铈铊螫舐筮豕鲥鲺",shou:"收手首守寿授售受瘦兽扌狩绶艏",shu:"蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱恕倏塾菽忄沭涑澍姝纾毹腧殳镯秫鹬",shua:"刷耍唰涮",shuai:"摔衰甩帅蟀",shuan:"栓拴闩",shuang:"霜双爽孀",shui:"谁水睡税",shun:"吮瞬顺舜恂",shuo:"说硕朔烁蒴搠嗍濯妁槊铄",si:"斯撕嘶思私司丝死肆寺嗣四伺似饲巳厮俟兕菥咝汜泗澌姒驷缌祀祠锶鸶耜蛳笥",song:"松耸怂颂送宋讼诵凇菘崧嵩忪悚淞竦",sou:"搜艘擞嗽叟嗖嗾馊溲飕瞍锼螋",su:"苏酥俗素速粟僳塑溯宿诉肃夙谡蔌嗉愫簌觫稣",suan:"酸蒜算",sui:"虽隋随绥髓碎岁穗遂隧祟蓑冫谇濉邃燧眭睢",sun:"孙损笋荪狲飧榫跣隼",suo:"梭唆缩琐索锁所唢嗦娑桫睃羧",ta:"塌他它她塔獭挞蹋踏闼溻遢榻沓",tai:"胎苔抬台泰酞太态汰邰薹肽炱钛跆鲐",tan:"坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭郯蕈昙钽锬覃",tang:"汤塘搪堂棠膛唐糖傥饧溏瑭铴镗耥螗螳羰醣",thang:"倘躺淌",theng:"趟烫",tao:"掏涛滔绦萄桃逃淘陶讨套挑鼗啕韬饕",te:"特",teng:"藤腾疼誊滕",ti:"梯剔踢锑提题蹄啼体替嚏惕涕剃屉荑悌逖绨缇鹈裼醍",tian:"天添填田甜恬舔腆掭忝阗殄畋钿蚺",tiao:"条迢眺跳佻祧铫窕龆鲦",tie:"贴铁帖萜餮",ting:"厅听烃汀廷停亭庭挺艇莛葶婷梃蜓霆",tong:"通桐酮瞳同铜彤童桶捅筒统痛佟僮仝茼嗵恸潼砼",tou:"偷投头透亠",tu:"凸秃突图徒途涂屠土吐兔堍荼菟钍酴",tuan:"湍团疃",tui:"推颓腿蜕褪退忒煺",tun:"吞屯臀饨暾豚窀",tuo:"拖托脱鸵陀驮驼椭妥拓唾乇佗坨庹沱柝砣箨舄跎鼍",wa:"挖哇蛙洼娃瓦袜佤娲腽",wai:"歪外",wan:"豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕剜芄苋菀纨绾琬脘畹蜿箢",wang:"汪王亡枉网往旺望忘妄罔尢惘辋魍",wei:"威巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫倭偎诿隈葳薇帏帷崴嵬猥猬闱沩洧涠逶娓玮韪軎炜煨熨痿艉鲔",wen:"瘟温蚊文闻纹吻稳紊问刎愠阌汶璺韫殁雯",weng:"嗡翁瓮蓊蕹",wo:"挝蜗涡窝我斡卧握沃莴幄渥杌肟龌",wu:"巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误兀仵阢邬圬芴庑怃忤浯寤迕妩骛牾焐鹉鹜蜈鋈鼯",xi:"昔熙析西硒矽晰嘻吸锡牺稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细僖兮隰郗茜葸蓰奚唏徙饩阋浠淅屣嬉玺樨曦觋欷熹禊禧钸皙穸蜥蟋舾羲粞翕醯鼷",xia:"瞎虾匣霞辖暇峡侠狭下厦夏吓掀葭嗄狎遐瑕硖瘕罅黠",xian:"锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线冼藓岘猃暹娴氙祆鹇痫蚬筅籼酰跹",xiang:"相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象芗葙饷庠骧缃蟓鲞飨",xiao:"萧硝霄削哮嚣销消宵淆晓小孝校肖啸笑效哓咻崤潇逍骁绡枭枵筱箫魈",xie:"楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑偕亵勰燮薤撷廨瀣邂绁缬榭榍歙躞",xin:"薪芯锌欣辛新忻心信衅囟馨莘歆铽鑫",xing:"星腥猩惺兴刑型形邢行醒幸杏性姓陉荇荥擤悻硎",xiong:"兄凶胸匈汹雄熊芎",xiu:"休修羞朽嗅锈秀袖绣莠岫馐庥鸺貅髹",xu:"墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续讴诩圩蓿怵洫溆顼栩煦砉盱胥糈醑",xuan:"轩喧宣悬旋玄选癣眩绚儇谖萱揎馔泫洵渲漩璇楦暄炫煊碹铉镟痃",xue:"靴薛学穴雪血噱泶鳕",xun:"勋熏循旬询寻驯巡殉汛训讯逊迅巽埙荀薰峋徇浔曛窨醺鲟",ya:"压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶伢揠吖岈迓娅琊桠氩砑睚痖",yan:"焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验厣靥赝俨偃兖讠谳郾鄢芫菸崦恹闫阏洇湮滟妍嫣琰晏胭腌焱罨筵酽魇餍鼹",yang:"殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾徉怏泱炀烊恙蛘鞅",yao:"邀腰妖瑶摇尧遥窑谣姚咬舀药要耀夭爻吆崾徭瀹幺珧杳曜肴鹞窈繇鳐",ye:"椰噎耶爷野冶也页掖业叶曳腋夜液谒邺揶馀晔烨铘",yi:"一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎刈劓佾诒圪圯埸懿苡薏弈奕挹弋呓咦咿噫峄嶷猗饴怿怡悒漪迤驿缢殪贻旖熠钇镒镱痍瘗癔翊衤蜴舣羿翳酏黟",yin:"茵荫因殷音阴姻吟银淫寅饮尹引隐印胤鄞堙茚喑狺夤氤铟瘾蚓霪龈",ying:"英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映嬴郢茔莺萦撄嘤膺滢潆瀛瑛璎楹鹦瘿颍罂",yo:"哟唷",yong:"拥佣臃痈庸雍踊蛹咏泳涌永恿勇用俑壅墉慵邕镛甬鳙饔",you:"幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼卣攸侑莸呦囿宥柚猷牖铕疣蝣鱿黝鼬",yu:"迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉浴寓裕预豫驭禺毓伛俣谀谕萸蓣揄喁圄圉嵛狳饫庾阈妪妤纡瑜昱觎腴欤於煜燠聿钰鹆瘐瘀窳蝓竽舁雩龉",yuan:"鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院塬沅媛瑗橼爰眢鸢螈鼋",yue:"曰约越跃钥岳粤月悦阅龠樾刖钺",yun:"耘云郧匀陨允运蕴酝晕韵孕郓芸狁恽纭殒昀氲",za:"匝砸杂拶咂",zai:"栽哉灾宰载再在咱崽甾",zan:"攒暂赞瓒昝簪糌趱錾",zang:"赃脏葬奘戕臧",zao:"遭糟凿藻枣早澡蚤躁噪造皂灶燥唣缫",ze:"责择则泽仄赜啧迮昃笮箦舴",zei:"贼",zen:"怎谮",zeng:"增憎曾赠缯甑罾锃",zha:"扎喳渣札轧铡闸眨栅榨咋乍炸诈揸吒咤哳怍砟痄蚱齄",zhai:"摘斋宅窄债寨砦",zhan:"瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽谵搌旃",zhang:"樟章彰漳张掌涨杖丈帐账仗胀瘴障仉鄣幛嶂獐嫜璋蟑",zhao:"招昭找沼赵照罩兆肇召爪诏棹钊笊",zhe:"遮折哲蛰辙者锗蔗这浙谪陬柘辄磔鹧褚蜇赭",zhen:"珍斟真甄砧臻贞针侦枕疹诊震振镇阵缜桢榛轸赈胗朕祯畛鸩",zheng:"蒸挣睁征狰争怔整拯正政帧症郑证诤峥钲铮筝",zhi:"芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒卮陟郅埴芷摭帙忮彘咫骘栉枳栀桎轵轾攴贽膣祉祗黹雉鸷痣蛭絷酯跖踬踯豸觯",zhong:"中盅忠钟衷终种肿重仲众冢锺螽舂舯踵",zhou:"舟周州洲诌粥轴肘帚咒皱宙昼骤啄着倜诹荮鬻纣胄碡籀舳酎鲷",zhu:"珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑住注祝驻伫侏邾苎茱洙渚潴驺杼槠橥炷铢疰瘃蚰竺箸翥躅麈",zhua:"抓",zhuai:"拽",zhuan:"专砖转撰赚篆抟啭颛",zhuang:"桩庄装妆撞壮状丬",zhui:"椎锥追赘坠缀萑骓缒",zhun:"谆准",zhuo:"捉拙卓桌琢茁酌灼浊倬诼廴蕞擢啜浞涿杓焯禚斫",zi:"兹咨资姿滋淄孜紫仔籽滓子自渍字谘嵫姊孳缁梓辎赀恣眦锱秭耔笫粢觜訾鲻髭",zong:"鬃棕踪宗综总纵腙粽",zou:"邹走奏揍鄹鲰",zu:"租足卒族祖诅阻组俎菹啐徂驵蹴",zuan:"钻纂攥缵",zui:"嘴醉最罪",zun:"尊遵撙樽鳟",zuo:"昨左佐柞做作坐座阝阼胙祚酢",cou:"薮楱辏腠",nang:"攮哝囔馕曩",o:"喔",dia:"嗲",chuai:"嘬膪踹",cen:"岑涔",diu:"铥",nou:"耨",fou:"缶",bia:"髟"},polyphone:(_polyphone={19969:"DZ",19975:"WM",19988:"QJ",20048:"YL",20056:"SC",20060:"NM",20094:"QG",20127:"QJ",20167:"QC",20193:"YG",20250:"KH",20256:"ZC",20282:"SC",20285:"QJG",20291:"TD",20314:"YD",20340:"NE",20375:"TD",20389:"YJ",20391:"CZ",20415:"PB",20446:"YS",20447:"SQ",20504:"TC",20608:"KG",20854:"QJ",20857:"ZC",20911:"PF"},_defineProperty(_polyphone,"20504","TC"),_defineProperty(_polyphone,"20608","KG"),_defineProperty(_polyphone,"20854","QJ"),_defineProperty(_polyphone,"20857","ZC"),_defineProperty(_polyphone,"20911","PF"),_defineProperty(_polyphone,"20985","AW"),_defineProperty(_polyphone,"21032","PB"),_defineProperty(_polyphone,"21048","XQ"),_defineProperty(_polyphone,"21049","SC"),_defineProperty(_polyphone,"21089","YS"),_defineProperty(_polyphone,"21119","JC"),_defineProperty(_polyphone,"21242","SB"),_defineProperty(_polyphone,"21273","SC"),_defineProperty(_polyphone,"21305","YP"),_defineProperty(_polyphone,"21306","QO"),_defineProperty(_polyphone,"21330","ZC"),_defineProperty(_polyphone,"21333","SDC"),_defineProperty(_polyphone,"21345","QK"),_defineProperty(_polyphone,"21378","CA"),_defineProperty(_polyphone,"21397","SC"),_defineProperty(_polyphone,"21414","XS"),_defineProperty(_polyphone,"21442","SC"),_defineProperty(_polyphone,"21477","JG"),_defineProperty(_polyphone,"21480","TD"),_defineProperty(_polyphone,"21484","ZS"),_defineProperty(_polyphone,"21494","YX"),_defineProperty(_polyphone,"21505","YX"),_defineProperty(_polyphone,"21512","HG"),_defineProperty(_polyphone,"21523","XH"),_defineProperty(_polyphone,"21537","PB"),_defineProperty(_polyphone,"21542","PF"),_defineProperty(_polyphone,"21549","KH"),_defineProperty(_polyphone,"21571","E"),_defineProperty(_polyphone,"21574","DA"),_defineProperty(_polyphone,"21588","TD"),_defineProperty(_polyphone,"21589","O"),_defineProperty(_polyphone,"21618","ZC"),_defineProperty(_polyphone,"21621","KHA"),_defineProperty(_polyphone,"21632","ZJ"),_defineProperty(_polyphone,"21654","KG"),_defineProperty(_polyphone,"21679","LKG"),_defineProperty(_polyphone,"21683","KH"),_defineProperty(_polyphone,"21710","A"),_defineProperty(_polyphone,"21719","YH"),_defineProperty(_polyphone,"21734","WOE"),_defineProperty(_polyphone,"21769","A"),_defineProperty(_polyphone,"21780","WN"),_defineProperty(_polyphone,"21804","XH"),_defineProperty(_polyphone,"21834","A"),_defineProperty(_polyphone,"21899","ZD"),_defineProperty(_polyphone,"21903","RN"),_defineProperty(_polyphone,"21908","WO"),_defineProperty(_polyphone,"21939","ZC"),_defineProperty(_polyphone,"21956","SA"),_defineProperty(_polyphone,"21964","YA"),_defineProperty(_polyphone,"21970","TD"),_defineProperty(_polyphone,"22003","A"),_defineProperty(_polyphone,"22031","JG"),_defineProperty(_polyphone,"22040","XS"),_defineProperty(_polyphone,"22060","ZC"),_defineProperty(_polyphone,"22066","ZC"),_defineProperty(_polyphone,"22079","MH"),_defineProperty(_polyphone,"22129","XJ"),_defineProperty(_polyphone,"22179","XA"),_defineProperty(_polyphone,"22237","NJ"),_defineProperty(_polyphone,"22244","TD"),_defineProperty(_polyphone,"22280","JQ"),_defineProperty(_polyphone,"22300","YH"),_defineProperty(_polyphone,"22313","XW"),_defineProperty(_polyphone,"22331","YQ"),_defineProperty(_polyphone,"22343","YJ"),_defineProperty(_polyphone,"22351","PH"),_defineProperty(_polyphone,"22395","DC"),_defineProperty(_polyphone,"22412","TD"),_defineProperty(_polyphone,"22484","PB"),_defineProperty(_polyphone,"22500","PB"),_defineProperty(_polyphone,"22534","ZD"),_defineProperty(_polyphone,"22549","DH"),_defineProperty(_polyphone,"22561","PB"),_defineProperty(_polyphone,"22612","TD"),_defineProperty(_polyphone,"22771","KQ"),_defineProperty(_polyphone,"22831","HB"),_defineProperty(_polyphone,"22841","JG"),_defineProperty(_polyphone,"22855","QJ"),_defineProperty(_polyphone,"22865","XQ"),_defineProperty(_polyphone,"23013","ML"),_defineProperty(_polyphone,"23081","WM"),_defineProperty(_polyphone,"23487","SX"),_defineProperty(_polyphone,"23558","QJ"),_defineProperty(_polyphone,"23561","YW"),_defineProperty(_polyphone,"23586","YW"),_defineProperty(_polyphone,"23614","YW"),_defineProperty(_polyphone,"23615","SN"),_defineProperty(_polyphone,"23631","PB"),_defineProperty(_polyphone,"23646","ZS"),_defineProperty(_polyphone,"23663","ZT"),_defineProperty(_polyphone,"23673","YG"),_defineProperty(_polyphone,"23762","TD"),_defineProperty(_polyphone,"23769","ZS"),_defineProperty(_polyphone,"23780","QJ"),_defineProperty(_polyphone,"23884","QK"),_defineProperty(_polyphone,"24055","XH"),_defineProperty(_polyphone,"24113","DC"),_defineProperty(_polyphone,"24162","ZC"),_defineProperty(_polyphone,"24191","GA"),_defineProperty(_polyphone,"24273","QJ"),_defineProperty(_polyphone,"24324","NL"),_defineProperty(_polyphone,"24377","TD"),_defineProperty(_polyphone,"24378","QJ"),_defineProperty(_polyphone,"24439","PF"),_defineProperty(_polyphone,"24554","ZS"),_defineProperty(_polyphone,"24683","TD"),_defineProperty(_polyphone,"24694","WE"),_defineProperty(_polyphone,"24733","LK"),_defineProperty(_polyphone,"24925","TN"),_defineProperty(_polyphone,"25094","ZG"),_defineProperty(_polyphone,"25100","XQ"),_defineProperty(_polyphone,"25103","XH"),_defineProperty(_polyphone,"25153","PB"),_defineProperty(_polyphone,"25170","PB"),_defineProperty(_polyphone,"25179","KG"),_defineProperty(_polyphone,"25203","PB"),_defineProperty(_polyphone,"25240","ZS"),_defineProperty(_polyphone,"25282","FB"),_defineProperty(_polyphone,"25303","NA"),_defineProperty(_polyphone,"25324","KG"),_defineProperty(_polyphone,"25341","ZY"),_defineProperty(_polyphone,"25373","WZ"),_defineProperty(_polyphone,"25375","XJ"),_defineProperty(_polyphone,"25384","A"),_defineProperty(_polyphone,"25457","A"),_defineProperty(_polyphone,"25528","SD"),_defineProperty(_polyphone,"25530","SC"),_defineProperty(_polyphone,"25552","TD"),_defineProperty(_polyphone,"25774","ZC"),_defineProperty(_polyphone,"25874","ZC"),_defineProperty(_polyphone,"26044","YW"),_defineProperty(_polyphone,"26080","WM"),_defineProperty(_polyphone,"26292","PB"),_defineProperty(_polyphone,"26333","PB"),_defineProperty(_polyphone,"26355","ZY"),_defineProperty(_polyphone,"26366","CZ"),_defineProperty(_polyphone,"26397","ZC"),_defineProperty(_polyphone,"26399","QJ"),_defineProperty(_polyphone,"26415","ZS"),_defineProperty(_polyphone,"26451","SB"),_defineProperty(_polyphone,"26526","ZC"),_defineProperty(_polyphone,"26552","JG"),_defineProperty(_polyphone,"26561","TD"),_defineProperty(_polyphone,"26588","JG"),_defineProperty(_polyphone,"26597","CZ"),_defineProperty(_polyphone,"26629","ZS"),_defineProperty(_polyphone,"26638","YL"),_defineProperty(_polyphone,"26646","XQ"),_defineProperty(_polyphone,"26653","KG"),_defineProperty(_polyphone,"26657","XJ"),_defineProperty(_polyphone,"26727","HG"),_defineProperty(_polyphone,"26894","ZC"),_defineProperty(_polyphone,"26937","ZS"),_defineProperty(_polyphone,"26946","ZC"),_defineProperty(_polyphone,"26999","KJ"),_defineProperty(_polyphone,"27099","KJ"),_defineProperty(_polyphone,"27449","YQ"),_defineProperty(_polyphone,"27481","XS"),_defineProperty(_polyphone,"27542","ZS"),_defineProperty(_polyphone,"27663","ZS"),_defineProperty(_polyphone,"27748","TS"),_defineProperty(_polyphone,"27784","SC"),_defineProperty(_polyphone,"27788","ZD"),_defineProperty(_polyphone,"27795","TD"),_defineProperty(_polyphone,"27812","O"),_defineProperty(_polyphone,"27850","PB"),_defineProperty(_polyphone,"27852","MB"),_defineProperty(_polyphone,"27895","SL"),_defineProperty(_polyphone,"27898","PL"),_defineProperty(_polyphone,"27973","QJ"),_defineProperty(_polyphone,"27981","KH"),_defineProperty(_polyphone,"27986","HX"),_defineProperty(_polyphone,"27994","XJ"),_defineProperty(_polyphone,"28044","YC"),_defineProperty(_polyphone,"28065","WG"),_defineProperty(_polyphone,"28177","SM"),_defineProperty(_polyphone,"28267","QJ"),_defineProperty(_polyphone,"28291","KH"),_defineProperty(_polyphone,"28337","ZQ"),_defineProperty(_polyphone,"28463","TL"),_defineProperty(_polyphone,"28548","DC"),_defineProperty(_polyphone,"28601","TD"),_defineProperty(_polyphone,"28689","PB"),_defineProperty(_polyphone,"28805","JG"),_defineProperty(_polyphone,"28820","QG"),_defineProperty(_polyphone,"28846","PB"),_defineProperty(_polyphone,"28952","TD"),_defineProperty(_polyphone,"28975","ZC"),_defineProperty(_polyphone,"29100","A"),_defineProperty(_polyphone,"29325","QJ"),_defineProperty(_polyphone,"29575","SL"),_defineProperty(_polyphone,"29602","FB"),_defineProperty(_polyphone,"30010","TD"),_defineProperty(_polyphone,"30044","CX"),_defineProperty(_polyphone,"30058","PF"),_defineProperty(_polyphone,"30091","YSP"),_defineProperty(_polyphone,"30111","YN"),_defineProperty(_polyphone,"30229","XJ"),_defineProperty(_polyphone,"30427","SC"),_defineProperty(_polyphone,"30465","SX"),_defineProperty(_polyphone,"30631","YQ"),_defineProperty(_polyphone,"30655","QJ"),_defineProperty(_polyphone,"30684","QJG"),_defineProperty(_polyphone,"30707","SD"),_defineProperty(_polyphone,"30729","XH"),_defineProperty(_polyphone,"30796","LG"),_defineProperty(_polyphone,"30917","PB"),_defineProperty(_polyphone,"31074","NM"),_defineProperty(_polyphone,"31085","JZ"),_defineProperty(_polyphone,"31109","SC"),_defineProperty(_polyphone,"31181","ZC"),_defineProperty(_polyphone,"31192","MLB"),_defineProperty(_polyphone,"31293","JQ"),_defineProperty(_polyphone,"31400","YX"),_defineProperty(_polyphone,"31584","YJ"),_defineProperty(_polyphone,"31896","ZN"),_defineProperty(_polyphone,"31909","ZY"),_defineProperty(_polyphone,"31995","XJ"),_defineProperty(_polyphone,"32321","PF"),_defineProperty(_polyphone,"32327","ZY"),_defineProperty(_polyphone,"32418","HG"),_defineProperty(_polyphone,"32420","XQ"),_defineProperty(_polyphone,"32421","HG"),_defineProperty(_polyphone,"32438","LG"),_defineProperty(_polyphone,"32473","GJ"),_defineProperty(_polyphone,"32488","TD"),_defineProperty(_polyphone,"32521","QJ"),_defineProperty(_polyphone,"32527","PB"),_defineProperty(_polyphone,"32562","ZSQ"),_defineProperty(_polyphone,"32564","JZ"),_defineProperty(_polyphone,"32735","ZD"),_defineProperty(_polyphone,"32793","PB"),_defineProperty(_polyphone,"33071","PF"),_defineProperty(_polyphone,"33098","XL"),_defineProperty(_polyphone,"33100","YA"),_defineProperty(_polyphone,"33152","PB"),_defineProperty(_polyphone,"33261","CX"),_defineProperty(_polyphone,"33324","BP"),_defineProperty(_polyphone,"33333","TD"),_defineProperty(_polyphone,"33406","YA"),_defineProperty(_polyphone,"33426","WM"),_defineProperty(_polyphone,"33432","PB"),_defineProperty(_polyphone,"33445","JG"),_defineProperty(_polyphone,"33486","ZN"),_defineProperty(_polyphone,"33493","TS"),_defineProperty(_polyphone,"33507","QJ"),_defineProperty(_polyphone,"33540","QJ"),_defineProperty(_polyphone,"33544","ZC"),_defineProperty(_polyphone,"33564","XQ"),_defineProperty(_polyphone,"33617","YT"),_defineProperty(_polyphone,"33632","QJ"),_defineProperty(_polyphone,"33636","XH"),_defineProperty(_polyphone,"33637","YX"),_defineProperty(_polyphone,"33694","WG"),_defineProperty(_polyphone,"33705","PF"),_defineProperty(_polyphone,"33728","YW"),_defineProperty(_polyphone,"33882","SR"),_defineProperty(_polyphone,"34067","WM"),_defineProperty(_polyphone,"34074","YW"),_defineProperty(_polyphone,"34121","QJ"),_defineProperty(_polyphone,"34255","ZC"),_defineProperty(_polyphone,"34259","XL"),_defineProperty(_polyphone,"34425","JH"),_defineProperty(_polyphone,"34430","XH"),_defineProperty(_polyphone,"34485","KH"),_defineProperty(_polyphone,"34503","YS"),_defineProperty(_polyphone,"34532","HG"),_defineProperty(_polyphone,"34552","XS"),_defineProperty(_polyphone,"34558","YE"),_defineProperty(_polyphone,"34593","ZL"),_defineProperty(_polyphone,"34660","YQ"),_defineProperty(_polyphone,"34892","XH"),_defineProperty(_polyphone,"34928","SC"),_defineProperty(_polyphone,"34999","QJ"),_defineProperty(_polyphone,"35048","PB"),_defineProperty(_polyphone,"35059","SC"),_defineProperty(_polyphone,"35098","ZC"),_defineProperty(_polyphone,"35203","TQ"),_defineProperty(_polyphone,"35265","JX"),_defineProperty(_polyphone,"35299","JX"),_defineProperty(_polyphone,"35782","SZ"),_defineProperty(_polyphone,"35828","YS"),_defineProperty(_polyphone,"35830","E"),_defineProperty(_polyphone,"35843","TD"),_defineProperty(_polyphone,"35895","YG"),_defineProperty(_polyphone,"35977","MH"),_defineProperty(_polyphone,"36158","JG"),_defineProperty(_polyphone,"36228","QJ"),_defineProperty(_polyphone,"36426","XQ"),_defineProperty(_polyphone,"36466","DC"),_defineProperty(_polyphone,"36710","JC"),_defineProperty(_polyphone,"36711","ZYG"),_defineProperty(_polyphone,"36767","PB"),_defineProperty(_polyphone,"36866","SK"),_defineProperty(_polyphone,"36951","YW"),_defineProperty(_polyphone,"37034","YX"),_defineProperty(_polyphone,"37063","XH"),_defineProperty(_polyphone,"37218","ZC"),_defineProperty(_polyphone,"37325","ZC"),_defineProperty(_polyphone,"38063","PB"),_defineProperty(_polyphone,"38079","TD"),_defineProperty(_polyphone,"38085","QY"),_defineProperty(_polyphone,"38107","DC"),_defineProperty(_polyphone,"38116","TD"),_defineProperty(_polyphone,"38123","YD"),_defineProperty(_polyphone,"38224","HG"),_defineProperty(_polyphone,"38241","XTC"),_defineProperty(_polyphone,"38271","ZC"),_defineProperty(_polyphone,"38415","YE"),_defineProperty(_polyphone,"38426","KH"),_defineProperty(_polyphone,"38461","YD"),_defineProperty(_polyphone,"38463","AE"),_defineProperty(_polyphone,"38466","PB"),_defineProperty(_polyphone,"38477","XJ"),_defineProperty(_polyphone,"38518","YT"),_defineProperty(_polyphone,"38551","WK"),_defineProperty(_polyphone,"38585","ZC"),_defineProperty(_polyphone,"38704","XS"),_defineProperty(_polyphone,"38739","LJ"),_defineProperty(_polyphone,"38761","GJ"),_defineProperty(_polyphone,"38808","SQ"),_defineProperty(_polyphone,"39048","JG"),_defineProperty(_polyphone,"39049","XJ"),_defineProperty(_polyphone,"39052","HG"),_defineProperty(_polyphone,"39076","CZ"),_defineProperty(_polyphone,"39271","XT"),_defineProperty(_polyphone,"39534","TD"),_defineProperty(_polyphone,"39552","TD"),_defineProperty(_polyphone,"39584","PB"),_defineProperty(_polyphone,"39647","SB"),_defineProperty(_polyphone,"39730","LG"),_defineProperty(_polyphone,"39748","TPB"),_defineProperty(_polyphone,"40109","ZQ"),_defineProperty(_polyphone,"40479","ND"),_defineProperty(_polyphone,"40516","HG"),_defineProperty(_polyphone,"40536","HG"),_defineProperty(_polyphone,"40583","QJ"),_defineProperty(_polyphone,"40765","YQ"),_defineProperty(_polyphone,"40784","QJ"),_defineProperty(_polyphone,"40840","YK"),_defineProperty(_polyphone,"40863","QJG"),_polyphone),getPinYin:function Y(Z,e){for(var L in this.fullDict){if(-1!==this.fullDict[L].indexOf(Z)){return e?this.capitalize(L):L;break}}return false},capitalize:function Y(Z){if(Z.length>0){var e=Z.substr(0,1).toUpperCase();var L=Z.substr(1,Z.length);return e+L}},getChar:function Y(Z){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var L=Z.charCodeAt(0);if(L>40869||L<19968)return Z;if(!e)return this.charsDict.charAt(L-19968);return this.polyphone[L]?this.polyphone[L]:this.charsDict.charAt(L-19968)},getResult:function Y(Z){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(!e)return Z.join("");var L=[""];for(var X=0,J=Z.length;X<J;X++){var S=Z[X],o=S.length;if(o==1){for(var C=0;C<L.length;C++){L[k]+=S}}else{var Q=L.slice(0);L=[];for(var P=0;P<o;P++){var p=Q.slice(0);for(var H=0;H<p.length;H++){p[H]+=S.charAt(P)}L=L.concat(p)}}}return L}};var ZhToPinYin=function(){function Z(){var Y=arguments.length>0&&arguments[0]!==undefined?arguments[0]:true;_classCallCheck(this,Z);this.titleCase=Y}_createClass(Z,[{key:"getPinYin",value:function Y(Z){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var L="",X=void 0;var J=new RegExp("[a-zA-Z0-9- ]");for(var S=0,o=Z.length;S<o;S++){var C=Z.substr(S,1),Q=C.charCodeAt(0);if(Q>40869||Q<19968){L+=e?" "+C:C}else{X=_private.getPinYin(C,this.titleCase);if(X!==false){L+=e?" "+X:X}}}return L}},{key:"getInitials",value:function Y(Z){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;if(typeof Z!=="string")throw new Error(-1,"函数getInitials需要字符串类型参数!");var L=[];for(var X=0,J=Z.length;X<J;X++){var S=Z.charAt(X);L.push(_private.getChar(S,e))}return _private.getResult(L,e)}},{key:"surnamePolyphone",value:function Y(Z){var e=["区","黑","盖","查","曾","缪","单","乐","员","仇","尉","万","晟","重","秘","解","翟"];var L=["Ou","He","Ge","Zha","Zeng","Miao","Shan","Yue","Yun","Qiu","Yu","Mo","Cheng","Chong","Bi","Xie","Zhai"];var X=e.indexOf(Z);if(X!=-1){var J=L[X];return this.titleCase?J:J.toLowerCase()}return null}}]);return Z}();export default ZhToPinYin;  
1 -const isWeex = typeof WXEnvironment !== 'undefined';  
2 -const isWeexIOS = isWeex && /ios/i.test(WXEnvironment.platform);  
3 -const isWeexAndroid = isWeex && !isWeexIOS;  
4 -  
5 -import GLmethod from '../context-webgl/GLmethod';  
6 -  
7 -const GCanvasModule =  
8 - (typeof weex !== 'undefined' && weex.requireModule) ? (weex.requireModule('gcanvas')) :  
9 - (typeof __weex_require__ !== 'undefined') ? (__weex_require__('@weex-module/gcanvas')) : {};  
10 -  
11 -let isDebugging = false;  
12 -  
13 -let isComboDisabled = false;  
14 -  
15 -const logCommand = (function () {  
16 - const methodQuery = [];  
17 - Object.keys(GLmethod).forEach(key => {  
18 - methodQuery[GLmethod[key]] = key;  
19 - })  
20 - const queryMethod = (id) => {  
21 - return methodQuery[parseInt(id)] || 'NotFoundMethod';  
22 - }  
23 - const logCommand = (id, cmds) => {  
24 - const mId = cmds.split(',')[0];  
25 - const mName = queryMethod(mId);  
26 - console.log(`=== callNative - componentId:${id}; method: ${mName}; cmds: ${cmds}`);  
27 - }  
28 - return logCommand;  
29 -})();  
30 -  
31 -function joinArray(arr, sep) {  
32 - let res = '';  
33 - for (let i = 0; i < arr.length; i++) {  
34 - if (i !== 0) {  
35 - res += sep;  
36 - }  
37 - res += arr[i];  
38 - }  
39 - return res;  
40 -}  
41 -  
42 -const commandsCache = {}  
43 -  
44 -const GBridge = {  
45 -  
46 - callEnable: (ref, configArray) => {  
47 -  
48 - commandsCache[ref] = [];  
49 -  
50 - return GCanvasModule.enable({  
51 - componentId: ref,  
52 - config: configArray  
53 - });  
54 - },  
55 -  
56 - callEnableDebug: () => {  
57 - isDebugging = true;  
58 - },  
59 -  
60 - callEnableDisableCombo: () => {  
61 - isComboDisabled = true;  
62 - },  
63 -  
64 - callSetContextType: function (componentId, context_type) {  
65 - GCanvasModule.setContextType(context_type, componentId);  
66 - },  
67 -  
68 - callReset: function(id){  
69 - GCanvasModule.resetComponent && canvasModule.resetComponent(componentId);  
70 - },  
71 -  
72 - render: isWeexIOS ? function (componentId) {  
73 - return GCanvasModule.extendCallNative({  
74 - contextId: componentId,  
75 - type: 0x60000001  
76 - });  
77 - } : function (componentId) {  
78 - return callGCanvasLinkNative(componentId, 0x60000001, 'render');  
79 - },  
80 -  
81 - render2d: isWeexIOS ? function (componentId, commands, callback) {  
82 -  
83 - if (isDebugging) {  
84 - console.log('>>> >>> render2d ===');  
85 - console.log('>>> commands: ' + commands);  
86 - }  
87 -  
88 - GCanvasModule.render([commands, callback?true:false], componentId, callback);  
89 -  
90 - } : function (componentId, commands,callback) {  
91 -  
92 - if (isDebugging) {  
93 - console.log('>>> >>> render2d ===');  
94 - console.log('>>> commands: ' + commands);  
95 - }  
96 -  
97 - callGCanvasLinkNative(componentId, 0x20000001, commands);  
98 - if(callback){  
99 - callback();  
100 - }  
101 - },  
102 -  
103 - callExtendCallNative: isWeexIOS ? function (componentId, cmdArgs) {  
104 -  
105 - throw 'should not be here anymore ' + cmdArgs;  
106 -  
107 - } : function (componentId, cmdArgs) {  
108 -  
109 - throw 'should not be here anymore ' + cmdArgs;  
110 -  
111 - },  
112 -  
113 -  
114 - flushNative: isWeexIOS ? function (componentId) {  
115 -  
116 - const cmdArgs = joinArray(commandsCache[componentId], ';');  
117 - commandsCache[componentId] = [];  
118 -  
119 - if (isDebugging) {  
120 - console.log('>>> >>> flush native ===');  
121 - console.log('>>> commands: ' + cmdArgs);  
122 - }  
123 -  
124 - const result = GCanvasModule.extendCallNative({  
125 - "contextId": componentId,  
126 - "type": 0x60000000,  
127 - "args": cmdArgs  
128 - });  
129 -  
130 - const res = result && result.result;  
131 -  
132 - if (isDebugging) {  
133 - console.log('>>> result: ' + res);  
134 - }  
135 -  
136 - return res;  
137 -  
138 - } : function (componentId) {  
139 -  
140 - const cmdArgs = joinArray(commandsCache[componentId], ';');  
141 - commandsCache[componentId] = [];  
142 -  
143 - if (isDebugging) {  
144 - console.log('>>> >>> flush native ===');  
145 - console.log('>>> commands: ' + cmdArgs);  
146 - }  
147 -  
148 - const result = callGCanvasLinkNative(componentId, 0x60000000, cmdArgs);  
149 -  
150 - if (isDebugging) {  
151 - console.log('>>> result: ' + result);  
152 - }  
153 -  
154 - return result;  
155 - },  
156 -  
157 - callNative: function (componentId, cmdArgs, cache) {  
158 -  
159 - if (isDebugging) {  
160 - logCommand(componentId, cmdArgs);  
161 - }  
162 -  
163 - commandsCache[componentId].push(cmdArgs);  
164 -  
165 - if (!cache || isComboDisabled) {  
166 - return GBridge.flushNative(componentId);  
167 - } else {  
168 - return undefined;  
169 - }  
170 - },  
171 -  
172 - texImage2D(componentId, ...args) {  
173 - if (isWeexIOS) {  
174 - if (args.length === 6) {  
175 - const [target, level, internalformat, format, type, image] = args;  
176 - GBridge.callNative(  
177 - componentId,  
178 - GLmethod.texImage2D + ',' + 6 + ',' + target + ',' + level + ',' + internalformat + ',' + format + ',' + type + ',' + image.src  
179 - )  
180 - } else if (args.length === 9) {  
181 - const [target, level, internalformat, width, height, border, format, type, image] = args;  
182 - GBridge.callNative(  
183 - componentId,  
184 - GLmethod.texImage2D + ',' + 9 + ',' + target + ',' + level + ',' + internalformat + ',' + width + ',' + height + ',' + border + ',' +  
185 - + format + ',' + type + ',' + (image ? image.src : 0)  
186 - )  
187 - }  
188 - } else if (isWeexAndroid) {  
189 - if (args.length === 6) {  
190 - const [target, level, internalformat, format, type, image] = args;  
191 - GCanvasModule.texImage2D(componentId, target, level, internalformat, format, type, image.src);  
192 - } else if (args.length === 9) {  
193 - const [target, level, internalformat, width, height, border, format, type, image] = args;  
194 - GCanvasModule.texImage2D(componentId, target, level, internalformat, width, height, border, format, type, (image ? image.src : 0));  
195 - }  
196 - }  
197 - },  
198 -  
199 - texSubImage2D(componentId, target, level, xoffset, yoffset, format, type, image) {  
200 - if (isWeexIOS) {  
201 - if (arguments.length === 8) {  
202 - GBridge.callNative(  
203 - componentId,  
204 - GLmethod.texSubImage2D + ',' + 6 + ',' + target + ',' + level + ',' + xoffset + ',' + yoffset, + ',' + format + ',' + type + ',' + image.src  
205 - )  
206 - }  
207 - } else if (isWeexAndroid) {  
208 - GCanvasModule.texSubImage2D(componentId, target, level, xoffset, yoffset, format, type, image.src);  
209 - }  
210 - },  
211 -  
212 - bindImageTexture(componentId, src, imageId) {  
213 - GCanvasModule.bindImageTexture([src, imageId], componentId);  
214 - },  
215 -  
216 - perloadImage([url, id], callback) {  
217 - GCanvasModule.preLoadImage([url, id], function (image) {  
218 - image.url = url;  
219 - image.id = id;  
220 - callback(image);  
221 - });  
222 - },  
223 -  
224 - measureText(text, fontStyle, componentId) {  
225 - return GCanvasModule.measureText([text, fontStyle], componentId);  
226 - },  
227 -  
228 - getImageData (componentId, x, y, w, h, callback) {  
229 - GCanvasModule.getImageData([x, y,w,h],componentId,callback);  
230 - },  
231 -  
232 - putImageData (componentId, data, x, y, w, h, callback) {  
233 - GCanvasModule.putImageData([x, y,w,h,data],componentId,callback);  
234 - },  
235 -  
236 - toTempFilePath(componentId, x, y, width, height, destWidth, destHeight, fileType, quality, callback){  
237 - GCanvasModule.toTempFilePath([x, y, width,height, destWidth, destHeight, fileType, quality], componentId, callback);  
238 - }  
239 -}  
240 -  
241 -export default GBridge;  
1 -class FillStyleLinearGradient {  
2 -  
3 - constructor(x0, y0, x1, y1) {  
4 - this._start_pos = { _x: x0, _y: y0 };  
5 - this._end_pos = { _x: x1, _y: y1 };  
6 - this._stop_count = 0;  
7 - this._stops = [0, 0, 0, 0, 0];  
8 - }  
9 -  
10 - addColorStop = function (pos, color) {  
11 - if (this._stop_count < 5 && 0.0 <= pos && pos <= 1.0) {  
12 - this._stops[this._stop_count] = { _pos: pos, _color: color };  
13 - this._stop_count++;  
14 - }  
15 - }  
16 -}  
17 -  
18 -export default FillStyleLinearGradient;  
1 -class FillStylePattern {  
2 - constructor(img, pattern) {  
3 - this._style = pattern;  
4 - this._img = img;  
5 - }  
6 -}  
7 -  
8 -export default FillStylePattern;  
1 -class FillStyleRadialGradient {  
2 - constructor(x0, y0, r0, x1, y1, r1) {  
3 - this._start_pos = { _x: x0, _y: y0, _r: r0 };  
4 - this._end_pos = { _x: x1, _y: y1, _r: r1 };  
5 - this._stop_count = 0;  
6 - this._stops = [0, 0, 0, 0, 0];  
7 - }  
8 -  
9 - addColorStop(pos, color) {  
10 - if (this._stop_count < 5 && 0.0 <= pos && pos <= 1.0) {  
11 - this._stops[this._stop_count] = { _pos: pos, _color: color };  
12 - this._stop_count++;  
13 - }  
14 - }  
15 -}  
16 -  
17 -export default FillStyleRadialGradient;  
1 -import FillStylePattern from './FillStylePattern';  
2 -import FillStyleLinearGradient from './FillStyleLinearGradient';  
3 -import FillStyleRadialGradient from './FillStyleRadialGradient';  
4 -import GImage from '../env/image.js';  
5 -import {  
6 - ArrayBufferToBase64,  
7 - Base64ToUint8ClampedArray  
8 -} from '../env/tool.js';  
9 -  
10 -export default class CanvasRenderingContext2D {  
11 -  
12 - _drawCommands = '';  
13 -  
14 - _globalAlpha = 1.0;  
15 -  
16 - _fillStyle = 'rgb(0,0,0)';  
17 - _strokeStyle = 'rgb(0,0,0)';  
18 -  
19 - _lineWidth = 1;  
20 - _lineCap = 'butt';  
21 - _lineJoin = 'miter';  
22 -  
23 - _miterLimit = 10;  
24 -  
25 - _globalCompositeOperation = 'source-over';  
26 -  
27 - _textAlign = 'start';  
28 - _textBaseline = 'alphabetic';  
29 -  
30 - _font = '10px sans-serif';  
31 -  
32 - _savedGlobalAlpha = [];  
33 -  
34 - timer = null;  
35 - componentId = null;  
36 -  
37 - _notCommitDrawImageCache = [];  
38 - _needRedrawImageCache = [];  
39 - _redrawCommands = '';  
40 - _autoSaveContext = true;  
41 - // _imageMap = new GHashMap();  
42 - // _textureMap = new GHashMap();  
43 -  
44 - constructor() {  
45 - this.className = 'CanvasRenderingContext2D';  
46 - //this.save()  
47 - }  
48 -  
49 - setFillStyle(value) {  
50 - this.fillStyle = value;  
51 - }  
52 -  
53 - set fillStyle(value) {  
54 - this._fillStyle = value;  
55 -  
56 - if (typeof(value) == 'string') {  
57 - this._drawCommands = this._drawCommands.concat("F" + value + ";");  
58 - } else if (value instanceof FillStylePattern) {  
59 - const image = value._img;  
60 - if (!image.complete) {  
61 - image.onload = () => {  
62 - var index = this._needRedrawImageCache.indexOf(image);  
63 - if (index > -1) {  
64 - this._needRedrawImageCache.splice(index, 1);  
65 - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id);  
66 - this._redrawflush(true);  
67 - }  
68 - }  
69 - this._notCommitDrawImageCache.push(image);  
70 - } else {  
71 - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id);  
72 - }  
73 -  
74 - //CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id);  
75 - this._drawCommands = this._drawCommands.concat("G" + image._id + "," + value._style + ";");  
76 - } else if (value instanceof FillStyleLinearGradient) {  
77 - var command = "D" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," +  
78 - value._end_pos._x.toFixed(2) + "," + value._end_pos._y.toFixed(2) + "," +  
79 - value._stop_count;  
80 - for (var i = 0; i < value._stop_count; ++i) {  
81 - command += ("," + value._stops[i]._pos + "," + value._stops[i]._color);  
82 - }  
83 - this._drawCommands = this._drawCommands.concat(command + ";");  
84 - } else if (value instanceof FillStyleRadialGradient) {  
85 - var command = "H" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + value._start_pos._r  
86 - .toFixed(2) + "," +  
87 - value._end_pos._x.toFixed(2) + "," + value._end_pos._y.toFixed(2) + "," + value._end_pos._r.toFixed(2) + "," +  
88 - value._stop_count;  
89 - for (var i = 0; i < value._stop_count; ++i) {  
90 - command += ("," + value._stops[i]._pos + "," + value._stops[i]._color);  
91 - }  
92 - this._drawCommands = this._drawCommands.concat(command + ";");  
93 - }  
94 - }  
95 -  
96 - get fillStyle() {  
97 - return this._fillStyle;  
98 - }  
99 -  
100 - get globalAlpha() {  
101 - return this._globalAlpha;  
102 - }  
103 -  
104 - setGlobalAlpha(value) {  
105 - this.globalAlpha = value;  
106 - }  
107 -  
108 - set globalAlpha(value) {  
109 - this._globalAlpha = value;  
110 - this._drawCommands = this._drawCommands.concat("a" + value.toFixed(2) + ";");  
111 - }  
112 -  
113 -  
114 - get strokeStyle() {  
115 - return this._strokeStyle;  
116 - }  
117 -  
118 - setStrokeStyle(value) {  
119 - this.strokeStyle = value;  
120 - }  
121 -  
122 - set strokeStyle(value) {  
123 -  
124 - this._strokeStyle = value;  
125 -  
126 - if (typeof(value) == 'string') {  
127 - this._drawCommands = this._drawCommands.concat("S" + value + ";");  
128 - } else if (value instanceof FillStylePattern) {  
129 - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id);  
130 - this._drawCommands = this._drawCommands.concat("G" + image._id + "," + value._style + ";");  
131 - } else if (value instanceof FillStyleLinearGradient) {  
132 - var command = "D" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," +  
133 - value._end_pos._x.toFixed(2) + "," + value._end_pos._y.toFixed(2) + "," +  
134 - value._stop_count;  
135 -  
136 - for (var i = 0; i < value._stop_count; ++i) {  
137 - command += ("," + value._stops[i]._pos + "," + value._stops[i]._color);  
138 - }  
139 - this._drawCommands = this._drawCommands.concat(command + ";");  
140 - } else if (value instanceof FillStyleRadialGradient) {  
141 - var command = "H" + value._start_pos._x.toFixed(2) + "," + value._start_pos._y.toFixed(2) + "," + value._start_pos._r  
142 - .toFixed(2) + "," +  
143 - value._end_pos._x.toFixed(2) + "," + value._end_pos._y + ",".toFixed(2) + value._end_pos._r.toFixed(2) + "," +  
144 - value._stop_count;  
145 -  
146 - for (var i = 0; i < value._stop_count; ++i) {  
147 - command += ("," + value._stops[i]._pos + "," + value._stops[i]._color);  
148 - }  
149 - this._drawCommands = this._drawCommands.concat(command + ";");  
150 - }  
151 - }  
152 -  
153 - get lineWidth() {  
154 - return this._lineWidth;  
155 - }  
156 -  
157 - setLineWidth(value) {  
158 - this.lineWidth = value;  
159 - }  
160 -  
161 - set lineWidth(value) {  
162 - this._lineWidth = value;  
163 - this._drawCommands = this._drawCommands.concat("W" + value + ";");  
164 - }  
165 -  
166 - get lineCap() {  
167 - return this._lineCap;  
168 - }  
169 -  
170 - setLineCap(value) {  
171 - this.lineCap = value;  
172 - }  
173 -  
174 - set lineCap(value) {  
175 - this._lineCap = value;  
176 - this._drawCommands = this._drawCommands.concat("C" + value + ";");  
177 - }  
178 -  
179 - get lineJoin() {  
180 - return this._lineJoin;  
181 - }  
182 -  
183 - setLineJoin(value) {  
184 - this.lineJoin = value  
185 - }  
186 -  
187 - set lineJoin(value) {  
188 - this._lineJoin = value;  
189 - this._drawCommands = this._drawCommands.concat("J" + value + ";");  
190 - }  
191 -  
192 - get miterLimit() {  
193 - return this._miterLimit;  
194 - }  
195 -  
196 - setMiterLimit(value) {  
197 - this.miterLimit = value  
198 - }  
199 -  
200 - set miterLimit(value) {  
201 - this._miterLimit = value;  
202 - this._drawCommands = this._drawCommands.concat("M" + value + ";");  
203 - }  
204 -  
205 - get globalCompositeOperation() {  
206 - return this._globalCompositeOperation;  
207 - }  
208 -  
209 - set globalCompositeOperation(value) {  
210 -  
211 - this._globalCompositeOperation = value;  
212 - let mode = 0;  
213 - switch (value) {  
214 - case "source-over":  
215 - mode = 0;  
216 - break;  
217 - case "source-atop":  
218 - mode = 5;  
219 - break;  
220 - case "source-in":  
221 - mode = 0;  
222 - break;  
223 - case "source-out":  
224 - mode = 2;  
225 - break;  
226 - case "destination-over":  
227 - mode = 4;  
228 - break;  
229 - case "destination-atop":  
230 - mode = 4;  
231 - break;  
232 - case "destination-in":  
233 - mode = 4;  
234 - break;  
235 - case "destination-out":  
236 - mode = 3;  
237 - break;  
238 - case "lighter":  
239 - mode = 1;  
240 - break;  
241 - case "copy":  
242 - mode = 2;  
243 - break;  
244 - case "xor":  
245 - mode = 6;  
246 - break;  
247 - default:  
248 - mode = 0;  
249 - }  
250 -  
251 - this._drawCommands = this._drawCommands.concat("B" + mode + ";");  
252 - }  
253 -  
254 - get textAlign() {  
255 - return this._textAlign;  
256 - }  
257 -  
258 - setTextAlign(value) {  
259 - this.textAlign = value  
260 - }  
261 -  
262 - set textAlign(value) {  
263 -  
264 - this._textAlign = value;  
265 - let Align = 0;  
266 - switch (value) {  
267 - case "start":  
268 - Align = 0;  
269 - break;  
270 - case "end":  
271 - Align = 1;  
272 - break;  
273 - case "left":  
274 - Align = 2;  
275 - break;  
276 - case "center":  
277 - Align = 3;  
278 - break;  
279 - case "right":  
280 - Align = 4;  
281 - break;  
282 - default:  
283 - Align = 0;  
284 - }  
285 -  
286 - this._drawCommands = this._drawCommands.concat("A" + Align + ";");  
287 - }  
288 -  
289 - get textBaseline() {  
290 - return this._textBaseline;  
291 - }  
292 -  
293 - setTextBaseline(value) {  
294 - this.textBaseline = value  
295 - }  
296 -  
297 - set textBaseline(value) {  
298 - this._textBaseline = value;  
299 - let baseline = 0;  
300 - switch (value) {  
301 - case "alphabetic":  
302 - baseline = 0;  
303 - break;  
304 - case "middle":  
305 - baseline = 1;  
306 - break;  
307 - case "top":  
308 - baseline = 2;  
309 - break;  
310 - case "hanging":  
311 - baseline = 3;  
312 - break;  
313 - case "bottom":  
314 - baseline = 4;  
315 - break;  
316 - case "ideographic":  
317 - baseline = 5;  
318 - break;  
319 - default:  
320 - baseline = 0;  
321 - break;  
322 - }  
323 -  
324 - this._drawCommands = this._drawCommands.concat("E" + baseline + ";");  
325 - }  
326 -  
327 - get font() {  
328 - return this._font;  
329 - }  
330 -  
331 - setFontSize(size) {  
332 - var str = this._font;  
333 - var strs = str.trim().split(/\s+/);  
334 - for (var i = 0; i < strs.length; i++) {  
335 - var values = ["normal", "italic", "oblique", "normal", "small-caps", "normal", "bold",  
336 - "bolder", "lighter", "100", "200", "300", "400", "500", "600", "700", "800", "900",  
337 - "normal", "ultra-condensed", "extra-condensed", "condensed", "semi-condensed",  
338 - "semi-expanded", "expanded", "extra-expanded", "ultra-expanded"  
339 - ];  
340 -  
341 - if (-1 == values.indexOf(strs[i].trim())) {  
342 - if (typeof size === 'string') {  
343 - strs[i] = size;  
344 - } else if (typeof size === 'number') {  
345 - strs[i] = String(size) + 'px';  
346 - }  
347 - break;  
348 - }  
349 - }  
350 - this.font = strs.join(" ");  
351 - }  
352 -  
353 - set font(value) {  
354 - this._font = value;  
355 - this._drawCommands = this._drawCommands.concat("j" + value + ";");  
356 - }  
357 -  
358 - setTransform(a, b, c, d, tx, ty) {  
359 - this._drawCommands = this._drawCommands.concat("t" +  
360 - (a === 1 ? "1" : a.toFixed(2)) + "," +  
361 - (b === 0 ? "0" : b.toFixed(2)) + "," +  
362 - (c === 0 ? "0" : c.toFixed(2)) + "," +  
363 - (d === 1 ? "1" : d.toFixed(2)) + "," + tx.toFixed(2) + "," + ty.toFixed(2) + ";");  
364 - }  
365 -  
366 - transform(a, b, c, d, tx, ty) {  
367 - this._drawCommands = this._drawCommands.concat("f" +  
368 - (a === 1 ? "1" : a.toFixed(2)) + "," +  
369 - (b === 0 ? "0" : b.toFixed(2)) + "," +  
370 - (c === 0 ? "0" : c.toFixed(2)) + "," +  
371 - (d === 1 ? "1" : d.toFixed(2)) + "," + tx + "," + ty + ";");  
372 - }  
373 -  
374 - resetTransform() {  
375 - this._drawCommands = this._drawCommands.concat("m;");  
376 - }  
377 -  
378 - scale(a, d) {  
379 - this._drawCommands = this._drawCommands.concat("k" + a.toFixed(2) + "," +  
380 - d.toFixed(2) + ";");  
381 - }  
382 -  
383 - rotate(angle) {  
384 - this._drawCommands = this._drawCommands  
385 - .concat("r" + angle.toFixed(6) + ";");  
386 - }  
387 -  
388 - translate(tx, ty) {  
389 - this._drawCommands = this._drawCommands.concat("l" + tx.toFixed(2) + "," + ty.toFixed(2) + ";");  
390 - }  
391 -  
392 - save() {  
393 - this._savedGlobalAlpha.push(this._globalAlpha);  
394 - this._drawCommands = this._drawCommands.concat("v;");  
395 - }  
396 -  
397 - restore() {  
398 - this._drawCommands = this._drawCommands.concat("e;");  
399 - this._globalAlpha = this._savedGlobalAlpha.pop();  
400 - }  
401 -  
402 - createPattern(img, pattern) {  
403 - if (typeof img === 'string') {  
404 - var imgObj = new GImage();  
405 - imgObj.src = img;  
406 - img = imgObj;  
407 - }  
408 - return new FillStylePattern(img, pattern);  
409 - }  
410 -  
411 - createLinearGradient(x0, y0, x1, y1) {  
412 - return new FillStyleLinearGradient(x0, y0, x1, y1);  
413 - }  
414 -  
415 - createRadialGradient = function(x0, y0, r0, x1, y1, r1) {  
416 - return new FillStyleRadialGradient(x0, y0, r0, x1, y1, r1);  
417 - };  
418 -  
419 - createCircularGradient = function(x0, y0, r0) {  
420 - return new FillStyleRadialGradient(x0, y0, 0, x0, y0, r0);  
421 - };  
422 -  
423 - strokeRect(x, y, w, h) {  
424 - this._drawCommands = this._drawCommands.concat("s" + x + "," + y + "," + w + "," + h + ";");  
425 - }  
426 -  
427 -  
428 - clearRect(x, y, w, h) {  
429 - this._drawCommands = this._drawCommands.concat("c" + x + "," + y + "," + w +  
430 - "," + h + ";");  
431 - }  
432 -  
433 - clip() {  
434 - this._drawCommands = this._drawCommands.concat("p;");  
435 - }  
436 -  
437 - resetClip() {  
438 - this._drawCommands = this._drawCommands.concat("q;");  
439 - }  
440 -  
441 - closePath() {  
442 - this._drawCommands = this._drawCommands.concat("o;");  
443 - }  
444 -  
445 - moveTo(x, y) {  
446 - this._drawCommands = this._drawCommands.concat("g" + x.toFixed(2) + "," + y.toFixed(2) + ";");  
447 - }  
448 -  
449 - lineTo(x, y) {  
450 - this._drawCommands = this._drawCommands.concat("i" + x.toFixed(2) + "," + y.toFixed(2) + ";");  
451 - }  
452 -  
453 - quadraticCurveTo = function(cpx, cpy, x, y) {  
454 - this._drawCommands = this._drawCommands.concat("u" + cpx + "," + cpy + "," + x + "," + y + ";");  
455 - }  
456 -  
457 - bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y, ) {  
458 - this._drawCommands = this._drawCommands.concat(  
459 - "z" + cp1x.toFixed(2) + "," + cp1y.toFixed(2) + "," + cp2x.toFixed(2) + "," + cp2y.toFixed(2) + "," +  
460 - x.toFixed(2) + "," + y.toFixed(2) + ";");  
461 - }  
462 -  
463 - arcTo(x1, y1, x2, y2, radius) {  
464 - this._drawCommands = this._drawCommands.concat("h" + x1 + "," + y1 + "," + x2 + "," + y2 + "," + radius + ";");  
465 - }  
466 -  
467 - beginPath() {  
468 - this._drawCommands = this._drawCommands.concat("b;");  
469 - }  
470 -  
471 -  
472 - fillRect(x, y, w, h) {  
473 - this._drawCommands = this._drawCommands.concat("n" + x + "," + y + "," + w +  
474 - "," + h + ";");  
475 - }  
476 -  
477 - rect(x, y, w, h) {  
478 - this._drawCommands = this._drawCommands.concat("w" + x + "," + y + "," + w + "," + h + ";");  
479 - }  
480 -  
481 - fill() {  
482 - this._drawCommands = this._drawCommands.concat("L;");  
483 - }  
484 -  
485 - stroke(path) {  
486 - this._drawCommands = this._drawCommands.concat("x;");  
487 - }  
488 -  
489 - arc(x, y, radius, startAngle, endAngle, anticlockwise) {  
490 -  
491 - let ianticlockwise = 0;  
492 - if (anticlockwise) {  
493 - ianticlockwise = 1;  
494 - }  
495 -  
496 - this._drawCommands = this._drawCommands.concat(  
497 - "y" + x.toFixed(2) + "," + y.toFixed(2) + "," +  
498 - radius.toFixed(2) + "," + startAngle + "," + endAngle + "," + ianticlockwise +  
499 - ";"  
500 - );  
501 - }  
502 -  
503 - fillText(text, x, y) {  
504 - let tmptext = text.replace(/!/g, "!!");  
505 - tmptext = tmptext.replace(/,/g, "!,");  
506 - tmptext = tmptext.replace(/;/g, "!;");  
507 - this._drawCommands = this._drawCommands.concat("T" + tmptext + "," + x + "," + y + ",0.0;");  
508 - }  
509 -  
510 - strokeText = function(text, x, y) {  
511 - let tmptext = text.replace(/!/g, "!!");  
512 - tmptext = tmptext.replace(/,/g, "!,");  
513 - tmptext = tmptext.replace(/;/g, "!;");  
514 - this._drawCommands = this._drawCommands.concat("U" + tmptext + "," + x + "," + y + ",0.0;");  
515 - }  
516 -  
517 - measureText(text) {  
518 - return CanvasRenderingContext2D.GBridge.measureText(text, this.font, this.componentId);  
519 - }  
520 -  
521 - isPointInPath = function(x, y) {  
522 - throw new Error('GCanvas not supported yet');  
523 - }  
524 -  
525 - drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh) {  
526 - if (typeof image === 'string') {  
527 - var imgObj = new GImage();  
528 - imgObj.src = image;  
529 - image = imgObj;  
530 - }  
531 - if (image instanceof GImage) {  
532 - if (!image.complete) {  
533 - imgObj.onload = () => {  
534 - var index = this._needRedrawImageCache.indexOf(image);  
535 - if (index > -1) {  
536 - this._needRedrawImageCache.splice(index, 1);  
537 - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id);  
538 - this._redrawflush(true);  
539 - }  
540 - }  
541 - this._notCommitDrawImageCache.push(image);  
542 - } else {  
543 - CanvasRenderingContext2D.GBridge.bindImageTexture(this.componentId, image.src, image._id);  
544 - }  
545 - var srcArgs = [image, sx, sy, sw, sh, dx, dy, dw, dh];  
546 - var args = [];  
547 - for (var arg in srcArgs) {  
548 - if (typeof(srcArgs[arg]) != 'undefined') {  
549 - args.push(srcArgs[arg]);  
550 - }  
551 - }  
552 - this.__drawImage.apply(this, args);  
553 - //this.__drawImage(image,sx, sy, sw, sh, dx, dy, dw, dh);  
554 - }  
555 - }  
556 -  
557 - __drawImage(image, sx, sy, sw, sh, dx, dy, dw, dh) {  
558 - const numArgs = arguments.length;  
559 -  
560 - function drawImageCommands() {  
561 -  
562 - if (numArgs === 3) {  
563 - const x = parseFloat(sx) || 0.0;  
564 - const y = parseFloat(sy) || 0.0;  
565 -  
566 - return ("d" + image._id + ",0,0," +  
567 - image.width + "," + image.height + "," +  
568 - x + "," + y + "," + image.width + "," + image.height + ";");  
569 - } else if (numArgs === 5) {  
570 - const x = parseFloat(sx) || 0.0;  
571 - const y = parseFloat(sy) || 0.0;  
572 - const width = parseInt(sw) || image.width;  
573 - const height = parseInt(sh) || image.height;  
574 -  
575 - return ("d" + image._id + ",0,0," +  
576 - image.width + "," + image.height + "," +  
577 - x + "," + y + "," + width + "," + height + ";");  
578 - } else if (numArgs === 9) {  
579 - sx = parseFloat(sx) || 0.0;  
580 - sy = parseFloat(sy) || 0.0;  
581 - sw = parseInt(sw) || image.width;  
582 - sh = parseInt(sh) || image.height;  
583 - dx = parseFloat(dx) || 0.0;  
584 - dy = parseFloat(dy) || 0.0;  
585 - dw = parseInt(dw) || image.width;  
586 - dh = parseInt(dh) || image.height;  
587 -  
588 - return ("d" + image._id + "," +  
589 - sx + "," + sy + "," + sw + "," + sh + "," +  
590 - dx + "," + dy + "," + dw + "," + dh + ";");  
591 - }  
592 - }  
593 - this._drawCommands += drawImageCommands();  
594 - }  
595 -  
596 - _flush(reserve, callback) {  
597 - const commands = this._drawCommands;  
598 - this._drawCommands = '';  
599 - CanvasRenderingContext2D.GBridge.render2d(this.componentId, commands, callback);  
600 - this._needRender = false;  
601 - }  
602 -  
603 - _redrawflush(reserve, callback) {  
604 - const commands = this._redrawCommands;  
605 - CanvasRenderingContext2D.GBridge.render2d(this.componentId, commands, callback);  
606 - if (this._needRedrawImageCache.length == 0) {  
607 - this._redrawCommands = '';  
608 - }  
609 - }  
610 -  
611 - draw(reserve, callback) {  
612 - if (!reserve) {  
613 - this._globalAlpha = this._savedGlobalAlpha.pop();  
614 - this._savedGlobalAlpha.push(this._globalAlpha);  
615 - this._redrawCommands = this._drawCommands;  
616 - this._needRedrawImageCache = this._notCommitDrawImageCache;  
617 - if (this._autoSaveContext) {  
618 - this._drawCommands = ("v;" + this._drawCommands);  
619 - this._autoSaveContext = false;  
620 - } else {  
621 - this._drawCommands = ("e;X;v;" + this._drawCommands);  
622 - }  
623 - } else {  
624 - this._needRedrawImageCache = this._needRedrawImageCache.concat(this._notCommitDrawImageCache);  
625 - this._redrawCommands += this._drawCommands;  
626 - if (this._autoSaveContext) {  
627 - this._drawCommands = ("v;" + this._drawCommands);  
628 - this._autoSaveContext = false;  
629 - }  
630 - }  
631 - this._notCommitDrawImageCache = [];  
632 - if (this._flush) {  
633 - this._flush(reserve, callback);  
634 - }  
635 - }  
636 -  
637 - getImageData(x, y, w, h, callback) {  
638 - CanvasRenderingContext2D.GBridge.getImageData(this.componentId, x, y, w, h, function(res) {  
639 - res.data = Base64ToUint8ClampedArray(res.data);  
640 - if (typeof(callback) == 'function') {  
641 - callback(res);  
642 - }  
643 - });  
644 - }  
645 -  
646 - putImageData(data, x, y, w, h, callback) {  
647 - if (data instanceof Uint8ClampedArray) {  
648 - data = ArrayBufferToBase64(data);  
649 - CanvasRenderingContext2D.GBridge.putImageData(this.componentId, data, x, y, w, h, function(res) {  
650 - if (typeof(callback) == 'function') {  
651 - callback(res);  
652 - }  
653 - });  
654 - }  
655 - }  
656 -  
657 - toTempFilePath(x, y, width, height, destWidth, destHeight, fileType, quality, callback) {  
658 - CanvasRenderingContext2D.GBridge.toTempFilePath(this.componentId, x, y, width, height, destWidth, destHeight,  
659 - fileType, quality,  
660 - function(res) {  
661 - if (typeof(callback) == 'function') {  
662 - callback(res);  
663 - }  
664 - });  
665 - }  
666 -}  
1 -export default class WebGLActiveInfo {  
2 - className = 'WebGLActiveInfo';  
3 -  
4 - constructor({  
5 - type, name, size  
6 - }) {  
7 - this.type = type;  
8 - this.name = name;  
9 - this.size = size;  
10 - }  
11 -}  
1 -import {getTransferedObjectUUID} from './classUtils';  
2 -  
3 -const name = 'WebGLBuffer';  
4 -  
5 -function uuid(id) {  
6 - return getTransferedObjectUUID(name, id);  
7 -}  
8 -  
9 -export default class WebGLBuffer {  
10 - className = name;  
11 -  
12 - constructor(id) {  
13 - this.id = id;  
14 - }  
15 -  
16 - static uuid = uuid;  
17 -  
18 - uuid() {  
19 - return uuid(this.id);  
20 - }  
21 -}  
1 -import {getTransferedObjectUUID} from './classUtils';  
2 -  
3 -const name = 'WebGLFrameBuffer';  
4 -  
5 -function uuid(id) {  
6 - return getTransferedObjectUUID(name, id);  
7 -}  
8 -  
9 -export default class WebGLFramebuffer {  
10 - className = name;  
11 -  
12 - constructor(id) {  
13 - this.id = id;  
14 - }  
15 -  
16 - static uuid = uuid;  
17 -  
18 - uuid() {  
19 - return uuid(this.id);  
20 - }  
21 -}  
1 -export default {  
2 - "DEPTH_BUFFER_BIT": 256,  
3 - "STENCIL_BUFFER_BIT": 1024,  
4 - "COLOR_BUFFER_BIT": 16384,  
5 - "POINTS": 0,  
6 - "LINES": 1,  
7 - "LINE_LOOP": 2,  
8 - "LINE_STRIP": 3,  
9 - "TRIANGLES": 4,  
10 - "TRIANGLE_STRIP": 5,  
11 - "TRIANGLE_FAN": 6,  
12 - "ZERO": 0,  
13 - "ONE": 1,  
14 - "SRC_COLOR": 768,  
15 - "ONE_MINUS_SRC_COLOR": 769,  
16 - "SRC_ALPHA": 770,  
17 - "ONE_MINUS_SRC_ALPHA": 771,  
18 - "DST_ALPHA": 772,  
19 - "ONE_MINUS_DST_ALPHA": 773,  
20 - "DST_COLOR": 774,  
21 - "ONE_MINUS_DST_COLOR": 775,  
22 - "SRC_ALPHA_SATURATE": 776,  
23 - "FUNC_ADD": 32774,  
24 - "BLEND_EQUATION": 32777,  
25 - "BLEND_EQUATION_RGB": 32777,  
26 - "BLEND_EQUATION_ALPHA": 34877,  
27 - "FUNC_SUBTRACT": 32778,  
28 - "FUNC_REVERSE_SUBTRACT": 32779,  
29 - "BLEND_DST_RGB": 32968,  
30 - "BLEND_SRC_RGB": 32969,  
31 - "BLEND_DST_ALPHA": 32970,  
32 - "BLEND_SRC_ALPHA": 32971,  
33 - "CONSTANT_COLOR": 32769,  
34 - "ONE_MINUS_CONSTANT_COLOR": 32770,  
35 - "CONSTANT_ALPHA": 32771,  
36 - "ONE_MINUS_CONSTANT_ALPHA": 32772,  
37 - "BLEND_COLOR": 32773,  
38 - "ARRAY_BUFFER": 34962,  
39 - "ELEMENT_ARRAY_BUFFER": 34963,  
40 - "ARRAY_BUFFER_BINDING": 34964,  
41 - "ELEMENT_ARRAY_BUFFER_BINDING": 34965,  
42 - "STREAM_DRAW": 35040,  
43 - "STATIC_DRAW": 35044,  
44 - "DYNAMIC_DRAW": 35048,  
45 - "BUFFER_SIZE": 34660,  
46 - "BUFFER_USAGE": 34661,  
47 - "CURRENT_VERTEX_ATTRIB": 34342,  
48 - "FRONT": 1028,  
49 - "BACK": 1029,  
50 - "FRONT_AND_BACK": 1032,  
51 - "TEXTURE_2D": 3553,  
52 - "CULL_FACE": 2884,  
53 - "BLEND": 3042,  
54 - "DITHER": 3024,  
55 - "STENCIL_TEST": 2960,  
56 - "DEPTH_TEST": 2929,  
57 - "SCISSOR_TEST": 3089,  
58 - "POLYGON_OFFSET_FILL": 32823,  
59 - "SAMPLE_ALPHA_TO_COVERAGE": 32926,  
60 - "SAMPLE_COVERAGE": 32928,  
61 - "NO_ERROR": 0,  
62 - "INVALID_ENUM": 1280,  
63 - "INVALID_VALUE": 1281,  
64 - "INVALID_OPERATION": 1282,  
65 - "OUT_OF_MEMORY": 1285,  
66 - "CW": 2304,  
67 - "CCW": 2305,  
68 - "LINE_WIDTH": 2849,  
69 - "ALIASED_POINT_SIZE_RANGE": 33901,  
70 - "ALIASED_LINE_WIDTH_RANGE": 33902,  
71 - "CULL_FACE_MODE": 2885,  
72 - "FRONT_FACE": 2886,  
73 - "DEPTH_RANGE": 2928,  
74 - "DEPTH_WRITEMASK": 2930,  
75 - "DEPTH_CLEAR_VALUE": 2931,  
76 - "DEPTH_FUNC": 2932,  
77 - "STENCIL_CLEAR_VALUE": 2961,  
78 - "STENCIL_FUNC": 2962,  
79 - "STENCIL_FAIL": 2964,  
80 - "STENCIL_PASS_DEPTH_FAIL": 2965,  
81 - "STENCIL_PASS_DEPTH_PASS": 2966,  
82 - "STENCIL_REF": 2967,  
83 - "STENCIL_VALUE_MASK": 2963,  
84 - "STENCIL_WRITEMASK": 2968,  
85 - "STENCIL_BACK_FUNC": 34816,  
86 - "STENCIL_BACK_FAIL": 34817,  
87 - "STENCIL_BACK_PASS_DEPTH_FAIL": 34818,  
88 - "STENCIL_BACK_PASS_DEPTH_PASS": 34819,  
89 - "STENCIL_BACK_REF": 36003,  
90 - "STENCIL_BACK_VALUE_MASK": 36004,  
91 - "STENCIL_BACK_WRITEMASK": 36005,  
92 - "VIEWPORT": 2978,  
93 - "SCISSOR_BOX": 3088,  
94 - "COLOR_CLEAR_VALUE": 3106,  
95 - "COLOR_WRITEMASK": 3107,  
96 - "UNPACK_ALIGNMENT": 3317,  
97 - "PACK_ALIGNMENT": 3333,  
98 - "MAX_TEXTURE_SIZE": 3379,  
99 - "MAX_VIEWPORT_DIMS": 3386,  
100 - "SUBPIXEL_BITS": 3408,  
101 - "RED_BITS": 3410,  
102 - "GREEN_BITS": 3411,  
103 - "BLUE_BITS": 3412,  
104 - "ALPHA_BITS": 3413,  
105 - "DEPTH_BITS": 3414,  
106 - "STENCIL_BITS": 3415,  
107 - "POLYGON_OFFSET_UNITS": 10752,  
108 - "POLYGON_OFFSET_FACTOR": 32824,  
109 - "TEXTURE_BINDING_2D": 32873,  
110 - "SAMPLE_BUFFERS": 32936,  
111 - "SAMPLES": 32937,  
112 - "SAMPLE_COVERAGE_VALUE": 32938,  
113 - "SAMPLE_COVERAGE_INVERT": 32939,  
114 - "COMPRESSED_TEXTURE_FORMATS": 34467,  
115 - "DONT_CARE": 4352,  
116 - "FASTEST": 4353,  
117 - "NICEST": 4354,  
118 - "GENERATE_MIPMAP_HINT": 33170,  
119 - "BYTE": 5120,  
120 - "UNSIGNED_BYTE": 5121,  
121 - "SHORT": 5122,  
122 - "UNSIGNED_SHORT": 5123,  
123 - "INT": 5124,  
124 - "UNSIGNED_INT": 5125,  
125 - "FLOAT": 5126,  
126 - "DEPTH_COMPONENT": 6402,  
127 - "ALPHA": 6406,  
128 - "RGB": 6407,  
129 - "RGBA": 6408,  
130 - "LUMINANCE": 6409,  
131 - "LUMINANCE_ALPHA": 6410,  
132 - "UNSIGNED_SHORT_4_4_4_4": 32819,  
133 - "UNSIGNED_SHORT_5_5_5_1": 32820,  
134 - "UNSIGNED_SHORT_5_6_5": 33635,  
135 - "FRAGMENT_SHADER": 35632,  
136 - "VERTEX_SHADER": 35633,  
137 - "MAX_VERTEX_ATTRIBS": 34921,  
138 - "MAX_VERTEX_UNIFORM_VECTORS": 36347,  
139 - "MAX_VARYING_VECTORS": 36348,  
140 - "MAX_COMBINED_TEXTURE_IMAGE_UNITS": 35661,  
141 - "MAX_VERTEX_TEXTURE_IMAGE_UNITS": 35660,  
142 - "MAX_TEXTURE_IMAGE_UNITS": 34930,  
143 - "MAX_FRAGMENT_UNIFORM_VECTORS": 36349,  
144 - "SHADER_TYPE": 35663,  
145 - "DELETE_STATUS": 35712,  
146 - "LINK_STATUS": 35714,  
147 - "VALIDATE_STATUS": 35715,  
148 - "ATTACHED_SHADERS": 35717,  
149 - "ACTIVE_UNIFORMS": 35718,  
150 - "ACTIVE_ATTRIBUTES": 35721,  
151 - "SHADING_LANGUAGE_VERSION": 35724,  
152 - "CURRENT_PROGRAM": 35725,  
153 - "NEVER": 512,  
154 - "LESS": 513,  
155 - "EQUAL": 514,  
156 - "LEQUAL": 515,  
157 - "GREATER": 516,  
158 - "NOTEQUAL": 517,  
159 - "GEQUAL": 518,  
160 - "ALWAYS": 519,  
161 - "KEEP": 7680,  
162 - "REPLACE": 7681,  
163 - "INCR": 7682,  
164 - "DECR": 7683,  
165 - "INVERT": 5386,  
166 - "INCR_WRAP": 34055,  
167 - "DECR_WRAP": 34056,  
168 - "VENDOR": 7936,  
169 - "RENDERER": 7937,  
170 - "VERSION": 7938,  
171 - "NEAREST": 9728,  
172 - "LINEAR": 9729,  
173 - "NEAREST_MIPMAP_NEAREST": 9984,  
174 - "LINEAR_MIPMAP_NEAREST": 9985,  
175 - "NEAREST_MIPMAP_LINEAR": 9986,  
176 - "LINEAR_MIPMAP_LINEAR": 9987,  
177 - "TEXTURE_MAG_FILTER": 10240,  
178 - "TEXTURE_MIN_FILTER": 10241,  
179 - "TEXTURE_WRAP_S": 10242,  
180 - "TEXTURE_WRAP_T": 10243,  
181 - "TEXTURE": 5890,  
182 - "TEXTURE_CUBE_MAP": 34067,  
183 - "TEXTURE_BINDING_CUBE_MAP": 34068,  
184 - "TEXTURE_CUBE_MAP_POSITIVE_X": 34069,  
185 - "TEXTURE_CUBE_MAP_NEGATIVE_X": 34070,  
186 - "TEXTURE_CUBE_MAP_POSITIVE_Y": 34071,  
187 - "TEXTURE_CUBE_MAP_NEGATIVE_Y": 34072,  
188 - "TEXTURE_CUBE_MAP_POSITIVE_Z": 34073,  
189 - "TEXTURE_CUBE_MAP_NEGATIVE_Z": 34074,  
190 - "MAX_CUBE_MAP_TEXTURE_SIZE": 34076,  
191 - "TEXTURE0": 33984,  
192 - "TEXTURE1": 33985,  
193 - "TEXTURE2": 33986,  
194 - "TEXTURE3": 33987,  
195 - "TEXTURE4": 33988,  
196 - "TEXTURE5": 33989,  
197 - "TEXTURE6": 33990,  
198 - "TEXTURE7": 33991,  
199 - "TEXTURE8": 33992,  
200 - "TEXTURE9": 33993,  
201 - "TEXTURE10": 33994,  
202 - "TEXTURE11": 33995,  
203 - "TEXTURE12": 33996,  
204 - "TEXTURE13": 33997,  
205 - "TEXTURE14": 33998,  
206 - "TEXTURE15": 33999,  
207 - "TEXTURE16": 34000,  
208 - "TEXTURE17": 34001,  
209 - "TEXTURE18": 34002,  
210 - "TEXTURE19": 34003,  
211 - "TEXTURE20": 34004,  
212 - "TEXTURE21": 34005,  
213 - "TEXTURE22": 34006,  
214 - "TEXTURE23": 34007,  
215 - "TEXTURE24": 34008,  
216 - "TEXTURE25": 34009,  
217 - "TEXTURE26": 34010,  
218 - "TEXTURE27": 34011,  
219 - "TEXTURE28": 34012,  
220 - "TEXTURE29": 34013,  
221 - "TEXTURE30": 34014,  
222 - "TEXTURE31": 34015,  
223 - "ACTIVE_TEXTURE": 34016,  
224 - "REPEAT": 10497,  
225 - "CLAMP_TO_EDGE": 33071,  
226 - "MIRRORED_REPEAT": 33648,  
227 - "FLOAT_VEC2": 35664,  
228 - "FLOAT_VEC3": 35665,  
229 - "FLOAT_VEC4": 35666,  
230 - "INT_VEC2": 35667,  
231 - "INT_VEC3": 35668,  
232 - "INT_VEC4": 35669,  
233 - "BOOL": 35670,  
234 - "BOOL_VEC2": 35671,  
235 - "BOOL_VEC3": 35672,  
236 - "BOOL_VEC4": 35673,  
237 - "FLOAT_MAT2": 35674,  
238 - "FLOAT_MAT3": 35675,  
239 - "FLOAT_MAT4": 35676,  
240 - "SAMPLER_2D": 35678,  
241 - "SAMPLER_CUBE": 35680,  
242 - "VERTEX_ATTRIB_ARRAY_ENABLED": 34338,  
243 - "VERTEX_ATTRIB_ARRAY_SIZE": 34339,  
244 - "VERTEX_ATTRIB_ARRAY_STRIDE": 34340,  
245 - "VERTEX_ATTRIB_ARRAY_TYPE": 34341,  
246 - "VERTEX_ATTRIB_ARRAY_NORMALIZED": 34922,  
247 - "VERTEX_ATTRIB_ARRAY_POINTER": 34373,  
248 - "VERTEX_ATTRIB_ARRAY_BUFFER_BINDING": 34975,  
249 - "IMPLEMENTATION_COLOR_READ_TYPE": 35738,  
250 - "IMPLEMENTATION_COLOR_READ_FORMAT": 35739,  
251 - "COMPILE_STATUS": 35713,  
252 - "LOW_FLOAT": 36336,  
253 - "MEDIUM_FLOAT": 36337,  
254 - "HIGH_FLOAT": 36338,  
255 - "LOW_INT": 36339,  
256 - "MEDIUM_INT": 36340,  
257 - "HIGH_INT": 36341,  
258 - "FRAMEBUFFER": 36160,  
259 - "RENDERBUFFER": 36161,  
260 - "RGBA4": 32854,  
261 - "RGB5_A1": 32855,  
262 - "RGB565": 36194,  
263 - "DEPTH_COMPONENT16": 33189,  
264 - "STENCIL_INDEX8": 36168,  
265 - "DEPTH_STENCIL": 34041,  
266 - "RENDERBUFFER_WIDTH": 36162,  
267 - "RENDERBUFFER_HEIGHT": 36163,  
268 - "RENDERBUFFER_INTERNAL_FORMAT": 36164,  
269 - "RENDERBUFFER_RED_SIZE": 36176,  
270 - "RENDERBUFFER_GREEN_SIZE": 36177,  
271 - "RENDERBUFFER_BLUE_SIZE": 36178,  
272 - "RENDERBUFFER_ALPHA_SIZE": 36179,  
273 - "RENDERBUFFER_DEPTH_SIZE": 36180,  
274 - "RENDERBUFFER_STENCIL_SIZE": 36181,  
275 - "FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE": 36048,  
276 - "FRAMEBUFFER_ATTACHMENT_OBJECT_NAME": 36049,  
277 - "FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL": 36050,  
278 - "FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE": 36051,  
279 - "COLOR_ATTACHMENT0": 36064,  
280 - "DEPTH_ATTACHMENT": 36096,  
281 - "STENCIL_ATTACHMENT": 36128,  
282 - "DEPTH_STENCIL_ATTACHMENT": 33306,  
283 - "NONE": 0,  
284 - "FRAMEBUFFER_COMPLETE": 36053,  
285 - "FRAMEBUFFER_INCOMPLETE_ATTACHMENT": 36054,  
286 - "FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT": 36055,  
287 - "FRAMEBUFFER_INCOMPLETE_DIMENSIONS": 36057,  
288 - "FRAMEBUFFER_UNSUPPORTED": 36061,  
289 - "FRAMEBUFFER_BINDING": 36006,  
290 - "RENDERBUFFER_BINDING": 36007,  
291 - "MAX_RENDERBUFFER_SIZE": 34024,  
292 - "INVALID_FRAMEBUFFER_OPERATION": 1286,  
293 - "UNPACK_FLIP_Y_WEBGL": 37440,  
294 - "UNPACK_PREMULTIPLY_ALPHA_WEBGL": 37441,  
295 - "CONTEXT_LOST_WEBGL": 37442,  
296 - "UNPACK_COLORSPACE_CONVERSION_WEBGL": 37443,  
297 - "BROWSER_DEFAULT_WEBGL": 37444  
298 -};  
1 -let i = 1;  
2 -  
3 -const GLmethod = {};  
4 -  
5 -GLmethod.activeTexture = i++; //1  
6 -GLmethod.attachShader = i++;  
7 -GLmethod.bindAttribLocation = i++;  
8 -GLmethod.bindBuffer = i++;  
9 -GLmethod.bindFramebuffer = i++;  
10 -GLmethod.bindRenderbuffer = i++;  
11 -GLmethod.bindTexture = i++;  
12 -GLmethod.blendColor = i++;  
13 -GLmethod.blendEquation = i++;  
14 -GLmethod.blendEquationSeparate = i++; //10  
15 -GLmethod.blendFunc = i++;  
16 -GLmethod.blendFuncSeparate = i++;  
17 -GLmethod.bufferData = i++;  
18 -GLmethod.bufferSubData = i++;  
19 -GLmethod.checkFramebufferStatus = i++;  
20 -GLmethod.clear = i++;  
21 -GLmethod.clearColor = i++;  
22 -GLmethod.clearDepth = i++;  
23 -GLmethod.clearStencil = i++;  
24 -GLmethod.colorMask = i++; //20  
25 -GLmethod.compileShader = i++;  
26 -GLmethod.compressedTexImage2D = i++;  
27 -GLmethod.compressedTexSubImage2D = i++;  
28 -GLmethod.copyTexImage2D = i++;  
29 -GLmethod.copyTexSubImage2D = i++;  
30 -GLmethod.createBuffer = i++;  
31 -GLmethod.createFramebuffer = i++;  
32 -GLmethod.createProgram = i++;  
33 -GLmethod.createRenderbuffer = i++;  
34 -GLmethod.createShader = i++; //30  
35 -GLmethod.createTexture = i++;  
36 -GLmethod.cullFace = i++;  
37 -GLmethod.deleteBuffer = i++;  
38 -GLmethod.deleteFramebuffer = i++;  
39 -GLmethod.deleteProgram = i++;  
40 -GLmethod.deleteRenderbuffer = i++;  
41 -GLmethod.deleteShader = i++;  
42 -GLmethod.deleteTexture = i++;  
43 -GLmethod.depthFunc = i++;  
44 -GLmethod.depthMask = i++; //40  
45 -GLmethod.depthRange = i++;  
46 -GLmethod.detachShader = i++;  
47 -GLmethod.disable = i++;  
48 -GLmethod.disableVertexAttribArray = i++;  
49 -GLmethod.drawArrays = i++;  
50 -GLmethod.drawArraysInstancedANGLE = i++;  
51 -GLmethod.drawElements = i++;  
52 -GLmethod.drawElementsInstancedANGLE = i++;  
53 -GLmethod.enable = i++;  
54 -GLmethod.enableVertexAttribArray = i++; //50  
55 -GLmethod.flush = i++;  
56 -GLmethod.framebufferRenderbuffer = i++;  
57 -GLmethod.framebufferTexture2D = i++;  
58 -GLmethod.frontFace = i++;  
59 -GLmethod.generateMipmap = i++;  
60 -GLmethod.getActiveAttrib = i++;  
61 -GLmethod.getActiveUniform = i++;  
62 -GLmethod.getAttachedShaders = i++;  
63 -GLmethod.getAttribLocation = i++;  
64 -GLmethod.getBufferParameter = i++; //60  
65 -GLmethod.getContextAttributes = i++;  
66 -GLmethod.getError = i++;  
67 -GLmethod.getExtension = i++;  
68 -GLmethod.getFramebufferAttachmentParameter = i++;  
69 -GLmethod.getParameter = i++;  
70 -GLmethod.getProgramInfoLog = i++;  
71 -GLmethod.getProgramParameter = i++;  
72 -GLmethod.getRenderbufferParameter = i++;  
73 -GLmethod.getShaderInfoLog = i++;  
74 -GLmethod.getShaderParameter = i++; //70  
75 -GLmethod.getShaderPrecisionFormat = i++;  
76 -GLmethod.getShaderSource = i++;  
77 -GLmethod.getSupportedExtensions = i++;  
78 -GLmethod.getTexParameter = i++;  
79 -GLmethod.getUniform = i++;  
80 -GLmethod.getUniformLocation = i++;  
81 -GLmethod.getVertexAttrib = i++;  
82 -GLmethod.getVertexAttribOffset = i++;  
83 -GLmethod.isBuffer = i++;  
84 -GLmethod.isContextLost = i++; //80  
85 -GLmethod.isEnabled = i++;  
86 -GLmethod.isFramebuffer = i++;  
87 -GLmethod.isProgram = i++;  
88 -GLmethod.isRenderbuffer = i++;  
89 -GLmethod.isShader = i++;  
90 -GLmethod.isTexture = i++;  
91 -GLmethod.lineWidth = i++;  
92 -GLmethod.linkProgram = i++;  
93 -GLmethod.pixelStorei = i++;  
94 -GLmethod.polygonOffset = i++; //90  
95 -GLmethod.readPixels = i++;  
96 -GLmethod.renderbufferStorage = i++;  
97 -GLmethod.sampleCoverage = i++;  
98 -GLmethod.scissor = i++;  
99 -GLmethod.shaderSource = i++;  
100 -GLmethod.stencilFunc = i++;  
101 -GLmethod.stencilFuncSeparate = i++;  
102 -GLmethod.stencilMask = i++;  
103 -GLmethod.stencilMaskSeparate = i++;  
104 -GLmethod.stencilOp = i++; //100  
105 -GLmethod.stencilOpSeparate = i++;  
106 -GLmethod.texImage2D = i++;  
107 -GLmethod.texParameterf = i++;  
108 -GLmethod.texParameteri = i++;  
109 -GLmethod.texSubImage2D = i++;  
110 -GLmethod.uniform1f = i++;  
111 -GLmethod.uniform1fv = i++;  
112 -GLmethod.uniform1i = i++;  
113 -GLmethod.uniform1iv = i++;  
114 -GLmethod.uniform2f = i++; //110  
115 -GLmethod.uniform2fv = i++;  
116 -GLmethod.uniform2i = i++;  
117 -GLmethod.uniform2iv = i++;  
118 -GLmethod.uniform3f = i++;  
119 -GLmethod.uniform3fv = i++;  
120 -GLmethod.uniform3i = i++;  
121 -GLmethod.uniform3iv = i++;  
122 -GLmethod.uniform4f = i++;  
123 -GLmethod.uniform4fv = i++;  
124 -GLmethod.uniform4i = i++; //120  
125 -GLmethod.uniform4iv = i++;  
126 -GLmethod.uniformMatrix2fv = i++;  
127 -GLmethod.uniformMatrix3fv = i++;  
128 -GLmethod.uniformMatrix4fv = i++;  
129 -GLmethod.useProgram = i++;  
130 -GLmethod.validateProgram = i++;  
131 -GLmethod.vertexAttrib1f = i++; //new  
132 -GLmethod.vertexAttrib2f = i++; //new  
133 -GLmethod.vertexAttrib3f = i++; //new  
134 -GLmethod.vertexAttrib4f = i++; //new //130  
135 -GLmethod.vertexAttrib1fv = i++; //new  
136 -GLmethod.vertexAttrib2fv = i++; //new  
137 -GLmethod.vertexAttrib3fv = i++; //new  
138 -GLmethod.vertexAttrib4fv = i++; //new  
139 -GLmethod.vertexAttribPointer = i++;  
140 -GLmethod.viewport = i++;  
141 -  
142 -export default GLmethod;  
1 -const GLtype = {};  
2 -  
3 -[  
4 - "GLbitfield",  
5 - "GLboolean",  
6 - "GLbyte",  
7 - "GLclampf",  
8 - "GLenum",  
9 - "GLfloat",  
10 - "GLint",  
11 - "GLintptr",  
12 - "GLsizei",  
13 - "GLsizeiptr",  
14 - "GLshort",  
15 - "GLubyte",  
16 - "GLuint",  
17 - "GLushort"  
18 -].sort().map((typeName, i) => GLtype[typeName] = 1 >> (i + 1));  
19 -  
20 -export default GLtype;  
21 -  
22 -  
23 -  
1 -import {getTransferedObjectUUID} from './classUtils';  
2 -  
3 -const name = 'WebGLProgram';  
4 -  
5 -function uuid(id) {  
6 - return getTransferedObjectUUID(name, id);  
7 -}  
8 -  
9 -export default class WebGLProgram {  
10 - className = name;  
11 -  
12 - constructor(id) {  
13 - this.id = id;  
14 - }  
15 -  
16 - static uuid = uuid;  
17 -  
18 - uuid() {  
19 - return uuid(this.id);  
20 - }  
21 -}  
1 -import {getTransferedObjectUUID} from './classUtils';  
2 -  
3 -const name = 'WebGLRenderBuffer';  
4 -  
5 -function uuid(id) {  
6 - return getTransferedObjectUUID(name, id);  
7 -}  
8 -  
9 -export default class WebGLRenderbuffer {  
10 - className = name;  
11 -  
12 - constructor(id) {  
13 - this.id = id;  
14 - }  
15 -  
16 - static uuid = uuid;  
17 -  
18 - uuid() {  
19 - return uuid(this.id);  
20 - }  
21 -}  
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 -}  
1 -import {getTransferedObjectUUID} from './classUtils';  
2 -  
3 -const name = 'WebGLShader';  
4 -  
5 -function uuid(id) {  
6 - return getTransferedObjectUUID(name, id);  
7 -}  
8 -  
9 -export default class WebGLShader {  
10 - className = name;  
11 -  
12 - constructor(id, type) {  
13 - this.id = id;  
14 - this.type = type;  
15 - }  
16 -  
17 - static uuid = uuid;  
18 -  
19 - uuid() {  
20 - return uuid(this.id);  
21 - }  
22 -}  
1 -export default class WebGLShaderPrecisionFormat {  
2 - className = 'WebGLShaderPrecisionFormat';  
3 -  
4 - constructor({  
5 - rangeMin, rangeMax, precision  
6 - }) {  
7 - this.rangeMin = rangeMin;  
8 - this.rangeMax = rangeMax;  
9 - this.precision = precision;  
10 - }  
11 -}  
1 -import {getTransferedObjectUUID} from './classUtils';  
2 -  
3 -const name = 'WebGLTexture';  
4 -  
5 -function uuid(id) {  
6 - return getTransferedObjectUUID(name, id);  
7 -}  
8 -  
9 -export default class WebGLTexture {  
10 - className = name;  
11 -  
12 - constructor(id, type) {  
13 - this.id = id;  
14 - this.type = type;  
15 - }  
16 -  
17 - static uuid = uuid;  
18 -  
19 - uuid() {  
20 - return uuid(this.id);  
21 - }  
22 -}  
1 -import {getTransferedObjectUUID} from './classUtils';  
2 -  
3 -const name = 'WebGLUniformLocation';  
4 -  
5 -function uuid(id) {  
6 - return getTransferedObjectUUID(name, id);  
7 -}  
8 -  
9 -export default class WebGLUniformLocation {  
10 - className = name;  
11 -  
12 - constructor(id, type) {  
13 - this.id = id;  
14 - this.type = type;  
15 - }  
16 -  
17 - static uuid = uuid;  
18 -  
19 - uuid() {  
20 - return uuid(this.id);  
21 - }  
22 -}  
1 -export function getTransferedObjectUUID(name, id) {  
2 - return `${name.toLowerCase()}-${id}`;  
3 -}  
1 -import GContext2D from '../context-2d/RenderingContext';  
2 -import GContextWebGL from '../context-webgl/RenderingContext';  
3 -  
4 -export default class GCanvas {  
5 -  
6 - // static GBridge = null;  
7 -  
8 - id = null;  
9 -  
10 - _needRender = true;  
11 -  
12 - constructor(id, { disableAutoSwap }) {  
13 - this.id = id;  
14 -  
15 - this._disableAutoSwap = disableAutoSwap;  
16 - if (disableAutoSwap) {  
17 - this._swapBuffers = () => {  
18 - GCanvas.GBridge.render(this.id);  
19 - }  
20 - }  
21 - }  
22 -  
23 - getContext(type) {  
24 -  
25 - let context = null;  
26 -  
27 - if (type.match(/webgl/i)) {  
28 - context = new GContextWebGL(this);  
29 -  
30 - context.componentId = this.id;  
31 -  
32 - if (!this._disableAutoSwap) {  
33 - const render = () => {  
34 - if (this._needRender) {  
35 - GCanvas.GBridge.render(this.id);  
36 - this._needRender = false;  
37 - }  
38 - }  
39 - setInterval(render, 16);  
40 - }  
41 -  
42 - GCanvas.GBridge.callSetContextType(this.id, 1); // 0 for 2d; 1 for webgl  
43 - } else if (type.match(/2d/i)) {  
44 - context = new GContext2D(this);  
45 -  
46 - context.componentId = this.id;  
47 -  
48 -// const render = ( callback ) => {  
49 -//  
50 -// const commands = context._drawCommands;  
51 -// context._drawCommands = '';  
52 -//  
53 -// GCanvas.GBridge.render2d(this.id, commands, callback);  
54 -// this._needRender = false;  
55 -// }  
56 -// //draw方法触发  
57 -// context._flush = render;  
58 -// //setInterval(render, 16);  
59 -  
60 - GCanvas.GBridge.callSetContextType(this.id, 0);  
61 - } else {  
62 - throw new Error('not supported context ' + type);  
63 - }  
64 -  
65 - return context;  
66 -  
67 - }  
68 -  
69 - reset() {  
70 - GCanvas.GBridge.callReset(this.id);  
71 - }  
72 -  
73 -  
74 -}  
1 -let incId = 1;  
2 -  
3 -const noop = function () { };  
4 -  
5 -class GImage {  
6 -  
7 - static GBridge = null;  
8 -  
9 - constructor() {  
10 - this._id = incId++;  
11 - this._width = 0;  
12 - this._height = 0;  
13 - this._src = undefined;  
14 - this._onload = noop;  
15 - this._onerror = noop;  
16 - this.complete = false;  
17 - }  
18 -  
19 - get width() {  
20 - return this._width;  
21 - }  
22 - set width(v) {  
23 - this._width = v;  
24 - }  
25 -  
26 - get height() {  
27 - return this._height;  
28 - }  
29 -  
30 - set height(v) {  
31 - this._height = v;  
32 - }  
33 -  
34 - get src() {  
35 - return this._src;  
36 - }  
37 -  
38 - set src(v) {  
39 -  
40 - if (v.startsWith('//')) {  
41 - v = 'http:' + v;  
42 - }  
43 -  
44 - this._src = v;  
45 -  
46 - GImage.GBridge.perloadImage([this._src, this._id], (data) => {  
47 - if (typeof data === 'string') {  
48 - data = JSON.parse(data);  
49 - }  
50 - if (data.error) {  
51 - var evt = { type: 'error', target: this };  
52 - this.onerror(evt);  
53 - } else {  
54 - this.complete = true;  
55 - this.width = typeof data.width === 'number' ? data.width : 0;  
56 - this.height = typeof data.height === 'number' ? data.height : 0;  
57 - var evt = { type: 'load', target: this };  
58 - this.onload(evt);  
59 - }  
60 - });  
61 - }  
62 -  
63 - addEventListener(name, listener) {  
64 - if (name === 'load') {  
65 - this.onload = listener;  
66 - } else if (name === 'error') {  
67 - this.onerror = listener;  
68 - }  
69 - }  
70 -  
71 - removeEventListener(name, listener) {  
72 - if (name === 'load') {  
73 - this.onload = noop;  
74 - } else if (name === 'error') {  
75 - this.onerror = noop;  
76 - }  
77 - }  
78 -  
79 - get onload() {  
80 - return this._onload;  
81 - }  
82 -  
83 - set onload(v) {  
84 - this._onload = v;  
85 - }  
86 -  
87 - get onerror() {  
88 - return this._onerror;  
89 - }  
90 -  
91 - set onerror(v) {  
92 - this._onerror = v;  
93 - }  
94 -}  
95 -  
96 -export default GImage;  
1 -  
2 -export function ArrayBufferToBase64 (buffer) {  
3 - var binary = '';  
4 - var bytes = new Uint8ClampedArray(buffer);  
5 - for (var len = bytes.byteLength, i = 0; i < len; i++) {  
6 - binary += String.fromCharCode(bytes[i]);  
7 - }  
8 - return btoa(binary);  
9 -}  
10 -  
11 -export function Base64ToUint8ClampedArray(base64String) {  
12 - const padding = '='.repeat((4 - base64String.length % 4) % 4);  
13 - const base64 = (base64String + padding)  
14 - .replace(/\-/g, '+')  
15 - .replace(/_/g, '/');  
16 -  
17 - const rawData = atob(base64);  
18 - const outputArray = new Uint8ClampedArray(rawData.length);  
19 -  
20 - for (let i = 0; i < rawData.length; ++i) {  
21 - outputArray[i] = rawData.charCodeAt(i);  
22 - }  
23 - return outputArray;  
24 -}  
1 -import GCanvas from './env/canvas';  
2 -import GImage from './env/image';  
3 -  
4 -import GWebGLRenderingContext from './context-webgl/RenderingContext';  
5 -import GContext2D from './context-2d/RenderingContext';  
6 -  
7 -import GBridgeWeex from './bridge/bridge-weex';  
8 -  
9 -export let Image = GImage;  
10 -  
11 -export let WeexBridge = GBridgeWeex;  
12 -  
13 -export function enable(el, {  
14 - bridge,  
15 - debug,  
16 - disableAutoSwap,  
17 - disableComboCommands  
18 -} = {}) {  
19 -  
20 - const GBridge = GImage.GBridge = GCanvas.GBridge = GWebGLRenderingContext.GBridge = GContext2D.GBridge = bridge;  
21 -  
22 - GBridge.callEnable(el.ref, [  
23 - 0, // renderMode: 0--RENDERMODE_WHEN_DIRTY, 1--RENDERMODE_CONTINUOUSLY  
24 - -1, // hybridLayerType: 0--LAYER_TYPE_NONE 1--LAYER_TYPE_SOFTWARE 2--LAYER_TYPE_HARDWARE  
25 - false, // supportScroll  
26 - false, // newCanvasMode  
27 - 1, // compatible  
28 - 'white', // clearColor  
29 - false // sameLevel: newCanvasMode = true && true => GCanvasView and Webview is same level  
30 - ]);  
31 -  
32 - if (debug === true) {  
33 - GBridge.callEnableDebug();  
34 - }  
35 - if (disableComboCommands) {  
36 - GBridge.callEnableDisableCombo();  
37 - }  
38 -  
39 - var canvas = new GCanvas(el.ref, {  
40 - disableAutoSwap  
41 - });  
42 - let pixelRatio = uni.getSystemInfoSync().pixelRatio;  
43 - canvas.width = el.style.width * pixelRatio;  
44 - canvas.height = el.style.height * pixelRatio;  
45 -  
46 - return canvas;  
47 -};