# Class: DbMLeader
default.DbMLeader
DbMLeader
多重引线.
# Hierarchy
-
↳ DbMLeader
# Table of contents
# Constructors
# Properties
- alpha
- arrowSize
- blockConnectionType
- blockPosition
- blockRotation
- blockScale
- cloneFromDb
- cloneObjectId
- color
- colorIndex
- contents
- doglegLength
- enableDogleg
- height
- landingGap
- layer
- leaderLinePoint
- leaderVertexPoints
- lineWidth
- linetype
- linetypeScale
- matrix
- textAttachment
- textAttachmentDirection
- textAttachmentType
- textHeight
- textLocation
- textRotation
- textStyle
- textWidth
- typename
- visibility
- xdata
# Constructors
# constructor
+ new DbMLeader(prop?
: IDbMText): DbMLeader
构造函数
# Parameters
Name | Type | Default value |
---|---|---|
prop | IDbMText | {} |
Returns: DbMLeader
Overrides: DbEntity
# Properties
# alpha
• Optional
alpha: number
透明度. [0-255][0完全透明,255完全不透明]
Inherited from: DbEntity.alpha
# arrowSize
• Optional
arrowSize: number
# blockConnectionType
• Optional
blockConnectionType: 0
| 1
# blockPosition
• Optional
blockPosition: [number, number, undefined | number]
# blockRotation
• Optional
blockRotation: number
# blockScale
• Optional
blockScale: [number, number, number]
# cloneFromDb
• Optional
cloneFromDb: string
克隆的实体ID来源的图形,如为空,则取DbDocument中from的图形。也可以指定另外的图形
Inherited from: DbEntity.cloneFromDb
# cloneObjectId
• Optional
cloneObjectId: string
克隆的实体ID,DbDocument有from图形来源字段时有效.
Inherited from: DbEntity.cloneObjectId
# color
• Optional
color: number
颜色.
Inherited from: DbEntity.color
# colorIndex
• Optional
colorIndex: number
颜色索引. 0 随块. 1 Red. 2 Yellow. 3 Green. 4 Cyan. 5 Blue. 6 Magenta. 256 表示随层
Inherited from: DbEntity.colorIndex
# contents
• Optional
contents: string
文本内容.
# doglegLength
• Optional
doglegLength: number
# enableDogleg
• Optional
enableDogleg: boolean
# height
• Optional
height: number
文本高.
# landingGap
• Optional
landingGap: number
# layer
• Optional
layer: string
图层.
Inherited from: DbEntity.layer
# leaderLinePoint
• Optional
leaderLinePoint: [number, number, undefined | number]
引线位置.
# leaderVertexPoints
• Optional
leaderVertexPoints: [number, number, undefined | number][]
引线顶点位置数组.
# lineWidth
• Optional
lineWidth: number
线宽.
Inherited from: DbEntity.lineWidth
# linetype
• Optional
linetype: string
线型.
Inherited from: DbEntity.linetype
# linetypeScale
• Optional
linetypeScale: number
线型比例.
Inherited from: DbEntity.linetypeScale
# matrix
• Optional
matrix: IDbMatrixOp[]
矩阵.
Inherited from: DbEntity.matrix
# textAttachment
• Optional
textAttachment: kTopLeft | kTopCenter | kTopRight | kMiddleLeft | kMiddleCenter | kMiddleRight | kBottomLeft | kBottomCenter | kBottomRight | kBaseLeft | kBaseCenter | kBaseRight | kBaseAlign | kBottomAlign | kMiddleAlign | kTopAlign | kBaseFit | kBottomFit | kMiddleFit | kTopFit | kBaseMid | kBottomMid | kMiddleMid | kTopMid
文本对齐方式.
# textAttachmentDirection
• Optional
textAttachmentDirection: 0
| 1
文本对齐方向. 0 水平 1 垂直
# textAttachmentType
• Optional
textAttachmentType: number[]
文本对齐类型. type(0-10) value(0-4) [type1, value1, type2, value2....]
# textHeight
• Optional
textHeight: number
文本高.
# textLocation
• Optional
textLocation: [number, number, undefined | number]
文本位置.
# textRotation
• Optional
textRotation: number
文本旋转角度.
# textStyle
• Optional
textStyle: string
文本样式.
# textWidth
• Optional
textWidth: number
文本宽.
# typename
• Optional
typename: string
类型.
Inherited from: DbEntity.typename
# visibility
• Optional
visibility: boolean
可见.
Inherited from: DbEntity.visibility
# xdata
• Optional
xdata: string
扩展数据.