唯杰地图 logo唯杰地图
VJMAP
EN

Class: DbAttributeDefinition

更新于 2026-09-14约 6 分钟
.md

default.DbAttributeDefinition

DbText 属性定义实体.

Hierarchy

  • DbText

    ↳ DbAttributeDefinition

Table of contents

Constructors

Properties

Constructors

constructor

+ new DbAttributeDefinition(prop?: IDbText): DbAttributeDefinition

构造函数

Parameters
Name Type Default value
prop IDbText {}

Returns: DbAttributeDefinition

Overrides: DbText

Properties

alpha

• Optional alpha: number

透明度. [0-255][0完全透明,255完全不透明]

Inherited from: DbText.alpha


cloneFromDb

• Optional cloneFromDb: string

克隆的实体ID来源的图形,如为空,则取DbDocument中from的图形。也可以指定另外的图形

Inherited from: DbText.cloneFromDb


cloneObjectId

• Optional cloneObjectId: string

克隆的实体ID,DbDocument有from图形来源字段时有效.

Inherited from: DbText.cloneObjectId


color

• Optional color: number

颜色.

Inherited from: DbText.color


colorIndex

• Optional colorIndex: number

颜色索引. 0 随块. 1 Red. 2 Yellow. 3 Green. 4 Cyan. 5 Blue. 6 Magenta. 256 表示随层

Inherited from: DbText.colorIndex


contents

• Optional contents: string

文本内容, 同text.

Inherited from: DbText.contents


height

• Optional height: number

高.

Inherited from: DbText.height


horizontalMode

• Optional horizontalMode: kTextLeft | kTextCenter | kTextRight | kTextAlign | kTextMid | kTextFit

水平模式.

Inherited from: DbText.horizontalMode


layer

• Optional layer: string

图层.

Inherited from: DbText.layer


lineWidth

• Optional lineWidth: number

线宽.

Inherited from: DbText.lineWidth


linetype

• Optional linetype: string

线型.

Inherited from: DbText.linetype


linetypeScale

• Optional linetypeScale: number

线型比例.

Inherited from: DbText.linetypeScale


matrix

• Optional matrix: IDbMatrixOp[]

矩阵.

Inherited from: DbText.matrix


position

• Optional position: [number, number, undefined | number]

位置.

Inherited from: DbText.position


prompt

• Optional prompt: string

属性提示.


rotation

• Optional rotation: number

旋转角度.

Inherited from: DbText.rotation


tag

• Optional tag: string

属性名.


text

• Optional text: string

文本内容, 同contents.

Inherited from: DbText.text


textStyle

• Optional textStyle: string

文本样式.

Inherited from: DbText.textStyle


typename

• Optional typename: string

类型.

Inherited from: DbText.typename


verticalMode

• Optional verticalMode: kTextBase | kTextBottom | kTextVertMid | kTextTop

垂直模式.

Inherited from: DbText.verticalMode


visibility

• Optional visibility: boolean

可见.

Inherited from: DbText.visibility


xdata

• Optional xdata: string

扩展数据.

Inherited from: DbText.xdata

vjmap / Exports / default / DbBlock

这篇文档有帮助吗?