# Class: SnappingOption

## SnappingOption()

#### new SnappingOption()

捕捉选项

Source:
  - SnappingOption.js, line 11

### Methods

#### (async, static) createObj() → {Promise.<SnappingOption>}

构造一个新的SnappingOption对象

Source:
  - SnappingOption.js, line 22

##### Returns:

Type
  Promise.<SnappingOption>

#### (async, static) getPixelsTolerance() → {Number}

获取容差（像素单位）

Source:
  - SnappingOption.js, line 38

##### Returns:

容差 （int类型的Number）

Type
  Number

#### (async, static) isSnappingHorizontalIntersection() → {boolean}

获取是否自动捕捉水平交点

Source:
  - SnappingOption.js, line 186

##### Returns:

Type
  boolean

#### (async, static) isSnappingMidVertex() → {boolean}

获取是否自动捕捉中点

Source:
  - SnappingOption.js, line 94

##### Returns:

Type
  boolean

#### (async, static) isSnappingNormalIntersection() → {boolean}

获取是否自动捕捉普通交点

Source:
  - SnappingOption.js, line 153

##### Returns:

Type
  boolean

#### (async, static) isSnappingPedal() → {boolean}

获取是否自动捕捉垂点

Source:
  - SnappingOption.js, line 125

##### Returns:

Type
  boolean

#### (async, static) isSnappingVertex() → {boolean}

获取是否自动捕捉顶点

Source:
  - SnappingOption.js, line 66

##### Returns:

是否自动捕捉顶点

Type
  boolean

#### (async, static) isSnappingVerticalIntersection() → {boolean}

获取是否自动捕捉垂直交点

Source:
  - SnappingOption.js, line 219

##### Returns:

Type
  boolean

#### (async, static) setPixelsTolerance(pixelsTolerance) → {Promise.<Void>}

设置容差（像素单位）

##### Parameters:

Name | Type | Description
--- | --- | ---
`pixelsTolerance` | Number | 容差 （int类型的Number）

Source:
  - SnappingOption.js, line 53

##### Returns:

Type
  Promise.<Void>

#### (async, static) setSnappingHorizontalIntersection(isSnappingHorizontalIntersection) → {Promise.<Void>}

设置是否自动捕捉水平交点

##### Parameters:

Name | Type | Description
--- | --- | ---
`isSnappingHorizontalIntersection` | boolean | 是否自动捕捉水平交点

Source:
  - SnappingOption.js, line 203

##### Returns:

Type
  Promise.<Void>

#### (async, static) setSnappingMidVertex(isSnappingMidVertex) → {Promise.<Void>}

设置是否自动捕捉中点

##### Parameters:

Name | Type | Description
--- | --- | ---
`isSnappingMidVertex` | boolean |

Source:
  - SnappingOption.js, line 109

##### Returns:

Type
  Promise.<Void>

#### (async, static) setSnappingNormalIntersection(isSnappingNormalIntersection) → {Promise.<Void>}

设置是否自动捕捉普通交点

##### Parameters:

Name | Type | Description
--- | --- | ---
`isSnappingNormalIntersection` | boolean | 是否自动捕捉普通交点

Source:
  - SnappingOption.js, line 170

##### Returns:

Type
  Promise.<Void>

#### (async, static) setSnappingPedal(isSnappingPedal) → {Promise.<Void>}

设置是否自动捕捉垂点

##### Parameters:

Name | Type | Description
--- | --- | ---
`isSnappingPedal` | boolean | 是否自动捕捉垂点

Source:
  - SnappingOption.js, line 140

##### Returns:

Type
  Promise.<Void>

#### (async, static) setSnappingVertex(isSnappingVertex) → {Promise.<Void>}

设置是否自动捕捉顶点

##### Parameters:

Name | Type | Description
--- | --- | ---
`isSnappingVertex` | boolean | 是否自动捕捉顶点

Source:
  - SnappingOption.js, line 81

##### Returns:

Type
  Promise.<Void>

#### (async, static) setSnappingVerticalIntersection(isSnappingVerticalIntersection) → {Promise.<Void>}

设置是否自动捕捉垂直交点

##### Parameters:

Name | Type | Description
--- | --- | ---
`isSnappingVerticalIntersection` | boolean | 是否自动捕捉垂直交点

Source:
  - SnappingOption.js, line 236

##### Returns:

Type
  Promise.<Void>