Skip to content

Commit 6a34c97

Browse files
[fix]UT,是指图谱文档修改 review by qiw
1 parent 8d92d89 commit 6a34c97

File tree

7 files changed

+36
-4
lines changed

7 files changed

+36
-4
lines changed

build/jsdocs/template/publish.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,9 @@ var whiteLists = {
404404
'ElasticSearch'
405405
],
406406
leaflet: [
407+
'KnowledgeGraphService',
408+
'GraphMap',
409+
'FGBLayer',
407410
'AddressMatchService',
408411
'ChartService',
409412
'CommonServiceBase',
@@ -491,6 +494,9 @@ var whiteLists = {
491494
'WKTFormat'
492495
],
493496
mapboxgl: [
497+
'KnowledgeGraphService',
498+
'GraphMap',
499+
'FGBLayer',
494500
'AddressMatchService',
495501
'ChartService',
496502
'CommonServiceBase',
@@ -563,9 +569,14 @@ var whiteLists = {
563569
'WKTFormat'
564570
],
565571
maplibregl:[
572+
'KnowledgeGraphService',
573+
'GraphMap',
574+
'FGBLayer',
566575
'L7Layer',
567576
],
568577
openlayers: [
578+
'KnowledgeGraphService',
579+
'GraphMap',
569580
'AddressMatchService',
570581
'ChartService',
571582
'CommonServiceBase',

build/jsdocs/template/typeLinkExt.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ var typeLinks = {
8585

8686
//maplibregl
8787
"maplibregl.Map": mlbglapi + '#map',
88+
"maplibregl.Evented": mlbglapi + '#Evented',
8889

8990
//mapv
9091
"Mapv.DataSet": mapv + 'data/DataSet.md',

src/common/iServer/GeoprocessingService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export class GeoprocessingService extends CommonServiceBase {
160160
let eventListeners = {
161161
scope: this,
162162
processCompleted: function(result) {
163-
if (eventId === result.eventId && callback) {
163+
if (eventId === result.result.eventId && callback) {
164164
delete result.result.eventId;
165165
callback(result);
166166
}

src/leaflet/overlay/GraphMap.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import { KnowledgeGraph } from '@supermap/iclient-common/overlay/KnowledgeGraph'
1919
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
2020
* @param {Object} [options.headers] - 请求头。
2121
* @fires GraphMap#loaded
22+
* @extends {L.Evented}
2223
* @usage
2324
*/
2425
export class GraphMap extends L.Evented {
@@ -59,6 +60,10 @@ export class GraphMap extends L.Evented {
5960
this.graph = new KnowledgeGraph(options && options.config);
6061
this.graph.setData(result);
6162
this.graph.on('afterrender', () => {
63+
/**
64+
* @event GraphMap#loaded
65+
* @description 渲染完成时触发。
66+
*/
6267
this.fire(this.EVENT_TYPES[0]);
6368
});
6469
}

src/mapboxgl/overlay/GraphMap.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import mapboxgl from 'mapbox-gl';
1717
* @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
1818
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
1919
* @param {Object} [options.headers] - 请求头。
20-
* @fires GraphMap#loaded 渲染完成时触发。
20+
* @fires GraphMap#loaded
21+
* @extends {mapboxgl.Evented}
2122
* @usage
2223
*/
2324
export class GraphMap extends mapboxgl.Evented {
@@ -55,6 +56,10 @@ export class GraphMap extends mapboxgl.Evented {
5556
this.graph = new KnowledgeGraph(options && options.config);
5657
this.graph.setData(result);
5758
this.graph.on('afterrender', () => {
59+
/**
60+
* @event GraphMap#loaded
61+
* @description 渲染完成时触发。
62+
*/
5863
this.fire(this.EVENT_TYPES[0]);
5964
});
6065
}

src/maplibregl/overlay/GraphMap.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ import maplibregl from 'maplibre-gl';
1717
* @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
1818
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
1919
* @param {Object} [options.headers] - 请求头。
20-
* @fires GraphMap#loaded 徐冉冉完成时触发。
20+
* @fires GraphMap#loaded
21+
* @extends {maplibregl.Evented}
2122
* @usage
2223
*/
2324
export class GraphMap extends maplibregl.Evented {
@@ -55,6 +56,10 @@ export class GraphMap extends maplibregl.Evented {
5556
this.graph = new KnowledgeGraph(options && options.config);
5657
this.graph.setData(result);
5758
this.graph.on('afterrender', () => {
59+
/**
60+
* @event GraphMap#loaded
61+
* @description 渲染完成时触发。
62+
*/
5863
this.fire(this.EVENT_TYPES[0]);
5964
});
6065
}

src/openlayers/overlay/GraphMap.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ import Observable from 'ol/Observable';
1616
* @param {boolean} [options.withCredentials=false] - 请求是否携带 cookie。
1717
* @param {boolean} [options.crossOrigin] - 是否允许跨域请求。
1818
* @param {Object} [options.headers] - 请求头。
19-
* @fires GraphMap#loaded 徐冉冉完成时触发。
19+
* @fires GraphMap#loaded
20+
* @extends {ol.Observable}
2021
* @usage
2122
*/
2223
export class GraphMap extends Observable {
@@ -55,6 +56,10 @@ export class GraphMap extends Observable {
5556
const result = KnowledgeGraph.dataFromGraphMap(res.data, res.graphMap.styles.style);
5657
this.graph = new KnowledgeGraph(options && options.config);
5758
this.graph.on('afterrender', () => {
59+
/**
60+
* @event GraphMap#loaded
61+
* @description 渲染完成时触发。
62+
*/
5863
this.dispatchEvent(this.EVENT_TYPES[0]);
5964
});
6065
this.graph.setData(result);

0 commit comments

Comments
 (0)