ketcher-core
Version:
Web-based molecule sketcher
53 lines (52 loc) • 2.46 kB
TypeScript
/****************************************************************************
* Copyright 2021 EPAM Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
***************************************************************************/
import { Point, Vec2 } from './vec2';
import { BaseMicromoleculeEntity, initiallySelectedType } from "./BaseMicromoleculeEntity";
export declare enum RxnArrowMode {
OpenAngle = "open-angle",
FilledTriangle = "filled-triangle",
FilledBow = "filled-bow",
DashedOpenAngle = "dashed-open-angle",
Failed = "failed",
Retrosynthetic = "retrosynthetic",
BothEndsFilledTriangle = "both-ends-filled-triangle",
EquilibriumFilledTriangle = "equilibrium-filled-triangle",
EquilibriumFilledHalfBow = "equilibrium-filled-half-bow",
EquilibriumOpenAngle = "equilibrium-open-angle",
UnbalancedEquilibriumFilledHalfBow = "unbalanced-equilibrium-filled-half-bow",
UnbalancedEquilibriumOpenHalfAngle = "unbalanced-equilibrium-open-half-angle",
UnbalancedEquilibriumLargeFilledHalfBow = "unbalanced-equilibrium-large-filled-half-bow",
UnbalancedEquilibriumFilledHalfTriangle = "unbalanced-equilibrium-filled-half-triangle",
EllipticalArcFilledBow = "elliptical-arc-arrow-filled-bow",
EllipticalArcFilledTriangle = "elliptical-arc-arrow-filled-triangle",
EllipticalArcOpenAngle = "elliptical-arc-arrow-open-angle",
EllipticalArcOpenHalfAngle = "elliptical-arc-arrow-open-half-angle"
}
export interface RxnArrowAttributes {
mode: RxnArrowMode;
pos?: Array<Point>;
height?: number;
initiallySelected?: initiallySelectedType;
}
export declare class RxnArrow extends BaseMicromoleculeEntity {
mode: RxnArrowMode;
pos: Array<Vec2>;
height?: number;
static isElliptical(arrow: any): boolean;
constructor(attributes: RxnArrowAttributes);
clone(): RxnArrow;
center(): Vec2;
}