<template>
  <div>
    <hr />
    
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">中心点坐标</div>
      <div class="panel-value" >
          <Input v-model="activeElement.option.centerPoint"/>
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线起始点数据</div>
      <div class="panel-value">
          <Input v-model="activeElement.option.points" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线宽度</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.lineWidth" />
      </div>
    </div>
    
    
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线颜色</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.orbitColor" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线收束程度</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.k" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线曲率</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.curvature" />
      </div>
    </div>

    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线显示半径</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.flylineRadius" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线动画时长</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.duration" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">使用相对坐标</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.relative" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">背景图url</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.bgImgUrl" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">文本配置项</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.text" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">光晕环配置项</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.halo" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">中心点图片配置</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.centerPointImg" />
      </div>
    </div>
    <div class="panel-row">
      <vpd-icon name="target" />
      <div class="panel-label">飞线点图片配置</div>
      <div class="panel-value">
        <Input v-model="activeElement.option.pointsImg" />
      </div>
    </div>
    
  </div>
  
</template>

<script>
export default {
  name: "DataVFlylinechartStyle",
  props: ["activeElement"],
  data() {
    return {
      value:JSON.stringify(this.activeElement.option.value),
      colors:JSON.stringify(this.activeElement.option.colors)
    };
  },
  methods: {
    valueChange(newCode) {
      this.activeElement.option.value = JSON.parse(newCode);
      this.$parent.$vpd.commit("updateWidgets", this.activeElement);
    }
  },
  created () {
      // console.log(this.data,typeof(this.data),8888)
      // console.log(this.colors,typeof(this.colors),8888)
  }
};
</script>
