-
-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'next' into sidv/tinyMermaid
* next: chore: Move SVG import to comment. build docs Remove whitespace on empty line chore: Fix minify Documentation for #2509 Update all minor dependencies Update all patch dependencies make more `RectData` required and remove optional assignment use lineBreakRegex in `svgDrawCommon` fix svgDrawCommon import by adding `.js` add types to `svgDrawCommon.ts` convert `svgDrawCommon` to TS
- Loading branch information
Showing
17 changed files
with
3,757 additions
and
2,991 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
"version": "10.2.4", | ||
"description": "Markdownish syntax for generating flowcharts, sequence diagrams, class diagrams, gantt charts and git graphs.", | ||
"type": "module", | ||
"packageManager": "[email protected].11", | ||
"packageManager": "[email protected].12", | ||
"keywords": [ | ||
"diagram", | ||
"markdown", | ||
|
@@ -78,9 +78,9 @@ | |
"@types/rollup-plugin-visualizer": "^4.2.1", | ||
"@typescript-eslint/eslint-plugin": "^5.59.0", | ||
"@typescript-eslint/parser": "^5.59.0", | ||
"@vitest/coverage-v8": "^0.33.0", | ||
"@vitest/spy": "^0.33.0", | ||
"@vitest/ui": "^0.33.0", | ||
"@vitest/coverage-v8": "^0.34.0", | ||
"@vitest/spy": "^0.34.0", | ||
"@vitest/ui": "^0.34.0", | ||
"ajv": "^8.12.0", | ||
"chokidar": "^3.5.3", | ||
"concurrently": "^8.0.1", | ||
|
@@ -120,10 +120,10 @@ | |
"typescript": "^5.1.3", | ||
"vite": "^4.3.9", | ||
"vite-plugin-istanbul": "^4.1.0", | ||
"vitest": "^0.33.0" | ||
"vitest": "^0.34.0" | ||
}, | ||
"volta": { | ||
"node": "18.17.0" | ||
"node": "18.17.1" | ||
}, | ||
"nyc": { | ||
"report-dir": "coverage/cypress" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
export interface RectData { | ||
x: number; | ||
y: number; | ||
fill: string; | ||
width: number; | ||
height: number; | ||
stroke: string; | ||
class?: string; | ||
color?: string; | ||
rx?: number; | ||
ry?: number; | ||
attrs?: Record<string, string | number>; | ||
anchor?: string; | ||
} | ||
|
||
export interface Bound { | ||
startx: number; | ||
stopx: number; | ||
starty: number; | ||
stopy: number; | ||
fill: string; | ||
stroke: string; | ||
} | ||
|
||
export interface TextData { | ||
x: number; | ||
y: number; | ||
anchor: string; | ||
text: string; | ||
textMargin: number; | ||
class?: string; | ||
} | ||
|
||
export interface TextObject { | ||
x: number; | ||
y: number; | ||
width: number; | ||
height: number; | ||
fill?: string; | ||
anchor?: string; | ||
'text-anchor': string; | ||
style: string; | ||
textMargin: number; | ||
rx: number; | ||
ry: number; | ||
tspan: boolean; | ||
valign?: string; | ||
} | ||
|
||
export type D3RectElement = d3.Selection<SVGRectElement, unknown, Element | null, unknown>; | ||
|
||
export type D3UseElement = d3.Selection<SVGUseElement, unknown, Element | null, unknown>; | ||
|
||
export type D3ImageElement = d3.Selection<SVGImageElement, unknown, Element | null, unknown>; | ||
|
||
export type D3TextElement = d3.Selection<SVGTextElement, unknown, Element | null, unknown>; | ||
|
||
export type D3TSpanElement = d3.Selection<SVGTSpanElement, unknown, Element | null, unknown>; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.