Skip to content

Commit

Permalink
#2595 - feat: add a layer for bondSkeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Iogsotot committed Jul 10, 2023
1 parent f710b5c commit 9edc2fc
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
21 changes: 15 additions & 6 deletions packages/ketcher-core/docs/enums/LayerMap.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ limitations under the License.
- [background](LayerMap.md#background)
- [selectionPlate](LayerMap.md#selectionplate)
- [hovering](LayerMap.md#hovering)
- [bondSkeleton](LayerMap.md#bondSkeleton)
- [atom](LayerMap.md#atom)
- [warnings](LayerMap.md#warnings)
- [data](LayerMap.md#data)
Expand All @@ -47,7 +48,7 @@ ___

#### Defined in

[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:27](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L27)
[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:28](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L28)

___

Expand All @@ -67,7 +68,7 @@ ___

#### Defined in

[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:29](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L29)
[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:30](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L30)

___

Expand All @@ -77,7 +78,7 @@ ___

#### Defined in

[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:29](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L29)
[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:23](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L23)

___

Expand All @@ -87,20 +88,28 @@ ___

#### Defined in

[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:26](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L26)
[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:27](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L27)

### atom

**atom**

#### Defined in

[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:25](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L25)
[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:26](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L26)

### additionalInfo

**additionalInfo**

#### Defined in

[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:28](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L28)
[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:29](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L29)

### bondSkeleton

**bondSkeleton**

#### Defined in

[packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts:25](https://github.com/epam/ketcher/blob/bf065756/packages/ketcher-core/src/application/render/restruct/generalEnumTypes.ts#L25)
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export enum LayerMap {
background = 'background',
selectionPlate = 'selectionPlate',
hovering = 'hovering',
bondSkeleton = 'bondSkeleton',
atom = 'atom',
warnings = 'warnings',
data = 'data',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,13 @@ class ReBond extends ReObject {
this.path = getBondPath(restruct, this, hb1, hb2)
this.rbb = util.relBox(this.path.getBBox())
// add layer for bond's skeleton:
restruct.addReObjectPath(LayerMap.data, this.visel, this.path, null, true)
restruct.addReObjectPath(
LayerMap.bondSkeleton,
this.visel,
this.path,
null,
true
)
const reactingCenter: any = {}
reactingCenter.path = getReactingCenterPath(render, this, hb1, hb2)
if (reactingCenter.path) {
Expand Down

0 comments on commit 9edc2fc

Please sign in to comment.