mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-02-03 08:01:28 +00:00
Update dependency flowchart.js to v1.15.0 (#680)
* Update dependency flowchart.js to v1.15.0 * Remove custom types Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> * Adjust code to new types Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de> Co-authored-by: Renovate Bot <bot@renovateapp.com> Co-authored-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
This commit is contained in:
parent
a9130aedb8
commit
8e60c1750f
4 changed files with 6 additions and 22 deletions
|
@ -51,7 +51,7 @@
|
|||
"eslint-plugin-promise": "4.2.1",
|
||||
"eslint-plugin-standard": "4.0.1",
|
||||
"fast-deep-equal": "3.1.3",
|
||||
"flowchart.js": "1.14.3",
|
||||
"flowchart.js": "1.15.0",
|
||||
"fork-awesome": "1.1.7",
|
||||
"highlight.js": "10.2.1",
|
||||
"i18next": "19.8.2",
|
||||
|
|
|
@ -27,7 +27,7 @@ export const FlowChart: React.FC<FlowChartProps> = ({ code }) => {
|
|||
parserOutput.drawSVG(currentDiagramRef, {
|
||||
'line-width': 2,
|
||||
fill: 'none',
|
||||
'font-size': '16px',
|
||||
'font-size': 16,
|
||||
'line-color': darkModeActivated ? '#ffffff' : '#000000',
|
||||
'element-color': darkModeActivated ? '#ffffff' : '#000000',
|
||||
'font-family': 'Source Code Pro, "Twemoji Mozilla", monospace'
|
||||
|
|
16
src/external-types/flowchart.js/index.d.ts
vendored
16
src/external-types/flowchart.js/index.d.ts
vendored
|
@ -1,16 +0,0 @@
|
|||
declare module 'flowchart.js' {
|
||||
export interface Options {
|
||||
'line-width': number,
|
||||
'fill': string,
|
||||
'font-size': string,
|
||||
'font-family': string,
|
||||
'font-color': string,
|
||||
'line-color': string,
|
||||
'element-color': string
|
||||
}
|
||||
export interface ParseOutput {
|
||||
clean: () => void,
|
||||
drawSVG: (container: HTMLElement, options: Partial<Options>) => void,
|
||||
}
|
||||
export function parse(code: string): ParseOutput
|
||||
}
|
|
@ -6758,10 +6758,10 @@ flatten@^1.0.2:
|
|||
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.3.tgz#c1283ac9f27b368abc1e36d1ff7b04501a30356b"
|
||||
integrity sha512-dVsPA/UwQ8+2uoFe5GHtiBMu48dWLTdsuEd7CKGlZlD78r1TTWBvDuFaFGKCo/ZfEr95Uk56vZoX86OsHkUeIg==
|
||||
|
||||
flowchart.js@1.14.3:
|
||||
version "1.14.3"
|
||||
resolved "https://registry.yarnpkg.com/flowchart.js/-/flowchart.js-1.14.3.tgz#b203df7621871eed11d0caffce931d1b6b01b300"
|
||||
integrity sha512-PluLllc7xeMoowH0xOFXpfehEpJeToSb1iMZZ8vUu5vgMC5+Ft3K6NRPZ+4Wp1pa8aJy38aiDRAHdMOqW6HG/g==
|
||||
flowchart.js@1.15.0:
|
||||
version "1.15.0"
|
||||
resolved "https://registry.yarnpkg.com/flowchart.js/-/flowchart.js-1.15.0.tgz#132ba2df14af0a65e67280026ef05a1ffd16569f"
|
||||
integrity sha512-IyCVUFfHPLPgKLynw3NCkZ7CvKJdc/bAu0aHm+2AxKhtSBCiUC1kcTX1KautC3HOp1A2JS1IOcYxDTmcMkx5nQ==
|
||||
dependencies:
|
||||
raphael "2.3.0"
|
||||
|
||||
|
|
Loading…
Reference in a new issue