Skip to content

Commit a0d5575

Browse files
committed
【API】API增加version标识 review by zhurch
1 parent a72ad99 commit a0d5575

File tree

17 files changed

+27
-10
lines changed

17 files changed

+27
-10
lines changed

src/common/widgets/chart/ChartView.js

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import echarts from "echarts";
66
import { ChartViewModel } from "./ChartViewModel";
77

88
/**
9-
* @class SuperMap.Widgets.ChartView
9+
* @class SuperMap.Widgets.Chart
1010
* @classdesc 图表微件
11+
* @version 9.1.1
1112
* @param {string} domID - 图表dom元素ID。
1213
* @param {Object} options - 可选参数。
1314
* @param {string} options.type - 图表类型。
@@ -32,7 +33,7 @@ export class ChartView {
3233
}
3334

3435
/**
35-
* @function SuperMap.Widgets.ChartView.prototype.onAdd
36+
* @function SuperMap.Widgets.Chart.prototype.onAdd
3637
* @description 创建图表之后成功回调
3738
* @param {function} addChart - 回调函数
3839
*/
@@ -41,7 +42,7 @@ export class ChartView {
4142
}
4243

4344
/**
44-
* @function SuperMap.Widgets.ChartView.prototype._fillDataToView
45+
* @function SuperMap.Widgets.Chart.prototype._fillDataToView
4546
* @description 填充数据到 view。
4647
* @private
4748
*/
@@ -51,23 +52,23 @@ export class ChartView {
5152
}
5253

5354
/**
54-
* @function SuperMap.Widgets.ChartView.prototype.getStyle
55+
* @function SuperMap.Widgets.Chart.prototype.getStyle
5556
* @description 获取图表样式。
5657
*/
5758
getStyle() {
5859
return this.viewModel.getStyle()
5960
}
6061

6162
/**
62-
* @function SuperMap.Widgets.ChartView.prototype.getFeatures
63+
* @function SuperMap.Widgets.Chart.prototype.getFeatures
6364
* @description 获取地图服务,数据服务请求返回的数据。
6465
*/
6566
getFeatures() {
6667
return this.viewModel.getFeatures();
6768
}
6869

6970
/**
70-
* @function SuperMap.Widgets.ChartView.prototype.setStyle
71+
* @function SuperMap.Widgets.Chart.prototype.setStyle
7172
* @description 设置图表样式。
7273
* @param {Object} style - 图表样式 参考Echarts-options样式设置
7374
*/
@@ -77,7 +78,7 @@ export class ChartView {
7778
}
7879

7980
/**
80-
* @function SuperMap.Widgets.ChartView.prototype.changeType
81+
* @function SuperMap.Widgets.Chart.prototype.changeType
8182
* @description 改变图表类型
8283
* @param {string} type - 图表类型
8384
*/
@@ -88,7 +89,7 @@ export class ChartView {
8889
}
8990

9091
/**
91-
* @function SuperMap.Widgets.ChartView.prototype.updateData
92+
* @function SuperMap.Widgets.Chart.prototype.updateData
9293
* @description 更新图表数据
9394
* @param {string} url - 数据源地址
9495
* @param {Object} queryInfo - 查询条件
@@ -105,7 +106,7 @@ export class ChartView {
105106
}
106107

107108
/**
108-
* @function SuperMap.Widgets.ChartView.prototype._createChart
109+
* @function SuperMap.Widgets.Chart.prototype._createChart
109110
* @description 创建图表
110111
* @private
111112
* @param {Object} data - 图表数据
@@ -124,7 +125,7 @@ export class ChartView {
124125
}
125126

126127
/**
127-
* @function SuperMap.Widgets.ChartView.prototype._updateChart
128+
* @function SuperMap.Widgets.Chart.prototype._updateChart
128129
* @description 更新图表
129130
* @private
130131
* @param {Object} options - 图表参数

src/common/widgets/chart/ChartViewModel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { ChartModel } from "./ChartModel";
77
/**
88
* @class SuperMap.Widgets.ChartViewModel
99
* @classdesc 图表微件功能类
10+
* @version 9.1.1
1011
* @param {Object} options - 可选参数。
1112
* @param {string} options.type - 图表类型。
1213
* @param {Object} options.datasets - 数据来源。

src/leaflet/widgets/WidgetsViewBase.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import '../core/Base';
77
/**
88
* @class WidgetsViewBase
99
* @classdesc lealfet 微件基类
10+
* @version 9.1.1
1011
* @param {Object} options - 参数。
1112
* @param {string} [options.position='topright'] - 微件在底图中显示的位置,包括: 'topleft', 'topright', 'bottomleft' 和 'bottomright',默认为'topright'。
1213
* @param {function} options.style - 设置图层点线面默认样式,点 样式返回 maker 或者 circleMaker;线和面返回 L.path 样式。

src/leaflet/widgets/clientcomputation/ClientComputationLayer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import '../../core/Base';
88
/**
99
* @class L.supermap.widgets.clientComputationLayer
1010
* @classdesc 客户端计算图层对象。
11+
* @version 9.1.1
1112
* @param {Object} layerObject - 图层对象。
1213
* @param {string} layerObject.layerName - 图层名。
1314
* @param {L.GeoJSON} layerObject.layer - 图层。

src/leaflet/widgets/clientcomputation/ClientComputationView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {CommonContainer, DropDownBox, Select, MessageBox, Lang} from '@supermap/
99
/**
1010
* @class L.supermap.widgets.clientComputation
1111
* @classdesc 客户端计算微件,用于进行叠加图层的客户端计算。
12+
* @version 9.1.1
1213
* @param {string} workerUrl - worker 地址,原始位置为 dist/leaflet/workers/TurfWorker.js。
1314
* @param {Object} options - 可选参数。
1415
* @param {function} options.style - 设置图层点线面默认样式,点 样式返回 maker 或者 circleMaker;线和面返回 L.path 样式。

src/leaflet/widgets/clientcomputation/ClientComputationViewModel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {AttributesPopContainer} from '@supermap/iclient-common';
1111
/**
1212
* @class L.supermap.widgets.clientComputationViewModel
1313
* @classdesc 客户端计算微件功能类。
14+
* @version 9.1.1
1415
* @category Widgets ClientComputation
1516
* @param {string} workerUrl - worker 地址,原始位置为 dist/leaflet/workers/TurfWorker.js。
1617
* @fires L.supermap.widgets.clientComputationViewModel#analysisfailed

src/leaflet/widgets/dataflow/DataFlowView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {DataFlowViewModel} from './DataFlowViewModel';
99
/**
1010
* @class L.supermap.widgets.dataFlow
1111
* @classdesc 数据流微件。
12+
* @version 9.1.1
1213
* @category Widgets DataFlow
1314
* @param {Object} options - 可选参数
1415
* @param {string} [options.position="topright"] - 控件所在位置,包括 'topleft', 'topright', 'bottomleft' or 'bottomright'

src/leaflet/widgets/dataflow/DataFlowViewModel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {CommontypesConversion} from '../../core/CommontypesConversion';
99
/**
1010
* @class L.supermap.widgets.dataFlowViewModel
1111
* @classdesc 数据流微件功能类。
12+
* @version 9.1.1
1213
* @category Widgets DataFlow
1314
* @param {L.Map} map - 当前微件所在的底图
1415
* @param {Object} [dataFlowLayerOptions] - 数据流服务返回数据数据展示样式,默认采用 ViewModel 默认样式。

src/leaflet/widgets/dataservicequery/DataServiceQueryView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
/**
2020
* @class L.supermap.widgets.dataServiceQuery
2121
* @classdesc 数据服务查询微件。
22+
* @version 9.1.1
2223
* @param {string} dataServiceUrl - 数据服务地址。
2324
* @param {(Array.<string>|string)} dataSetNames - 配置查询方式和查询的数据集数组。格式:" 数据源名:数据集名 ",例:"World: Countries"。
2425
* @param {Object.<Array>} options - 可选参数。

src/leaflet/widgets/dataservicequery/DataServiceQueryViewModel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import { GetFeaturesByIDsParameters, GetFeaturesBySQLParameters, GetFeaturesByBo
99
/**
1010
* @class L.supermap.widgets.dataServiceQueryViewModel
1111
* @classdesc 数据服务查询微件功能类。
12+
* @version 9.1.1
1213
* @category Widgets DataServiceQuery
1314
* @param {string} dataserviceUrl - 数据服务地址。
1415
* @fires L.supermap.widgets.dataServiceQueryViewModel#getfeaturesfaild

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