# Class: DbBlockReference
default.DbBlockReference
DbBlockReference
块参照实体.
# Hierarchy
-
↳ DbBlockReference
# Table of contents
# Constructors
# Properties
- alpha
- blockname
- color
- colorIndex
- layer
- lineWidth
- linetype
- linetypeScale
- matrix
- normal
- position
- ref
- rotation
- scaleFactors
- typename
- visibility
- xdata
# Constructors
# constructor
+ new DbBlockReference(prop?
: IDbBlockReference): DbBlockReference
构造函数
# Parameters
Name | Type | Default value |
---|---|---|
prop | IDbBlockReference | {} |
Returns: DbBlockReference
Overrides: DbEntity
# Properties
# alpha
• Optional
alpha: number
透明度. [0-255][0完全透明,255完全不透明]
Inherited from: DbEntity.alpha
# blockname
• Optional
blockname: string
块名称.
# color
• Optional
color: number
颜色.
Inherited from: DbEntity.color
# colorIndex
• Optional
colorIndex: number
颜色索引.
Inherited from: DbEntity.colorIndex
# layer
• Optional
layer: string
图层.
Inherited from: DbEntity.layer
# 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
# normal
• Optional
normal: [number, number, undefined | number]
法向量.
# position
• Optional
position: [number, number, undefined | number]
坐标.
# ref
• Optional
ref: string
参考外部图形,形式为 mapid/version,如 exam/v1.
# rotation
• Optional
rotation: number
旋转角度.
# scaleFactors
• Optional
scaleFactors: number
缩放因子.
# typename
• Optional
typename: string
类型.
Inherited from: DbEntity.typename
# visibility
• Optional
visibility: boolean
可见.
Inherited from: DbEntity.visibility
# xdata
• Optional
xdata: string
扩展数据.