From 273f87c2d38ffff920fe945a7abd185a2624db27 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf <65733509+phanlezz@users.noreply.github.com> Date: Mon, 3 Jun 2024 14:56:28 +0200 Subject: [PATCH] Add "Add remove logo button" from @BenediktMehl --- .../codeCharta/services/3DExports/preview3DPrintMesh.ts | 4 ++++ .../export3DMapDialog/export3DMapDialog.component.html | 6 +++++- .../export3DMapDialog/export3DMapDialog.component.ts | 9 +++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/visualization/app/codeCharta/services/3DExports/preview3DPrintMesh.ts b/visualization/app/codeCharta/services/3DExports/preview3DPrintMesh.ts index 4e2c370563..91cbf46662 100644 --- a/visualization/app/codeCharta/services/3DExports/preview3DPrintMesh.ts +++ b/visualization/app/codeCharta/services/3DExports/preview3DPrintMesh.ts @@ -222,6 +222,10 @@ export class Preview3DPrintMesh { this.customLogoMesh.rotateY(Math.PI) // Rotate 180 degrees } + removeCustomLogo() { + this.printMesh.remove(this.customLogoMesh) + } + updateCustomLogoColor(newColor: string) { if (this.customLogoMesh.material instanceof MeshBasicMaterial) { this.customLogoMesh.material.color.set(newColor) diff --git a/visualization/app/codeCharta/ui/export3DMapButton/export3DMapDialog/export3DMapDialog.component.html b/visualization/app/codeCharta/ui/export3DMapButton/export3DMapDialog/export3DMapDialog.component.html index 898e05b7f6..a49678e799 100644 --- a/visualization/app/codeCharta/ui/export3DMapButton/export3DMapDialog/export3DMapDialog.component.html +++ b/visualization/app/codeCharta/ui/export3DMapButton/export3DMapDialog/export3DMapDialog.component.html @@ -43,7 +43,11 @@ Bottom left logo (SVG): - + + +