Class: LinePlaceInfo

LinePlaceInfo()

new LinePlaceInfo()

线放置样式
Source:

Methods

(async, static) createObj() → {Promise.<LinePlaceInfo>}

构造一个新LinePlaceInfo对象
Source:
Returns:
线标注对象
Type
Promise.<LinePlaceInfo>

(async, static) getInterval() → {double}

获取步长
Source:
Returns:
Type
double

(async, static) getOffset() → {double}

获取标注与线的偏移距离(设备单位)
Source:
Returns:
Type
double

(async, static) getRepeatType() → {int}

获取重复类型
Source:
Returns:
重复类型 例:LineRepeatType.AutoRepeat
Type
int

(async, static) getRestrictType() → {int}

获取偏移约束类型
Source:
Returns:
偏移约束类型 例:LineRestrictType.OnLine
Type
int

(async, static) getSpreadType() → {int}

获取分布类型
Source:
Returns:
分布类型 例:LineSpreadType.AutoSpread
Type
int

(async, static) getType() → {int}

获取线标注类型
Source:
Returns:
线标注类型 例:LinePlaceType.HorizationPlace
Type
int

(async, static) setInterval(interval) → {Promise.<Void>}

设置步长
Parameters:
Name Type Description
interval double 步长
Source:
Returns:
Type
Promise.<Void>

(async, static) setOffset(offset) → {Promise.<Void>}

设置标注与线的偏移距离(设备单位)
Parameters:
Name Type Description
offset double 标注与线的偏移距离
Source:
Returns:
Type
Promise.<Void>

(async, static) setRepeatType(repeatType) → {Promise.<Void>}

设置重复类型
Parameters:
Name Type Description
repeatType int 重复类型 例:LineRepeatType.AutoRepeat
Source:
Returns:
Type
Promise.<Void>

(async, static) setRestrictType(restrictType) → {Promise.<Void>}

设置偏移约束类型
Parameters:
Name Type Description
restrictType int 偏移约束类型 例:LineRestrictType.OnLine
Source:
Returns:
Type
Promise.<Void>

(async, static) setSpreadType(spreadType) → {Promise.<Void>}

设置分布类型
Parameters:
Name Type Description
spreadType int 分布类型,例:LineSpreadType.AutoSpread
Source:
Returns:
Type
Promise.<Void>

(async, static) setType(linePlaceType) → {Promise.<Void>}

设置线标注类型
Parameters:
Name Type Description
linePlaceType int 线标注类型 例:LinePlaceType.HorizationPlace
Source:
Returns:
Type
Promise.<Void>