---
title: Class: DbShape
source: https://vjmap.com/en/doc/Class_DbShape.html
---

# Class: DbShape

[default](#modulesdefaultmd).DbShape

`DbShape` 型实体

### Hierarchy

- [*DbEntity*](#classesdefaultdbentitymd)

  ↳ **DbShape**

### Table of contents

#### Constructors

- [constructor](#constructor)

#### Properties

- [alpha](#alpha)
- [cloneFromDb](#clonefromdb)
- [cloneObjectId](#cloneobjectid)
- [color](#color)
- [colorIndex](#colorindex)
- [layer](#layer)
- [lineWidth](#linewidth)
- [linetype](#linetype)
- [linetypeScale](#linetypescale)
- [matrix](#matrix)
- [name](#name)
- [normal](#normal)
- [position](#position)
- [rotation](#rotation)
- [size](#size)
- [typename](#typename)
- [visibility](#visibility)
- [xdata](#xdata)

### Constructors

#### constructor

\+ **new DbShape**(`prop?`: [*IDbShape*](#interfacesdefaultidbshapemd)): [*DbShape*](#classesdefaultdbshapemd)

构造函数

##### Parameters

| Name | Type | Default value |
| :------ | :------ | :------ |
| `prop` | [*IDbShape*](#interfacesdefaultidbshapemd) | {} |

**Returns:** [*DbShape*](#classesdefaultdbshapemd)

Overrides: [DbEntity](#classesdefaultdbentitymd)

### Properties

#### alpha

• `Optional` **alpha**: *number*

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

Inherited from: [DbEntity](#classesdefaultdbentitymd).[alpha](#alpha)

___

#### cloneFromDb

• `Optional` **cloneFromDb**: *string*

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

Inherited from: [DbEntity](#classesdefaultdbentitymd).[cloneFromDb](#clonefromdb)

___

#### cloneObjectId

• `Optional` **cloneObjectId**: *string*

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

Inherited from: [DbEntity](#classesdefaultdbentitymd).[cloneObjectId](#cloneobjectid)

___

#### color

• `Optional` **color**: *number*

颜色.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[color](#color)

___

#### colorIndex

• `Optional` **colorIndex**: *number*

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

Inherited from: [DbEntity](#classesdefaultdbentitymd).[colorIndex](#colorindex)

___

#### layer

• `Optional` **layer**: *string*

图层.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[layer](#layer)

___

#### lineWidth

• `Optional` **lineWidth**: *number*

线宽.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[lineWidth](#linewidth)

___

#### linetype

• `Optional` **linetype**: *string*

线型.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[linetype](#linetype)

___

#### linetypeScale

• `Optional` **linetypeScale**: *number*

线型比例.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[linetypeScale](#linetypescale)

___

#### matrix

• `Optional` **matrix**: [*IDbMatrixOp*](#interfacesdefaultidbmatrixopmd)[]

矩阵.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[matrix](#matrix)

___

#### name

• `Optional` **name**: *string*

型名称.

___

#### normal

• `Optional` **normal**: [*number*, *number*, *undefined* \| *number*]

法向量.

___

#### position

• `Optional` **position**: [*number*, *number*, *undefined* \| *number*]

位置.

___

#### rotation

• `Optional` **rotation**: *number*

旋转角度.

___

#### size

• `Optional` **size**: *number*

大小.

___

#### typename

• `Optional` **typename**: *string*

类型.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[typename](#typename)

___

#### visibility

• `Optional` **visibility**: *boolean*

可见.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[visibility](#visibility)

___

#### xdata

• `Optional` **xdata**: *string*

扩展数据.

Inherited from: [DbEntity](#classesdefaultdbentitymd).[xdata](#xdata)


<a name="classesdefaultdbsplinemd"></a>

[vjmap](#readmemd) / [Exports](#modulesmd) / [default](#modulesdefaultmd) / DbSpline
