@10yun/cv-mobile-ui 0.5.51 → 0.5.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/build/common_func.js +3 -1
  2. package/build/parse-create.js +17 -8
  3. package/build/parse-pages-pkg.js +10 -4
  4. package/empty-devtools.js +3 -0
  5. package/libs/aes.js +50 -0
  6. package/libs/bledefine/bledefine.js +51 -0
  7. package/libs/bledefine/ios-ble-statuscode.js +97 -0
  8. package/libs/nfc/hexiii-nfc.js +236 -0
  9. package/libs/nfc.js +179 -0
  10. package/libs/sdk/html2canvas.js +8 -0
  11. package/libs/sdk/sdk-h5.js +585 -0
  12. package/{plugins → libs}/storage2.js +0 -5
  13. package/{plugins → libs}/storage3.js +0 -4
  14. package/libs/validators/index.js +438 -0
  15. package/libs/weapp-qrcode.js +1108 -0
  16. package/package.json +2 -3
  17. package/ui-cv/components/cv-dialog-share/tui-share.vue +16 -16
  18. package/ui-fireui/components/{fui-actionsheet/fui-actionsheet.vue → u-action-sheet/u-action-sheet.vue} +21 -21
  19. package/ui-fireui/components/{fui-alert/fui-alert.vue → u-alert/u-alert.vue} +13 -13
  20. package/ui-fireui/components/{fui-badge/fui-badge.vue → u-badge/u-badge.vue} +16 -16
  21. package/ui-fireui/components/{fui-bottom-navigation/fui-bottom-navigation.vue → u-bottom-navigation/u-bottom-navigation.vue} +47 -46
  22. package/ui-fireui/components/{fui-bottom-popup/fui-bottom-popup.vue → u-bottom-popup/u-bottom-popup.vue} +9 -8
  23. package/ui-fireui/components/{fui-bubble-popup/fui-bubble-popup.vue → u-bubble-popup/u-bubble-popup.vue} +19 -15
  24. package/ui-fireui/components/{fui-button/fui-button.vue → u-button/u-button.vue} +69 -69
  25. package/ui-fireui/components/u-button/u-button2.vue +553 -0
  26. package/ui-fireui/components/{fui-calendar/fui-calendar.vue → u-calendar/u-calendar.vue} +78 -78
  27. package/ui-fireui/components/u-calendar/u-calendar2.vue +801 -0
  28. package/ui-fireui/components/{fui-card/fui-card.vue → u-card/u-card.vue} +24 -24
  29. package/ui-fireui/components/{fui-cascade-selection/fui-cascade-selection.vue → u-cascade-selection/u-cascade-selection.vue} +32 -32
  30. package/ui-fireui/components/{fui-circular-progress/fui-circular-progress.vue → u-circular-progress/u-circular-progress.vue} +14 -6
  31. package/ui-fireui/components/{fui-collapse/fui-collapse.vue → u-collapse/u-collapse.vue} +19 -19
  32. package/ui-fireui/components/{fui-countdown/fui-countdown.vue → u-countdown/u-countdown.vue} +28 -28
  33. package/ui-fireui/components/{fui-datetime/fui-datetime.vue → u-datetime/u-datetime.vue} +51 -51
  34. package/ui-fireui/components/{fui-divider/fui-divider.vue → u-divider/u-divider.vue} +6 -6
  35. package/ui-fireui/components/{fui-drawer/fui-drawer.vue → u-drawer/u-drawer.vue} +11 -11
  36. package/ui-fireui/components/{fui-dropdown-list/fui-dropdown-list.vue → u-dropdown-list/u-dropdown-list.vue} +11 -6
  37. package/ui-fireui/components/{fui-fab/fui-fab.vue → u-fab/u-fab.vue} +30 -30
  38. package/ui-fireui/components/{fui-footer/fui-footer.vue → u-footer/u-footer.vue} +19 -15
  39. package/ui-fireui/components/{fui-grid/fui-grid.vue → u-grid/u-grid.vue} +13 -5
  40. package/ui-fireui/components/{fui-grid-item/fui-grid-item.vue → u-grid-item/u-grid-item.vue} +19 -19
  41. package/ui-fireui/components/{fui-icon/fui-icon.vue → u-icon/u-icon.vue} +191 -191
  42. package/ui-fireui/components/{fui-image-cropper/fui-image-cropper.vue → u-image-cropper/u-image-cropper.vue} +44 -44
  43. package/ui-fireui/components/{fui-image-group/fui-image-group.vue → u-image-group/u-image-group.vue} +7 -7
  44. package/ui-fireui/components/{fui-keyboard/fui-keyboard.vue → u-keyboard/u-keyboard.vue} +29 -32
  45. package/ui-fireui/components/{fui-keyboard-input/fui-keyboard-input.vue → u-keyboard-input/u-keyboard-input.vue} +9 -9
  46. package/ui-fireui/components/{fui-list-cell/fui-list-cell.vue → u-list-cell/u-list-cell.vue} +23 -23
  47. package/ui-fireui/components/{fui-list-view/fui-list-view.vue → u-list-view/u-list-view.vue} +11 -11
  48. package/ui-fireui/components/{fui-loading/fui-loading.vue → u-loading/u-loading.vue} +6 -6
  49. package/ui-fireui/components/{fui-loadmore/fui-loadmore.vue → u-loadmore/u-loadmore.vue} +15 -15
  50. package/ui-fireui/components/{fui-modal/fui-modal.vue → u-modal/u-modal.vue} +58 -58
  51. package/ui-fireui/components/{fui-navigation-bar/fui-navigation-bar.vue → u-navigation-bar/u-navigation-bar.vue} +11 -10
  52. package/ui-fireui/components/{fui-no-data/fui-no-data.vue → u-no-data/u-no-data.vue} +11 -11
  53. package/ui-fireui/components/{fui-nomore/fui-nomore.vue → u-nomore/u-nomore.vue} +10 -10
  54. package/ui-fireui/components/{fui-numberbox/fui-numberbox.vue → u-numberbox/u-numberbox.vue} +12 -12
  55. package/ui-fireui/components/{fui-numberbox-border/fui-numberbox-border.vue → u-numberbox-border/u-numberbox-border.vue} +10 -10
  56. package/ui-fireui/components/{fui-picture-cropper/fui-picture-cropper.vue → u-picture-cropper/u-picture-cropper.vue} +42 -42
  57. package/ui-fireui/components/u-picture-cropper/u-picture-cropper.wxs +582 -0
  58. package/ui-fireui/components/{fui-round-progress/fui-round-progress.vue → u-round-progress/u-round-progress.vue} +2 -2
  59. package/ui-fireui/components/{fui-scroll-top/fui-scroll-top.vue → u-scroll-top/u-scroll-top.vue} +21 -21
  60. package/ui-fireui/components/{fui-sharemodel/fui-sharemodel.vue → u-share-model/u-share-model.vue} +24 -24
  61. package/ui-fireui/components/{fui-skeleton/fui-skeleton.vue → u-skeleton/u-skeleton.vue} +22 -22
  62. package/ui-fireui/components/{fui-steps/fui-steps.vue → u-steps/u-steps.vue} +27 -27
  63. package/ui-fireui/components/{fui-sticky/fui-sticky.vue → u-sticky/u-sticky.vue} +4 -4
  64. package/ui-fireui/components/{fui-sticky-wxs/fui-sticky-wxs.vue → u-sticky-wxs/u-sticky-wxs.vue} +7 -7
  65. package/ui-fireui/components/u-sticky-wxs/u-sticky.wxs +46 -0
  66. package/ui-fireui/components/{fui-swipe-action/fui-swipe-action.vue → u-swipe-action/u-swipe-action.vue} +11 -11
  67. package/ui-fireui/components/{fui-tabbar/fui-tabbar.vue → u-tabbar/u-tabbar.vue} +26 -30
  68. package/ui-fireui/components/{fui-tabs/fui-tabs.vue → u-tabs/u-tabs.vue} +17 -17
  69. package/ui-fireui/components/{fui-tabs2/fui-tabs2.vue → u-tabs2/u-tabs2.vue} +17 -17
  70. package/ui-fireui/components/{fui-tag/fui-tag.vue → u-tag/u-tag.vue} +362 -374
  71. package/ui-fireui/components/{fui-time-axis/fui-time-axis.vue → u-time-axis/u-time-axis.vue} +3 -3
  72. package/ui-fireui/components/{fui-timeaxis-item/fui-timeaxis-item.vue → u-timeaxis-item/u-timeaxis-item.vue} +4 -4
  73. package/ui-fireui/components/{fui-tips/fui-tips.vue → u-tips/u-tips.vue} +20 -20
  74. package/ui-fireui/components/{fui-toast/fui-toast.vue → u-toast/u-toast.vue} +13 -13
  75. package/ui-fireui/components/{fui-top-dropdown/fui-top-dropdown.vue → u-top-dropdown/u-top-dropdown.vue} +8 -8
  76. package/ui-fireui/components/{fui-upload/fui-upload.vue → u-upload/u-upload.vue} +30 -30
  77. package/ui-fireui/components/u-upload2/u-upload.vue +464 -0
  78. package/ui-fireui/components/{fui-uploadsamll/fui-uploadsamll.vue → u-uploadsamll/u-uploadsamll.vue} +34 -34
  79. package/ui-fireui/css/thorui.css +589 -0
  80. package/ui-fireui/{fireui.css → index.css} +306 -268
  81. package/ui-fireui/nvue/u-circular-progress/gcanvas/bridge/bridge-weex.js +241 -0
  82. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStyleLinearGradient.js +18 -0
  83. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStylePattern.js +8 -0
  84. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/FillStyleRadialGradient.js +17 -0
  85. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-2d/RenderingContext.js +666 -0
  86. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/ActiveInfo.js +11 -0
  87. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Buffer.js +21 -0
  88. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Framebuffer.js +21 -0
  89. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLenum.js +298 -0
  90. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLmethod.js +142 -0
  91. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/GLtype.js +23 -0
  92. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Program.js +21 -0
  93. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Renderbuffer.js +21 -0
  94. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/RenderingContext.js +1191 -0
  95. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Shader.js +22 -0
  96. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/ShaderPrecisionFormat.js +11 -0
  97. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/Texture.js +22 -0
  98. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/UniformLocation.js +22 -0
  99. package/ui-fireui/nvue/u-circular-progress/gcanvas/context-webgl/classUtils.js +3 -0
  100. package/ui-fireui/nvue/u-circular-progress/gcanvas/env/canvas.js +74 -0
  101. package/ui-fireui/nvue/u-circular-progress/gcanvas/env/image.js +96 -0
  102. package/ui-fireui/nvue/u-circular-progress/gcanvas/env/tool.js +24 -0
  103. package/ui-fireui/nvue/u-circular-progress/gcanvas/index.js +47 -0
  104. package/ui-fireui/nvue/u-circular-progress/u-circular-progress.nvue +203 -0
  105. package/ui-fireui/nvue/u-icon/icons.js +188 -0
  106. package/ui-fireui/nvue/u-icon/u-icon.vue +78 -0
  107. package/ui-fireui/components/fui-picture-cropper/fui-picture-cropper.wxs +0 -560
  108. package/ui-fireui/components/fui-rate/fui-rate.vue +0 -167
  109. package/ui-fireui/components/fui-sticky-wxs/fui-sticky.wxs +0 -44
  110. /package/ui-fireui/components/{fui-calendar/fui-calendar.js → u-calendar/u-calendar.js} +0 -0
@@ -0,0 +1,298 @@
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
+ };
@@ -0,0 +1,142 @@
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;
@@ -0,0 +1,23 @@
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
+
@@ -0,0 +1,21 @@
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
+ }
@@ -0,0 +1,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
+ }