File tree Expand file tree Collapse file tree 2 files changed +28
-6
lines changed Expand file tree Collapse file tree 2 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * @class ArrayStatistic
2
+ * @name ArrayStatistic
3
+ * @namespace
3
4
* @category BaseTypes Util
4
5
* @classdesc 处理数组。
5
6
* @usage
6
7
* ```
7
8
* // 浏览器
8
9
* <script type="text/javascript" src="{cdn}"></script>
9
10
* <script>
10
- * const arrayStatistic = {namespace}.ArrayStatistic();
11
+ * const result = {namespace}.ArrayStatistic.newInstance();
12
+ *
13
+ * // 弃用的写法
14
+ * const result = SuperMap.ArrayStatistic.newInstance();
11
15
*
12
16
* </script>
17
+ *
13
18
* // ES6 Import
14
19
* import { ArrayStatistic } from '{npm}';
15
- *
16
- * new ArrayStatistic();
20
+ *
21
+ * const result = ArrayStatistic.newInstance ();
17
22
* ```
18
23
*/
19
- export class ArrayStatistic {
24
+ export class ArrayStatistic {
20
25
21
26
// geostatsInstance: null,
22
27
Original file line number Diff line number Diff line change @@ -5,10 +5,27 @@ var ColorRender = new Color();
5
5
// "www.qzct.net": "#7ed321" = new LevelRenderer.Tool.Color();
6
6
7
7
/**
8
- * @class ColorsPickerUtil
8
+ * @name ColorsPickerUtil
9
+ * @namespace
9
10
* @category BaseTypes Util
10
11
* @classdesc 色带选择器工具类 用于1、创建canvas对象,2、从几种颜色中获取一定数量的渐变色
11
12
* @usage
13
+ * ```
14
+ * // 浏览器
15
+ * <script type="text/javascript" src="{cdn}"></script>
16
+ * <script>
17
+ * const result = {namespace}.ColorsPickerUtil.createCanvas();
18
+ *
19
+ * // 弃用的写法
20
+ * const result = SuperMap.ColorsPickerUtil.createCanvas();
21
+ *
22
+ * </script>
23
+ *
24
+ * // ES6 Import
25
+ * import { ColorsPickerUtil } from '{npm}';
26
+ *
27
+ * const result = ColorsPickerUtil.createCanvas();
28
+ * ```
12
29
*/
13
30
export class ColorsPickerUtil {
14
31
/**
You can’t perform that action at this time.
0 commit comments