clickgo 7.4.0 → 7.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/demo.cga +0 -0
- package/dist/app/task.cga +0 -0
- package/dist/index.js +1 -1
- package/dist/lib/tool.d.ts +23 -9
- package/doc/clickgo-rag.md +194 -131
- package/package.json +4 -3
package/doc/clickgo-rag.md
CHANGED
|
@@ -36533,7 +36533,7 @@ lib/tool/enumerations/ESTATE.md
|
|
|
36533
36533
|
|
|
36534
36534
|
# Enumeration: ESTATE
|
|
36535
36535
|
|
|
36536
|
-
Defined in: [lib/tool.ts:
|
|
36536
|
+
Defined in: [lib/tool.ts:608](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L608)
|
|
36537
36537
|
|
|
36538
36538
|
状态机状态
|
|
36539
36539
|
|
|
@@ -36543,7 +36543,7 @@ Defined in: [lib/tool.ts:593](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36543
36543
|
|
|
36544
36544
|
> **COMMENT**: `4`
|
|
36545
36545
|
|
|
36546
|
-
Defined in: [lib/tool.ts:
|
|
36546
|
+
Defined in: [lib/tool.ts:618](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L618)
|
|
36547
36547
|
|
|
36548
36548
|
注释
|
|
36549
36549
|
|
|
@@ -36553,7 +36553,7 @@ Defined in: [lib/tool.ts:603](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36553
36553
|
|
|
36554
36554
|
> **NORMAL**: `0`
|
|
36555
36555
|
|
|
36556
|
-
Defined in: [lib/tool.ts:
|
|
36556
|
+
Defined in: [lib/tool.ts:610](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L610)
|
|
36557
36557
|
|
|
36558
36558
|
普通
|
|
36559
36559
|
|
|
@@ -36563,7 +36563,7 @@ Defined in: [lib/tool.ts:595](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36563
36563
|
|
|
36564
36564
|
> **REG**: `3`
|
|
36565
36565
|
|
|
36566
|
-
Defined in: [lib/tool.ts:
|
|
36566
|
+
Defined in: [lib/tool.ts:616](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L616)
|
|
36567
36567
|
|
|
36568
36568
|
正则
|
|
36569
36569
|
|
|
@@ -36573,7 +36573,7 @@ Defined in: [lib/tool.ts:601](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36573
36573
|
|
|
36574
36574
|
> **STRING**: `2`
|
|
36575
36575
|
|
|
36576
|
-
Defined in: [lib/tool.ts:
|
|
36576
|
+
Defined in: [lib/tool.ts:614](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L614)
|
|
36577
36577
|
|
|
36578
36578
|
字符串
|
|
36579
36579
|
|
|
@@ -36583,7 +36583,7 @@ Defined in: [lib/tool.ts:599](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
36583
36583
|
|
|
36584
36584
|
> **WORD**: `1`
|
|
36585
36585
|
|
|
36586
|
-
Defined in: [lib/tool.ts:
|
|
36586
|
+
Defined in: [lib/tool.ts:612](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L612)
|
|
36587
36587
|
|
|
36588
36588
|
单词
|
|
36589
36589
|
|
|
@@ -36600,7 +36600,7 @@ lib/tool/functions/blob2ArrayBuffer.md
|
|
|
36600
36600
|
|
|
36601
36601
|
> **blob2ArrayBuffer**(`blob`): `Promise`\<`ArrayBuffer`\>
|
|
36602
36602
|
|
|
36603
|
-
Defined in: [lib/tool.ts:
|
|
36603
|
+
Defined in: [lib/tool.ts:86](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L86)
|
|
36604
36604
|
|
|
36605
36605
|
将 blob 对象转换为 ArrayBuffer
|
|
36606
36606
|
|
|
@@ -36629,7 +36629,7 @@ lib/tool/functions/blob2DataUrl.md
|
|
|
36629
36629
|
|
|
36630
36630
|
> **blob2DataUrl**(`blob`): `Promise`\<`string`\>
|
|
36631
36631
|
|
|
36632
|
-
Defined in: [lib/tool.ts:
|
|
36632
|
+
Defined in: [lib/tool.ts:509](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L509)
|
|
36633
36633
|
|
|
36634
36634
|
将 blob 对象转换为 base64 url
|
|
36635
36635
|
|
|
@@ -36660,7 +36660,7 @@ lib/tool/functions/blob2Text.md
|
|
|
36660
36660
|
|
|
36661
36661
|
> **blob2Text**(`blob`): `Promise`\<`string`\>
|
|
36662
36662
|
|
|
36663
|
-
Defined in: [lib/tool.ts:
|
|
36663
|
+
Defined in: [lib/tool.ts:500](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L500)
|
|
36664
36664
|
|
|
36665
36665
|
将 blob 对象转换为 text
|
|
36666
36666
|
|
|
@@ -36689,7 +36689,7 @@ lib/tool/functions/clone.md
|
|
|
36689
36689
|
|
|
36690
36690
|
> **clone**\<`T`\>(`obj`): `T`
|
|
36691
36691
|
|
|
36692
|
-
Defined in: [lib/tool.ts:
|
|
36692
|
+
Defined in: [lib/tool.ts:113](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L113)
|
|
36693
36693
|
|
|
36694
36694
|
完整的克隆一份数组/对象
|
|
36695
36695
|
|
|
@@ -36726,7 +36726,7 @@ lib/tool/functions/compar.md
|
|
|
36726
36726
|
|
|
36727
36727
|
> **compar**(`before`, `after`): `object`
|
|
36728
36728
|
|
|
36729
|
-
Defined in: [lib/tool.ts:
|
|
36729
|
+
Defined in: [lib/tool.ts:522](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L522)
|
|
36730
36730
|
|
|
36731
36731
|
- 对比老值和新值,看看新值中哪些移除了,哪些新增了
|
|
36732
36732
|
|
|
@@ -36781,9 +36781,9 @@ lib/tool/functions/compressor.md
|
|
|
36781
36781
|
|
|
36782
36782
|
> **compressor**\<`T`\>(`file`, `options?`): `Promise`\<`false` \| `T`\>
|
|
36783
36783
|
|
|
36784
|
-
Defined in: [lib/tool.ts:
|
|
36784
|
+
Defined in: [lib/tool.ts:57](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L57)
|
|
36785
36785
|
|
|
36786
|
-
|
|
36786
|
+
压缩图片,质量降档复用同一画布,保留方向校正及等比缩放
|
|
36787
36787
|
|
|
36788
36788
|
## Type Parameters
|
|
36789
36789
|
|
|
@@ -36797,33 +36797,30 @@ Defined in: [lib/tool.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/
|
|
|
36797
36797
|
|
|
36798
36798
|
`T`
|
|
36799
36799
|
|
|
36800
|
-
|
|
36800
|
+
图片文件或 Blob;File 输入返回 File,转换格式时同步扩展名和 MIME 类型
|
|
36801
36801
|
|
|
36802
36802
|
### options?
|
|
36803
36803
|
|
|
36804
|
-
|
|
36805
|
-
|
|
36806
|
-
#### maxHeight?
|
|
36804
|
+
[`ICompressorOptions`](../interfaces/ICompressorOptions.md) = `{}`
|
|
36807
36805
|
|
|
36808
|
-
|
|
36806
|
+
压缩参数
|
|
36809
36807
|
|
|
36810
|
-
|
|
36811
|
-
|
|
36812
|
-
#### maxWidth?
|
|
36813
|
-
|
|
36814
|
-
`number`
|
|
36815
|
-
|
|
36816
|
-
最大宽度,默认无限
|
|
36817
|
-
|
|
36818
|
-
#### quality?
|
|
36808
|
+
## Returns
|
|
36819
36809
|
|
|
36820
|
-
`
|
|
36810
|
+
`Promise`\<`false` \| `T`\>
|
|
36821
36811
|
|
|
36822
|
-
|
|
36812
|
+
压缩后的图片;参数无效、加载或编码失败、指定格式不受支持或无法满足大小上限时返回 false
|
|
36823
36813
|
|
|
36824
|
-
##
|
|
36814
|
+
## Example
|
|
36825
36815
|
|
|
36826
|
-
|
|
36816
|
+
```ts
|
|
36817
|
+
const image = await clickgo.tool.compressor(file, {
|
|
36818
|
+
'mimeType': 'image/jpeg',
|
|
36819
|
+
'maxWidth': 2000,
|
|
36820
|
+
'quality': [0.9, 0.6, 0.5],
|
|
36821
|
+
'maxSize': 2 * 1024 * 1024,
|
|
36822
|
+
});
|
|
36823
|
+
```
|
|
36827
36824
|
|
|
36828
36825
|
lib/tool/functions/decodeText.md
|
|
36829
36826
|
---
|
|
@@ -36912,7 +36909,7 @@ lib/tool/functions/escapeHTML.md
|
|
|
36912
36909
|
|
|
36913
36910
|
> **escapeHTML**(`html`): `string`
|
|
36914
36911
|
|
|
36915
|
-
Defined in: [lib/tool.ts:
|
|
36912
|
+
Defined in: [lib/tool.ts:293](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L293)
|
|
36916
36913
|
|
|
36917
36914
|
转义 HTML
|
|
36918
36915
|
|
|
@@ -36941,7 +36938,7 @@ lib/tool/functions/eventsAttrWrap.md
|
|
|
36941
36938
|
|
|
36942
36939
|
> **eventsAttrWrap**(`layout`): `string`
|
|
36943
36940
|
|
|
36944
|
-
Defined in: [lib/tool.ts:
|
|
36941
|
+
Defined in: [lib/tool.ts:203](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L203)
|
|
36945
36942
|
|
|
36946
36943
|
对 layout 的 events 事件进行包裹
|
|
36947
36944
|
|
|
@@ -36970,7 +36967,7 @@ lib/tool/functions/execCommand.md
|
|
|
36970
36967
|
|
|
36971
36968
|
> **execCommand**(`ac`): `void`
|
|
36972
36969
|
|
|
36973
|
-
Defined in: [lib/tool.ts:
|
|
36970
|
+
Defined in: [lib/tool.ts:513](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L513)
|
|
36974
36971
|
|
|
36975
36972
|
## Parameters
|
|
36976
36973
|
|
|
@@ -36995,7 +36992,7 @@ lib/tool/functions/fetch.md
|
|
|
36995
36992
|
|
|
36996
36993
|
> **fetch**(`url`, `init?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
36997
36994
|
|
|
36998
|
-
Defined in: [lib/tool.ts:
|
|
36995
|
+
Defined in: [lib/tool.ts:392](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L392)
|
|
36999
36996
|
|
|
37000
36997
|
发起 fetch 请求
|
|
37001
36998
|
|
|
@@ -37032,7 +37029,7 @@ lib/tool/functions/formatColor.md
|
|
|
37032
37029
|
|
|
37033
37030
|
> **formatColor**(`color`): `number`[]
|
|
37034
37031
|
|
|
37035
|
-
Defined in: [lib/tool.ts:
|
|
37032
|
+
Defined in: [lib/tool.ts:309](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L309)
|
|
37036
37033
|
|
|
37037
37034
|
将 rgb 或 hsl 等颜色转换为数字数组
|
|
37038
37035
|
|
|
@@ -37061,7 +37058,7 @@ lib/tool/functions/formatSecond.md
|
|
|
37061
37058
|
|
|
37062
37059
|
> **formatSecond**(`second`): `string`
|
|
37063
37060
|
|
|
37064
|
-
Defined in: [lib/tool.ts:
|
|
37061
|
+
Defined in: [lib/tool.ts:534](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L534)
|
|
37065
37062
|
|
|
37066
37063
|
将秒数格式化为 0:0:0 的字符串
|
|
37067
37064
|
|
|
@@ -37088,7 +37085,7 @@ lib/tool/functions/formatTime.md
|
|
|
37088
37085
|
|
|
37089
37086
|
> **formatTime**(`ts`, `tz?`): `object`
|
|
37090
37087
|
|
|
37091
|
-
Defined in: [lib/tool.ts:
|
|
37088
|
+
Defined in: [lib/tool.ts:543](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L543)
|
|
37092
37089
|
|
|
37093
37090
|
将日期对象或毫秒级时间戳转换为字符串
|
|
37094
37091
|
|
|
@@ -37135,7 +37132,7 @@ lib/tool/functions/getArray.md
|
|
|
37135
37132
|
|
|
37136
37133
|
> **getArray**(`param`): `any`[]
|
|
37137
37134
|
|
|
37138
|
-
Defined in: [lib/tool.ts:
|
|
37135
|
+
Defined in: [lib/tool.ts:285](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L285)
|
|
37139
37136
|
|
|
37140
37137
|
根据参数获取最终的数组型,可传入类似 [1,2,3] 或 1,2,3
|
|
37141
37138
|
|
|
@@ -37164,7 +37161,7 @@ lib/tool/functions/getBoolean.md
|
|
|
37164
37161
|
|
|
37165
37162
|
> **getBoolean**(`param`): `boolean`
|
|
37166
37163
|
|
|
37167
|
-
Defined in: [lib/tool.ts:
|
|
37164
|
+
Defined in: [lib/tool.ts:269](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L269)
|
|
37168
37165
|
|
|
37169
37166
|
根据参数获取最终的布尔值
|
|
37170
37167
|
|
|
@@ -37193,7 +37190,7 @@ lib/tool/functions/getClassPrototype.md
|
|
|
37193
37190
|
|
|
37194
37191
|
> **getClassPrototype**(`obj`, `over?`, `level?`): [`IClassPrototype`](../interfaces/IClassPrototype.md)
|
|
37195
37192
|
|
|
37196
|
-
Defined in: [lib/tool.ts:
|
|
37193
|
+
Defined in: [lib/tool.ts:78](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L78)
|
|
37197
37194
|
|
|
37198
37195
|
获取 class 的所有 method 和 get/set
|
|
37199
37196
|
|
|
@@ -37234,7 +37231,7 @@ lib/tool/functions/get.md
|
|
|
37234
37231
|
|
|
37235
37232
|
> **get**(`url`, `init?`, `opt?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
37236
37233
|
|
|
37237
|
-
Defined in: [lib/tool.ts:
|
|
37234
|
+
Defined in: [lib/tool.ts:403](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L403)
|
|
37238
37235
|
|
|
37239
37236
|
发起 GET 请求
|
|
37240
37237
|
|
|
@@ -37281,7 +37278,7 @@ lib/tool/functions/getMimeByPath.md
|
|
|
37281
37278
|
|
|
37282
37279
|
> **getMimeByPath**(`path`): `object`
|
|
37283
37280
|
|
|
37284
|
-
Defined in: [lib/tool.ts:
|
|
37281
|
+
Defined in: [lib/tool.ts:229](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L229)
|
|
37285
37282
|
|
|
37286
37283
|
根据后缀、文件名或路径获取 mime 类型(简单版,完整版请使用 @litert/mime.js)
|
|
37287
37284
|
|
|
@@ -37318,7 +37315,7 @@ lib/tool/functions/getNumber.md
|
|
|
37318
37315
|
|
|
37319
37316
|
> **getNumber**(`param`): `number`
|
|
37320
37317
|
|
|
37321
|
-
Defined in: [lib/tool.ts:
|
|
37318
|
+
Defined in: [lib/tool.ts:277](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L277)
|
|
37322
37319
|
|
|
37323
37320
|
根据参数获取最终的数字型
|
|
37324
37321
|
|
|
@@ -37347,7 +37344,7 @@ lib/tool/functions/getResponseJson.md
|
|
|
37347
37344
|
|
|
37348
37345
|
> **getResponseJson**(`url`, `init?`): `Promise`\<`any`\>
|
|
37349
37346
|
|
|
37350
|
-
Defined in: [lib/tool.ts:
|
|
37347
|
+
Defined in: [lib/tool.ts:429](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L429)
|
|
37351
37348
|
|
|
37352
37349
|
发起 GET 请求并解析 JSON 响应
|
|
37353
37350
|
|
|
@@ -37384,7 +37381,7 @@ lib/tool/functions/hex2rgb.md
|
|
|
37384
37381
|
|
|
37385
37382
|
> **hex2rgb**(`hex`): `object`
|
|
37386
37383
|
|
|
37387
|
-
Defined in: [lib/tool.ts:
|
|
37384
|
+
Defined in: [lib/tool.ts:327](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L327)
|
|
37388
37385
|
|
|
37389
37386
|
hex 转换为 rgba,#27ae60ff, 27ae60 #fff
|
|
37390
37387
|
|
|
@@ -37433,7 +37430,7 @@ lib/tool/functions/hsl2rgb.md
|
|
|
37433
37430
|
|
|
37434
37431
|
> **hsl2rgb**(`h`, `s?`, `l?`, `a?`, `decimal?`): `object`
|
|
37435
37432
|
|
|
37436
|
-
Defined in: [lib/tool.ts:
|
|
37433
|
+
Defined in: [lib/tool.ts:365](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L365)
|
|
37437
37434
|
|
|
37438
37435
|
hsl 字符串转 rgb 数组
|
|
37439
37436
|
|
|
@@ -37506,7 +37503,7 @@ lib/tool/functions/isEscapeChar.md
|
|
|
37506
37503
|
|
|
37507
37504
|
> **isEscapeChar**(`code`, `index`): `boolean`
|
|
37508
37505
|
|
|
37509
|
-
Defined in: [lib/tool.ts:
|
|
37506
|
+
Defined in: [lib/tool.ts:603](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L603)
|
|
37510
37507
|
|
|
37511
37508
|
判断字符是否是转义字符
|
|
37512
37509
|
|
|
@@ -37543,7 +37540,7 @@ lib/tool/functions/isEscaped.md
|
|
|
37543
37540
|
|
|
37544
37541
|
> **isEscaped**(`str`, `pos`): `boolean`
|
|
37545
37542
|
|
|
37546
|
-
Defined in: [lib/tool.ts:
|
|
37543
|
+
Defined in: [lib/tool.ts:583](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L583)
|
|
37547
37544
|
|
|
37548
37545
|
转义字符检查
|
|
37549
37546
|
检查指定位置的字符是否被转义
|
|
@@ -37581,7 +37578,7 @@ lib/tool/functions/isFalsy.md
|
|
|
37581
37578
|
|
|
37582
37579
|
> **isFalsy**(`val`): `val is TFalsy`
|
|
37583
37580
|
|
|
37584
|
-
Defined in: [lib/tool.ts:
|
|
37581
|
+
Defined in: [lib/tool.ts:728](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L728)
|
|
37585
37582
|
|
|
37586
37583
|
判断一个值是否是虚假的(为 null/undefined/空字符串/false/0)
|
|
37587
37584
|
|
|
@@ -37610,7 +37607,7 @@ lib/tool/functions/isJson.md
|
|
|
37610
37607
|
|
|
37611
37608
|
> **isJson**(`value`): `value is TJson`
|
|
37612
37609
|
|
|
37613
|
-
Defined in: [lib/tool.ts:
|
|
37610
|
+
Defined in: [lib/tool.ts:720](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L720)
|
|
37614
37611
|
|
|
37615
37612
|
判断 JS 值是否符合 JSON 数据约束;字符串按数据值接受,不解析其内容
|
|
37616
37613
|
|
|
@@ -37641,7 +37638,7 @@ lib/tool/functions/isMs.md
|
|
|
37641
37638
|
|
|
37642
37639
|
> **isMs**(`time`): `boolean`
|
|
37643
37640
|
|
|
37644
|
-
Defined in: [lib/tool.ts:
|
|
37641
|
+
Defined in: [lib/tool.ts:555](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L555)
|
|
37645
37642
|
|
|
37646
37643
|
是否是毫秒
|
|
37647
37644
|
|
|
@@ -37670,7 +37667,7 @@ lib/tool/functions/isTruthy.md
|
|
|
37670
37667
|
|
|
37671
37668
|
> **isTruthy**(`val`): `val is any`
|
|
37672
37669
|
|
|
37673
|
-
Defined in: [lib/tool.ts:
|
|
37670
|
+
Defined in: [lib/tool.ts:736](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L736)
|
|
37674
37671
|
|
|
37675
37672
|
判断一个值是否是真实的(不为 null/undefined/空字符串/false/0)
|
|
37676
37673
|
|
|
@@ -37699,7 +37696,7 @@ lib/tool/functions/layoutAddTagClassAndReTagName.md
|
|
|
37699
37696
|
|
|
37700
37697
|
> **layoutAddTagClassAndReTagName**(`layout`, `retagname`): `string`
|
|
37701
37698
|
|
|
37702
|
-
Defined in: [lib/tool.ts:
|
|
37699
|
+
Defined in: [lib/tool.ts:176](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L176)
|
|
37703
37700
|
|
|
37704
37701
|
给标签增加 tag-tagname 的 class,同时给标签增加 cg- 前导(仅字符串,不是操作真实 dom)
|
|
37705
37702
|
|
|
@@ -37734,7 +37731,7 @@ lib/tool/functions/layoutClassPrepend.md
|
|
|
37734
37731
|
|
|
37735
37732
|
> **layoutClassPrepend**(`layout`, `preps`): `string`
|
|
37736
37733
|
|
|
37737
|
-
Defined in: [lib/tool.ts:
|
|
37734
|
+
Defined in: [lib/tool.ts:195](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L195)
|
|
37738
37735
|
|
|
37739
37736
|
给 class 增加 scope 的随机前缀,给 id 新增前缀
|
|
37740
37737
|
|
|
@@ -37769,7 +37766,7 @@ lib/tool/functions/layoutInsertAttr.md
|
|
|
37769
37766
|
|
|
37770
37767
|
> **layoutInsertAttr**(`layout`, `insert`, `opt?`): `string`
|
|
37771
37768
|
|
|
37772
|
-
Defined in: [lib/tool.ts:
|
|
37769
|
+
Defined in: [lib/tool.ts:186](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L186)
|
|
37773
37770
|
|
|
37774
37771
|
给标签追加 attr,即使 attr 存在也会追加上一个新的(非真实 DOM 操作,仅仅是对字符串进行处理)
|
|
37775
37772
|
|
|
@@ -37816,7 +37813,7 @@ lib/tool/functions/loadAssets.md
|
|
|
37816
37813
|
|
|
37817
37814
|
> **loadAssets**(`urls`, `opt?`): `Promise`\<`boolean`\>
|
|
37818
37815
|
|
|
37819
|
-
Defined in: [lib/tool.ts:
|
|
37816
|
+
Defined in: [lib/tool.ts:701](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L701)
|
|
37820
37817
|
|
|
37821
37818
|
批量并行加载 JS 和 CSS;JS 按列表顺序执行,CSS 按列表顺序插入
|
|
37822
37819
|
|
|
@@ -37855,7 +37852,7 @@ lib/tool/functions/loadLink.md
|
|
|
37855
37852
|
|
|
37856
37853
|
> **loadLink**(`url`, `pos?`): `Promise`\<`boolean`\>
|
|
37857
37854
|
|
|
37858
|
-
Defined in: [lib/tool.ts:
|
|
37855
|
+
Defined in: [lib/tool.ts:680](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L680)
|
|
37859
37856
|
|
|
37860
37857
|
加载 css 文件
|
|
37861
37858
|
|
|
@@ -37890,7 +37887,7 @@ lib/tool/functions/loadLinks.md
|
|
|
37890
37887
|
|
|
37891
37888
|
> **loadLinks**(`urls`, `opt?`): `Promise`\<`void`\>
|
|
37892
37889
|
|
|
37893
|
-
Defined in: [lib/tool.ts:
|
|
37890
|
+
Defined in: [lib/tool.ts:689](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L689)
|
|
37894
37891
|
|
|
37895
37892
|
批量加载 css 文件
|
|
37896
37893
|
|
|
@@ -37927,7 +37924,7 @@ lib/tool/functions/loadScript.md
|
|
|
37927
37924
|
|
|
37928
37925
|
> **loadScript**(`url`, `ordered?`): `Promise`\<`boolean`\>
|
|
37929
37926
|
|
|
37930
|
-
Defined in: [lib/tool.ts:
|
|
37927
|
+
Defined in: [lib/tool.ts:658](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L658)
|
|
37931
37928
|
|
|
37932
37929
|
加载脚本
|
|
37933
37930
|
|
|
@@ -37964,7 +37961,7 @@ lib/tool/functions/loadScripts.md
|
|
|
37964
37961
|
|
|
37965
37962
|
> **loadScripts**(`urls`, `opt?`): `Promise`\<`void`\>
|
|
37966
37963
|
|
|
37967
|
-
Defined in: [lib/tool.ts:
|
|
37964
|
+
Defined in: [lib/tool.ts:667](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L667)
|
|
37968
37965
|
|
|
37969
37966
|
批量加载 js 文件
|
|
37970
37967
|
|
|
@@ -38007,7 +38004,7 @@ lib/tool/functions/loadStyle.md
|
|
|
38007
38004
|
|
|
38008
38005
|
> **loadStyle**(`style`): `void`
|
|
38009
38006
|
|
|
38010
|
-
Defined in: [lib/tool.ts:
|
|
38007
|
+
Defined in: [lib/tool.ts:711](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L711)
|
|
38011
38008
|
|
|
38012
38009
|
加载 css 字符串
|
|
38013
38010
|
|
|
@@ -38036,7 +38033,7 @@ lib/tool/functions/logicalOr.md
|
|
|
38036
38033
|
|
|
38037
38034
|
> **logicalOr**\<`T`, `T2`\>(`v1`, `v2`): \[`T`\] *extends* \[[`TFalsy`](../type-aliases/TFalsy.md)\] ? `T2` : `T`
|
|
38038
38035
|
|
|
38039
|
-
Defined in: [lib/tool.ts:
|
|
38036
|
+
Defined in: [lib/tool.ts:745](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L745)
|
|
38040
38037
|
|
|
38041
38038
|
类似 || 运算符的效果
|
|
38042
38039
|
|
|
@@ -38081,7 +38078,7 @@ lib/tool/functions/match.md
|
|
|
38081
38078
|
|
|
38082
38079
|
> **match**(`str`, `regs`): `boolean`
|
|
38083
38080
|
|
|
38084
|
-
Defined in: [lib/tool.ts:
|
|
38081
|
+
Defined in: [lib/tool.ts:153](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L153)
|
|
38085
38082
|
|
|
38086
38083
|
传入正则进行匹配 str 是否有一项满足
|
|
38087
38084
|
|
|
@@ -38116,7 +38113,7 @@ lib/tool/functions/nextFrame.md
|
|
|
38116
38113
|
|
|
38117
38114
|
> **nextFrame**(): `Promise`\<`void`\>
|
|
38118
38115
|
|
|
38119
|
-
Defined in: [lib/tool.ts:
|
|
38116
|
+
Defined in: [lib/tool.ts:128](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L128)
|
|
38120
38117
|
|
|
38121
38118
|
等待浏览器帧
|
|
38122
38119
|
|
|
@@ -38137,7 +38134,7 @@ lib/tool/functions/parseArrayString.md
|
|
|
38137
38134
|
|
|
38138
38135
|
> **parseArrayString**(`arrayStr`): `string`[]
|
|
38139
38136
|
|
|
38140
|
-
Defined in: [lib/tool.ts:
|
|
38137
|
+
Defined in: [lib/tool.ts:593](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L593)
|
|
38141
38138
|
|
|
38142
38139
|
数组字符串解析器
|
|
38143
38140
|
解析数组字符串为各元素组成的字符串数组
|
|
@@ -38169,7 +38166,7 @@ lib/tool/functions/parseUrl.md
|
|
|
38169
38166
|
|
|
38170
38167
|
> **parseUrl**(`url`): [`IUrl`](../interfaces/IUrl.md)
|
|
38171
38168
|
|
|
38172
|
-
Defined in: [lib/tool.ts:
|
|
38169
|
+
Defined in: [lib/tool.ts:478](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L478)
|
|
38173
38170
|
|
|
38174
38171
|
传输 url 并解析为 IUrl 对象
|
|
38175
38172
|
|
|
@@ -38198,7 +38195,7 @@ lib/tool/functions/post.md
|
|
|
38198
38195
|
|
|
38199
38196
|
> **post**(`url`, `data`, `init?`): `Promise`\<`string` \| `Blob` \| `null`\>
|
|
38200
38197
|
|
|
38201
|
-
Defined in: [lib/tool.ts:
|
|
38198
|
+
Defined in: [lib/tool.ts:417](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L417)
|
|
38202
38199
|
|
|
38203
38200
|
发起 POST 请求(除 FormData 外都会转换为 JSON 提交)
|
|
38204
38201
|
|
|
@@ -38241,7 +38238,7 @@ lib/tool/functions/postResponseEventStream.md
|
|
|
38241
38238
|
|
|
38242
38239
|
> **postResponseEventStream**(`url`, `data`, `opts?`): `AbortController`
|
|
38243
38240
|
|
|
38244
|
-
Defined in: [lib/tool.ts:
|
|
38241
|
+
Defined in: [lib/tool.ts:440](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L440)
|
|
38245
38242
|
|
|
38246
38243
|
发起 JSON 请求并获得文本 SSE 响应
|
|
38247
38244
|
|
|
@@ -38316,7 +38313,7 @@ lib/tool/functions/postResponseJson.md
|
|
|
38316
38313
|
|
|
38317
38314
|
> **postResponseJson**(`url`, `data`, `init?`): `Promise`\<`any`\>
|
|
38318
38315
|
|
|
38319
|
-
Defined in: [lib/tool.ts:
|
|
38316
|
+
Defined in: [lib/tool.ts:468](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L468)
|
|
38320
38317
|
|
|
38321
38318
|
发起 POST 请求并解析 JSON 响应
|
|
38322
38319
|
|
|
@@ -38359,7 +38356,7 @@ lib/tool/functions/purify.md
|
|
|
38359
38356
|
|
|
38360
38357
|
> **purify**(`text`): `string`
|
|
38361
38358
|
|
|
38362
|
-
Defined in: [lib/tool.ts:
|
|
38359
|
+
Defined in: [lib/tool.ts:144](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L144)
|
|
38363
38360
|
|
|
38364
38361
|
去除 html 的空白符、换行以及注释
|
|
38365
38362
|
|
|
@@ -38388,7 +38385,7 @@ lib/tool/functions/queryParse.md
|
|
|
38388
38385
|
|
|
38389
38386
|
> **queryParse**(`query`): `Record`\<`string`, `string` \| `string`[]\>
|
|
38390
38387
|
|
|
38391
|
-
Defined in: [lib/tool.ts:
|
|
38388
|
+
Defined in: [lib/tool.ts:572](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L572)
|
|
38392
38389
|
|
|
38393
38390
|
将 query string 转换为对象
|
|
38394
38391
|
|
|
@@ -38417,7 +38414,7 @@ lib/tool/functions/queryStringify.md
|
|
|
38417
38414
|
|
|
38418
38415
|
> **queryStringify**(`query`, `encode?`): `string`
|
|
38419
38416
|
|
|
38420
|
-
Defined in: [lib/tool.ts:
|
|
38417
|
+
Defined in: [lib/tool.ts:564](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L564)
|
|
38421
38418
|
|
|
38422
38419
|
将对象转换为 query string
|
|
38423
38420
|
|
|
@@ -38452,7 +38449,7 @@ lib/tool/functions/rand.md
|
|
|
38452
38449
|
|
|
38453
38450
|
> **rand**(`min`, `max`, `prec?`): `number`
|
|
38454
38451
|
|
|
38455
|
-
Defined in: [lib/tool.ts:
|
|
38452
|
+
Defined in: [lib/tool.ts:239](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L239)
|
|
38456
38453
|
|
|
38457
38454
|
生成范围内的随机数
|
|
38458
38455
|
|
|
@@ -38493,7 +38490,7 @@ lib/tool/functions/random.md
|
|
|
38493
38490
|
|
|
38494
38491
|
> **random**(`length?`, `source?`, `block?`): `string`
|
|
38495
38492
|
|
|
38496
|
-
Defined in: [lib/tool.ts:
|
|
38493
|
+
Defined in: [lib/tool.ts:261](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L261)
|
|
38497
38494
|
|
|
38498
38495
|
生成随机字符串
|
|
38499
38496
|
|
|
@@ -38536,7 +38533,7 @@ lib/tool/functions/request.md
|
|
|
38536
38533
|
|
|
38537
38534
|
> **request**(`url`, `opt`): `Promise`\<`any`\>
|
|
38538
38535
|
|
|
38539
|
-
Defined in: [lib/tool.ts:
|
|
38536
|
+
Defined in: [lib/tool.ts:382](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L382)
|
|
38540
38537
|
|
|
38541
38538
|
发起一个网络请求,若是返回值是 JSON 则自动解析,否则直接返回字符串
|
|
38542
38539
|
|
|
@@ -38571,7 +38568,7 @@ lib/tool/functions/rgb2hex.md
|
|
|
38571
38568
|
|
|
38572
38569
|
> **rgb2hex**(`r`, `g?`, `b?`, `a?`): `string`
|
|
38573
38570
|
|
|
38574
|
-
Defined in: [lib/tool.ts:
|
|
38571
|
+
Defined in: [lib/tool.ts:319](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L319)
|
|
38575
38572
|
|
|
38576
38573
|
将 r, g, b 转换为 hex 字符串,不含 #
|
|
38577
38574
|
|
|
@@ -38616,7 +38613,7 @@ lib/tool/functions/rgb2hsl.md
|
|
|
38616
38613
|
|
|
38617
38614
|
> **rgb2hsl**(`r`, `g?`, `b?`, `a?`, `decimal?`): `object`
|
|
38618
38615
|
|
|
38619
|
-
Defined in: [lib/tool.ts:
|
|
38616
|
+
Defined in: [lib/tool.ts:345](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L345)
|
|
38620
38617
|
|
|
38621
38618
|
rgb 字符串转 hsl 数组
|
|
38622
38619
|
|
|
@@ -38720,7 +38717,7 @@ lib/tool/functions/sizeFormat.md
|
|
|
38720
38717
|
|
|
38721
38718
|
> **sizeFormat**(`size`, `spliter?`): `string`
|
|
38722
38719
|
|
|
38723
|
-
Defined in: [lib/tool.ts:
|
|
38720
|
+
Defined in: [lib/tool.ts:95](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L95)
|
|
38724
38721
|
|
|
38725
38722
|
将文件大小格式化为带单位的字符串
|
|
38726
38723
|
|
|
@@ -38755,7 +38752,7 @@ lib/tool/functions/sleepFrame.md
|
|
|
38755
38752
|
|
|
38756
38753
|
> **sleepFrame**(`count`): `Promise`\<`void`\>
|
|
38757
38754
|
|
|
38758
|
-
Defined in: [lib/tool.ts:
|
|
38755
|
+
Defined in: [lib/tool.ts:136](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L136)
|
|
38759
38756
|
|
|
38760
38757
|
等待浏览器帧
|
|
38761
38758
|
|
|
@@ -38784,7 +38781,7 @@ lib/tool/functions/sleep.md
|
|
|
38784
38781
|
|
|
38785
38782
|
> **sleep**(`ms?`): `Promise`\<`boolean`\>
|
|
38786
38783
|
|
|
38787
|
-
Defined in: [lib/tool.ts:
|
|
38784
|
+
Defined in: [lib/tool.ts:121](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L121)
|
|
38788
38785
|
|
|
38789
38786
|
等待毫秒
|
|
38790
38787
|
|
|
@@ -38813,7 +38810,7 @@ lib/tool/functions/stateMachine.md
|
|
|
38813
38810
|
|
|
38814
38811
|
> **stateMachine**(`code`, `start`, `process`): `void`
|
|
38815
38812
|
|
|
38816
|
-
Defined in: [lib/tool.ts:
|
|
38813
|
+
Defined in: [lib/tool.ts:628](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L628)
|
|
38817
38814
|
|
|
38818
38815
|
源码分段状态机,单词按 ASCII 字母、数字、_ 和 $ 识别
|
|
38819
38816
|
|
|
@@ -38856,7 +38853,7 @@ lib/tool/functions/stylePrepend.md
|
|
|
38856
38853
|
|
|
38857
38854
|
> **stylePrepend**(`style`, `prep?`): `object`
|
|
38858
38855
|
|
|
38859
|
-
Defined in: [lib/tool.ts:
|
|
38856
|
+
Defined in: [lib/tool.ts:221](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L221)
|
|
38860
38857
|
|
|
38861
38858
|
给 class 前部增加唯一标识符
|
|
38862
38859
|
|
|
@@ -38899,7 +38896,7 @@ lib/tool/functions/styleUrl2DataUrl.md
|
|
|
38899
38896
|
|
|
38900
38897
|
> **styleUrl2DataUrl**(`path`, `style`, `files`): `Promise`\<`string`\>
|
|
38901
38898
|
|
|
38902
|
-
Defined in: [lib/tool.ts:
|
|
38899
|
+
Defined in: [lib/tool.ts:163](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L163)
|
|
38903
38900
|
|
|
38904
38901
|
将 style 中的 url 转换成 base64 data url
|
|
38905
38902
|
|
|
@@ -38940,7 +38937,7 @@ lib/tool/functions/teleportGlue.md
|
|
|
38940
38937
|
|
|
38941
38938
|
> **teleportGlue**(`layout`, `formId`): `string`
|
|
38942
38939
|
|
|
38943
|
-
Defined in: [lib/tool.ts:
|
|
38940
|
+
Defined in: [lib/tool.ts:212](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L212)
|
|
38944
38941
|
|
|
38945
38942
|
对 layout 的 teleport 做转义处理为 vue 识别的内容
|
|
38946
38943
|
|
|
@@ -38975,7 +38972,7 @@ lib/tool/functions/unescapeHTML.md
|
|
|
38975
38972
|
|
|
38976
38973
|
> **unescapeHTML**(`html`): `string`
|
|
38977
38974
|
|
|
38978
|
-
Defined in: [lib/tool.ts:
|
|
38975
|
+
Defined in: [lib/tool.ts:301](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L301)
|
|
38979
38976
|
|
|
38980
38977
|
还原转义后的 HTML
|
|
38981
38978
|
|
|
@@ -39004,7 +39001,7 @@ lib/tool/functions/urlAtom.md
|
|
|
39004
39001
|
|
|
39005
39002
|
> **urlAtom**(`url`): `string`
|
|
39006
39003
|
|
|
39007
|
-
Defined in: [lib/tool.ts:
|
|
39004
|
+
Defined in: [lib/tool.ts:492](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L492)
|
|
39008
39005
|
|
|
39009
39006
|
处理 URL 中的 .. / . 等
|
|
39010
39007
|
|
|
@@ -39031,7 +39028,7 @@ lib/tool/functions/urlResolve.md
|
|
|
39031
39028
|
|
|
39032
39029
|
> **urlResolve**(`from`, `to`): `string`
|
|
39033
39030
|
|
|
39034
|
-
Defined in: [lib/tool.ts:
|
|
39031
|
+
Defined in: [lib/tool.ts:487](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L487)
|
|
39035
39032
|
|
|
39036
39033
|
将相对路径根据基准路径进行转换
|
|
39037
39034
|
|
|
@@ -39066,7 +39063,7 @@ lib/tool/functions/weightFormat.md
|
|
|
39066
39063
|
|
|
39067
39064
|
> **weightFormat**(`weight`, `spliter?`): `string`
|
|
39068
39065
|
|
|
39069
|
-
Defined in: [lib/tool.ts:
|
|
39066
|
+
Defined in: [lib/tool.ts:104](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L104)
|
|
39070
39067
|
|
|
39071
39068
|
将毫克重量格式化为带单位的字符串
|
|
39072
39069
|
|
|
@@ -39106,6 +39103,7 @@ lib/tool/index.md
|
|
|
39106
39103
|
## Interfaces
|
|
39107
39104
|
|
|
39108
39105
|
- [IClassPrototype](interfaces/IClassPrototype.md)
|
|
39106
|
+
- [ICompressorOptions](interfaces/ICompressorOptions.md)
|
|
39109
39107
|
- [IDecodedText](interfaces/IDecodedText.md)
|
|
39110
39108
|
- [IRequestOptions](interfaces/IRequestOptions.md)
|
|
39111
39109
|
- [ITextEncoding](interfaces/ITextEncoding.md)
|
|
@@ -39211,7 +39209,7 @@ lib/tool/interfaces/IClassPrototype.md
|
|
|
39211
39209
|
|
|
39212
39210
|
# Interface: IClassPrototype
|
|
39213
39211
|
|
|
39214
|
-
Defined in: [lib/tool.ts:
|
|
39212
|
+
Defined in: [lib/tool.ts:62](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L62)
|
|
39215
39213
|
|
|
39216
39214
|
类原型信息
|
|
39217
39215
|
|
|
@@ -39221,7 +39219,7 @@ Defined in: [lib/tool.ts:47](https://github.com/maiyun/clickgo/blob/master/dist/
|
|
|
39221
39219
|
|
|
39222
39220
|
> **access**: `Record`\<`string`, \{ `get`: `any`; `set`: `any`; \}\>
|
|
39223
39221
|
|
|
39224
|
-
Defined in: [lib/tool.ts:
|
|
39222
|
+
Defined in: [lib/tool.ts:66](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L66)
|
|
39225
39223
|
|
|
39226
39224
|
访问器列表,key 为属性名,value 为包含 get 和 set 的对象,例如:{'prop1': { 'get': function() { ... }, 'set': function(v) { ... } }}
|
|
39227
39225
|
|
|
@@ -39231,10 +39229,75 @@ Defined in: [lib/tool.ts:51](https://github.com/maiyun/clickgo/blob/master/dist/
|
|
|
39231
39229
|
|
|
39232
39230
|
> **method**: `Record`\<`string`, `any`\>
|
|
39233
39231
|
|
|
39234
|
-
Defined in: [lib/tool.ts:
|
|
39232
|
+
Defined in: [lib/tool.ts:64](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L64)
|
|
39235
39233
|
|
|
39236
39234
|
方法列表,key 为方法名,value 为函数体,例如:{'method1': function() { ... }}
|
|
39237
39235
|
|
|
39236
|
+
lib/tool/interfaces/ICompressorOptions.md
|
|
39237
|
+
---
|
|
39238
|
+
|
|
39239
|
+
[**Documents for clickgo**](../../../index.md)
|
|
39240
|
+
|
|
39241
|
+
***
|
|
39242
|
+
|
|
39243
|
+
[Documents for clickgo](../../../index.md) / [lib/tool](../index.md) / ICompressorOptions
|
|
39244
|
+
|
|
39245
|
+
# Interface: ICompressorOptions
|
|
39246
|
+
|
|
39247
|
+
Defined in: [lib/tool.ts:31](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L31)
|
|
39248
|
+
|
|
39249
|
+
图片压缩参数,未指定大小上限时仅使用第一档质量
|
|
39250
|
+
|
|
39251
|
+
## Properties
|
|
39252
|
+
|
|
39253
|
+
### maxHeight?
|
|
39254
|
+
|
|
39255
|
+
> `optional` **maxHeight?**: `number`
|
|
39256
|
+
|
|
39257
|
+
Defined in: [lib/tool.ts:35](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L35)
|
|
39258
|
+
|
|
39259
|
+
最高高度,默认无限
|
|
39260
|
+
|
|
39261
|
+
***
|
|
39262
|
+
|
|
39263
|
+
### maxSize?
|
|
39264
|
+
|
|
39265
|
+
> `optional` **maxSize?**: `number`
|
|
39266
|
+
|
|
39267
|
+
Defined in: [lib/tool.ts:41](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L41)
|
|
39268
|
+
|
|
39269
|
+
文件大小上限,单位字节,须为正有限数;各档都超限时返回 false,不再额外缩小尺寸或降质
|
|
39270
|
+
|
|
39271
|
+
***
|
|
39272
|
+
|
|
39273
|
+
### maxWidth?
|
|
39274
|
+
|
|
39275
|
+
> `optional` **maxWidth?**: `number`
|
|
39276
|
+
|
|
39277
|
+
Defined in: [lib/tool.ts:33](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L33)
|
|
39278
|
+
|
|
39279
|
+
最大宽度,默认无限
|
|
39280
|
+
|
|
39281
|
+
***
|
|
39282
|
+
|
|
39283
|
+
### mimeType?
|
|
39284
|
+
|
|
39285
|
+
> `optional` **mimeType?**: `"auto"` \| `"image/jpeg"` \| `"image/png"` \| `"image/webp"`
|
|
39286
|
+
|
|
39287
|
+
Defined in: [lib/tool.ts:39](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L39)
|
|
39288
|
+
|
|
39289
|
+
输出格式,默认 auto 保留压缩器的自动选择;JPEG 的透明区域填白
|
|
39290
|
+
|
|
39291
|
+
***
|
|
39292
|
+
|
|
39293
|
+
### quality?
|
|
39294
|
+
|
|
39295
|
+
> `optional` **quality?**: `number` \| readonly `number`[]
|
|
39296
|
+
|
|
39297
|
+
Defined in: [lib/tool.ts:37](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L37)
|
|
39298
|
+
|
|
39299
|
+
编码质量,取值 0 至 1,默认 0.8;数组按顺序尝试,仅 JPEG/WebP 支持调节质量
|
|
39300
|
+
|
|
39238
39301
|
lib/tool/interfaces/IDecodedText.md
|
|
39239
39302
|
---
|
|
39240
39303
|
|
|
@@ -39297,7 +39360,7 @@ lib/tool/interfaces/IRequestOptions.md
|
|
|
39297
39360
|
|
|
39298
39361
|
# Interface: IRequestOptions
|
|
39299
39362
|
|
|
39300
|
-
Defined in: [lib/tool.ts:
|
|
39363
|
+
Defined in: [lib/tool.ts:865](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L865)
|
|
39301
39364
|
|
|
39302
39365
|
请求选项
|
|
39303
39366
|
|
|
@@ -39307,7 +39370,7 @@ Defined in: [lib/tool.ts:850](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39307
39370
|
|
|
39308
39371
|
> `optional` **body?**: `FormData`
|
|
39309
39372
|
|
|
39310
|
-
Defined in: [lib/tool.ts:
|
|
39373
|
+
Defined in: [lib/tool.ts:868](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L868)
|
|
39311
39374
|
|
|
39312
39375
|
***
|
|
39313
39376
|
|
|
@@ -39315,7 +39378,7 @@ Defined in: [lib/tool.ts:853](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39315
39378
|
|
|
39316
39379
|
> `optional` **credentials?**: `boolean`
|
|
39317
39380
|
|
|
39318
|
-
Defined in: [lib/tool.ts:
|
|
39381
|
+
Defined in: [lib/tool.ts:866](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L866)
|
|
39319
39382
|
|
|
39320
39383
|
***
|
|
39321
39384
|
|
|
@@ -39323,7 +39386,7 @@ Defined in: [lib/tool.ts:851](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39323
39386
|
|
|
39324
39387
|
> `optional` **end?**: () => `void` \| `Promise`\<`void`\>
|
|
39325
39388
|
|
|
39326
|
-
Defined in: [lib/tool.ts:
|
|
39389
|
+
Defined in: [lib/tool.ts:877](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L877)
|
|
39327
39390
|
|
|
39328
39391
|
#### Returns
|
|
39329
39392
|
|
|
@@ -39335,7 +39398,7 @@ Defined in: [lib/tool.ts:862](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39335
39398
|
|
|
39336
39399
|
> `optional` **error?**: () => `void` \| `Promise`\<`void`\>
|
|
39337
39400
|
|
|
39338
|
-
Defined in: [lib/tool.ts:
|
|
39401
|
+
Defined in: [lib/tool.ts:880](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L880)
|
|
39339
39402
|
|
|
39340
39403
|
#### Returns
|
|
39341
39404
|
|
|
@@ -39347,7 +39410,7 @@ Defined in: [lib/tool.ts:865](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39347
39410
|
|
|
39348
39411
|
> `optional` **headers?**: `HeadersInit`
|
|
39349
39412
|
|
|
39350
|
-
Defined in: [lib/tool.ts:
|
|
39413
|
+
Defined in: [lib/tool.ts:871](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L871)
|
|
39351
39414
|
|
|
39352
39415
|
***
|
|
39353
39416
|
|
|
@@ -39355,7 +39418,7 @@ Defined in: [lib/tool.ts:856](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39355
39418
|
|
|
39356
39419
|
> `optional` **load?**: (`res`) => `void` \| `Promise`\<`void`\>
|
|
39357
39420
|
|
|
39358
|
-
Defined in: [lib/tool.ts:
|
|
39421
|
+
Defined in: [lib/tool.ts:879](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L879)
|
|
39359
39422
|
|
|
39360
39423
|
#### Parameters
|
|
39361
39424
|
|
|
@@ -39373,7 +39436,7 @@ Defined in: [lib/tool.ts:864](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39373
39436
|
|
|
39374
39437
|
> `optional` **method?**: `"GET"` \| `"POST"`
|
|
39375
39438
|
|
|
39376
|
-
Defined in: [lib/tool.ts:
|
|
39439
|
+
Defined in: [lib/tool.ts:867](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L867)
|
|
39377
39440
|
|
|
39378
39441
|
***
|
|
39379
39442
|
|
|
@@ -39381,7 +39444,7 @@ Defined in: [lib/tool.ts:852](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39381
39444
|
|
|
39382
39445
|
> `optional` **progress?**: (`loaded`, `total`) => `void` \| `Promise`\<`void`\>
|
|
39383
39446
|
|
|
39384
|
-
Defined in: [lib/tool.ts:
|
|
39447
|
+
Defined in: [lib/tool.ts:878](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L878)
|
|
39385
39448
|
|
|
39386
39449
|
#### Parameters
|
|
39387
39450
|
|
|
@@ -39403,7 +39466,7 @@ Defined in: [lib/tool.ts:863](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39403
39466
|
|
|
39404
39467
|
> `optional` **responseType?**: `XMLHttpRequestResponseType`
|
|
39405
39468
|
|
|
39406
|
-
Defined in: [lib/tool.ts:
|
|
39469
|
+
Defined in: [lib/tool.ts:870](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L870)
|
|
39407
39470
|
|
|
39408
39471
|
***
|
|
39409
39472
|
|
|
@@ -39411,7 +39474,7 @@ Defined in: [lib/tool.ts:855](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39411
39474
|
|
|
39412
39475
|
> `optional` **start?**: (`total`) => `void` \| `Promise`\<`void`\>
|
|
39413
39476
|
|
|
39414
|
-
Defined in: [lib/tool.ts:
|
|
39477
|
+
Defined in: [lib/tool.ts:876](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L876)
|
|
39415
39478
|
|
|
39416
39479
|
#### Parameters
|
|
39417
39480
|
|
|
@@ -39429,7 +39492,7 @@ Defined in: [lib/tool.ts:861](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39429
39492
|
|
|
39430
39493
|
> `optional` **timeout?**: `number`
|
|
39431
39494
|
|
|
39432
|
-
Defined in: [lib/tool.ts:
|
|
39495
|
+
Defined in: [lib/tool.ts:869](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L869)
|
|
39433
39496
|
|
|
39434
39497
|
***
|
|
39435
39498
|
|
|
@@ -39437,7 +39500,7 @@ Defined in: [lib/tool.ts:854](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39437
39500
|
|
|
39438
39501
|
> `optional` **uploadEnd?**: () => `void` \| `Promise`\<`void`\>
|
|
39439
39502
|
|
|
39440
|
-
Defined in: [lib/tool.ts:
|
|
39503
|
+
Defined in: [lib/tool.ts:875](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L875)
|
|
39441
39504
|
|
|
39442
39505
|
#### Returns
|
|
39443
39506
|
|
|
@@ -39449,7 +39512,7 @@ Defined in: [lib/tool.ts:860](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39449
39512
|
|
|
39450
39513
|
> `optional` **uploadProgress?**: (`loaded`, `total`) => `void` \| `Promise`\<`void`\>
|
|
39451
39514
|
|
|
39452
|
-
Defined in: [lib/tool.ts:
|
|
39515
|
+
Defined in: [lib/tool.ts:874](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L874)
|
|
39453
39516
|
|
|
39454
39517
|
#### Parameters
|
|
39455
39518
|
|
|
@@ -39471,7 +39534,7 @@ Defined in: [lib/tool.ts:859](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39471
39534
|
|
|
39472
39535
|
> `optional` **uploadStart?**: (`total`) => `void` \| `Promise`\<`void`\>
|
|
39473
39536
|
|
|
39474
|
-
Defined in: [lib/tool.ts:
|
|
39537
|
+
Defined in: [lib/tool.ts:873](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L873)
|
|
39475
39538
|
|
|
39476
39539
|
#### Parameters
|
|
39477
39540
|
|
|
@@ -39529,7 +39592,7 @@ lib/tool/interfaces/IUrl.md
|
|
|
39529
39592
|
|
|
39530
39593
|
# Interface: IUrl
|
|
39531
39594
|
|
|
39532
|
-
Defined in: [lib/tool.ts:
|
|
39595
|
+
Defined in: [lib/tool.ts:850](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L850)
|
|
39533
39596
|
|
|
39534
39597
|
网址对象
|
|
39535
39598
|
|
|
@@ -39539,7 +39602,7 @@ Defined in: [lib/tool.ts:835](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39539
39602
|
|
|
39540
39603
|
> **auth**: `string` \| `null`
|
|
39541
39604
|
|
|
39542
|
-
Defined in: [lib/tool.ts:
|
|
39605
|
+
Defined in: [lib/tool.ts:851](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L851)
|
|
39543
39606
|
|
|
39544
39607
|
***
|
|
39545
39608
|
|
|
@@ -39547,7 +39610,7 @@ Defined in: [lib/tool.ts:836](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39547
39610
|
|
|
39548
39611
|
> **hash**: `string` \| `null`
|
|
39549
39612
|
|
|
39550
|
-
Defined in: [lib/tool.ts:
|
|
39613
|
+
Defined in: [lib/tool.ts:852](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L852)
|
|
39551
39614
|
|
|
39552
39615
|
***
|
|
39553
39616
|
|
|
@@ -39555,7 +39618,7 @@ Defined in: [lib/tool.ts:837](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39555
39618
|
|
|
39556
39619
|
> **host**: `string` \| `null`
|
|
39557
39620
|
|
|
39558
|
-
Defined in: [lib/tool.ts:
|
|
39621
|
+
Defined in: [lib/tool.ts:853](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L853)
|
|
39559
39622
|
|
|
39560
39623
|
***
|
|
39561
39624
|
|
|
@@ -39563,7 +39626,7 @@ Defined in: [lib/tool.ts:838](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39563
39626
|
|
|
39564
39627
|
> **hostname**: `string` \| `null`
|
|
39565
39628
|
|
|
39566
|
-
Defined in: [lib/tool.ts:
|
|
39629
|
+
Defined in: [lib/tool.ts:854](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L854)
|
|
39567
39630
|
|
|
39568
39631
|
***
|
|
39569
39632
|
|
|
@@ -39571,7 +39634,7 @@ Defined in: [lib/tool.ts:839](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39571
39634
|
|
|
39572
39635
|
> **pass**: `string` \| `null`
|
|
39573
39636
|
|
|
39574
|
-
Defined in: [lib/tool.ts:
|
|
39637
|
+
Defined in: [lib/tool.ts:855](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L855)
|
|
39575
39638
|
|
|
39576
39639
|
***
|
|
39577
39640
|
|
|
@@ -39579,7 +39642,7 @@ Defined in: [lib/tool.ts:840](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39579
39642
|
|
|
39580
39643
|
> **path**: `string` \| `null`
|
|
39581
39644
|
|
|
39582
|
-
Defined in: [lib/tool.ts:
|
|
39645
|
+
Defined in: [lib/tool.ts:856](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L856)
|
|
39583
39646
|
|
|
39584
39647
|
***
|
|
39585
39648
|
|
|
@@ -39587,7 +39650,7 @@ Defined in: [lib/tool.ts:841](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39587
39650
|
|
|
39588
39651
|
> **pathname**: `string`
|
|
39589
39652
|
|
|
39590
|
-
Defined in: [lib/tool.ts:
|
|
39653
|
+
Defined in: [lib/tool.ts:857](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L857)
|
|
39591
39654
|
|
|
39592
39655
|
***
|
|
39593
39656
|
|
|
@@ -39595,7 +39658,7 @@ Defined in: [lib/tool.ts:842](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39595
39658
|
|
|
39596
39659
|
> **port**: `string` \| `null`
|
|
39597
39660
|
|
|
39598
|
-
Defined in: [lib/tool.ts:
|
|
39661
|
+
Defined in: [lib/tool.ts:859](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L859)
|
|
39599
39662
|
|
|
39600
39663
|
***
|
|
39601
39664
|
|
|
@@ -39603,7 +39666,7 @@ Defined in: [lib/tool.ts:844](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39603
39666
|
|
|
39604
39667
|
> **protocol**: `string` \| `null`
|
|
39605
39668
|
|
|
39606
|
-
Defined in: [lib/tool.ts:
|
|
39669
|
+
Defined in: [lib/tool.ts:858](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L858)
|
|
39607
39670
|
|
|
39608
39671
|
***
|
|
39609
39672
|
|
|
@@ -39611,7 +39674,7 @@ Defined in: [lib/tool.ts:843](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39611
39674
|
|
|
39612
39675
|
> **query**: `string` \| `null`
|
|
39613
39676
|
|
|
39614
|
-
Defined in: [lib/tool.ts:
|
|
39677
|
+
Defined in: [lib/tool.ts:860](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L860)
|
|
39615
39678
|
|
|
39616
39679
|
***
|
|
39617
39680
|
|
|
@@ -39619,7 +39682,7 @@ Defined in: [lib/tool.ts:845](https://github.com/maiyun/clickgo/blob/master/dist
|
|
|
39619
39682
|
|
|
39620
39683
|
> **user**: `string` \| `null`
|
|
39621
39684
|
|
|
39622
|
-
Defined in: [lib/tool.ts:
|
|
39685
|
+
Defined in: [lib/tool.ts:861](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L861)
|
|
39623
39686
|
|
|
39624
39687
|
lib/tool/type-aliases/TFalsy.md
|
|
39625
39688
|
---
|
|
@@ -39634,7 +39697,7 @@ lib/tool/type-aliases/TFalsy.md
|
|
|
39634
39697
|
|
|
39635
39698
|
> **TFalsy** = `false` \| `""` \| `0` \| `null` \| `undefined` \| *typeof* `NaN`
|
|
39636
39699
|
|
|
39637
|
-
Defined in: [lib/tool.ts:
|
|
39700
|
+
Defined in: [lib/tool.ts:887](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L887)
|
|
39638
39701
|
|
|
39639
39702
|
虚假值类型
|
|
39640
39703
|
|
|
@@ -39651,7 +39714,7 @@ lib/tool/type-aliases/TJson.md
|
|
|
39651
39714
|
|
|
39652
39715
|
> **TJson** = `null` \| `boolean` \| `number` \| `string` \| `TJson`[] \| \{\[`key`: `string`\]: `TJson`; \}
|
|
39653
39716
|
|
|
39654
|
-
Defined in: [lib/tool.ts:
|
|
39717
|
+
Defined in: [lib/tool.ts:884](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L884)
|
|
39655
39718
|
|
|
39656
39719
|
JSON 数据值,不包含 undefined、BigInt、函数和非有限数
|
|
39657
39720
|
|
|
@@ -39685,7 +39748,7 @@ lib/tool/variables/lang.md
|
|
|
39685
39748
|
|
|
39686
39749
|
> `const` **lang**: `object`
|
|
39687
39750
|
|
|
39688
|
-
Defined in: [lib/tool.ts:
|
|
39751
|
+
Defined in: [lib/tool.ts:750](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L750)
|
|
39689
39752
|
|
|
39690
39753
|
语言相关
|
|
39691
39754
|
|
|
@@ -39782,7 +39845,7 @@ lib/tool/variables/RANDOM_L.md
|
|
|
39782
39845
|
|
|
39783
39846
|
> `const` **RANDOM\_L**: `"abcdefghijklmnopqrstuvwxyz"` = `'abcdefghijklmnopqrstuvwxyz'`
|
|
39784
39847
|
|
|
39785
|
-
Defined in: [lib/tool.ts:
|
|
39848
|
+
Defined in: [lib/tool.ts:245](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L245)
|
|
39786
39849
|
|
|
39787
39850
|
lib/tool/variables/RANDOM_LN.md
|
|
39788
39851
|
---
|
|
@@ -39797,7 +39860,7 @@ lib/tool/variables/RANDOM_LN.md
|
|
|
39797
39860
|
|
|
39798
39861
|
> `const` **RANDOM\_LN**: `string`
|
|
39799
39862
|
|
|
39800
|
-
Defined in: [lib/tool.ts:
|
|
39863
|
+
Defined in: [lib/tool.ts:248](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L248)
|
|
39801
39864
|
|
|
39802
39865
|
lib/tool/variables/RANDOM_LU.md
|
|
39803
39866
|
---
|
|
@@ -39812,7 +39875,7 @@ lib/tool/variables/RANDOM_LU.md
|
|
|
39812
39875
|
|
|
39813
39876
|
> `const` **RANDOM\_LU**: `string`
|
|
39814
39877
|
|
|
39815
|
-
Defined in: [lib/tool.ts:
|
|
39878
|
+
Defined in: [lib/tool.ts:249](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L249)
|
|
39816
39879
|
|
|
39817
39880
|
lib/tool/variables/RANDOM_LUN.md
|
|
39818
39881
|
---
|
|
@@ -39827,7 +39890,7 @@ lib/tool/variables/RANDOM_LUN.md
|
|
|
39827
39890
|
|
|
39828
39891
|
> `const` **RANDOM\_LUN**: `string`
|
|
39829
39892
|
|
|
39830
|
-
Defined in: [lib/tool.ts:
|
|
39893
|
+
Defined in: [lib/tool.ts:250](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L250)
|
|
39831
39894
|
|
|
39832
39895
|
lib/tool/variables/RANDOM_LUNS.md
|
|
39833
39896
|
---
|
|
@@ -39842,7 +39905,7 @@ lib/tool/variables/RANDOM_LUNS.md
|
|
|
39842
39905
|
|
|
39843
39906
|
> `const` **RANDOM\_LUNS**: `string`
|
|
39844
39907
|
|
|
39845
|
-
Defined in: [lib/tool.ts:
|
|
39908
|
+
Defined in: [lib/tool.ts:252](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L252)
|
|
39846
39909
|
|
|
39847
39910
|
lib/tool/variables/RANDOM_N.md
|
|
39848
39911
|
---
|
|
@@ -39857,7 +39920,7 @@ lib/tool/variables/RANDOM_N.md
|
|
|
39857
39920
|
|
|
39858
39921
|
> `const` **RANDOM\_N**: `"0123456789"` = `'0123456789'`
|
|
39859
39922
|
|
|
39860
|
-
Defined in: [lib/tool.ts:
|
|
39923
|
+
Defined in: [lib/tool.ts:243](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L243)
|
|
39861
39924
|
|
|
39862
39925
|
lib/tool/variables/RANDOM_U.md
|
|
39863
39926
|
---
|
|
@@ -39872,7 +39935,7 @@ lib/tool/variables/RANDOM_U.md
|
|
|
39872
39935
|
|
|
39873
39936
|
> `const` **RANDOM\_U**: `"ABCDEFGHIJKLMNOPQRSTUVWXYZ"` = `'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
|
|
39874
39937
|
|
|
39875
|
-
Defined in: [lib/tool.ts:
|
|
39938
|
+
Defined in: [lib/tool.ts:244](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L244)
|
|
39876
39939
|
|
|
39877
39940
|
lib/tool/variables/RANDOM_UN.md
|
|
39878
39941
|
---
|
|
@@ -39887,7 +39950,7 @@ lib/tool/variables/RANDOM_UN.md
|
|
|
39887
39950
|
|
|
39888
39951
|
> `const` **RANDOM\_UN**: `string`
|
|
39889
39952
|
|
|
39890
|
-
Defined in: [lib/tool.ts:
|
|
39953
|
+
Defined in: [lib/tool.ts:247](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L247)
|
|
39891
39954
|
|
|
39892
39955
|
lib/tool/variables/RANDOM_V.md
|
|
39893
39956
|
---
|
|
@@ -39902,7 +39965,7 @@ lib/tool/variables/RANDOM_V.md
|
|
|
39902
39965
|
|
|
39903
39966
|
> `const` **RANDOM\_V**: `"ACEFGHJKLMNPRSTWXY34567"` = `'ACEFGHJKLMNPRSTWXY34567'`
|
|
39904
39967
|
|
|
39905
|
-
Defined in: [lib/tool.ts:
|
|
39968
|
+
Defined in: [lib/tool.ts:251](https://github.com/maiyun/clickgo/blob/master/dist/lib/tool.ts#L251)
|
|
39906
39969
|
|
|
39907
39970
|
lib/zip/classes/Zip.md
|
|
39908
39971
|
---
|