Methods
(async, static) createObj() → {Promise.<SnappingOption>}
构造一个新的SnappingOption对象
- Source:
Returns:
- Type
- Promise.<SnappingOption>
(async, static) getPixelsTolerance() → {Number}
获取容差(像素单位)
- Source:
Returns:
容差 (int类型的Number)
- Type
- Number
(async, static) isSnappingHorizontalIntersection() → {boolean}
获取是否自动捕捉水平交点
- Source:
Returns:
- Type
- boolean
(async, static) isSnappingMidVertex() → {boolean}
获取是否自动捕捉中点
- Source:
Returns:
- Type
- boolean
(async, static) isSnappingNormalIntersection() → {boolean}
获取是否自动捕捉普通交点
- Source:
Returns:
- Type
- boolean
(async, static) isSnappingPedal() → {boolean}
获取是否自动捕捉垂点
- Source:
Returns:
- Type
- boolean
(async, static) isSnappingVertex() → {boolean}
获取是否自动捕捉顶点
- Source:
Returns:
是否自动捕捉顶点
- Type
- boolean
(async, static) isSnappingVerticalIntersection() → {boolean}
获取是否自动捕捉垂直交点
- Source:
Returns:
- Type
- boolean
(async, static) setPixelsTolerance(pixelsTolerance) → {Promise.<Void>}
设置容差(像素单位)
Parameters:
| Name | Type | Description |
|---|---|---|
pixelsTolerance |
Number | 容差 (int类型的Number) |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setSnappingHorizontalIntersection(isSnappingHorizontalIntersection) → {Promise.<Void>}
设置是否自动捕捉水平交点
Parameters:
| Name | Type | Description |
|---|---|---|
isSnappingHorizontalIntersection |
boolean | 是否自动捕捉水平交点 |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setSnappingMidVertex(isSnappingMidVertex) → {Promise.<Void>}
设置是否自动捕捉中点
Parameters:
| Name | Type | Description |
|---|---|---|
isSnappingMidVertex |
boolean |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setSnappingNormalIntersection(isSnappingNormalIntersection) → {Promise.<Void>}
设置是否自动捕捉普通交点
Parameters:
| Name | Type | Description |
|---|---|---|
isSnappingNormalIntersection |
boolean | 是否自动捕捉普通交点 |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setSnappingPedal(isSnappingPedal) → {Promise.<Void>}
设置是否自动捕捉垂点
Parameters:
| Name | Type | Description |
|---|---|---|
isSnappingPedal |
boolean | 是否自动捕捉垂点 |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setSnappingVertex(isSnappingVertex) → {Promise.<Void>}
设置是否自动捕捉顶点
Parameters:
| Name | Type | Description |
|---|---|---|
isSnappingVertex |
boolean | 是否自动捕捉顶点 |
- Source:
Returns:
- Type
- Promise.<Void>
(async, static) setSnappingVerticalIntersection(isSnappingVerticalIntersection) → {Promise.<Void>}
设置是否自动捕捉垂直交点
Parameters:
| Name | Type | Description |
|---|---|---|
isSnappingVerticalIntersection |
boolean | 是否自动捕捉垂直交点 |
- Source:
Returns:
- Type
- Promise.<Void>