@@ -21,9 +21,9 @@ const {
2121/**
2222 * @class mapboxgl.supermap.ThreeLayer
2323 * @category Visualization Three
24- * @classdesc Three图层 。
24+ * @classdesc Three 图层 。
2525 * @param {string } id - 图层 ID。
26- * @param {string } [renderer="gl"] - 图层渲染方式(canvas或WebGL )。取值:"gl","canvas"。
26+ * @param {string } [renderer="gl"] - 图层渲染方式( canvas 或 WebGL )。取值:"gl","canvas"。
2727 * @param {object } options - 初始化参数。
2828 * @param {object } options.threeOptions - threejs 渲染器初始化参数对象。参数内容详见:
2929 * [WebGLRenderer]{@link https://threejs.org/docs/index.html#api/renderers/WebGLRenderer}
@@ -49,8 +49,8 @@ const {
4949 * }
5050 *
5151 * 叠加模型可以通过两种方式:</br>
52- * 1.调用 threeLayer.toThreeMesh 直接将地理坐标转换成threejs 3D 模型(适用于挤压模型,如城市建筑),然后添加到3D场景
53- * 2.使用 ThreeJS 的接口创建好 Mesh,然后调用 threeLayer.setPosition 设置地理位置,然后添加到3D场景
52+ * 1.调用 threeLayer.toThreeMesh 直接将地理坐标转换成 threejs 3D 模型(适用于挤压模型,如城市建筑),然后添加到 3D 场景
53+ * 2.使用 ThreeJS 的接口创建好 Mesh,然后调用 threeLayer.setPosition 设置地理位置,然后添加到 3D 场景
5454 *
5555 */
5656export class ThreeLayer extends mapboxgl . Evented {
@@ -66,7 +66,7 @@ export class ThreeLayer extends mapboxgl.Evented {
6666
6767 /**
6868 * @function mapboxgl.supermap.ThreeLayer.prototype.toThreeShape
69- * @description 创建threejs shape 对象。
69+ * @description 创建 threejs shape 对象。
7070 * @param {Array } coordinates - 坐标点数组。
7171 * @returns THREE.Shape{@link https://threejs.org/docs/index.html#api/extras/core/Shape} threejs shape 对象。
7272 */
@@ -86,7 +86,7 @@ export class ThreeLayer extends mapboxgl.Evented {
8686
8787 /**
8888 * @function mapboxgl.supermap.ThreeLayer.prototype.toThreeMesh
89- * @description 创建threejs Mesh 对象。将地理坐标转换成 threejs 3D 模型(适用于挤压模型,如城市建筑)。
89+ * @description 创建 threejs Mesh 对象。将地理坐标转换成 threejs 3D 模型(适用于挤压模型,如城市建筑)。
9090 * @param {Array.<Object> } coordinates - 坐标点数组。
9191 * @param {number } amount - 高度。
9292 * @param {THREE.Material } material - Threejs 材质对象。参考:[THREE.Material]{@link https://threejs.org/docs/index.html#api/extras/core/Material}
@@ -117,7 +117,7 @@ export class ThreeLayer extends mapboxgl.Evented {
117117
118118 /**
119119 * @function mapboxgl.supermap.ThreeLayer.prototype.addObject
120- * @description 设置threejs 3D对象的坐标 (经纬度)。
120+ * @description 设置threejs 3D 对象的坐标 (经纬度)。
121121 * @param {THREE.Object3D } object3D - threejs 3D 对象。参考:[THREE.Object3D]{@link https://threejs.org/docs/index.html#api/core/Object3D}及子类对象。
122122 * @param {(Array.<number>|Object) } coordinate - 添加的 three 对象坐标(经纬度)。
123123 * @returns {this } this
@@ -149,7 +149,7 @@ export class ThreeLayer extends mapboxgl.Evented {
149149
150150 /**
151151 * @function mapboxgl.supermap.ThreeLayer.prototype.getThreeRenderer
152- * @description 获取threejs renderer。
152+ * @description 获取 threejs renderer。
153153 * @returns {THREE.WebGLRenderer|THREE.CanvasRenderer } threejs renderer。参考:
154154 * [THREE.WebGLRenderer]{@link https://threejs.org/docs/index.html#api/renderers/WebGLRenderer}/
155155 * [THREE.CanvasRenderer]{@link https://threejs.org/docs/index.html#examples/renderers/CanvasRenderer }
@@ -197,7 +197,7 @@ export class ThreeLayer extends mapboxgl.Evented {
197197
198198 /**
199199 * @function mapboxgl.supermap.ThreeLayer.prototype.clearAll
200- * @description 清除所有threejs 对象。
200+ * @description 清除所有 threejs 对象。
201201 * @param {boolean } clearCamera - 是否同时清除相机。
202202 * @returns {this } this 对象。
203203 */
@@ -220,7 +220,7 @@ export class ThreeLayer extends mapboxgl.Evented {
220220 * @description 设置 threejs 3D 对象的坐标(经纬度)。
221221 * @param {THREE.Object3D } object3D - threejs 3D 对象,参考:[THREE.Object3D]{@link https://threejs.org/docs/index.html#api/core/Object3D}及子类对象。
222222 * @param {(Array.<number>|Object) } coordinate - 添加的 three 对象坐标(经纬度)。
223- * @returns {this } this对象 。
223+ * @returns {this } this 对象 。
224224 */
225225 setPosition ( object3D , coordinate ) {
226226 if ( ! object3D || ! coordinate ) {
@@ -235,7 +235,7 @@ export class ThreeLayer extends mapboxgl.Evented {
235235
236236 /**
237237 * @function mapboxgl.supermap.ThreeLayer.prototype.lngLatToPosition
238- * @description 经纬度转threejs 3D失量对象 。
238+ * @description 经纬度转threejs 3D 失量对象 。
239239 * @param {(Array.<number>|Object) } lngLat - 经纬度坐标。
240240 * @returns {THREE.Vector3 } threejs 3D 失量对象。参考:[THREE.Vector3]{@link https://threejs.org/docs/index.html#api/math/Vector3}
241241 */
@@ -318,7 +318,7 @@ export class ThreeLayer extends mapboxgl.Evented {
318318 * @function mapboxgl.supermap.ThreeLayer.prototype.addTo
319319 * @description 添加图层到地图。
320320 * @param {Object } map - 地图对象。
321- * @returns {this } this对象 。
321+ * @returns {this } this 对象 。
322322 */
323323 addTo ( map ) {
324324 var me = this ;
@@ -339,7 +339,7 @@ export class ThreeLayer extends mapboxgl.Evented {
339339 /**
340340 * @function mapboxgl.supermap.ThreeLayer.prototype.getCanvasContainer
341341 * @description 获取 three 图层容器。
342- * @returns {HTMLElement } three图层的容器 。
342+ * @returns {HTMLElement } three 图层的容器 。
343343 */
344344 getCanvasContainer ( ) {
345345 return this . renderer . getCanvasContainer ( ) ;
@@ -412,7 +412,7 @@ export class ThreeLayer extends mapboxgl.Evented {
412412
413413 _update ( ) {
414414 /**
415- * render事件 ,地图渲染时(地图状态改变时)触发。
415+ * render 事件 ,地图渲染时(地图状态改变时)触发。
416416 * @event mapboxgl.supermap.ThreeLayer#render
417417 * @type {Object }
418418 * @property {string } type - render
0 commit comments