月球大数据地理空间分析展示平台-【前端】-月球2期前端
surprise
2023-10-19 bfe436e493006bea75d32383d6bdfc0af8c7e5d0
src/views/plotting/attributeInfo.vue
@@ -22,15 +22,18 @@
      </div>
      <div class="contentBox" v-show="showEntity.label">
        <div class="contentLabel"> <label>内容</label></div>
        <div class="contentmenu"><el-input size="mini" v-model="fromLine.text"></el-input></div>
        <div class="contentmenu"><el-input size="mini" @change="setEntityTextChange" v-model="fromLine.text"></el-input>
        </div>
      </div>
      <div class="contentBox" v-show="showEntity.label">
        <div class="contentLabel"> <label>字体</label></div>
        <div class="contentmenu"><el-input size="mini" v-model="fromLine.font"></el-input></div>
        <div class="contentmenu"><el-input size="mini" @change="setEntityFontChange" v-model="fromLine.font"></el-input>
        </div>
      </div>
      <div class="contentBox" v-show="showEntity.label">
        <div class="contentLabel"> <label>比例大小</label></div>
        <div class="contentmenu"><el-input size="mini" v-model="fromLine.scale"></el-input></div>
        <div class="contentmenu"><el-input size="mini" @change="setEntityScaleChange" v-model="fromLine.scale"></el-input>
        </div>
      </div>
      <div class="contentBox" v-show="showEntity.point">
        <div class="contentLabel"> <label>大小</label></div>
@@ -145,6 +148,16 @@
  entity.value.name = fromLine.value.cnName;
  store.state.editTemporarName = fromLine.value.cnName;
};
const setEntityTextChange = () => {
  entity.value.label.text._value = fromLine.value.text
}
const setEntityFontChange = () => {
  entity.value.label.font._value = fromLine.value.font;
}
const setEntityScaleChange = () => {
  entity.value.label.scale._value = fromLine.value.scale;
}
const setEntitySizeChange = () => {
  entity.value.point._pixelSize._value = parseInt(fromLine.value.size);
};
@@ -156,12 +169,11 @@
      break;
    case "label":
      entity.value.label.disableDepthTestDistance =
        fromLine.value.heightReference == true ? null : false;
        fromLine.value.heightReference == true ? null : Number.POSITIVE_INFINITY;
      break;
    case "polyline":
      entity.value.polyline.clampToGround = fromLine.value.heightReference;
      break;
  }
};
const setEntityOutLineWidthReferenceChange = () => {
@@ -202,9 +214,11 @@
  } else if (type == 'polyline') {
    if (fromLine.value.outline) {
      entity.value.polyline.material.outlineWidth._value = fromLine.value.width;
    } else {
      entity.value.polyline.material.outlineWidth._value = null;
    }
    entity.value.outline = fromLine.value.outline
  } else if (type == 'rectangle') {
    entity.value.rectangle.outline._value = fromLine.value.outline;
@@ -217,7 +231,9 @@
  store.state.editTemporaryback = entity._value.id;
  store.state.setEditTemporaryShow = false;
  store.state.editTemporaryId = null;
  sgworld.Creator.SimpleGraphic.SimpleGraphicObj=[];
  sgworld.Creator.SimpleGraphic.edit(false, { editProp: false });
  sgworld.Creator.SimpleGraphic.SimpleGraphicObj = [];
};
const setEntityMaterColorChange = () => {