Skip to content

Commit

Permalink
#2765 - refactor import statements for sGroupAttachmentPoint
Browse files Browse the repository at this point in the history
  • Loading branch information
kaluginserg committed Jul 14, 2023
1 parent 5a16d11 commit acc7ae2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BaseOperation } from '../base';
import { OperationType } from '../OperationType';
import { ReStruct } from '../../../render';
import { SGroupAttachmentPoint } from 'domain/entities/sGroupAttachmentPoint';
import { SGroupAttachmentPoint } from 'domain/entities';
import assert from 'assert';

type Data = {
Expand Down
1 change: 1 addition & 0 deletions packages/ketcher-core/src/domain/entities/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ export * from './vec2';
export * from './box2Abs';
export * from './pool';
export * from './highlight';
export * from './sGroupAttachmentPoint';
3 changes: 1 addition & 2 deletions packages/ketcher-core/src/domain/entities/sgroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ import { Struct } from './struct';
import { SaltsAndSolventsProvider } from '../helpers';
import { Vec2 } from './vec2';
import { ReStruct } from '../../application/render';
import { Pool } from 'domain/entities/pool';
import { Pool, SGroupAttachmentPoint } from 'domain/entities';
import { ReSGroup } from 'application/render';
import { SgContexts } from 'application/editor/shared/constants';
import { SGroupAttachmentPoint } from 'domain/entities/sGroupAttachmentPoint';
import assert from 'assert';

export class SGroupBracketParams {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@
* limitations under the License.
***************************************************************************/

import { Atom, Bond, SGroup, Struct } from 'domain/entities';
import {
Atom,
Bond,
SGroup,
Struct,
SGroupAttachmentPoint,
} from 'domain/entities';

import { Elements } from 'domain/constants';
import { ifDef } from 'utilities';
import { SGroupAttachmentPoint } from 'domain/entities/sGroupAttachmentPoint';
import { mergeFragmentsToStruct } from './mergeFragmentsToStruct';

export function toRlabel(values) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
* limitations under the License.
***************************************************************************/

import { SGroup, Struct } from 'domain/entities';
import { SGroup, Struct, SGroupAttachmentPoint } from 'domain/entities';

import { ifDef } from 'utilities';
import { SGroupAttachmentPoint } from 'domain/entities/sGroupAttachmentPoint';

function fromRlabel(rg) {
const res: Array<any> = [];
Expand Down
3 changes: 1 addition & 2 deletions packages/ketcher-core/src/domain/serializers/mol/molfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@
* limitations under the License.
***************************************************************************/

import { StereoFlag, Struct } from 'domain/entities';
import { StereoFlag, Struct, SGroupAttachmentPoint } from 'domain/entities';

import { Elements } from 'domain/constants';
import common from './common';
import utils from './utils';
import { SGroupAttachmentPoint } from 'domain/entities/sGroupAttachmentPoint';

const END_V2000 = '2D 1 1.00000 0.00000 0';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
* limitations under the License.
***************************************************************************/

import { Pool, SGroup, Vec2 } from 'domain/entities';
import { Pool, SGroup, Vec2, SGroupAttachmentPoint } from 'domain/entities';

import utils from './utils';
import { SGroupAttachmentPoint } from 'domain/entities/sGroupAttachmentPoint';
import assert from 'assert';

/**
Expand Down

0 comments on commit acc7ae2

Please sign in to comment.