From d4baf887f655744ab56daf64b5b854db6537a4a2 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Thu, 16 Feb 2023 13:34:55 +0100 Subject: [PATCH] fix bleaching out of uml shape text. show spinner when switching uml diagrams. fix button border --- apps/remix-ide/src/app/plugins/solidity-umlgen.tsx | 7 ++----- .../solidity-uml-gen/src/lib/css/solidity-uml-gen.css | 6 ++++++ .../solidity-uml-gen/src/lib/solidity-uml-gen.tsx | 11 +++++------ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/apps/remix-ide/src/app/plugins/solidity-umlgen.tsx b/apps/remix-ide/src/app/plugins/solidity-umlgen.tsx index ec92fc18c1..2c473a86f3 100644 --- a/apps/remix-ide/src/app/plugins/solidity-umlgen.tsx +++ b/apps/remix-ide/src/app/plugins/solidity-umlgen.tsx @@ -67,8 +67,6 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen { } onActivation(): void { - // if (this.currentFile.length < 1) - console.log('activated!!') this.on('solidity', 'compilationFinished', async (file, source, languageVersion, data, input, version) => { const currentTheme: ThemeQualityType = await this.call('theme', 'currentTheme') this.currentlySelectedTheme = currentTheme.quality @@ -82,8 +80,7 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen { const umlClasses = convertAST2UmlClasses(ast, this.currentFile) const umlDot = convertUmlClasses2Dot(umlClasses) const payload = vizRenderStringSync(umlDot) - const mangled = await this.mangleSvgPayload(payload) - this.updatedSvg = mangled + this.updatedSvg = payload this.renderComponent() await this.call('tabs', 'focus', 'solidityumlgen') } catch (error) { @@ -116,7 +113,7 @@ export class SolidityUmlGen extends ViewPlugin implements ISolidityUmlGen { } generateCustomAction = async (action: customAction) => { - console.log('calling activation') + this.updatedSvg = this.updatedSvg.startsWith('