mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-14 11:39:40 +02:00
fix: organize imports and remove render.d.ts file
on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
This commit is contained in:
19
packages/mermaid-layout-elk/src/render.d.ts
vendored
19
packages/mermaid-layout-elk/src/render.d.ts
vendored
@@ -1,19 +0,0 @@
|
|||||||
import type { InternalHelpers, LayoutData, RenderOptions, SVG } from 'mermaid';
|
|
||||||
export declare const render: (
|
|
||||||
data4Layout: LayoutData,
|
|
||||||
svg: SVG,
|
|
||||||
{
|
|
||||||
common,
|
|
||||||
getConfig,
|
|
||||||
insertCluster,
|
|
||||||
insertEdge,
|
|
||||||
insertEdgeLabel,
|
|
||||||
insertMarkers,
|
|
||||||
insertNode,
|
|
||||||
interpolateToCurve,
|
|
||||||
labelHelper,
|
|
||||||
log,
|
|
||||||
positionEdgeLabel,
|
|
||||||
}: InternalHelpers,
|
|
||||||
{ algorithm }: RenderOptions
|
|
||||||
) => Promise<void>;
|
|
@@ -1,12 +1,11 @@
|
|||||||
import { log } from '../../../logger.js';
|
|
||||||
import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js';
|
|
||||||
import intersect from '../intersect/index.js';
|
|
||||||
import type { Node } from '../../types.js';
|
|
||||||
import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js';
|
|
||||||
import rough from 'roughjs';
|
import rough from 'roughjs';
|
||||||
import type { D3Selection } from '../../../types.js';
|
import { log } from '../../../logger.js';
|
||||||
|
import type { Bounds, D3Selection, Point } from '../../../types.js';
|
||||||
import { handleUndefinedAttr } from '../../../utils.js';
|
import { handleUndefinedAttr } from '../../../utils.js';
|
||||||
import type { Bounds, Point } from '../../../types.js';
|
import type { Node } from '../../types.js';
|
||||||
|
import intersect from '../intersect/index.js';
|
||||||
|
import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js';
|
||||||
|
import { getNodeClasses, labelHelper, updateNodeBounds } from './util.js';
|
||||||
|
|
||||||
export async function circle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node) {
|
export async function circle<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node) {
|
||||||
const { labelStyles, nodeStyles } = styles2String(node);
|
const { labelStyles, nodeStyles } = styles2String(node);
|
||||||
|
@@ -1,12 +1,11 @@
|
|||||||
import { log } from '../../../logger.js';
|
|
||||||
import { labelHelper, updateNodeBounds, getNodeClasses } from './util.js';
|
|
||||||
import intersect from '../intersect/index.js';
|
|
||||||
import type { Node } from '../../types.js';
|
|
||||||
import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js';
|
|
||||||
import rough from 'roughjs';
|
import rough from 'roughjs';
|
||||||
import type { D3Selection } from '../../../types.js';
|
import { log } from '../../../logger.js';
|
||||||
|
import type { Bounds, D3Selection, Point } from '../../../types.js';
|
||||||
import { handleUndefinedAttr } from '../../../utils.js';
|
import { handleUndefinedAttr } from '../../../utils.js';
|
||||||
import type { Bounds, Point } from '../../../types.js';
|
import type { Node } from '../../types.js';
|
||||||
|
import intersect from '../intersect/index.js';
|
||||||
|
import { styles2String, userNodeOverrides } from './handDrawnShapeStyles.js';
|
||||||
|
import { getNodeClasses, labelHelper, updateNodeBounds } from './util.js';
|
||||||
|
|
||||||
export async function cloud<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node) {
|
export async function cloud<T extends SVGGraphicsElement>(parent: D3Selection<T>, node: Node) {
|
||||||
const { labelStyles, nodeStyles } = styles2String(node);
|
const { labelStyles, nodeStyles } = styles2String(node);
|
||||||
|
Reference in New Issue
Block a user