mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-20 02:05:21 -04:00
Added flowchart diagrams (#510)
Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: mrdrogdrog <mr.drogdrog@gmail.com> Co-authored-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
d482065d72
commit
33648f1645
8 changed files with 118 additions and 0 deletions
13
src/external-types/flowchart.js/index.d.ts
vendored
Normal file
13
src/external-types/flowchart.js/index.d.ts
vendored
Normal file
|
@ -0,0 +1,13 @@
|
|||
declare module 'flowchart.js' {
|
||||
type Options = {
|
||||
'line-width': number,
|
||||
'fill': string,
|
||||
'font-size': string,
|
||||
'font-family': string
|
||||
}
|
||||
type ParseOutput = {
|
||||
clean: () => void,
|
||||
drawSVG: (container: HTMLElement, options: Options) => void,
|
||||
}
|
||||
export const parse: (code: string) => ParseOutput
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue