Skip to content

Commit e32e24f

Browse files
committed
移除common下工具类Util多余的方法
1 parent 2087dbd commit e32e24f

11 files changed

+64
-7656
lines changed

dist/iclient-classic.js

Lines changed: 12 additions & 1516 deletions
Large diffs are not rendered by default.

dist/iclient-classic.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-leaflet.js

Lines changed: 12 additions & 1520 deletions
Large diffs are not rendered by default.

dist/iclient9-leaflet.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-mapboxgl.js

Lines changed: 12 additions & 1516 deletions
Large diffs are not rendered by default.

dist/iclient9-mapboxgl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/iclient9-openlayers.js

Lines changed: 12 additions & 1520 deletions
Large diffs are not rendered by default.

dist/iclient9-openlayers.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/commontypes/BaseTypes.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,13 +198,15 @@ export var StringExt = SuperMap.String = {
198198

199199
/**
200200
* @description Used to find tokens in a string.
201+
* @default /\$\{([\w.]+?)\}/g
201202
* @example
202203
* Examples: ${a}, ${a.b.c}, ${a-b}, ${5}
203204
*/
204205
tokenRegEx: /\$\{([\w.]+?)\}/g,
205206

206207
/**
207208
* @description Used to test strings as numbers.
209+
* @default /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/
208210
*/
209211
numberRegEx: /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,
210212

@@ -226,7 +228,7 @@ export var StringExt = SuperMap.String = {
226228
/**
227229
* @description 把一个看似数值型的字符串转化为一个数值.
228230
*
229-
* @returns {Number|String} 如果能转换为数值则返回数值,否则返回字符串本身.
231+
* @returns {number|string} 如果能转换为数值则返回数值,否则返回字符串本身.
230232
*/
231233
numericIf: function (value) {
232234
return SuperMap.String.isNumeric(value) ? parseFloat(value) : value;
@@ -244,18 +246,22 @@ export var NumberExt = SuperMap.Number = {
244246

245247
/**
246248
* @description 格式化数字时默认的小数点分隔符.
249+
* @constant
250+
* @default "."
247251
*/
248252
decimalSeparator: ".",
249253

250254
/**
251255
* @description 格式化数字时默认的千位分隔符.
256+
* @constant
257+
* @default ","
252258
*/
253259
thousandsSeparator: ",",
254260

255261
/**
256262
* @description 限制浮点数的有效数字位数.
257263
* @param num - {number}
258-
* @param sig - {Integer}
264+
* @param sig - {integer}
259265
* @returns {number} 将数字四舍五入到指定数量的有效位数.
260266
*/
261267
limitSigDigs: function (num, sig) {
@@ -269,7 +275,7 @@ export var NumberExt = SuperMap.Number = {
269275
/**
270276
* @description 数字格式化输出.
271277
* @param num - {number}
272-
* @param dec - {Integer} 数字的小数部分四舍五入到指定的位数.默认为 0. 设置为null值时小数部分不变.
278+
* @param dec - {integer} 数字的小数部分四舍五入到指定的位数.默认为 0. 设置为null值时小数部分不变.
273279
* @param tsep - {string} 千位分隔符. 默认为",".
274280
* @param dsep - {string} 小数点分隔符. 默认为".".
275281
* @returns {string} 数字格式化后的字符串.
@@ -317,8 +323,8 @@ if (!Number.prototype.limitSigDigs) {
317323
/**
318324
* APIMethod: Number.limitSigDigs
319325
* 限制浮点数的有效数字位数.
320-
* @param sig - {Integer}
321-
* @returns {Integer} 将数字四舍五入到指定数量的有效位数.
326+
* @param sig - {integer}
327+
* @returns {integer} 将数字四舍五入到指定数量的有效位数.
322328
* 如果传入值为 null、0、或者是负数, 返回值 0
323329
*/
324330
Number.prototype.limitSigDigs = function (sig) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy