Skip to content

Commit

Permalink
【fix】doc
Browse files Browse the repository at this point in the history
  • Loading branch information
songyumeng committed Apr 29, 2024
1 parent 999c920 commit 5f3045c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
3 changes: 2 additions & 1 deletion build/jsdocs/mapboxgl/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@
"src/common/components/templates/Select",
"src/common/security/KeyServiceParameter",
"src/common/components/templates/TemplateBase",
"src/mapboxgl/core/Util"
"src/mapboxgl/core/Util",
"src/mapboxgl/overlay/L7/l7-render"
]
},
"plugins": ["plugins/markdown","../plugins/usage", "../plugins/moduleCategories"],
Expand Down
3 changes: 2 additions & 1 deletion build/jsdocs/maplibregl/docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
"src/common/components/templates/Select",
"src/common/security/KeyServiceParameter",
"src/common/components/templates/TemplateBase",
"src/mapboxgl/core/Util"
"src/mapboxgl/core/Util",
"src/mapboxgl/overlay/L7/l7-render"
]
},
"plugins": ["plugins/markdown", "../plugins/usage", "../plugins/moduleCategories"],
Expand Down
14 changes: 8 additions & 6 deletions src/common/iServer/VideoFeature.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,20 @@ export class VideoFeature {
this.id;
/**
* @member {string} VideoFeature.prototype.name
* @description
* @description 视频名称
*/
this.name = null;

/**
* @member {(L.Bounds|L.LatLngBounds|ol.extent|mapboxgl.LngLatBounds|GeoJSONObject|SuperMap.Bounds)} VideoFeature.prototype.geometry
* @description
* @description 视频参数对应的视频视角空间范围,只支持矩形
*
*/
this.geometry = null;

/**
* @member {string} VideoFeature.prototype.address
* @description
* @description 视频流地址
*/
this.address = null;

Expand All @@ -58,7 +58,7 @@ export class VideoFeature {

/**
* @function VideoFeature.prototype.destroy
* @description
* @description 销毁此对象。
*/
destroy() {
if (this.geometry && this.geometry.destroy) {
Expand All @@ -73,7 +73,8 @@ export class VideoFeature {
}
/**
* @function VideoFeature.prototype.toGeoJSONFeature
* @description
* @description 转换为GeoJSON Feature Object
* @return {Object}
*/
toGeoJSONFeature(geometryFunction) {
return {
Expand All @@ -87,7 +88,8 @@ export class VideoFeature {
}
/**
* @function VideoFeature.prototype.toServerFeature
* @description
* @description 转换为iServer Feature Object
* @return {Object}
*/
toServerFeature({ geometryFunction }) {
const feature = {
Expand Down
11 changes: 4 additions & 7 deletions src/common/wasm/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ export function geojsonCoords2UGDoubleArray(coords) {
return pDoubleArray
}

/**
*
* @param {*} pDoubleArray
* @returns
*/
export function getJSArrayFromUGDoubleArray(pDoubleArray) {
// get length of doublearray
var length = window.Module._UGCWasm_Helper_GetDoubleArrayLength(pDoubleArray);
Expand All @@ -63,7 +58,8 @@ export function getJSArrayFromUGDoubleArray(pDoubleArray) {
}

/**
* Convert UGC geometry pointer to GeoJSON object.
* @private
* @description Convert UGC geometry pointer to GeoJSON object.
* @name ugGeometry2Geojson
* @kind function
* @param {number} pUGGeo - The UGC geometry pointer.
Expand Down Expand Up @@ -174,7 +170,8 @@ export function ugGeometry2Geojson(pUGGeo) {
}

/**
* 转换 GeoJSON 对象到 GEOS geometry pointer。
* @private
* @description 转换 GeoJSON 对象到 GEOS geometry pointer。
* @name geojsonToGeosGeom
* @param {GeoJSON} geojson - The GeoJSON object.
* @returns {number} A pointer to GEOS geometry
Expand Down

0 comments on commit 5f3045c

Please sign in to comment.