From d5ee2f6d549c8825487198662b5b3c2131d80bcf Mon Sep 17 00:00:00 2001 From: mrdrogdrog Date: Tue, 13 Oct 2020 15:55:15 +0200 Subject: [PATCH] Update flowchart js (#674) --- package.json | 2 +- src/external-types/flowchart.js/index.d.ts | 13 +++++++++++++ yarn.lock | 8 ++++---- 3 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 src/external-types/flowchart.js/index.d.ts diff --git a/package.json b/package.json index b9c7d21cb..ac9b2245f 100644 --- a/package.json +++ b/package.json @@ -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.2", + "flowchart.js": "1.14.3", "fork-awesome": "1.1.7", "highlight.js": "10.2.1", "i18next": "19.8.2", diff --git a/src/external-types/flowchart.js/index.d.ts b/src/external-types/flowchart.js/index.d.ts new file mode 100644 index 000000000..34fb8d6dd --- /dev/null +++ b/src/external-types/flowchart.js/index.d.ts @@ -0,0 +1,13 @@ +declare module 'flowchart.js' { + export interface Options { + 'line-width': number, + 'fill': string, + 'font-size': string, + 'font-family': string + } + export interface ParseOutput { + clean: () => void, + drawSVG: (container: HTMLElement, options: Options) => void, + } + export function parse(code: string): ParseOutput +} diff --git a/yarn.lock b/yarn.lock index 084b3405d..f194a6d89 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6739,10 +6739,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.2: - version "1.14.2" - resolved "https://registry.yarnpkg.com/flowchart.js/-/flowchart.js-1.14.2.tgz#d9d25cd0c1acf393897e4a8ca36262368fc4d479" - integrity sha512-kKQjuXjfAOdK0IGq1Q8czgQlQtEHaafSdP3gNMRRbvm9ziiC/KCLnt61HoT2e73rqPRVhfFRzB/8CR6UNM1bZw== +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== dependencies: raphael "2.3.0"