From 125734228e7f163a38eb8b0874c857d052abfd6b Mon Sep 17 00:00:00 2001 From: "TIEKINETIX\\Hans.Petersen" Date: Thu, 11 May 2023 16:41:09 +0200 Subject: [PATCH] Add linkStyle for flowchart on current connection --- .../src/diagrams/flowchart/parser/flow.jison | 2 + pnpm-lock.yaml | 52 ------------------- 2 files changed, 2 insertions(+), 52 deletions(-) diff --git a/packages/mermaid/src/diagrams/flowchart/parser/flow.jison b/packages/mermaid/src/diagrams/flowchart/parser/flow.jison index 51427118f7..736c43c230 100644 --- a/packages/mermaid/src/diagrams/flowchart/parser/flow.jison +++ b/packages/mermaid/src/diagrams/flowchart/parser/flow.jison @@ -494,6 +494,8 @@ styleStatement:STYLE SPACE alphaNum SPACE stylesOpt linkStyleStatement : LINKSTYLE SPACE DEFAULT SPACE stylesOpt {$$ = $1;yy.updateLink([$3],$5);} + | LINKSTYLE SPACE MINUS SPACE stylesOpt + {$$ = $1;yy.updateLink([yy.getEdges().length-1],$5);} | LINKSTYLE SPACE numList SPACE stylesOpt {$$ = $1;yy.updateLink($3,$5);} | LINKSTYLE SPACE DEFAULT SPACE INTERPOLATE SPACE alphaNum SPACE stylesOpt diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d69718ef87..272edca6a3 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -425,58 +425,6 @@ importers: specifier: ^6.5.4 version: 6.5.4 - packages/mermaid/src/vitepress: - dependencies: - '@vueuse/core': - specifier: ^10.1.0 - version: 10.1.0(vue@3.2.47) - jiti: - specifier: ^1.18.2 - version: 1.18.2 - vue: - specifier: ^3.2.47 - version: 3.2.47 - devDependencies: - '@iconify-json/carbon': - specifier: ^1.1.16 - version: 1.1.16 - '@unocss/reset': - specifier: ^0.51.8 - version: 0.51.8 - '@vite-pwa/vitepress': - specifier: ^0.0.5 - version: 0.0.5(vite-plugin-pwa@0.14.7) - '@vitejs/plugin-vue': - specifier: ^4.2.1 - version: 4.2.1(vite@4.3.3)(vue@3.2.47) - fast-glob: - specifier: ^3.2.12 - version: 3.2.12 - https-localhost: - specifier: ^4.7.1 - version: 4.7.1 - pathe: - specifier: ^1.1.0 - version: 1.1.0 - unocss: - specifier: ^0.51.8 - version: 0.51.8(postcss@8.4.23)(rollup@2.79.1)(vite@4.3.3) - unplugin-vue-components: - specifier: ^0.24.1 - version: 0.24.1(rollup@2.79.1)(vue@3.2.47) - vite: - specifier: ^4.3.3 - version: 4.3.3(@types/node@18.16.0) - vite-plugin-pwa: - specifier: ^0.14.7 - version: 0.14.7(vite@4.3.3)(workbox-build@6.5.4)(workbox-window@6.5.4) - vitepress: - specifier: 1.0.0-alpha.74 - version: 1.0.0-alpha.74(@algolia/client-search@4.14.2)(@types/node@18.16.0) - workbox-window: - specifier: ^6.5.4 - version: 6.5.4 - tests/webpack: dependencies: '@mermaid-js/mermaid-example-diagram':