@cmstops/pro-compo 0.3.54 → 0.3.55

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 (369) hide show
  1. package/README.md +107 -107
  2. package/dist/gif.worker.js +3 -3
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.min.js.map +1 -1
  5. package/es/appCenter/style/index.less +118 -118
  6. package/es/baseFilter/style/index.less +45 -45
  7. package/es/colorPalette/style/index.less +44 -44
  8. package/es/contentDetailList/style/ComoItem.less +99 -99
  9. package/es/contentDetailList/style/Content.less +49 -49
  10. package/es/contentDetailList/style/ContentListItem.less +132 -132
  11. package/es/contentDetailList/style/Doc.less +3 -3
  12. package/es/contentDetailList/style/DocMpItem.less +135 -135
  13. package/es/contentDetailList/style/GroupPieceItem.less +108 -108
  14. package/es/contentDetailList/style/KongoNavItem.less +104 -104
  15. package/es/contentDetailList/style/LiveItem.less +108 -108
  16. package/es/contentDetailList/style/MaccountItem.less +111 -111
  17. package/es/contentDetailList/style/MatrixItem.less +214 -214
  18. package/es/contentDetailList/style/courseItem.less +108 -108
  19. package/es/contentDetailList/style/funhdItem.less +108 -108
  20. package/es/contentModal/components/storeBox/index.js +1 -1
  21. package/es/contentModal/style/ViewAllColumn.less +68 -68
  22. package/es/contentModal/style/columnTree.less +32 -32
  23. package/es/contentModal/style/index.less +23 -23
  24. package/es/contentModal/style/storeBox.less +55 -55
  25. package/es/dataTags/style/index.less +73 -73
  26. package/es/docHistory/style/docDiffPanel.less +9 -9
  27. package/es/docHistory/style/docHistoryList.less +58 -58
  28. package/es/docHistory/style/index.less +32 -32
  29. package/es/docPreview/style/index.less +129 -129
  30. package/es/docPreview/style/previewIframe.less +36 -36
  31. package/es/editMetaInfo/style/index.less +60 -60
  32. package/es/emptyData/style/index.less +34 -34
  33. package/es/gif.worker.js +3 -3
  34. package/es/imageCrop/style/cropper.less +291 -291
  35. package/es/imageCrop/style/imageCropper.less +133 -133
  36. package/es/imageCrop/style/index.less +2 -2
  37. package/es/index.less +29 -29
  38. package/es/mediaFilter/components/FilterGroup.js +1 -1
  39. package/es/mediaFilter/style/index.less +115 -115
  40. package/es/mediaView/style/index.less +71 -71
  41. package/es/messageBox/list.js +1 -1
  42. package/es/messageBox/style/index.less +71 -71
  43. package/es/previousVersion/style/index.less +209 -209
  44. package/es/resourceGridList/components/FileTypeThumb/index.js +6 -3
  45. package/es/resourceGridList/style/FileTypeThumb.less +96 -96
  46. package/es/resourceGridList/style/index.less +233 -233
  47. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -3
  48. package/es/resourceModal/style/DocAiMediaSelected.less +55 -55
  49. package/es/resourceModal/style/FileTypeThumb.less +205 -205
  50. package/es/resourceModal/style/MainContent.less +222 -222
  51. package/es/resourceModal/style/MediaPreviewer.less +71 -71
  52. package/es/resourceModal/style/MediaSelection.less +69 -69
  53. package/es/resourceModal/style/SystemResourceSelected.less +154 -154
  54. package/es/resourceModal/style/ToolbarSearch.less +53 -53
  55. package/es/resourceModal/style/index.less +18 -18
  56. package/es/selectAvatarList/style/index.less +4 -4
  57. package/es/selectGategory/style/ColumnSelection.less +190 -190
  58. package/es/selectGategory/style/index.less +40 -40
  59. package/es/selectResourceModal/components/ListCardWrapper/index.js +11 -9
  60. package/es/selectResourceModal/components/ListContentLocal/components/Upload.js +1 -1
  61. package/es/selectResourceModal/style/index.less +70 -70
  62. package/es/selectResourceModal/style/listCardWrapper.less +97 -97
  63. package/es/selectResourceModal/style/listContent.less +5 -5
  64. package/es/selectResourceModal/style/listContentLocal.less +26 -26
  65. package/es/selectResourceModal/style/listFilter.less +41 -41
  66. package/es/selectResourceModal/style/listSelected.less +90 -90
  67. package/es/selectThumb/components/card.js +10 -6
  68. package/es/selectThumb/style/card.less +95 -95
  69. package/es/selectThumb/style/colorPalette.less +30 -30
  70. package/es/style/index.less +1 -1
  71. package/es/thumbCard/style/index.less +90 -90
  72. package/es/thumbCard/style/thumbUploading.less +26 -26
  73. package/es/typeIcons/style/index.less +6 -6
  74. package/es/uploadBefore/style/index.less +144 -144
  75. package/es/uploadStep/style/index.less +152 -152
  76. package/es/userAvater/style/index.less +54 -54
  77. package/es/videoThumb/style/index.less +61 -61
  78. package/lib/appCenter/style/index.less +118 -118
  79. package/lib/baseFilter/style/index.less +45 -45
  80. package/lib/colorPalette/style/index.less +44 -44
  81. package/lib/contentDetailList/style/ComoItem.less +99 -99
  82. package/lib/contentDetailList/style/Content.less +49 -49
  83. package/lib/contentDetailList/style/ContentListItem.less +132 -132
  84. package/lib/contentDetailList/style/Doc.less +3 -3
  85. package/lib/contentDetailList/style/DocMpItem.less +135 -135
  86. package/lib/contentDetailList/style/GroupPieceItem.less +108 -108
  87. package/lib/contentDetailList/style/KongoNavItem.less +104 -104
  88. package/lib/contentDetailList/style/LiveItem.less +108 -108
  89. package/lib/contentDetailList/style/MaccountItem.less +111 -111
  90. package/lib/contentDetailList/style/MatrixItem.less +214 -214
  91. package/lib/contentDetailList/style/courseItem.less +108 -108
  92. package/lib/contentDetailList/style/funhdItem.less +108 -108
  93. package/lib/contentModal/components/storeBox/index.js +1 -1
  94. package/lib/contentModal/style/ViewAllColumn.less +68 -68
  95. package/lib/contentModal/style/columnTree.less +32 -32
  96. package/lib/contentModal/style/index.less +23 -23
  97. package/lib/contentModal/style/storeBox.less +55 -55
  98. package/lib/dataTags/style/index.less +73 -73
  99. package/lib/docHistory/style/docDiffPanel.less +9 -9
  100. package/lib/docHistory/style/docHistoryList.less +58 -58
  101. package/lib/docHistory/style/index.less +32 -32
  102. package/lib/docPreview/style/index.less +129 -129
  103. package/lib/docPreview/style/previewIframe.less +36 -36
  104. package/lib/editMetaInfo/style/index.less +60 -60
  105. package/lib/emptyData/style/index.less +34 -34
  106. package/lib/imageCrop/style/cropper.less +291 -291
  107. package/lib/imageCrop/style/imageCropper.less +133 -133
  108. package/lib/imageCrop/style/index.less +2 -2
  109. package/lib/index.less +29 -29
  110. package/lib/mediaFilter/components/FilterGroup.js +1 -1
  111. package/lib/mediaFilter/style/index.less +115 -115
  112. package/lib/mediaView/style/index.less +71 -71
  113. package/lib/messageBox/list.js +1 -1
  114. package/lib/messageBox/style/index.less +71 -71
  115. package/lib/previousVersion/style/index.less +209 -209
  116. package/lib/resourceGridList/components/FileTypeThumb/index.js +6 -3
  117. package/lib/resourceGridList/style/FileTypeThumb.less +96 -96
  118. package/lib/resourceGridList/style/index.less +233 -233
  119. package/lib/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.js +6 -3
  120. package/lib/resourceModal/style/DocAiMediaSelected.less +55 -55
  121. package/lib/resourceModal/style/FileTypeThumb.less +205 -205
  122. package/lib/resourceModal/style/MainContent.less +222 -222
  123. package/lib/resourceModal/style/MediaPreviewer.less +71 -71
  124. package/lib/resourceModal/style/MediaSelection.less +69 -69
  125. package/lib/resourceModal/style/SystemResourceSelected.less +154 -154
  126. package/lib/resourceModal/style/ToolbarSearch.less +53 -53
  127. package/lib/resourceModal/style/index.less +18 -18
  128. package/lib/selectAvatarList/style/index.less +4 -4
  129. package/lib/selectGategory/style/ColumnSelection.less +190 -190
  130. package/lib/selectGategory/style/index.less +40 -40
  131. package/lib/selectResourceModal/components/ListCardWrapper/index.js +11 -9
  132. package/lib/selectResourceModal/components/ListContentLocal/components/Upload.js +1 -1
  133. package/lib/selectResourceModal/style/index.less +70 -70
  134. package/lib/selectResourceModal/style/listCardWrapper.less +97 -97
  135. package/lib/selectResourceModal/style/listContent.less +5 -5
  136. package/lib/selectResourceModal/style/listContentLocal.less +26 -26
  137. package/lib/selectResourceModal/style/listFilter.less +41 -41
  138. package/lib/selectResourceModal/style/listSelected.less +90 -90
  139. package/lib/selectThumb/components/card.js +10 -6
  140. package/lib/selectThumb/style/card.less +95 -95
  141. package/lib/selectThumb/style/colorPalette.less +30 -30
  142. package/lib/style/index.less +1 -1
  143. package/lib/thumbCard/style/index.less +90 -90
  144. package/lib/thumbCard/style/thumbUploading.less +26 -26
  145. package/lib/typeIcons/style/index.less +6 -6
  146. package/lib/uploadBefore/style/index.less +144 -144
  147. package/lib/uploadStep/style/index.less +152 -152
  148. package/lib/userAvater/style/index.less +54 -54
  149. package/lib/videoThumb/style/index.less +61 -61
  150. package/package.json +137 -137
  151. package/es/appCenter/component.d.ts +0 -0
  152. package/es/appCenter/index.d.ts +0 -2
  153. package/es/appCenter/script/api.d.ts +0 -11
  154. package/es/appCenter/script/apps.d.ts +0 -14
  155. package/es/appCenter/script/permissionMap.d.ts +0 -6
  156. package/es/appCenter/script/routeMap.d.ts +0 -4
  157. package/es/appCenter/style/index.d.ts +0 -1
  158. package/es/baseFilter/component.d.ts +0 -0
  159. package/es/baseFilter/components/FilterGroup.d.ts +0 -0
  160. package/es/baseFilter/components/filterItem.d.ts +0 -0
  161. package/es/baseFilter/index.d.ts +0 -2
  162. package/es/baseFilter/style/index.d.ts +0 -1
  163. package/es/baseFilter/useCalcWidth.d.ts +0 -16
  164. package/es/colorPalette/component.d.ts +0 -0
  165. package/es/colorPalette/components/colorPicker.d.ts +0 -0
  166. package/es/colorPalette/index.d.ts +0 -2
  167. package/es/colorPalette/style/index.d.ts +0 -1
  168. package/es/components.d.ts +0 -5
  169. package/es/config.d.ts +0 -4
  170. package/es/contentDetailList/__demo__/matrix/platform.d.ts +0 -36
  171. package/es/contentDetailList/component.d.ts +0 -0
  172. package/es/contentDetailList/components/Content/CompoItem/index.d.ts +0 -0
  173. package/es/contentDetailList/components/Content/ContentListItem/index.d.ts +0 -0
  174. package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.d.ts +0 -0
  175. package/es/contentDetailList/components/Content/DocItem/index.d.ts +0 -0
  176. package/es/contentDetailList/components/Content/DocMpItem/index.d.ts +0 -0
  177. package/es/contentDetailList/components/Content/GroupPieceItem/index.d.ts +0 -0
  178. package/es/contentDetailList/components/Content/KongoNavItem/index.d.ts +0 -0
  179. package/es/contentDetailList/components/Content/LiveItem/index.d.ts +0 -0
  180. package/es/contentDetailList/components/Content/MaccountItem/index.d.ts +0 -0
  181. package/es/contentDetailList/components/Content/courseItem/index.d.ts +0 -0
  182. package/es/contentDetailList/components/Content/funhdItem/index.d.ts +0 -0
  183. package/es/contentDetailList/components/Content/index.d.ts +0 -0
  184. package/es/contentDetailList/components/CustomWrp/CustomItem.d.ts +0 -0
  185. package/es/contentDetailList/components/CustomWrp/index.d.ts +0 -0
  186. package/es/contentDetailList/components/Doc/index.d.ts +0 -0
  187. package/es/contentDetailList/components/Records/MatrixItem/index.d.ts +0 -0
  188. package/es/contentDetailList/components/Records/index.d.ts +0 -0
  189. package/es/contentDetailList/components/ShowQRCode/QrcodeView/index.d.ts +0 -0
  190. package/es/contentDetailList/components/ShowQRCode/index.d.ts +0 -0
  191. package/es/contentDetailList/index.d.ts +0 -2
  192. package/es/contentDetailList/script/api.d.ts +0 -6
  193. package/es/contentDetailList/style/index.d.ts +0 -1
  194. package/es/contentModal/component.d.ts +0 -0
  195. package/es/contentModal/components/CompoList/CompoFilter/index.d.ts +0 -0
  196. package/es/contentModal/components/CompoList/index.d.ts +0 -0
  197. package/es/contentModal/components/ContentList/MediaFilter/index.d.ts +0 -0
  198. package/es/contentModal/components/ContentList/index.d.ts +0 -0
  199. package/es/contentModal/components/EqxiuList/MediaFilter/index.d.ts +0 -0
  200. package/es/contentModal/components/EqxiuList/index.d.ts +0 -0
  201. package/es/contentModal/components/LiveList/MediaFilter/index.d.ts +0 -0
  202. package/es/contentModal/components/LiveList/index.d.ts +0 -0
  203. package/es/contentModal/components/MpAccountList/MpAccountFilter/index.d.ts +0 -0
  204. package/es/contentModal/components/MpAccountList/index.d.ts +0 -0
  205. package/es/contentModal/components/MpContentList/MediaFilter/index.d.ts +0 -0
  206. package/es/contentModal/components/MpContentList/index.d.ts +0 -0
  207. package/es/contentModal/components/ViewAllColumn/MediaFilter/index.d.ts +0 -0
  208. package/es/contentModal/components/ViewAllColumn/columnTree/index.d.ts +0 -0
  209. package/es/contentModal/components/ViewAllColumn/index.d.ts +0 -0
  210. package/es/contentModal/components/storeBox/index.d.ts +0 -0
  211. package/es/contentModal/index.d.ts +0 -2
  212. package/es/contentModal/script/api.d.ts +0 -14
  213. package/es/contentModal/style/index.d.ts +0 -1
  214. package/es/dataTags/component.d.ts +0 -0
  215. package/es/dataTags/index.d.ts +0 -2
  216. package/es/dataTags/style/index.d.ts +0 -1
  217. package/es/docHistory/component.d.ts +0 -0
  218. package/es/docHistory/components/DocDiffPanel/index.d.ts +0 -0
  219. package/es/docHistory/components/DocHistoryList/index.d.ts +0 -0
  220. package/es/docHistory/index.d.ts +0 -2
  221. package/es/docHistory/scripts/diff.d.ts +0 -1
  222. package/es/docHistory/scripts/useDocHistory.d.ts +0 -10
  223. package/es/docHistory/style/index.d.ts +0 -1
  224. package/es/docPreview/component.d.ts +0 -0
  225. package/es/docPreview/components/PreviewIframe.d.ts +0 -0
  226. package/es/docPreview/index.d.ts +0 -2
  227. package/es/docPreview/scripts/api.d.ts +0 -1
  228. package/es/docPreview/scripts/hook.d.ts +0 -20
  229. package/es/docPreview/style/index.d.ts +0 -1
  230. package/es/editMetaInfo/component.d.ts +0 -0
  231. package/es/editMetaInfo/components/metaInfoForm.d.ts +0 -0
  232. package/es/editMetaInfo/index.d.ts +0 -2
  233. package/es/editMetaInfo/script/api.d.ts +0 -6
  234. package/es/editMetaInfo/script/restaurants.d.ts +0 -4
  235. package/es/editMetaInfo/style/index.d.ts +0 -1
  236. package/es/emptyData/component.d.ts +0 -0
  237. package/es/emptyData/index.d.ts +0 -2
  238. package/es/emptyData/style/index.d.ts +0 -1
  239. package/es/emptyData/svg/add.d.ts +0 -0
  240. package/es/hooks/assets.d.ts +0 -1
  241. package/es/hooks/batch.d.ts +0 -8
  242. package/es/hooks/dialogVisible.d.ts +0 -8
  243. package/es/hooks/source.d.ts +0 -9
  244. package/es/hooks/toggle.d.ts +0 -6
  245. package/es/hooks/useAttachement.d.ts +0 -26
  246. package/es/hooks/useLocalStorage.d.ts +0 -8
  247. package/es/hooks/useMediaContext.d.ts +0 -12
  248. package/es/hooks/usePopper.d.ts +0 -8
  249. package/es/hooks/useSelection.d.ts +0 -23
  250. package/es/hooks/useUpload.d.ts +0 -19
  251. package/es/hooks/user.d.ts +0 -9
  252. package/es/imageCrop/component.d.ts +0 -0
  253. package/es/imageCrop/index.d.ts +0 -2
  254. package/es/imageCrop/script/api.d.ts +0 -1
  255. package/es/imageCrop/style/index.d.ts +0 -1
  256. package/es/index.d.ts +0 -29
  257. package/es/mediaFilter/component.d.ts +0 -0
  258. package/es/mediaFilter/components/DocFilter.d.ts +0 -0
  259. package/es/mediaFilter/components/FilterGroup.d.ts +0 -0
  260. package/es/mediaFilter/components/FilterItem.d.ts +0 -0
  261. package/es/mediaFilter/components/MpAccountFilter.d.ts +0 -0
  262. package/es/mediaFilter/components/MpContentFilter.d.ts +0 -0
  263. package/es/mediaFilter/index.d.ts +0 -3
  264. package/es/mediaFilter/script/optionsGetter.d.ts +0 -26
  265. package/es/mediaFilter/script/types.d.ts +0 -16
  266. package/es/mediaFilter/style/index.d.ts +0 -1
  267. package/es/mediaView/component.d.ts +0 -0
  268. package/es/mediaView/index.d.ts +0 -2
  269. package/es/mediaView/style/index.d.ts +0 -1
  270. package/es/messageBox/component.d.ts +0 -0
  271. package/es/messageBox/index.d.ts +0 -2
  272. package/es/messageBox/list.d.ts +0 -0
  273. package/es/messageBox/script/api.d.ts +0 -6
  274. package/es/messageBox/style/index.d.ts +0 -1
  275. package/es/previousVersion/component.d.ts +0 -0
  276. package/es/previousVersion/index.d.ts +0 -2
  277. package/es/previousVersion/script/api.d.ts +0 -15
  278. package/es/previousVersion/script/tool.d.ts +0 -6
  279. package/es/previousVersion/style/index.d.ts +0 -1
  280. package/es/resourceGridList/component.d.ts +0 -0
  281. package/es/resourceGridList/components/FileTypeThumb/index.d.ts +0 -0
  282. package/es/resourceGridList/index.d.ts +0 -2
  283. package/es/resourceGridList/style/index.d.ts +0 -1
  284. package/es/resourceModal/component.d.ts +0 -0
  285. package/es/resourceModal/components/MediaPreviewer/index.d.ts +0 -0
  286. package/es/resourceModal/components/MediaSelection/DocAiMediaSelected/index.d.ts +0 -0
  287. package/es/resourceModal/components/MediaSelection/MainContent/FileTypeThumb/index.d.ts +0 -0
  288. package/es/resourceModal/components/MediaSelection/MainContent/index.d.ts +0 -0
  289. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceFilter.d.ts +0 -0
  290. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/components/SystemResourceList.d.ts +0 -0
  291. package/es/resourceModal/components/MediaSelection/SystemResourceSelected/index.d.ts +0 -0
  292. package/es/resourceModal/components/MediaSelection/ToolbarSearch/index.d.ts +0 -0
  293. package/es/resourceModal/components/MediaSelection/index.d.ts +0 -0
  294. package/es/resourceModal/index.d.ts +0 -2
  295. package/es/resourceModal/script/api.d.ts +0 -25
  296. package/es/resourceModal/script/mediaSelection.d.ts +0 -14
  297. package/es/resourceModal/style/index.d.ts +0 -1
  298. package/es/selectAvatarList/component.d.ts +0 -0
  299. package/es/selectAvatarList/index.d.ts +0 -2
  300. package/es/selectAvatarList/style/index.d.ts +0 -1
  301. package/es/selectGategory/component.d.ts +0 -0
  302. package/es/selectGategory/components/ColumnSelection/index.d.ts +0 -0
  303. package/es/selectGategory/index.d.ts +0 -2
  304. package/es/selectGategory/script/api.d.ts +0 -6
  305. package/es/selectGategory/style/index.d.ts +0 -1
  306. package/es/selectResourceModal/component.d.ts +0 -0
  307. package/es/selectResourceModal/components/ListCardWrapper/index.d.ts +0 -0
  308. package/es/selectResourceModal/components/ListContent/index.d.ts +0 -0
  309. package/es/selectResourceModal/components/ListContentLocal/components/Upload.d.ts +0 -0
  310. package/es/selectResourceModal/components/ListContentLocal/index.d.ts +0 -0
  311. package/es/selectResourceModal/components/ListFilter/index.d.ts +0 -0
  312. package/es/selectResourceModal/components/ListFilter/scripts/api.d.ts +0 -1
  313. package/es/selectResourceModal/components/ListSelected/index.d.ts +0 -0
  314. package/es/selectResourceModal/components/ListTabs/index.d.ts +0 -0
  315. package/es/selectResourceModal/index.d.ts +0 -2
  316. package/es/selectResourceModal/scripts/useResourceSelect.d.ts +0 -7
  317. package/es/selectResourceModal/style/index.d.ts +0 -1
  318. package/es/selectThumb/component.d.ts +0 -0
  319. package/es/selectThumb/components/card.d.ts +0 -0
  320. package/es/selectThumb/components/colorPalette.d.ts +0 -0
  321. package/es/selectThumb/components/colorPicker.d.ts +0 -0
  322. package/es/selectThumb/index.d.ts +0 -2
  323. package/es/selectThumb/style/index.d.ts +0 -1
  324. package/es/thumbCard/component.d.ts +0 -0
  325. package/es/thumbCard/components/ThumbUploading/index.d.ts +0 -0
  326. package/es/thumbCard/index.d.ts +0 -2
  327. package/es/thumbCard/style/index.d.ts +0 -1
  328. package/es/typeIcons/component.d.ts +0 -0
  329. package/es/typeIcons/index.d.ts +0 -2
  330. package/es/typeIcons/style/index.d.ts +0 -1
  331. package/es/uploadBefore/component.d.ts +0 -0
  332. package/es/uploadBefore/components/UploadBefore.d.ts +0 -0
  333. package/es/uploadBefore/components/UploadForClick.d.ts +0 -0
  334. package/es/uploadBefore/index.d.ts +0 -2
  335. package/es/uploadBefore/script/api.d.ts +0 -16
  336. package/es/uploadBefore/script/fileTypeAdapter.d.ts +0 -39
  337. package/es/uploadBefore/script/fileUpload.d.ts +0 -7
  338. package/es/uploadBefore/script/uploadHooks.d.ts +0 -55
  339. package/es/uploadBefore/style/index.d.ts +0 -1
  340. package/es/uploadBefore/utils/dragUploadEvent.d.ts +0 -0
  341. package/es/uploadStep/component.d.ts +0 -0
  342. package/es/uploadStep/index.d.ts +0 -2
  343. package/es/uploadStep/script/fileTypeAdapter.d.ts +0 -20
  344. package/es/uploadStep/style/index.d.ts +0 -1
  345. package/es/userAvater/component.d.ts +0 -0
  346. package/es/userAvater/index.d.ts +0 -2
  347. package/es/userAvater/script/api.d.ts +0 -8
  348. package/es/userAvater/style/index.d.ts +0 -1
  349. package/es/userDirector/component.d.ts +0 -0
  350. package/es/userDirector/components/userTree.d.ts +0 -0
  351. package/es/userDirector/index.d.ts +0 -2
  352. package/es/userDirector/script/api.d.ts +0 -10
  353. package/es/userDirector/style/index.d.ts +0 -1
  354. package/es/utils/auth.d.ts +0 -5
  355. package/es/utils/date.d.ts +0 -3
  356. package/es/utils/doc.d.ts +0 -76
  357. package/es/utils/filter.d.ts +0 -9
  358. package/es/utils/index.d.ts +0 -17
  359. package/es/utils/request.d.ts +0 -9
  360. package/es/utils/resource.d.ts +0 -4
  361. package/es/utils/transcodeMedia.d.ts +0 -13
  362. package/es/utils/tusUpload.d.ts +0 -16
  363. package/es/utils/typeMap.d.ts +0 -185
  364. package/es/utils/uploadCatalog.d.ts +0 -1
  365. package/es/videoThumb/component.d.ts +0 -0
  366. package/es/videoThumb/index.d.ts +0 -2
  367. package/es/videoThumb/scripts/api.d.ts +0 -9
  368. package/es/videoThumb/scripts/useVideoThumbs.d.ts +0 -7
  369. package/es/videoThumb/style/index.d.ts +0 -1
package/README.md CHANGED
@@ -1,107 +1,107 @@
1
- # Arco 物料项目
2
-
3
- [物料平台文档中心](https://arco.design/docs/material/guide)
4
-
5
- ## 快速开始
6
-
7
- **在 `npm run dev` 前,请运行 `npm run add:component -- ComponentName` 创建第一个组件,否则 dev 将会因缺少 Story 入口而报错。**
8
-
9
- ```
10
- # 添加组件
11
- npm run add:component -- YourComponentName
12
-
13
- # 开发
14
- npm run dev
15
-
16
- # 构建
17
- npm run build
18
-
19
- # 发布前预览
20
- npm run prepublishOnly && arco preview
21
-
22
- # 发布至物料平台(需先发布 NPM 包)
23
- arco sync
24
- ```
25
-
26
-
27
- ## 提供 Demo
28
-
29
- Demo 目录位于 `src/demo`。你可以在此目录中加入多个 Demo,它们将被展示在物料平台的预览页。在 `src/demo/index.js` 中,通过 JSDoc 的语法提供物料及各个 Demo 的相关信息。
30
-
31
- ```javascript
32
- // src/demo/index.js
33
-
34
- /**
35
- * @file
36
- * @title 组件名
37
- * @memberOf 组件类型,例如:数据输入
38
- * @description 描述你的组件。
39
- */
40
-
41
- /**
42
- * @title 基本用法
43
- * @description 描述你的例子
44
- */
45
- import Basic from './basic.vue';
46
-
47
- export const BasicDemo = () => Basic;
48
- ```
49
-
50
- ## API 文档
51
-
52
- **为了帮助他人更好地使用你的组件,请提供详细的 API 文档。**
53
-
54
- ### 书写注释
55
-
56
- 我们使用了 [Vue Styleguidist](https://vue-styleguidist.github.io/) 来提取组件 Props 的注释,然后自动生成组件的 API 文档。为此,如果你想对外暴露一个 Property,请参照Vue Styleguidist 的规则书写注释:
57
-
58
- ```vue
59
- // ✅ 可以被正确提取的注释
60
- props: {
61
- /**
62
- * 提示文字
63
- */
64
- tip: String,
65
- /**
66
- * 按钮组件Props
67
- */
68
- buttonProps: {
69
- // 如果使用PropType,请使用对象的形式定义
70
- type: Object as PropType<Record<string, any>>,
71
- },
72
- },
73
-
74
- // ❌ 没有书写注释的属性会被忽略
75
- props: {
76
- disabled: Boolean,
77
- },
78
- ```
79
-
80
- ### 扩展 TEMPLATE.md
81
-
82
- `TEMPLATE.md` 是用于自动文档生成的模板,你可以修改此文件添加更多组件的使用帮助信息,但请不要删除其原有的内容,否则可能导致内容替换失败。
83
-
84
- ```markdown
85
- // TEMPLATE.md
86
- ---
87
- file: index
88
- ---
89
-
90
- # TooltipButton
91
-
92
- ## 属性/Props
93
-
94
- %%Props%%
95
-
96
- ### OtherProps
97
-
98
- 在这里你可以书写更多组件帮助文档。
99
-
100
- ## Demos
101
-
102
- %%Demos%%
103
- ```
104
-
105
- ## 测试
106
-
107
- 测试目录位于 `src/__test__`。你可以在 `index.test.tsx` 中编写你的测试用例,在 `demo.test.tsx` 中可以进行基于 Demo 的快照测试。
1
+ # Arco 物料项目
2
+
3
+ [物料平台文档中心](https://arco.design/docs/material/guide)
4
+
5
+ ## 快速开始
6
+
7
+ **在 `npm run dev` 前,请运行 `npm run add:component -- ComponentName` 创建第一个组件,否则 dev 将会因缺少 Story 入口而报错。**
8
+
9
+ ```
10
+ # 添加组件
11
+ npm run add:component -- YourComponentName
12
+
13
+ # 开发
14
+ npm run dev
15
+
16
+ # 构建
17
+ npm run build
18
+
19
+ # 发布前预览
20
+ npm run prepublishOnly && arco preview
21
+
22
+ # 发布至物料平台(需先发布 NPM 包)
23
+ arco sync
24
+ ```
25
+
26
+
27
+ ## 提供 Demo
28
+
29
+ Demo 目录位于 `src/demo`。你可以在此目录中加入多个 Demo,它们将被展示在物料平台的预览页。在 `src/demo/index.js` 中,通过 JSDoc 的语法提供物料及各个 Demo 的相关信息。
30
+
31
+ ```javascript
32
+ // src/demo/index.js
33
+
34
+ /**
35
+ * @file
36
+ * @title 组件名
37
+ * @memberOf 组件类型,例如:数据输入
38
+ * @description 描述你的组件。
39
+ */
40
+
41
+ /**
42
+ * @title 基本用法
43
+ * @description 描述你的例子
44
+ */
45
+ import Basic from './basic.vue';
46
+
47
+ export const BasicDemo = () => Basic;
48
+ ```
49
+
50
+ ## API 文档
51
+
52
+ **为了帮助他人更好地使用你的组件,请提供详细的 API 文档。**
53
+
54
+ ### 书写注释
55
+
56
+ 我们使用了 [Vue Styleguidist](https://vue-styleguidist.github.io/) 来提取组件 Props 的注释,然后自动生成组件的 API 文档。为此,如果你想对外暴露一个 Property,请参照Vue Styleguidist 的规则书写注释:
57
+
58
+ ```vue
59
+ // ✅ 可以被正确提取的注释
60
+ props: {
61
+ /**
62
+ * 提示文字
63
+ */
64
+ tip: String,
65
+ /**
66
+ * 按钮组件Props
67
+ */
68
+ buttonProps: {
69
+ // 如果使用PropType,请使用对象的形式定义
70
+ type: Object as PropType<Record<string, any>>,
71
+ },
72
+ },
73
+
74
+ // ❌ 没有书写注释的属性会被忽略
75
+ props: {
76
+ disabled: Boolean,
77
+ },
78
+ ```
79
+
80
+ ### 扩展 TEMPLATE.md
81
+
82
+ `TEMPLATE.md` 是用于自动文档生成的模板,你可以修改此文件添加更多组件的使用帮助信息,但请不要删除其原有的内容,否则可能导致内容替换失败。
83
+
84
+ ```markdown
85
+ // TEMPLATE.md
86
+ ---
87
+ file: index
88
+ ---
89
+
90
+ # TooltipButton
91
+
92
+ ## 属性/Props
93
+
94
+ %%Props%%
95
+
96
+ ### OtherProps
97
+
98
+ 在这里你可以书写更多组件帮助文档。
99
+
100
+ ## Demos
101
+
102
+ %%Demos%%
103
+ ```
104
+
105
+ ## 测试
106
+
107
+ 测试目录位于 `src/__test__`。你可以在 `index.test.tsx` 中编写你的测试用例,在 `demo.test.tsx` 中可以进行基于 Demo 的快照测试。
@@ -1,3 +1,3 @@
1
- // gif.worker.js 0.2.0 - https://github.com/jnordberg/gif.js
2
- (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){var NeuQuant=require("./TypedNeuQuant.js");var LZWEncoder=require("./LZWEncoder.js");function ByteArray(){this.page=-1;this.pages=[];this.newPage()}ByteArray.pageSize=4096;ByteArray.charMap={};for(var i=0;i<256;i++)ByteArray.charMap[i]=String.fromCharCode(i);ByteArray.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(ByteArray.pageSize);this.cursor=0};ByteArray.prototype.getData=function(){var rv="";for(var p=0;p<this.pages.length;p++){for(var i=0;i<ByteArray.pageSize;i++){rv+=ByteArray.charMap[this.pages[p][i]]}}return rv};ByteArray.prototype.writeByte=function(val){if(this.cursor>=ByteArray.pageSize)this.newPage();this.pages[this.page][this.cursor++]=val};ByteArray.prototype.writeUTFBytes=function(string){for(var l=string.length,i=0;i<l;i++)this.writeByte(string.charCodeAt(i))};ByteArray.prototype.writeBytes=function(array,offset,length){for(var l=length||array.length,i=offset||0;i<l;i++)this.writeByte(array[i])};function GIFEncoder(width,height){this.width=~~width;this.height=~~height;this.transparent=null;this.transIndex=0;this.repeat=-1;this.delay=0;this.image=null;this.pixels=null;this.indexedPixels=null;this.colorDepth=null;this.colorTab=null;this.neuQuant=null;this.usedEntry=new Array;this.palSize=7;this.dispose=-1;this.firstFrame=true;this.sample=10;this.dither=false;this.globalPalette=false;this.out=new ByteArray}GIFEncoder.prototype.setDelay=function(milliseconds){this.delay=Math.round(milliseconds/10)};GIFEncoder.prototype.setFrameRate=function(fps){this.delay=Math.round(100/fps)};GIFEncoder.prototype.setDispose=function(disposalCode){if(disposalCode>=0)this.dispose=disposalCode};GIFEncoder.prototype.setRepeat=function(repeat){this.repeat=repeat};GIFEncoder.prototype.setTransparent=function(color){this.transparent=color};GIFEncoder.prototype.addFrame=function(imageData){this.image=imageData;this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null;this.getImagePixels();this.analyzePixels();if(this.globalPalette===true)this.globalPalette=this.colorTab;if(this.firstFrame){this.writeLSD();this.writePalette();if(this.repeat>=0){this.writeNetscapeExt()}}this.writeGraphicCtrlExt();this.writeImageDesc();if(!this.firstFrame&&!this.globalPalette)this.writePalette();this.writePixels();this.firstFrame=false};GIFEncoder.prototype.finish=function(){this.out.writeByte(59)};GIFEncoder.prototype.setQuality=function(quality){if(quality<1)quality=1;this.sample=quality};GIFEncoder.prototype.setDither=function(dither){if(dither===true)dither="FloydSteinberg";this.dither=dither};GIFEncoder.prototype.setGlobalPalette=function(palette){this.globalPalette=palette};GIFEncoder.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};GIFEncoder.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};GIFEncoder.prototype.analyzePixels=function(){if(!this.colorTab){this.neuQuant=new NeuQuant(this.pixels,this.sample);this.neuQuant.buildColormap();this.colorTab=this.neuQuant.getColormap()}if(this.dither){this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null)}else{this.indexPixels()}this.pixels=null;this.colorDepth=8;this.palSize=7;if(this.transparent!==null){this.transIndex=this.findClosest(this.transparent,true)}};GIFEncoder.prototype.indexPixels=function(imgq){var nPix=this.pixels.length/3;this.indexedPixels=new Uint8Array(nPix);var k=0;for(var j=0;j<nPix;j++){var index=this.findClosestRGB(this.pixels[k++]&255,this.pixels[k++]&255,this.pixels[k++]&255);this.usedEntry[index]=true;this.indexedPixels[j]=index}};GIFEncoder.prototype.ditherPixels=function(kernel,serpentine){var kernels={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!kernel||!kernels[kernel]){throw"Unknown dithering kernel: "+kernel}var ds=kernels[kernel];var index=0,height=this.height,width=this.width,data=this.pixels;var direction=serpentine?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var y=0;y<height;y++){if(serpentine)direction=direction*-1;for(var x=direction==1?0:width-1,xend=direction==1?width:0;x!==xend;x+=direction){index=y*width+x;var idx=index*3;var r1=data[idx];var g1=data[idx+1];var b1=data[idx+2];idx=this.findClosestRGB(r1,g1,b1);this.usedEntry[idx]=true;this.indexedPixels[index]=idx;idx*=3;var r2=this.colorTab[idx];var g2=this.colorTab[idx+1];var b2=this.colorTab[idx+2];var er=r1-r2;var eg=g1-g2;var eb=b1-b2;for(var i=direction==1?0:ds.length-1,end=direction==1?ds.length:0;i!==end;i+=direction){var x1=ds[i][1];var y1=ds[i][2];if(x1+x>=0&&x1+x<width&&y1+y>=0&&y1+y<height){var d=ds[i][0];idx=index+x1+y1*width;idx*=3;data[idx]=Math.max(0,Math.min(255,data[idx]+er*d));data[idx+1]=Math.max(0,Math.min(255,data[idx+1]+eg*d));data[idx+2]=Math.max(0,Math.min(255,data[idx+2]+eb*d))}}}}};GIFEncoder.prototype.findClosest=function(c,used){return this.findClosestRGB((c&16711680)>>16,(c&65280)>>8,c&255,used)};GIFEncoder.prototype.findClosestRGB=function(r,g,b,used){if(this.colorTab===null)return-1;if(this.neuQuant&&!used){return this.neuQuant.lookupRGB(r,g,b)}var c=b|g<<8|r<<16;var minpos=0;var dmin=256*256*256;var len=this.colorTab.length;for(var i=0,index=0;i<len;index++){var dr=r-(this.colorTab[i++]&255);var dg=g-(this.colorTab[i++]&255);var db=b-(this.colorTab[i++]&255);var d=dr*dr+dg*dg+db*db;if((!used||this.usedEntry[index])&&d<dmin){dmin=d;minpos=index}}return minpos};GIFEncoder.prototype.getImagePixels=function(){var w=this.width;var h=this.height;this.pixels=new Uint8Array(w*h*3);var data=this.image;var srcPos=0;var count=0;for(var i=0;i<h;i++){for(var j=0;j<w;j++){this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];srcPos++}}};GIFEncoder.prototype.writeGraphicCtrlExt=function(){this.out.writeByte(33);this.out.writeByte(249);this.out.writeByte(4);var transp,disp;if(this.transparent===null){transp=0;disp=0}else{transp=1;disp=2}if(this.dispose>=0){disp=dispose&7}disp<<=2;this.out.writeByte(0|disp|0|transp);this.writeShort(this.delay);this.out.writeByte(this.transIndex);this.out.writeByte(0)};GIFEncoder.prototype.writeImageDesc=function(){this.out.writeByte(44);this.writeShort(0);this.writeShort(0);this.writeShort(this.width);this.writeShort(this.height);if(this.firstFrame||this.globalPalette){this.out.writeByte(0)}else{this.out.writeByte(128|0|0|0|this.palSize)}};GIFEncoder.prototype.writeLSD=function(){this.writeShort(this.width);this.writeShort(this.height);this.out.writeByte(128|112|0|this.palSize);this.out.writeByte(0);this.out.writeByte(0)};GIFEncoder.prototype.writeNetscapeExt=function(){this.out.writeByte(33);this.out.writeByte(255);this.out.writeByte(11);this.out.writeUTFBytes("NETSCAPE2.0");this.out.writeByte(3);this.out.writeByte(1);this.writeShort(this.repeat);this.out.writeByte(0)};GIFEncoder.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);var n=3*256-this.colorTab.length;for(var i=0;i<n;i++)this.out.writeByte(0)};GIFEncoder.prototype.writeShort=function(pValue){this.out.writeByte(pValue&255);this.out.writeByte(pValue>>8&255)};GIFEncoder.prototype.writePixels=function(){var enc=new LZWEncoder(this.width,this.height,this.indexedPixels,this.colorDepth);enc.encode(this.out)};GIFEncoder.prototype.stream=function(){return this.out};module.exports=GIFEncoder},{"./LZWEncoder.js":2,"./TypedNeuQuant.js":3}],2:[function(require,module,exports){var EOF=-1;var BITS=12;var HSIZE=5003;var masks=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function LZWEncoder(width,height,pixels,colorDepth){var initCodeSize=Math.max(2,colorDepth);var accum=new Uint8Array(256);var htab=new Int32Array(HSIZE);var codetab=new Int32Array(HSIZE);var cur_accum,cur_bits=0;var a_count;var free_ent=0;var maxcode;var clear_flg=false;var g_init_bits,ClearCode,EOFCode;function char_out(c,outs){accum[a_count++]=c;if(a_count>=254)flush_char(outs)}function cl_block(outs){cl_hash(HSIZE);free_ent=ClearCode+2;clear_flg=true;output(ClearCode,outs)}function cl_hash(hsize){for(var i=0;i<hsize;++i)htab[i]=-1}function compress(init_bits,outs){var fcode,c,i,ent,disp,hsize_reg,hshift;g_init_bits=init_bits;clear_flg=false;n_bits=g_init_bits;maxcode=MAXCODE(n_bits);ClearCode=1<<init_bits-1;EOFCode=ClearCode+1;free_ent=ClearCode+2;a_count=0;ent=nextPixel();hshift=0;for(fcode=HSIZE;fcode<65536;fcode*=2)++hshift;hshift=8-hshift;hsize_reg=HSIZE;cl_hash(hsize_reg);output(ClearCode,outs);outer_loop:while((c=nextPixel())!=EOF){fcode=(c<<BITS)+ent;i=c<<hshift^ent;if(htab[i]===fcode){ent=codetab[i];continue}else if(htab[i]>=0){disp=hsize_reg-i;if(i===0)disp=1;do{if((i-=disp)<0)i+=hsize_reg;if(htab[i]===fcode){ent=codetab[i];continue outer_loop}}while(htab[i]>=0)}output(ent,outs);ent=c;if(free_ent<1<<BITS){codetab[i]=free_ent++;htab[i]=fcode}else{cl_block(outs)}}output(ent,outs);output(EOFCode,outs)}function encode(outs){outs.writeByte(initCodeSize);remaining=width*height;curPixel=0;compress(initCodeSize+1,outs);outs.writeByte(0)}function flush_char(outs){if(a_count>0){outs.writeByte(a_count);outs.writeBytes(accum,0,a_count);a_count=0}}function MAXCODE(n_bits){return(1<<n_bits)-1}function nextPixel(){if(remaining===0)return EOF;--remaining;var pix=pixels[curPixel++];return pix&255}function output(code,outs){cur_accum&=masks[cur_bits];if(cur_bits>0)cur_accum|=code<<cur_bits;else cur_accum=code;cur_bits+=n_bits;while(cur_bits>=8){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}if(free_ent>maxcode||clear_flg){if(clear_flg){maxcode=MAXCODE(n_bits=g_init_bits);clear_flg=false}else{++n_bits;if(n_bits==BITS)maxcode=1<<BITS;else maxcode=MAXCODE(n_bits)}}if(code==EOFCode){while(cur_bits>0){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}flush_char(outs)}}this.encode=encode}module.exports=LZWEncoder},{}],3:[function(require,module,exports){var ncycles=100;var netsize=256;var maxnetpos=netsize-1;var netbiasshift=4;var intbiasshift=16;var intbias=1<<intbiasshift;var gammashift=10;var gamma=1<<gammashift;var betashift=10;var beta=intbias>>betashift;var betagamma=intbias<<gammashift-betashift;var initrad=netsize>>3;var radiusbiasshift=6;var radiusbias=1<<radiusbiasshift;var initradius=initrad*radiusbias;var radiusdec=30;var alphabiasshift=10;var initalpha=1<<alphabiasshift;var alphadec;var radbiasshift=8;var radbias=1<<radbiasshift;var alpharadbshift=alphabiasshift+radbiasshift;var alpharadbias=1<<alpharadbshift;var prime1=499;var prime2=491;var prime3=487;var prime4=503;var minpicturebytes=3*prime4;function NeuQuant(pixels,samplefac){var network;var netindex;var bias;var freq;var radpower;function init(){network=[];netindex=new Int32Array(256);bias=new Int32Array(netsize);freq=new Int32Array(netsize);radpower=new Int32Array(netsize>>3);var i,v;for(i=0;i<netsize;i++){v=(i<<netbiasshift+8)/netsize;network[i]=new Float64Array([v,v,v,0]);freq[i]=intbias/netsize;bias[i]=0}}function unbiasnet(){for(var i=0;i<netsize;i++){network[i][0]>>=netbiasshift;network[i][1]>>=netbiasshift;network[i][2]>>=netbiasshift;network[i][3]=i}}function altersingle(alpha,i,b,g,r){network[i][0]-=alpha*(network[i][0]-b)/initalpha;network[i][1]-=alpha*(network[i][1]-g)/initalpha;network[i][2]-=alpha*(network[i][2]-r)/initalpha}function alterneigh(radius,i,b,g,r){var lo=Math.abs(i-radius);var hi=Math.min(i+radius,netsize);var j=i+1;var k=i-1;var m=1;var p,a;while(j<hi||k>lo){a=radpower[m++];if(j<hi){p=network[j++];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}if(k>lo){p=network[k--];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}}}function contest(b,g,r){var bestd=~(1<<31);var bestbiasd=bestd;var bestpos=-1;var bestbiaspos=bestpos;var i,n,dist,biasdist,betafreq;for(i=0;i<netsize;i++){n=network[i];dist=Math.abs(n[0]-b)+Math.abs(n[1]-g)+Math.abs(n[2]-r);if(dist<bestd){bestd=dist;bestpos=i}biasdist=dist-(bias[i]>>intbiasshift-netbiasshift);if(biasdist<bestbiasd){bestbiasd=biasdist;bestbiaspos=i}betafreq=freq[i]>>betashift;freq[i]-=betafreq;bias[i]+=betafreq<<gammashift}freq[bestpos]+=beta;bias[bestpos]-=betagamma;return bestbiaspos}function inxbuild(){var i,j,p,q,smallpos,smallval,previouscol=0,startpos=0;for(i=0;i<netsize;i++){p=network[i];smallpos=i;smallval=p[1];for(j=i+1;j<netsize;j++){q=network[j];if(q[1]<smallval){smallpos=j;smallval=q[1]}}q=network[smallpos];if(i!=smallpos){j=q[0];q[0]=p[0];p[0]=j;j=q[1];q[1]=p[1];p[1]=j;j=q[2];q[2]=p[2];p[2]=j;j=q[3];q[3]=p[3];p[3]=j}if(smallval!=previouscol){netindex[previouscol]=startpos+i>>1;for(j=previouscol+1;j<smallval;j++)netindex[j]=i;previouscol=smallval;startpos=i}}netindex[previouscol]=startpos+maxnetpos>>1;for(j=previouscol+1;j<256;j++)netindex[j]=maxnetpos}function inxsearch(b,g,r){var a,p,dist;var bestd=1e3;var best=-1;var i=netindex[g];var j=i-1;while(i<netsize||j>=0){if(i<netsize){p=network[i];dist=p[1]-g;if(dist>=bestd)i=netsize;else{i++;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}if(j>=0){p=network[j];dist=g-p[1];if(dist>=bestd)j=-1;else{j--;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}}return best}function learn(){var i;var lengthcount=pixels.length;var alphadec=30+(samplefac-1)/3;var samplepixels=lengthcount/(3*samplefac);var delta=~~(samplepixels/ncycles);var alpha=initalpha;var radius=initradius;var rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(i=0;i<rad;i++)radpower[i]=alpha*((rad*rad-i*i)*radbias/(rad*rad));var step;if(lengthcount<minpicturebytes){samplefac=1;step=3}else if(lengthcount%prime1!==0){step=3*prime1}else if(lengthcount%prime2!==0){step=3*prime2}else if(lengthcount%prime3!==0){step=3*prime3}else{step=3*prime4}var b,g,r,j;var pix=0;i=0;while(i<samplepixels){b=(pixels[pix]&255)<<netbiasshift;g=(pixels[pix+1]&255)<<netbiasshift;r=(pixels[pix+2]&255)<<netbiasshift;j=contest(b,g,r);altersingle(alpha,j,b,g,r);if(rad!==0)alterneigh(rad,j,b,g,r);pix+=step;if(pix>=lengthcount)pix-=lengthcount;i++;if(delta===0)delta=1;if(i%delta===0){alpha-=alpha/alphadec;radius-=radius/radiusdec;rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(j=0;j<rad;j++)radpower[j]=alpha*((rad*rad-j*j)*radbias/(rad*rad))}}}function buildColormap(){init();learn();unbiasnet();inxbuild()}this.buildColormap=buildColormap;function getColormap(){var map=[];var index=[];for(var i=0;i<netsize;i++)index[network[i][3]]=i;var k=0;for(var l=0;l<netsize;l++){var j=index[l];map[k++]=network[j][0];map[k++]=network[j][1];map[k++]=network[j][2]}return map}this.getColormap=getColormap;this.lookupRGB=inxsearch}module.exports=NeuQuant},{}],4:[function(require,module,exports){var GIFEncoder,renderFrame;GIFEncoder=require("./GIFEncoder.js");renderFrame=function(frame){var encoder,page,stream,transfer;encoder=new GIFEncoder(frame.width,frame.height);if(frame.index===0){encoder.writeHeader()}else{encoder.firstFrame=false}encoder.setTransparent(frame.transparent);encoder.setRepeat(frame.repeat);encoder.setDelay(frame.delay);encoder.setQuality(frame.quality);encoder.setDither(frame.dither);encoder.setGlobalPalette(frame.globalPalette);encoder.addFrame(frame.data);if(frame.last){encoder.finish()}if(frame.globalPalette===true){frame.globalPalette=encoder.getGlobalPalette()}stream=encoder.stream();frame.data=stream.pages;frame.cursor=stream.cursor;frame.pageSize=stream.constructor.pageSize;if(frame.canTransfer){transfer=function(){var i,len,ref,results;ref=frame.data;results=[];for(i=0,len=ref.length;i<len;i++){page=ref[i];results.push(page.buffer)}return results}();return self.postMessage(frame,transfer)}else{return self.postMessage(frame)}};self.onmessage=function(event){return renderFrame(event.data)}},{"./GIFEncoder.js":1}]},{},[4]);
3
- //# sourceMappingURL=gif.worker.js.map
1
+ // gif.worker.js 0.2.0 - https://github.com/jnordberg/gif.js
2
+ (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){var NeuQuant=require("./TypedNeuQuant.js");var LZWEncoder=require("./LZWEncoder.js");function ByteArray(){this.page=-1;this.pages=[];this.newPage()}ByteArray.pageSize=4096;ByteArray.charMap={};for(var i=0;i<256;i++)ByteArray.charMap[i]=String.fromCharCode(i);ByteArray.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(ByteArray.pageSize);this.cursor=0};ByteArray.prototype.getData=function(){var rv="";for(var p=0;p<this.pages.length;p++){for(var i=0;i<ByteArray.pageSize;i++){rv+=ByteArray.charMap[this.pages[p][i]]}}return rv};ByteArray.prototype.writeByte=function(val){if(this.cursor>=ByteArray.pageSize)this.newPage();this.pages[this.page][this.cursor++]=val};ByteArray.prototype.writeUTFBytes=function(string){for(var l=string.length,i=0;i<l;i++)this.writeByte(string.charCodeAt(i))};ByteArray.prototype.writeBytes=function(array,offset,length){for(var l=length||array.length,i=offset||0;i<l;i++)this.writeByte(array[i])};function GIFEncoder(width,height){this.width=~~width;this.height=~~height;this.transparent=null;this.transIndex=0;this.repeat=-1;this.delay=0;this.image=null;this.pixels=null;this.indexedPixels=null;this.colorDepth=null;this.colorTab=null;this.neuQuant=null;this.usedEntry=new Array;this.palSize=7;this.dispose=-1;this.firstFrame=true;this.sample=10;this.dither=false;this.globalPalette=false;this.out=new ByteArray}GIFEncoder.prototype.setDelay=function(milliseconds){this.delay=Math.round(milliseconds/10)};GIFEncoder.prototype.setFrameRate=function(fps){this.delay=Math.round(100/fps)};GIFEncoder.prototype.setDispose=function(disposalCode){if(disposalCode>=0)this.dispose=disposalCode};GIFEncoder.prototype.setRepeat=function(repeat){this.repeat=repeat};GIFEncoder.prototype.setTransparent=function(color){this.transparent=color};GIFEncoder.prototype.addFrame=function(imageData){this.image=imageData;this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null;this.getImagePixels();this.analyzePixels();if(this.globalPalette===true)this.globalPalette=this.colorTab;if(this.firstFrame){this.writeLSD();this.writePalette();if(this.repeat>=0){this.writeNetscapeExt()}}this.writeGraphicCtrlExt();this.writeImageDesc();if(!this.firstFrame&&!this.globalPalette)this.writePalette();this.writePixels();this.firstFrame=false};GIFEncoder.prototype.finish=function(){this.out.writeByte(59)};GIFEncoder.prototype.setQuality=function(quality){if(quality<1)quality=1;this.sample=quality};GIFEncoder.prototype.setDither=function(dither){if(dither===true)dither="FloydSteinberg";this.dither=dither};GIFEncoder.prototype.setGlobalPalette=function(palette){this.globalPalette=palette};GIFEncoder.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette};GIFEncoder.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")};GIFEncoder.prototype.analyzePixels=function(){if(!this.colorTab){this.neuQuant=new NeuQuant(this.pixels,this.sample);this.neuQuant.buildColormap();this.colorTab=this.neuQuant.getColormap()}if(this.dither){this.ditherPixels(this.dither.replace("-serpentine",""),this.dither.match(/-serpentine/)!==null)}else{this.indexPixels()}this.pixels=null;this.colorDepth=8;this.palSize=7;if(this.transparent!==null){this.transIndex=this.findClosest(this.transparent,true)}};GIFEncoder.prototype.indexPixels=function(imgq){var nPix=this.pixels.length/3;this.indexedPixels=new Uint8Array(nPix);var k=0;for(var j=0;j<nPix;j++){var index=this.findClosestRGB(this.pixels[k++]&255,this.pixels[k++]&255,this.pixels[k++]&255);this.usedEntry[index]=true;this.indexedPixels[j]=index}};GIFEncoder.prototype.ditherPixels=function(kernel,serpentine){var kernels={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!kernel||!kernels[kernel]){throw"Unknown dithering kernel: "+kernel}var ds=kernels[kernel];var index=0,height=this.height,width=this.width,data=this.pixels;var direction=serpentine?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var y=0;y<height;y++){if(serpentine)direction=direction*-1;for(var x=direction==1?0:width-1,xend=direction==1?width:0;x!==xend;x+=direction){index=y*width+x;var idx=index*3;var r1=data[idx];var g1=data[idx+1];var b1=data[idx+2];idx=this.findClosestRGB(r1,g1,b1);this.usedEntry[idx]=true;this.indexedPixels[index]=idx;idx*=3;var r2=this.colorTab[idx];var g2=this.colorTab[idx+1];var b2=this.colorTab[idx+2];var er=r1-r2;var eg=g1-g2;var eb=b1-b2;for(var i=direction==1?0:ds.length-1,end=direction==1?ds.length:0;i!==end;i+=direction){var x1=ds[i][1];var y1=ds[i][2];if(x1+x>=0&&x1+x<width&&y1+y>=0&&y1+y<height){var d=ds[i][0];idx=index+x1+y1*width;idx*=3;data[idx]=Math.max(0,Math.min(255,data[idx]+er*d));data[idx+1]=Math.max(0,Math.min(255,data[idx+1]+eg*d));data[idx+2]=Math.max(0,Math.min(255,data[idx+2]+eb*d))}}}}};GIFEncoder.prototype.findClosest=function(c,used){return this.findClosestRGB((c&16711680)>>16,(c&65280)>>8,c&255,used)};GIFEncoder.prototype.findClosestRGB=function(r,g,b,used){if(this.colorTab===null)return-1;if(this.neuQuant&&!used){return this.neuQuant.lookupRGB(r,g,b)}var c=b|g<<8|r<<16;var minpos=0;var dmin=256*256*256;var len=this.colorTab.length;for(var i=0,index=0;i<len;index++){var dr=r-(this.colorTab[i++]&255);var dg=g-(this.colorTab[i++]&255);var db=b-(this.colorTab[i++]&255);var d=dr*dr+dg*dg+db*db;if((!used||this.usedEntry[index])&&d<dmin){dmin=d;minpos=index}}return minpos};GIFEncoder.prototype.getImagePixels=function(){var w=this.width;var h=this.height;this.pixels=new Uint8Array(w*h*3);var data=this.image;var srcPos=0;var count=0;for(var i=0;i<h;i++){for(var j=0;j<w;j++){this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];this.pixels[count++]=data[srcPos++];srcPos++}}};GIFEncoder.prototype.writeGraphicCtrlExt=function(){this.out.writeByte(33);this.out.writeByte(249);this.out.writeByte(4);var transp,disp;if(this.transparent===null){transp=0;disp=0}else{transp=1;disp=2}if(this.dispose>=0){disp=dispose&7}disp<<=2;this.out.writeByte(0|disp|0|transp);this.writeShort(this.delay);this.out.writeByte(this.transIndex);this.out.writeByte(0)};GIFEncoder.prototype.writeImageDesc=function(){this.out.writeByte(44);this.writeShort(0);this.writeShort(0);this.writeShort(this.width);this.writeShort(this.height);if(this.firstFrame||this.globalPalette){this.out.writeByte(0)}else{this.out.writeByte(128|0|0|0|this.palSize)}};GIFEncoder.prototype.writeLSD=function(){this.writeShort(this.width);this.writeShort(this.height);this.out.writeByte(128|112|0|this.palSize);this.out.writeByte(0);this.out.writeByte(0)};GIFEncoder.prototype.writeNetscapeExt=function(){this.out.writeByte(33);this.out.writeByte(255);this.out.writeByte(11);this.out.writeUTFBytes("NETSCAPE2.0");this.out.writeByte(3);this.out.writeByte(1);this.writeShort(this.repeat);this.out.writeByte(0)};GIFEncoder.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);var n=3*256-this.colorTab.length;for(var i=0;i<n;i++)this.out.writeByte(0)};GIFEncoder.prototype.writeShort=function(pValue){this.out.writeByte(pValue&255);this.out.writeByte(pValue>>8&255)};GIFEncoder.prototype.writePixels=function(){var enc=new LZWEncoder(this.width,this.height,this.indexedPixels,this.colorDepth);enc.encode(this.out)};GIFEncoder.prototype.stream=function(){return this.out};module.exports=GIFEncoder},{"./LZWEncoder.js":2,"./TypedNeuQuant.js":3}],2:[function(require,module,exports){var EOF=-1;var BITS=12;var HSIZE=5003;var masks=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function LZWEncoder(width,height,pixels,colorDepth){var initCodeSize=Math.max(2,colorDepth);var accum=new Uint8Array(256);var htab=new Int32Array(HSIZE);var codetab=new Int32Array(HSIZE);var cur_accum,cur_bits=0;var a_count;var free_ent=0;var maxcode;var clear_flg=false;var g_init_bits,ClearCode,EOFCode;function char_out(c,outs){accum[a_count++]=c;if(a_count>=254)flush_char(outs)}function cl_block(outs){cl_hash(HSIZE);free_ent=ClearCode+2;clear_flg=true;output(ClearCode,outs)}function cl_hash(hsize){for(var i=0;i<hsize;++i)htab[i]=-1}function compress(init_bits,outs){var fcode,c,i,ent,disp,hsize_reg,hshift;g_init_bits=init_bits;clear_flg=false;n_bits=g_init_bits;maxcode=MAXCODE(n_bits);ClearCode=1<<init_bits-1;EOFCode=ClearCode+1;free_ent=ClearCode+2;a_count=0;ent=nextPixel();hshift=0;for(fcode=HSIZE;fcode<65536;fcode*=2)++hshift;hshift=8-hshift;hsize_reg=HSIZE;cl_hash(hsize_reg);output(ClearCode,outs);outer_loop:while((c=nextPixel())!=EOF){fcode=(c<<BITS)+ent;i=c<<hshift^ent;if(htab[i]===fcode){ent=codetab[i];continue}else if(htab[i]>=0){disp=hsize_reg-i;if(i===0)disp=1;do{if((i-=disp)<0)i+=hsize_reg;if(htab[i]===fcode){ent=codetab[i];continue outer_loop}}while(htab[i]>=0)}output(ent,outs);ent=c;if(free_ent<1<<BITS){codetab[i]=free_ent++;htab[i]=fcode}else{cl_block(outs)}}output(ent,outs);output(EOFCode,outs)}function encode(outs){outs.writeByte(initCodeSize);remaining=width*height;curPixel=0;compress(initCodeSize+1,outs);outs.writeByte(0)}function flush_char(outs){if(a_count>0){outs.writeByte(a_count);outs.writeBytes(accum,0,a_count);a_count=0}}function MAXCODE(n_bits){return(1<<n_bits)-1}function nextPixel(){if(remaining===0)return EOF;--remaining;var pix=pixels[curPixel++];return pix&255}function output(code,outs){cur_accum&=masks[cur_bits];if(cur_bits>0)cur_accum|=code<<cur_bits;else cur_accum=code;cur_bits+=n_bits;while(cur_bits>=8){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}if(free_ent>maxcode||clear_flg){if(clear_flg){maxcode=MAXCODE(n_bits=g_init_bits);clear_flg=false}else{++n_bits;if(n_bits==BITS)maxcode=1<<BITS;else maxcode=MAXCODE(n_bits)}}if(code==EOFCode){while(cur_bits>0){char_out(cur_accum&255,outs);cur_accum>>=8;cur_bits-=8}flush_char(outs)}}this.encode=encode}module.exports=LZWEncoder},{}],3:[function(require,module,exports){var ncycles=100;var netsize=256;var maxnetpos=netsize-1;var netbiasshift=4;var intbiasshift=16;var intbias=1<<intbiasshift;var gammashift=10;var gamma=1<<gammashift;var betashift=10;var beta=intbias>>betashift;var betagamma=intbias<<gammashift-betashift;var initrad=netsize>>3;var radiusbiasshift=6;var radiusbias=1<<radiusbiasshift;var initradius=initrad*radiusbias;var radiusdec=30;var alphabiasshift=10;var initalpha=1<<alphabiasshift;var alphadec;var radbiasshift=8;var radbias=1<<radbiasshift;var alpharadbshift=alphabiasshift+radbiasshift;var alpharadbias=1<<alpharadbshift;var prime1=499;var prime2=491;var prime3=487;var prime4=503;var minpicturebytes=3*prime4;function NeuQuant(pixels,samplefac){var network;var netindex;var bias;var freq;var radpower;function init(){network=[];netindex=new Int32Array(256);bias=new Int32Array(netsize);freq=new Int32Array(netsize);radpower=new Int32Array(netsize>>3);var i,v;for(i=0;i<netsize;i++){v=(i<<netbiasshift+8)/netsize;network[i]=new Float64Array([v,v,v,0]);freq[i]=intbias/netsize;bias[i]=0}}function unbiasnet(){for(var i=0;i<netsize;i++){network[i][0]>>=netbiasshift;network[i][1]>>=netbiasshift;network[i][2]>>=netbiasshift;network[i][3]=i}}function altersingle(alpha,i,b,g,r){network[i][0]-=alpha*(network[i][0]-b)/initalpha;network[i][1]-=alpha*(network[i][1]-g)/initalpha;network[i][2]-=alpha*(network[i][2]-r)/initalpha}function alterneigh(radius,i,b,g,r){var lo=Math.abs(i-radius);var hi=Math.min(i+radius,netsize);var j=i+1;var k=i-1;var m=1;var p,a;while(j<hi||k>lo){a=radpower[m++];if(j<hi){p=network[j++];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}if(k>lo){p=network[k--];p[0]-=a*(p[0]-b)/alpharadbias;p[1]-=a*(p[1]-g)/alpharadbias;p[2]-=a*(p[2]-r)/alpharadbias}}}function contest(b,g,r){var bestd=~(1<<31);var bestbiasd=bestd;var bestpos=-1;var bestbiaspos=bestpos;var i,n,dist,biasdist,betafreq;for(i=0;i<netsize;i++){n=network[i];dist=Math.abs(n[0]-b)+Math.abs(n[1]-g)+Math.abs(n[2]-r);if(dist<bestd){bestd=dist;bestpos=i}biasdist=dist-(bias[i]>>intbiasshift-netbiasshift);if(biasdist<bestbiasd){bestbiasd=biasdist;bestbiaspos=i}betafreq=freq[i]>>betashift;freq[i]-=betafreq;bias[i]+=betafreq<<gammashift}freq[bestpos]+=beta;bias[bestpos]-=betagamma;return bestbiaspos}function inxbuild(){var i,j,p,q,smallpos,smallval,previouscol=0,startpos=0;for(i=0;i<netsize;i++){p=network[i];smallpos=i;smallval=p[1];for(j=i+1;j<netsize;j++){q=network[j];if(q[1]<smallval){smallpos=j;smallval=q[1]}}q=network[smallpos];if(i!=smallpos){j=q[0];q[0]=p[0];p[0]=j;j=q[1];q[1]=p[1];p[1]=j;j=q[2];q[2]=p[2];p[2]=j;j=q[3];q[3]=p[3];p[3]=j}if(smallval!=previouscol){netindex[previouscol]=startpos+i>>1;for(j=previouscol+1;j<smallval;j++)netindex[j]=i;previouscol=smallval;startpos=i}}netindex[previouscol]=startpos+maxnetpos>>1;for(j=previouscol+1;j<256;j++)netindex[j]=maxnetpos}function inxsearch(b,g,r){var a,p,dist;var bestd=1e3;var best=-1;var i=netindex[g];var j=i-1;while(i<netsize||j>=0){if(i<netsize){p=network[i];dist=p[1]-g;if(dist>=bestd)i=netsize;else{i++;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}if(j>=0){p=network[j];dist=g-p[1];if(dist>=bestd)j=-1;else{j--;if(dist<0)dist=-dist;a=p[0]-b;if(a<0)a=-a;dist+=a;if(dist<bestd){a=p[2]-r;if(a<0)a=-a;dist+=a;if(dist<bestd){bestd=dist;best=p[3]}}}}}return best}function learn(){var i;var lengthcount=pixels.length;var alphadec=30+(samplefac-1)/3;var samplepixels=lengthcount/(3*samplefac);var delta=~~(samplepixels/ncycles);var alpha=initalpha;var radius=initradius;var rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(i=0;i<rad;i++)radpower[i]=alpha*((rad*rad-i*i)*radbias/(rad*rad));var step;if(lengthcount<minpicturebytes){samplefac=1;step=3}else if(lengthcount%prime1!==0){step=3*prime1}else if(lengthcount%prime2!==0){step=3*prime2}else if(lengthcount%prime3!==0){step=3*prime3}else{step=3*prime4}var b,g,r,j;var pix=0;i=0;while(i<samplepixels){b=(pixels[pix]&255)<<netbiasshift;g=(pixels[pix+1]&255)<<netbiasshift;r=(pixels[pix+2]&255)<<netbiasshift;j=contest(b,g,r);altersingle(alpha,j,b,g,r);if(rad!==0)alterneigh(rad,j,b,g,r);pix+=step;if(pix>=lengthcount)pix-=lengthcount;i++;if(delta===0)delta=1;if(i%delta===0){alpha-=alpha/alphadec;radius-=radius/radiusdec;rad=radius>>radiusbiasshift;if(rad<=1)rad=0;for(j=0;j<rad;j++)radpower[j]=alpha*((rad*rad-j*j)*radbias/(rad*rad))}}}function buildColormap(){init();learn();unbiasnet();inxbuild()}this.buildColormap=buildColormap;function getColormap(){var map=[];var index=[];for(var i=0;i<netsize;i++)index[network[i][3]]=i;var k=0;for(var l=0;l<netsize;l++){var j=index[l];map[k++]=network[j][0];map[k++]=network[j][1];map[k++]=network[j][2]}return map}this.getColormap=getColormap;this.lookupRGB=inxsearch}module.exports=NeuQuant},{}],4:[function(require,module,exports){var GIFEncoder,renderFrame;GIFEncoder=require("./GIFEncoder.js");renderFrame=function(frame){var encoder,page,stream,transfer;encoder=new GIFEncoder(frame.width,frame.height);if(frame.index===0){encoder.writeHeader()}else{encoder.firstFrame=false}encoder.setTransparent(frame.transparent);encoder.setRepeat(frame.repeat);encoder.setDelay(frame.delay);encoder.setQuality(frame.quality);encoder.setDither(frame.dither);encoder.setGlobalPalette(frame.globalPalette);encoder.addFrame(frame.data);if(frame.last){encoder.finish()}if(frame.globalPalette===true){frame.globalPalette=encoder.getGlobalPalette()}stream=encoder.stream();frame.data=stream.pages;frame.cursor=stream.cursor;frame.pageSize=stream.constructor.pageSize;if(frame.canTransfer){transfer=function(){var i,len,ref,results;ref=frame.data;results=[];for(i=0,len=ref.length;i<len;i++){page=ref[i];results.push(page.buffer)}return results}();return self.postMessage(frame,transfer)}else{return self.postMessage(frame)}};self.onmessage=function(event){return renderFrame(event.data)}},{"./GIFEncoder.js":1}]},{},[4]);
3
+ //# sourceMappingURL=gif.worker.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../components/components.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\n// import your Component\n\nconst components: Record<string, Plugin> = {\n // Add your Component\n};\n\nconst install = (app: App) => {\n for (const key of Object.keys(components)) {\n app.use(components[key]);\n }\n};\n\nconst Components = {\n ...components,\n install,\n};\n\nexport default Components;\n"],"names":[],"mappings":";;;;AAGA,QAAM,aAAqC,CAAA;AAI3C,QAAM,UAAU,CAAC,QAAa;AAC5B,eAAW,OAAO,OAAO,KAAK,UAAU,GAAG;AACrC,UAAA,IAAI,WAAW,IAAI;AAAA,IACzB;AAAA,EACF;AAEA,QAAM,aAAa;AAAA,IACjB,GAAG;AAAA,IACH;AAAA,EACF;;;"}
1
+ {"version":3,"file":"index.js","sources":["../components/components.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\r\n// import your Component\r\n\r\nconst components: Record<string, Plugin> = {\r\n // Add your Component\r\n};\r\n\r\nconst install = (app: App) => {\r\n for (const key of Object.keys(components)) {\r\n app.use(components[key]);\r\n }\r\n};\r\n\r\nconst Components = {\r\n ...components,\r\n install,\r\n};\r\n\r\nexport default Components;\r\n"],"names":[],"mappings":";;;;AAGA,QAAM,aAAqC,CAAA;AAI3C,QAAM,UAAU,CAAC,QAAa;AAC5B,eAAW,OAAO,OAAO,KAAK,UAAU,GAAG;AACrC,UAAA,IAAI,WAAW,IAAI;AAAA,IACzB;AAAA,EACF;AAEA,QAAM,aAAa;AAAA,IACjB,GAAG;AAAA,IACH;AAAA,EACF;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.min.js","sources":["../components/components.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\n// import your Component\n\nconst components: Record<string, Plugin> = {\n // Add your Component\n};\n\nconst install = (app: App) => {\n for (const key of Object.keys(components)) {\n app.use(components[key]);\n }\n};\n\nconst Components = {\n ...components,\n install,\n};\n\nexport default Components;\n"],"names":["components","install","app","key","Object","keys","use"],"mappings":";;;;AAGA,QAAMA,IAAqC,CAAA;SAUxB,EAAA,GACdA,GACHC,SAReC;AACf,eAAWC,KAAOC,OAAOC,KAAKL;AACxBE,QAAAI,IAAIN,EAAWG,EAAAA;AAAAA,EACrB;;"}
1
+ {"version":3,"file":"index.min.js","sources":["../components/components.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\r\n// import your Component\r\n\r\nconst components: Record<string, Plugin> = {\r\n // Add your Component\r\n};\r\n\r\nconst install = (app: App) => {\r\n for (const key of Object.keys(components)) {\r\n app.use(components[key]);\r\n }\r\n};\r\n\r\nconst Components = {\r\n ...components,\r\n install,\r\n};\r\n\r\nexport default Components;\r\n"],"names":["components","install","app","key","Object","keys","use"],"mappings":";;;;AAGA,QAAMA,IAAqC,CAAA;SAUxB,EAAA,GACdA,GACHC,SAReC;AACf,eAAWC,KAAOC,OAAOC,KAAKL;AACxBE,QAAAI,IAAIN,EAAWG,EAAAA;AAAAA,EACrB;;"}
@@ -1,118 +1,118 @@
1
- .reference-btn {
2
- padding: 12px 16px;
3
- color: #5f5f5f;
4
- border: none;
5
- border-radius: 4px;
6
- }
7
-
8
- .apps-box-popover {
9
- position: relative;
10
- padding: 10px;
11
- }
12
-
13
- .app-title {
14
- padding: 0 15px;
15
- font-weight: bold;
16
- font-size: 16px;
17
- }
18
-
19
- .ul-list {
20
- width: 435px !important;
21
- margin: 0;
22
- padding: 0;
23
- overflow: hidden;
24
- text-align: center;
25
- list-style: none;
26
-
27
- .li_item {
28
- position: relative;
29
- float: left;
30
- width: 85px;
31
- height: 90px;
32
- // margin-left: 16px;
33
- margin: 13px 0;
34
- text-align: center;
35
-
36
- .icon-logo {
37
- .svg-icon {
38
- width: 4em;
39
- height: 3.5em;
40
- }
41
- }
42
-
43
- &:hover {
44
- // transition: ease-out 0.2s;
45
- // transform: scale(1.1);
46
- background: rgba(0, 0, 0, 0.05);
47
- border-radius: 4px;
48
- cursor: pointer;
49
-
50
- .icon-gengduo {
51
- display: block;
52
- }
53
- }
54
-
55
- .wrap_icon {
56
- display: inline-block;
57
- width: 70px;
58
- margin-top: 6px;
59
-
60
- .wrap_ {
61
- .icon-logo {
62
- width: 70px;
63
- height: 50px;
64
- margin-bottom: 4px;
65
-
66
- img {
67
- width: 50px;
68
- max-width: 100%;
69
- height: 50px;
70
- max-height: 100%;
71
- border-radius: 50%;
72
- }
73
- }
74
-
75
- .shortcut-logo {
76
- line-height: 77px;
77
-
78
- img {
79
- width: 35px;
80
- height: 35px;
81
- }
82
- }
83
-
84
- .icon_title {
85
- width: 73px;
86
- height: 20px;
87
- overflow: hidden;
88
- white-space: nowrap;
89
- text-overflow: ellipsis;
90
- }
91
- }
92
-
93
- .quick-add {
94
- .icon-logo {
95
- width: 40px;
96
- height: 40px;
97
- margin: 5px auto 9px;
98
- text-align: center;
99
- background-color: rgba(0, 0, 0, 0.12);
100
- border-radius: 50%;
101
-
102
- i {
103
- color: rgba(0, 0, 0, 0.85);
104
- font-size: 14px;
105
- line-height: 40px;
106
- }
107
- }
108
- }
109
- }
110
-
111
- .icon-gengduo {
112
- position: absolute;
113
- top: 2px;
114
- right: 4px;
115
- display: none;
116
- }
117
- }
118
- }
1
+ .reference-btn {
2
+ padding: 12px 16px;
3
+ color: #5f5f5f;
4
+ border: none;
5
+ border-radius: 4px;
6
+ }
7
+
8
+ .apps-box-popover {
9
+ position: relative;
10
+ padding: 10px;
11
+ }
12
+
13
+ .app-title {
14
+ padding: 0 15px;
15
+ font-weight: bold;
16
+ font-size: 16px;
17
+ }
18
+
19
+ .ul-list {
20
+ width: 435px !important;
21
+ margin: 0;
22
+ padding: 0;
23
+ overflow: hidden;
24
+ text-align: center;
25
+ list-style: none;
26
+
27
+ .li_item {
28
+ position: relative;
29
+ float: left;
30
+ width: 85px;
31
+ height: 90px;
32
+ // margin-left: 16px;
33
+ margin: 13px 0;
34
+ text-align: center;
35
+
36
+ .icon-logo {
37
+ .svg-icon {
38
+ width: 4em;
39
+ height: 3.5em;
40
+ }
41
+ }
42
+
43
+ &:hover {
44
+ // transition: ease-out 0.2s;
45
+ // transform: scale(1.1);
46
+ background: rgba(0, 0, 0, 0.05);
47
+ border-radius: 4px;
48
+ cursor: pointer;
49
+
50
+ .icon-gengduo {
51
+ display: block;
52
+ }
53
+ }
54
+
55
+ .wrap_icon {
56
+ display: inline-block;
57
+ width: 70px;
58
+ margin-top: 6px;
59
+
60
+ .wrap_ {
61
+ .icon-logo {
62
+ width: 70px;
63
+ height: 50px;
64
+ margin-bottom: 4px;
65
+
66
+ img {
67
+ width: 50px;
68
+ max-width: 100%;
69
+ height: 50px;
70
+ max-height: 100%;
71
+ border-radius: 50%;
72
+ }
73
+ }
74
+
75
+ .shortcut-logo {
76
+ line-height: 77px;
77
+
78
+ img {
79
+ width: 35px;
80
+ height: 35px;
81
+ }
82
+ }
83
+
84
+ .icon_title {
85
+ width: 73px;
86
+ height: 20px;
87
+ overflow: hidden;
88
+ white-space: nowrap;
89
+ text-overflow: ellipsis;
90
+ }
91
+ }
92
+
93
+ .quick-add {
94
+ .icon-logo {
95
+ width: 40px;
96
+ height: 40px;
97
+ margin: 5px auto 9px;
98
+ text-align: center;
99
+ background-color: rgba(0, 0, 0, 0.12);
100
+ border-radius: 50%;
101
+
102
+ i {
103
+ color: rgba(0, 0, 0, 0.85);
104
+ font-size: 14px;
105
+ line-height: 40px;
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ .icon-gengduo {
112
+ position: absolute;
113
+ top: 2px;
114
+ right: 4px;
115
+ display: none;
116
+ }
117
+ }
118
+ }
@@ -1,45 +1,45 @@
1
- @import './filterGroup.less';
2
-
3
- .base-filter-container {
4
- display: flex;
5
- align-items: center;
6
- justify-content: space-between;
7
-
8
- .left {
9
- display: flex;
10
- align-items: center;
11
-
12
- .form-ul {
13
- display: flex;
14
- align-items: center;
15
- }
16
-
17
- .filter-item-view {
18
- margin-right: 1rem;
19
-
20
- &.value {
21
- .arco-picker,
22
- .arco-picker-input-active input,
23
- .arco-input-search,
24
- .arco-select-view-single,
25
- .arco-icon-hover,
26
- .arco-icon-hover::before {
27
- background-color: rgb(var(--primary-1));
28
- }
29
-
30
- .arco-picker input,
31
- .arco-input-search,
32
- .arco-select-view-single,
33
- .arco-select-view-suffix,
34
- .arco-picker-separator,
35
- .arco-picker-suffix-icon,
36
- .arco-icon-hover {
37
- color: rgb(var(--primary-6));
38
- }
39
- }
40
- }
41
- }
42
-
43
- .right {
44
- }
45
- }
1
+ @import './filterGroup.less';
2
+
3
+ .base-filter-container {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+
8
+ .left {
9
+ display: flex;
10
+ align-items: center;
11
+
12
+ .form-ul {
13
+ display: flex;
14
+ align-items: center;
15
+ }
16
+
17
+ .filter-item-view {
18
+ margin-right: 1rem;
19
+
20
+ &.value {
21
+ .arco-picker,
22
+ .arco-picker-input-active input,
23
+ .arco-input-search,
24
+ .arco-select-view-single,
25
+ .arco-icon-hover,
26
+ .arco-icon-hover::before {
27
+ background-color: rgb(var(--primary-1));
28
+ }
29
+
30
+ .arco-picker input,
31
+ .arco-input-search,
32
+ .arco-select-view-single,
33
+ .arco-select-view-suffix,
34
+ .arco-picker-separator,
35
+ .arco-picker-suffix-icon,
36
+ .arco-icon-hover {
37
+ color: rgb(var(--primary-6));
38
+ }
39
+ }
40
+ }
41
+ }
42
+
43
+ .right {
44
+ }
45
+ }