| | |
| | | </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> |
| | |
| | | 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); |
| | | }; |
| | |
| | | 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 = () => { |
| | |
| | | } 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; |
| | |
| | | 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 = () => { |