Class: BloodVolume

BloodVolume

生命值对象。

new BloodVolume(volume, position, style, options)

Usage
// 浏览器
<script type="text/javascript" src="../../web/libs/plotting/leaflet/11.3.0/iclient-plot-leaflet-es6.min.js"></script>
<script>
  new SuperMap.Plot.BloodVolume(volume, position, style, options);
  
  
</script>

// ES6 Import
import { BloodVolume } from '../../public/iclient-plot/iclient-plot-leaflet-es6.min.js';

new BloodVolume(volume, position, style, options);

common/plot/BloodVolume.js, line 5
Name Type Description
volume number

生命值比例,取值为[0-1]。

position Position

生命值相对标号的位置,上、下、左、右。

style BloodVolumeStyle

生命值的样式。

options Object

生命值参数。

Name Type Description
offsetX number 可选

生命值在X方向的偏移量。

offsetY number 可选

生命值在Y方向的偏移量。

width number 可选

生命值的宽度。

height number 可选

生命值的高度。

Members

heightnumber

生命值高度,单位是像素。

offsetXnumber

生命值在X方向的偏移量,单位是像素。

offsetYnumber

生命值在Y方向的偏移量, 单位是像素。

positionPosition

生命值相对标号的位置。

生命值风格。

volumenumber

生命值比例,取值为[0-1]。

widthnumber

生命值宽度, 单位是像素。

Methods

clone(){BloodVolume}

common/plot/BloodVolume.js, line 101

克隆生命值对象。

Returns:
Type Description
BloodVolume 克隆后的生命值对象。

destroy()

common/plot/BloodVolume.js, line 86

销毁图形对象数据。

parseSymbolData(){BloodVolume}

common/plot/BloodVolume.js, line 187

解析生命值对象数据。

Returns:
Type Description
BloodVolume 解析生命值对象数据。

setSymbolData(){BloodVolume}

common/plot/BloodVolume.js, line 122

设置生命值对象数据。

Returns:
Type Description
BloodVolume 设置生命值对象数据。