# Class: DbEntity
default.DbEntity
DbEntity
实体基类.
# Hierarchy
DbEntity
↳ DbLine
↳ DbCurve
↳ DbHatch
↳ DbText
↳ DbMText
↳ DbShape
↳ DbLine
↳ DbCurve
↳ DbHatch
↳ DbText
↳ DbMText
↳ DbShape
# Implements
- IDbEntity
# Table of contents
# Constructors
# Properties
# Constructors
# constructor
+ Protected
new DbEntity(prop?
: IDbEntity): DbEntity
构造函数
# Parameters
Name | Type | Default value |
---|---|---|
prop | IDbEntity | {} |
Returns: DbEntity
# Properties
# alpha
• Optional
alpha: number
透明度. [0-255][0完全透明,255完全不透明]
Implementation of: IDbEntity.alpha
# color
• Optional
color: number
颜色.
Implementation of: IDbEntity.color
# colorIndex
• Optional
colorIndex: number
颜色索引.
Implementation of: IDbEntity.colorIndex
# layer
• Optional
layer: string
图层.
Implementation of: IDbEntity.layer
# lineWidth
• Optional
lineWidth: number
线宽.
Implementation of: IDbEntity.lineWidth
# linetype
• Optional
linetype: string
线型.
Implementation of: IDbEntity.linetype
# linetypeScale
• Optional
linetypeScale: number
线型比例.
Implementation of: IDbEntity.linetypeScale
# matrix
• Optional
matrix: IDbMatrixOp[]
矩阵.
Implementation of: IDbEntity.matrix
# typename
• Optional
typename: string
类型.
Implementation of: IDbEntity.typename
# visibility
• Optional
visibility: boolean
可见.
Implementation of: IDbEntity.visibility
# xdata
• Optional
xdata: string
扩展数据.
Implementation of: IDbEntity.xdata