Skip to content

Commit

Permalink
添加几何体支持线框绘制-2-ellipse
Browse files Browse the repository at this point in the history
  • Loading branch information
supermap123 committed Aug 29, 2023
1 parent d528115 commit b9b1c02
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ let state = reactive<stateType>({
let ellipseEntity;
let entities = viewer.entities;
let targetEntity: any = null;
let handlerPoint_ellipse = new SuperMap3D.DrawHandler(viewer, SuperMap3D.DrawMode.Point);
let targetEntity: any = null;
// 注册绘制圆柱事件
handlerPoint_ellipse.drawEvt.addEventListener(function (res) {
Expand All @@ -119,8 +118,8 @@ handlerPoint_ellipse.drawEvt.addEventListener(function (res) {
material: color,
granularity: SuperMap3D.Math.RADIANS_PER_DEGREE,
rotation: 0,
fill: true,
outline: false,
fill: state.displayMode === 'Fill',
outline: state.displayMode === 'Outline',
outlineColor: SuperMap3D.Color.BLACK,
outlineWidth: 1
}
Expand All @@ -135,7 +134,7 @@ handler.setInputAction(function (e) {
if (SuperMap3D.defined(pickedObject) && (pickedObject.id instanceof SuperMap3D.Entity)) {
targetEntity = pickedObject.id;
} else {
targetEntity = null;
// targetEntity = null;
}
}, SuperMap3D.ScreenSpaceEventType.LEFT_CLICK);
Expand Down Expand Up @@ -241,4 +240,4 @@ onBeforeUnmount(() => {





0 comments on commit b9b1c02

Please sign in to comment.