123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718 |
- import { mathUtil } from "./Util/MathUtil";
- import { dataService } from "./Service/DataService.js";
- import { stateService } from "./Service/StateService.js";
- import { roadService } from "./Service/RoadService.js";
- import Constant from "./Constant.js";
- import VectorType from "./enum/VectorType.js";
- import SelectState from "./enum/SelectState.js";
- export default class ListenLayer {
- constructor() {
- this.roadInfo = {
- roadId: null,
- type: null,
- state: null, // 未选中null
- };
- this.pointInfo = {
- pointId: null,
- type: null,
- state: null,
- };
- this.tagInfo = {
- tagId: null,
- state: null,
- };
- this.modifyPoint = null;
- }
- //开始监听,exceptPointId表示不考虑的点,exceptRoadIds表示不考虑的墙
- start(position, exceptPointId, exceptRoadIds, exceptCurveRoadId) {
- let nearest = this.getNearForVectors(
- position,
- exceptPointId,
- exceptRoadIds,
- exceptCurveRoadId
- );
- if (
- nearest.modifyPoint &&
- (nearest.modifyPoint.hasOwnProperty("linkedPointId") ||
- nearest.modifyPoint.hasOwnProperty("linkedPointIdX") ||
- nearest.modifyPoint.hasOwnProperty("linkedPointIdY") ||
- nearest.modifyPoint.hasOwnProperty("linkedRoadId"))
- ) {
- this.modifyPoint = {
- x: nearest.modifyPoint.x,
- y: nearest.modifyPoint.y,
- };
- if (
- nearest.modifyPoint.hasOwnProperty("linkedPointId") &&
- nearest.modifyPoint.linkedPointId != null
- ) {
- this.modifyPoint.linkedPointId = nearest.modifyPoint.linkedPointId;
- } else if (
- nearest.modifyPoint.hasOwnProperty("linkedRoadId") &&
- nearest.modifyPoint.linkedRoadId != null
- ) {
- this.modifyPoint.linkedRoadId = nearest.modifyPoint.linkedRoadId;
- } else {
- if (
- nearest.modifyPoint.hasOwnProperty("linkedPointIdX") &&
- nearest.modifyPoint.linkedPointIdX != null
- ) {
- this.modifyPoint.linkedPointIdX = nearest.modifyPoint.linkedPointIdX;
- }
- if (
- nearest.modifyPoint.hasOwnProperty("linkedPointIdY") &&
- nearest.modifyPoint.linkedPointIdY != null
- ) {
- this.modifyPoint.linkedPointIdY = nearest.modifyPoint.linkedPointIdY;
- }
- }
- } else {
- this.modifyPoint = null;
- }
- const flag = this.updateSelectInfos(nearest, Constant.minAdsorbPix);
- this.updateSelectItem();
- return flag;
- }
- // 获得最近的墙面和墙角
- // 同时获得吸附的相关信息
- // 找到选中的symbol(只有选中了,才算是最近的)
- getNearForVectors(position, exceptPointId, exceptRoadIds, exceptCurveRoadId) {
- let info1 = this.getNearForRoad(position, exceptPointId, exceptRoadIds);
- let info2 = this.getNearForCurveRoad(
- position,
- exceptPointId,
- exceptCurveRoadId
- );
- let min1 = info1.min1;
- let modifyPoint = info1.modifyPoint;
- let _modifyPoint = info1._modifyPoint;
- if (min1 == null && info2.min1 != null) {
- min1 = info2.min1;
- modifyPoint = info2.modifyPoint;
- _modifyPoint = info2._modifyPoint;
- } else if (info2.min1 != null) {
- if (info1.min1.distance > info2.min1.distance) {
- min1 = info2.min1;
- modifyPoint = info2.modifyPoint;
- _modifyPoint = info2._modifyPoint;
- }
- }
- let min2 = info1.min2;
- if (min2 == null && info2.min2 != null) {
- min2 = info2.min2;
- modifyPoint = info2.modifyPoint;
- _modifyPoint = info2._modifyPoint;
- } else if (info2.min2 != null) {
- if (info1.min2.distance > info2.min2.distance) {
- min2 = info2.min2;
- modifyPoint = info2.modifyPoint;
- _modifyPoint = info2._modifyPoint;
- }
- }
- const result = {
- minPoint: min1,
- minRoad: min2,
- tagInfo: {},
- };
- if (_modifyPoint != null) {
- result.modifyPoint = JSON.parse(JSON.stringify(_modifyPoint));
- } else if (
- modifyPoint.hasOwnProperty("x") &&
- modifyPoint.hasOwnProperty("y")
- ) {
- result.modifyPoint = JSON.parse(JSON.stringify(modifyPoint));
- } else if (modifyPoint.hasOwnProperty("x")) {
- result.modifyPoint = JSON.parse(JSON.stringify(modifyPoint));
- result.modifyPoint.x = modifyPoint.x;
- result.modifyPoint.y = position.y;
- } else if (modifyPoint.hasOwnProperty("y")) {
- result.modifyPoint = JSON.parse(JSON.stringify(modifyPoint));
- result.modifyPoint.x = position.x;
- result.modifyPoint.y = modifyPoint.y;
- }
- return result;
- }
- getNearForRoad(position, exceptPointId, exceptRoadIds) {
- let min1 = null; // 与墙角的距离
- let min2 = null; // 与墙面的距离
- // 纠正
- // 垂直,水平
- const modifyPoint = {};
- // 吸附在墙面上
- let _modifyPoint = null;
- const hasPointIds = [];
- if (exceptPointId) {
- hasPointIds.push(exceptPointId);
- }
- const roads = dataService.getRoads();
- for (const roadId in roads) {
- if (exceptRoadIds && exceptRoadIds.hasOwnProperty(roadId)) {
- continue;
- }
- const road = dataService.getRoad(roadId);
- const startPoint = dataService.getPoint(road.startId);
- const endPoint = dataService.getPoint(road.endId);
- let distance = null;
- const line = roadService.getMidLine(road);
- //垂直交点
- const join = mathUtil.getJoinLinePoint(position, line);
- //先找端点
- if (hasPointIds.indexOf(road.startId) == -1) {
- hasPointIds.push(road.startId);
- distance = mathUtil.getDistance(position, startPoint);
- if (min1 == null || min1.distance > distance) {
- min1 = {
- distance: distance,
- pointId: road.startId,
- type: VectorType.RoadCorner,
- };
- //在公路内了
- if (
- (mathUtil.getDistance(join, position) < road.width / 2 &&
- mathUtil.getDistance(join, startPoint) < road.width / 2) ||
- min1.distance < road.width / 2
- ) {
- modifyPoint.linkedPointId = road.startId;
- modifyPoint.x = startPoint.x;
- modifyPoint.y = startPoint.y;
- delete modifyPoint.linkedPointIdX;
- delete modifyPoint.linkedPointIdY;
- break;
- }
- }
- //start部分找到了与x接近的其他点
- if (Math.abs(position.x - startPoint.x) < Constant.minAdsorbPix) {
- if (!modifyPoint.linkedPointIdX) {
- modifyPoint.x = startPoint.x;
- modifyPoint.linkedPointIdX = road.startId;
- } else {
- const linkedPointX = dataService.getPoint(
- modifyPoint.linkedPointIdX
- );
- if (
- mathUtil.getDistance(position, linkedPointX) >
- mathUtil.getDistance(position, startPoint)
- ) {
- modifyPoint.x = startPoint.x;
- modifyPoint.linkedPointIdX = road.startId;
- }
- }
- }
- //start部分找到了与y接近的其他点
- if (Math.abs(position.y - startPoint.y) < Constant.minAdsorbPix) {
- if (!modifyPoint.linkedPointIdY) {
- modifyPoint.y = startPoint.y;
- modifyPoint.linkedPointIdY = road.startId;
- } else {
- const linkedPointY = dataService.getPoint(
- modifyPoint.linkedPointIdY
- );
- if (
- mathUtil.getDistance(position, linkedPointY) >
- mathUtil.getDistance(position, startPoint)
- ) {
- modifyPoint.y = startPoint.y;
- modifyPoint.linkedPointIdY = road.startId;
- }
- }
- }
- }
- if (hasPointIds.indexOf(road.endId) == -1) {
- hasPointIds.push(road.endId);
- distance = mathUtil.getDistance(position, endPoint);
- if (min1 == null || min1.distance > distance) {
- min1 = {
- distance: distance,
- pointId: road.endId,
- type: VectorType.RoadCorner,
- };
- //end部分找到了墙的端点
- if (
- (mathUtil.getDistance(join, position) < road.width / 2 &&
- mathUtil.getDistance(join, endPoint) < road.width / 2) ||
- min1.distance < road.width / 2
- ) {
- modifyPoint.linkedPointId = road.endId;
- modifyPoint.x = endPoint.x;
- modifyPoint.y = endPoint.y;
- delete modifyPoint.linkedPointIdX;
- delete modifyPoint.linkedPointIdY;
- break;
- }
- }
- //end部分找到了与x接近的其他点
- if (Math.abs(position.x - endPoint.x) < Constant.minAdsorbPix) {
- if (!modifyPoint.linkedPointIdX) {
- modifyPoint.x = endPoint.x;
- modifyPoint.linkedPointIdX = road.endId;
- } else {
- const linkedPointX = dataService.getPoint(
- modifyPoint.linkedPointIdX
- );
- if (
- mathUtil.getDistance(position, linkedPointX) >
- mathUtil.getDistance(position, endPoint)
- ) {
- modifyPoint.x = endPoint.x;
- modifyPoint.linkedPointIdX = road.endId;
- }
- }
- }
- //end部分找到了与y接近的其他点
- if (Math.abs(position.y - endPoint.y) < Constant.minAdsorbPix) {
- if (!modifyPoint.linkedPointIdY) {
- modifyPoint.y = endPoint.y;
- modifyPoint.linkedPointIdY = road.endId;
- } else {
- const linkedPointY = dataService.getPoint(
- modifyPoint.linkedPointIdY
- );
- if (
- mathUtil.getDistance(position, linkedPointY) >
- mathUtil.getDistance(position, endPoint)
- ) {
- modifyPoint.y = endPoint.y;
- modifyPoint.linkedPointIdY = road.endId;
- }
- }
- }
- }
- distance = mathUtil.getDistance(position, join);
- //是否在墙上,可能在墙外
- const _flag = roadService.isContain(road, join);
- if (_flag && (min2 == null || min2.distance > distance)) {
- min2 = {
- distance: distance,
- type: VectorType.Road,
- roadId: roadId,
- };
- }
- if (_flag && mathUtil.getDistance(position, join) < road.width / 2) {
- _modifyPoint = join;
- _modifyPoint.linkedRoadId = roadId;
- }
- }
- return {
- min1: min1,
- min2: min2,
- modifyPoint: modifyPoint,
- _modifyPoint: _modifyPoint,
- };
- }
- //暂时只考虑端点
- getNearForCurveRoad(position, exceptPointId, exceptCurveRoadId) {
- let min1 = null; // 与墙角的距离
- let min2 = null; // 与墙面的距离
- // 纠正
- // 垂直,水平
- const modifyPoint = {};
- // 吸附在墙面上
- let _modifyPoint = null;
- const hasPointIds = [];
- if (exceptPointId) {
- hasPointIds.push(exceptPointId);
- }
- const curveRoads = dataService.getCurveRoads();
- for (const curveRoadId in curveRoads) {
- if (exceptCurveRoadId && exceptCurveRoadId == curveRoadId) {
- continue;
- }
- const curveRoad = dataService.getCurveRoad(curveRoadId);
- for (let i = 0; i < curveRoad.points.length; ++i) {
- let distance = null;
- //先找端点
- if (hasPointIds.indexOf(curveRoad.points[i].vectorId) == -1) {
- hasPointIds.push(curveRoad.points[i].vectorId);
- distance = mathUtil.getDistance(position, curveRoad.points[i]);
- if (distance < Constant.minAdsorbPix) {
- min1 = {
- distance: distance,
- pointId: curveRoad.points[i].vectorId,
- type: VectorType.CurveRoadCorner,
- };
- modifyPoint.linkedPointId = curveRoad.points[i].vectorId;
- modifyPoint.x = curveRoad.points[i].x;
- modifyPoint.y = curveRoad.points[i].y;
- delete modifyPoint.linkedPointIdX;
- delete modifyPoint.linkedPointIdY;
- break;
- }
- //start部分找到了与x接近的其他点
- if (
- Math.abs(position.x - curveRoad.points[i].x) < Constant.minAdsorbPix
- ) {
- if (!modifyPoint.linkedPointIdX) {
- modifyPoint.x = curveRoad.points[i].x;
- modifyPoint.linkedPointIdX = curveRoad.points[i].vectorId;
- } else {
- const linkedPointX = dataService.getCurvePoint(
- modifyPoint.linkedPointIdX
- );
- if (
- mathUtil.getDistance(position, linkedPointX) >
- mathUtil.getDistance(position, curveRoad.points[i])
- ) {
- modifyPoint.x = curveRoad.points[i].x;
- modifyPoint.linkedPointIdX = curveRoad.points[i].vectorId;
- }
- }
- }
- //start部分找到了与y接近的其他点
- if (
- Math.abs(position.y - curveRoad.points[i].y) < Constant.minAdsorbPix
- ) {
- if (!modifyPoint.linkedPointIdY) {
- modifyPoint.y = curveRoad.points[i].y;
- modifyPoint.linkedPointIdY = curveRoad.points[i].vectorId;
- } else {
- const linkedPointY = dataService.getCurvePoint(
- modifyPoint.linkedPointIdY
- );
- if (
- mathUtil.getDistance(position, linkedPointY) >
- mathUtil.getDistance(position, curveRoad.points[i])
- ) {
- modifyPoint.y = curveRoad.points[i].y;
- modifyPoint.linkedPointIdY = curveRoad.points[i].vectorId;
- }
- }
- }
- }
- }
- }
- return {
- min1: min1,
- min2: min2,
- modifyPoint: modifyPoint,
- _modifyPoint: _modifyPoint,
- };
- }
- updateSelectInfos(nearest, minDistance) {
- console.log("实时监控:" + JSON.stringify(nearest));
- // 墙角状态是否改变
- let flag1 = false;
- if (nearest.minPoint != null) {
- if (nearest.minPoint.distance < minDistance) {
- flag1 = this.isChanged(nearest.minPoint.pointId, SelectState.Select, 1);
- this.pointInfo = {
- pointId: nearest.minPoint.pointId,
- type: nearest.minPoint.type,
- state: SelectState.Select,
- };
- } else {
- flag1 = this.isChanged(nearest.minPoint.pointId, null, 1);
- this.pointInfo = {
- pointId: nearest.minPoint.pointId,
- type: nearest.minPoint.type,
- state: null,
- };
- }
- } else {
- flag1 = this.isChanged(null, null, 1);
- this.pointInfo = {
- pointId: null,
- type: null,
- state: null,
- };
- }
- // 墙面状态是否改变
- let flag2 = false;
- if (nearest.minRoad != null) {
- if (nearest.minRoad.distance < minDistance) {
- flag2 = this.isChanged(nearest.minRoad.roadId, SelectState.Select, 2);
- this.roadInfo = {
- roadId: nearest.minRoad.roadId,
- type: nearest.minRoad.type,
- state: SelectState.Select,
- };
- } else {
- flag2 = this.isChanged(nearest.minRoad.roadId, null, 2);
- this.roadInfo = {
- roadId: nearest.minRoad.roadId,
- type: nearest.minRoad.type,
- state: null,
- };
- }
- } else {
- flag2 = this.isChanged(null, null, 2);
- this.roadInfo = {
- roadId: null,
- type: null,
- state: null,
- };
- }
- return flag1 || flag2;
- }
- // type是1表示点,2表示墙,3表示symbol,4表示component, 5表示tag,6表示furniture
- isChanged(vectorId, state, type) {
- let flag = false;
- if (type == 1) {
- if (state == null && state == this.pointInfo.state) {
- flag = false;
- } else if (
- this.pointInfo.pointId == vectorId &&
- state == this.pointInfo.state
- ) {
- flag = false;
- } else {
- flag = true;
- }
- } else if (type == 2) {
- if (state == null && state == this.roadInfo.state) {
- flag = false;
- } else if (
- this.roadInfo.roadId == vectorId &&
- state == this.roadInfo.state
- ) {
- flag = false;
- } else {
- flag = true;
- }
- } else if (type == 5) {
- if (state == null && state == this.tagInfo.state) {
- flag = false;
- } else if (
- this.tagInfo.tagId == vectorId &&
- state == this.tagInfo.state
- ) {
- flag = false;
- } else {
- flag = true;
- }
- }
- return flag;
- }
- updateSelectItem() {
- if (this.tagInfo.tagId != null && this.tagInfo.state != null) {
- const tag = dataService.getTag(this.tagInfo.tagId);
- stateService.setSelectItem(
- this.tagInfo.tagId,
- tag.geoType,
- this.tagInfo.state
- );
- } else if (this.pointInfo.pointId != null && this.pointInfo.state != null) {
- stateService.setSelectItem(
- this.pointInfo.pointId,
- this.pointInfo.type,
- SelectState.Select
- );
- } else if (this.roadInfo.roadId != null && this.roadInfo.state != null) {
- stateService.setSelectItem(
- this.roadInfo.roadId,
- this.roadInfo.type,
- SelectState.Select
- );
- } else {
- stateService.clearSelectItem();
- }
- }
- // getNearForCurveRoad(position, exceptPointId, exceptRoadIds) {
- // let min1 = null;
- // let min2 = null;
- // const modifyPoint = {};
- // const hasPointIds = [];
- // if (exceptPointId) {
- // hasPointIds.push(exceptPointId);
- // }
- // const curveRoads = dataService.getCurveRoads();
- // for (const curveRoadId in curveRoads) {
- // if (exceptRoadIds && exceptRoadIds.hasOwnProperty(curveRoadId)) {
- // continue;
- // }
- // const curveRoad = dataService.getCurveRoad(curveRoadId);
- // const startPoint = dataService.getPoint(curveRoad.startId);
- // const endPoint = dataService.getPoint(curveRoad.endId);
- // let distance = null;
- // //先找端点
- // if (hasPointIds.indexOf(curveRoad.startId) == -1) {
- // hasPointIds.push(curveRoad.startId);
- // distance = mathUtil.getDistance(position, startPoint);
- // if (min1 == null || min1.distance > distance) {
- // min1 = {
- // distance: distance,
- // pointId: curveRoad.startId,
- // };
- // if (min1.distance < Constant.minAdsorbPix) {
- // modifyPoint.linkedPointId = curveRoad.startId;
- // modifyPoint.x = startPoint.x;
- // modifyPoint.y = startPoint.y;
- // delete modifyPoint.linkedPointIdX;
- // delete modifyPoint.linkedPointIdY;
- // break;
- // }
- // }
- // //start部分找到了与x接近的其他点
- // if (Math.abs(position.x - startPoint.x) < Constant.minAdsorbPix) {
- // if (!modifyPoint.linkedPointIdX) {
- // modifyPoint.x = startPoint.x;
- // modifyPoint.linkedPointIdX = curveRoad.startId;
- // } else {
- // const linkedPointX = dataService.getPoint(
- // modifyPoint.linkedPointIdX
- // );
- // if (
- // mathUtil.getDistance(position, linkedPointX) >
- // mathUtil.getDistance(position, startPoint)
- // ) {
- // modifyPoint.x = startPoint.x;
- // modifyPoint.linkedPointIdX = curveRoad.startId;
- // }
- // }
- // }
- // //start部分找到了与y接近的其他点
- // if (Math.abs(position.y - startPoint.y) < Constant.minAdsorbPix) {
- // if (!modifyPoint.linkedPointIdY) {
- // modifyPoint.y = startPoint.y;
- // modifyPoint.linkedPointIdY = curveRoad.startId;
- // } else {
- // const linkedPointY = dataService.getPoint(
- // modifyPoint.linkedPointIdY
- // );
- // if (
- // mathUtil.getDistance(position, linkedPointY) >
- // mathUtil.getDistance(position, startPoint)
- // ) {
- // modifyPoint.y = startPoint.y;
- // modifyPoint.linkedPointIdY = curveRoad.startId;
- // }
- // }
- // }
- // }
- // if (hasPointIds.indexOf(curveRoad.endId) == -1) {
- // hasPointIds.push(curveRoad.endId);
- // distance = mathUtil.getDistance(position, endPoint);
- // if (min1 == null || min1.distance > distance) {
- // min1 = {
- // distance: distance,
- // pointId: curveRoad.endId,
- // };
- // //end部分找到了墙的端点
- // if (min1.distance < Constant.minAdsorbPix) {
- // modifyPoint.linkedPointId = curveRoad.endId;
- // modifyPoint.x = endPoint.x;
- // modifyPoint.y = endPoint.y;
- // delete modifyPoint.linkedPointIdX;
- // delete modifyPoint.linkedPointIdY;
- // break;
- // }
- // }
- // //end部分找到了与x接近的其他点
- // if (Math.abs(position.x - endPoint.x) < Constant.minAdsorbPix) {
- // if (!modifyPoint.linkedPointIdX) {
- // modifyPoint.x = endPoint.x;
- // modifyPoint.linkedPointIdX = curveRoad.endId;
- // } else {
- // const linkedPointX = dataService.getPoint(
- // modifyPoint.linkedPointIdX
- // );
- // if (
- // mathUtil.getDistance(position, linkedPointX) >
- // mathUtil.getDistance(position, endPoint)
- // ) {
- // modifyPoint.x = endPoint.x;
- // modifyPoint.linkedPointIdX = curveRoad.endId;
- // }
- // }
- // }
- // //end部分找到了与y接近的其他点
- // if (Math.abs(position.y - endPoint.y) < Constant.minAdsorbPix) {
- // if (!modifyPoint.linkedPointIdY) {
- // modifyPoint.y = endPoint.y;
- // modifyPoint.linkedPointIdY = curveRoad.endId;
- // } else {
- // const linkedPointY = dataService.getPoint(
- // modifyPoint.linkedPointIdY
- // );
- // if (
- // mathUtil.getDistance(position, linkedPointY) >
- // mathUtil.getDistance(position, endPoint)
- // ) {
- // modifyPoint.y = endPoint.y;
- // modifyPoint.linkedPointIdY = curveRoad.endId;
- // }
- // }
- // }
- // }
- // }
- // const result = {
- // minPoint: min1,
- // tagInfo: {},
- // };
- // if (modifyPoint.hasOwnProperty("x") && modifyPoint.hasOwnProperty("y")) {
- // result.modifyPoint = JSON.parse(JSON.stringify(modifyPoint));
- // } else if (modifyPoint.hasOwnProperty("x")) {
- // result.modifyPoint = JSON.parse(JSON.stringify(modifyPoint));
- // result.modifyPoint.x = modifyPoint.x;
- // result.modifyPoint.y = position.y;
- // } else if (modifyPoint.hasOwnProperty("y")) {
- // result.modifyPoint = JSON.parse(JSON.stringify(modifyPoint));
- // result.modifyPoint.x = position.x;
- // result.modifyPoint.y = modifyPoint.y;
- // }
- // return result;
- // }
- clear() {
- this.roadInfo = {
- roadId: null,
- state: null,
- type: null,
- };
- this.pointInfo = {
- pointId: null,
- state: null,
- type: null,
- };
- this.modifyPoint = null;
- }
- }
- const listenLayer = new ListenLayer();
- export { listenLayer };
|