@ -3,6 +3,7 @@ import { PointerEventTypes } from "@babylonjs/core/Events/pointerEvents";
import { PointerInfo } from "@babylonjs/core/Events/pointerEvents" ;
import { EventState } from "@babylonjs/core/Misc/observable" ;
import { Button , Control , Rectangle } from "@babylonjs/gui" ;
import { PlanComponent } from "src/app/pages/plan/plan.component" ;
import { DataManager } from "../../controller/data-manager" ;
import { ModeManager } from "../../controller/mode-manager" ;
import { SceneManager } from "../../controller/scene-manager" ;
@ -12,10 +13,8 @@ import { BabylonUIStyleTool } from "../../tool/babylon-ui-style-tool";
import { GizmoTool , TransformUIType } from "../../tool/gizmo-tool" ;
import { MeasureTool , MeasureType } from "../../tool/measure-tool" ;
import { BuildingWindow } from "../building-window/building-window" ;
import { FacilityWindow } from "../facility-window/facility-window" ;
import { CopyFacilityInfo , FacilityInfoInSceneWindow } from "../facilityinfoinscene-window/facilityinfoinscene-window" ;
import { UIBase } from "../window-base/ui-base" ;
/ * *
@ -33,7 +32,7 @@ export class ToolbarWindow extends UIBase {
//#region 前端对接
// three: ThreeDimensionalHomeComponent; //前端组件
three : PlanComponent ; //前端组件
compassAlpha : number ; //指南针旋转 0-2π
/ * *
@ -220,7 +219,7 @@ export class ToolbarWindow extends UIBase {
//改变拾取状态
changeMeshAdsorbY() {
this . isMeshAdsorb = ! this . isMeshAdsorb ;
// this.three.updateSelectAdsorb();
PlanComponent . instance . updateSelectAdsorb ( ) ;
}
//#endregion