import { IPointData } from "@pixi/math"; import { NodeSerializedNode } from "../../types/serialized-node"; import { EdgeState } from "./connection"; /** * * @see https://github.com/jgraph/drawio/blob/dev/src/main/webapp/mxgraph/src/util/js#L2407C2-L2461C40 * * @example * ```ts * mxStyleRegistry.putValue(EDGESTYLE_ELBOW, ElbowConnector); * mxStyleRegistry.putValue(EDGESTYLE_ENTITY_RELATION, EntityRelation); * mxStyleRegistry.putValue(EDGESTYLE_LOOP, Loop); * mxStyleRegistry.putValue(EDGESTYLE_SIDETOSIDE, SideToSide); * mxStyleRegistry.putValue(EDGESTYLE_TOPTOBOTTOM, TopToBottom); * mxStyleRegistry.putValue(EDGESTYLE_ORTHOGONAL, OrthConnector); * mxStyleRegistry.putValue(EDGESTYLE_SEGMENT, SegmentConnector); * ``` */ export declare enum EdgeStyle { /** * letiable: EDGESTYLE_ELBOW * * Name of the elbow edge style. Can be used as a string value * for the STYLE_EDGE style. */ ELBOW = "elbowEdgeStyle", /** * letiable: EDGESTYLE_ENTITY_RELATION * * Name of the entity relation edge style. Can be used as a string value * for the STYLE_EDGE style. */ ENTITY_RELATION = "entityRelationEdgeStyle", /** * letiable: EDGESTYLE_LOOP * * Name of the loop edge style. Can be used as a string value * for the STYLE_EDGE style. */ LOOP = "loopEdgeStyle", /** * letiable: EDGESTYLE_SIDETOSIDE * * Name of the side to side edge style. Can be used as a string value * for the STYLE_EDGE style. */ SIDETOSIDE = "sideToSideEdgeStyle", /** * letiable: EDGESTYLE_TOPTOBOTTOM * * Name of the top to bottom edge style. Can be used as a string value * for the STYLE_EDGE style. */ TOPTOBOTTOM = "topToBottomEdgeStyle", /** * letiable: EDGESTYLE_ORTHOGONAL * * Name of the generic orthogonal edge style. Can be used as a string value * for the STYLE_EDGE style. */ ORTHOGONAL = "orthogonalEdgeStyle", /** * letiable: EDGESTYLE_SEGMENT * * Name of the generic segment edge style. Can be used as a string value * for the STYLE_EDGE style. */ SEGMENT = "segmentEdgeStyle" } export declare function orthConnector(state: EdgeState, source: NodeSerializedNode, target: NodeSerializedNode, controlHints: IPointData[], result: IPointData[]): void;