mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 06:49:47 +02:00
Updated all ts imports to js
This commit is contained in:
@@ -2,7 +2,7 @@ import type { LayoutData } from '../../types.ts';
|
|||||||
import type { D3Selection } from '../../../types.ts';
|
import type { D3Selection } from '../../../types.ts';
|
||||||
import { insertCluster } from '../../rendering-elements/clusters.js';
|
import { insertCluster } from '../../rendering-elements/clusters.js';
|
||||||
import { insertEdge } from '../../rendering-elements/edges.js';
|
import { insertEdge } from '../../rendering-elements/edges.js';
|
||||||
import { positionNode } from '../../rendering-elements/nodes.ts';
|
import { positionNode } from '../../rendering-elements/nodes.js';
|
||||||
|
|
||||||
export async function adjustLayout(
|
export async function adjustLayout(
|
||||||
data4Layout: LayoutData,
|
data4Layout: LayoutData,
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
import { FlowDB } from '../../../diagrams/flowchart/flowDb.ts';
|
import { FlowDB } from '../../../diagrams/flowchart/flowDb.js';
|
||||||
import flow from '../../../diagrams/flowchart/parser/flowParser.ts';
|
import flow from '../../../diagrams/flowchart/parser/flowParser.js';
|
||||||
import type { D3Selection } from '../../../types.ts';
|
import type { D3Selection } from '../../../types.ts';
|
||||||
import { createGraphWithElements } from '../../createGraph.ts';
|
import { createGraphWithElements } from '../../createGraph.js';
|
||||||
import type { Node } from '../../types.ts';
|
import type { Node } from '../../types.ts';
|
||||||
import { assignInitialPositions } from './assignInitialPositions.ts';
|
import { assignInitialPositions } from './assignInitialPositions.js';
|
||||||
import { layerAssignment } from './layerAssignment.ts';
|
import { layerAssignment } from './layerAssignment.js';
|
||||||
import { assignNodeOrder } from './nodeOrdering.ts';
|
import { assignNodeOrder } from './nodeOrdering.js';
|
||||||
import * as d3 from 'd3';
|
import * as d3 from 'd3';
|
||||||
|
|
||||||
describe('assignInitialPositioning', () => {
|
describe('assignInitialPositioning', () => {
|
||||||
|
@@ -1,17 +1,17 @@
|
|||||||
import insertMarkers from '../../rendering-elements/markers.js';
|
import insertMarkers from '../../rendering-elements/markers.js';
|
||||||
import { clear as clearGraphlib } from '../dagre/mermaid-graphlib.js';
|
import { clear as clearGraphlib } from '../dagre/mermaid-graphlib.js';
|
||||||
import { clear as clearNodes } from '../../rendering-elements/nodes.ts';
|
import { clear as clearNodes } from '../../rendering-elements/nodes.js';
|
||||||
import { clear as clearClusters } from '../../rendering-elements/clusters.js';
|
import { clear as clearClusters } from '../../rendering-elements/clusters.js';
|
||||||
import { clear as clearEdges } from '../../rendering-elements/edges.js';
|
import { clear as clearEdges } from '../../rendering-elements/edges.js';
|
||||||
import type { LayoutData, Node } from '../../types.ts';
|
import type { LayoutData, Node } from '../../types.ts';
|
||||||
import { adjustLayout } from './adjustLayout.ts';
|
|
||||||
import { layerAssignment } from './layerAssignment.ts';
|
|
||||||
import { assignNodeOrder } from './nodeOrdering.ts';
|
|
||||||
import { assignInitialPositions } from './assignInitialPositions.ts';
|
|
||||||
import { applyCola } from './applyCola.ts';
|
|
||||||
import { createGraphWithElements } from '../../createGraph.ts';
|
|
||||||
import type { D3Selection } from '../../../types.ts';
|
import type { D3Selection } from '../../../types.ts';
|
||||||
import type { SVG } from '../../../mermaid.ts';
|
import type { SVG } from '../../../mermaid.ts';
|
||||||
|
import { adjustLayout } from './adjustLayout.js';
|
||||||
|
import { createGraphWithElements } from '../../createGraph.js';
|
||||||
|
import { layerAssignment } from './layerAssignment.js';
|
||||||
|
import { assignNodeOrder } from './nodeOrdering.js';
|
||||||
|
import { assignInitialPositions } from './assignInitialPositions.js';
|
||||||
|
import { applyCola } from './applyCola.js';
|
||||||
|
|
||||||
export async function render(data4Layout: LayoutData, svg: SVG): Promise<void> {
|
export async function render(data4Layout: LayoutData, svg: SVG): Promise<void> {
|
||||||
const element = svg.select('g') as unknown as D3Selection<SVGElement>;
|
const element = svg.select('g') as unknown as D3Selection<SVGElement>;
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
import * as d3 from 'd3';
|
import * as d3 from 'd3';
|
||||||
import { FlowDB } from '../../../diagrams/flowchart/flowDb.ts';
|
import { FlowDB } from '../../../diagrams/flowchart/flowDb.js';
|
||||||
import flow from '../../../diagrams/flowchart/parser/flowParser.ts';
|
import flow from '../../../diagrams/flowchart/parser/flowParser.js';
|
||||||
import { createGraphWithElements } from '../../createGraph.ts';
|
|
||||||
import { layerAssignment } from './layerAssignment.ts';
|
|
||||||
import type { D3Selection } from '../../../types.ts';
|
import type { D3Selection } from '../../../types.ts';
|
||||||
import type { Node } from '../../types.ts';
|
import type { Node } from '../../types.ts';
|
||||||
|
import { createGraphWithElements } from '../../createGraph.js';
|
||||||
|
import { layerAssignment } from './layerAssignment.js';
|
||||||
|
|
||||||
describe('layerAssignment', () => {
|
describe('layerAssignment', () => {
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
|
@@ -1,11 +1,11 @@
|
|||||||
import { FlowDB } from '../../../diagrams/flowchart/flowDb.ts';
|
import { FlowDB } from '../../../diagrams/flowchart/flowDb.js';
|
||||||
import flow from '../../../diagrams/flowchart/parser/flowParser.ts';
|
import flow from '../../../diagrams/flowchart/parser/flowParser.js';
|
||||||
import type { D3Selection } from '../../../types.ts';
|
import type { D3Selection } from '../../../types.ts';
|
||||||
import { createGraphWithElements } from '../../createGraph.ts';
|
import { createGraphWithElements } from '../../createGraph.js';
|
||||||
import type { Node } from '../../types.ts';
|
import type { Node } from '../../types.ts';
|
||||||
import { layerAssignment } from './layerAssignment.ts';
|
|
||||||
import { assignNodeOrder } from './nodeOrdering.ts';
|
|
||||||
import * as d3 from 'd3';
|
import * as d3 from 'd3';
|
||||||
|
import { layerAssignment } from './layerAssignment.js';
|
||||||
|
import { assignNodeOrder } from './nodeOrdering.js';
|
||||||
|
|
||||||
describe('nodeOrdering', () => {
|
describe('nodeOrdering', () => {
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
|
Reference in New Issue
Block a user