From 10a7a2ec01f030174cdf4c6ae0dda4a2c6003fb8 Mon Sep 17 00:00:00 2001 From: Paulo Santos Date: Mon, 8 Aug 2022 16:03:02 -0300 Subject: [PATCH] ommits hidden connectors from the diagram --- CHANGELOG.md | 4 ++++ README.md | 6 +++--- package-lock.json | 4 ++-- package.json | 2 +- src/helpers/ConnectorBuilder.ts | 2 ++ 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6139d0f..f21ef01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.8.3] - 2022-08-08 +### Change +- Hidden connectors are now ommited from the diagram + ## [0.8.2] - 2022-08-08 ### Fix - Selecting workspace diagrams shows bookmark JSON diff --git a/README.md b/README.md index d99361e..1e084d8 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ ![GitHub all releases](https://img.shields.io/github/downloads/fazendadosoftware/archimate-mxgraph-mapper/total) ## Binaries -* [Windows](https://github.com/fazendadosoftware/archimate-mxgraph-mapper/releases/download/v0.8.2/Archimate-MXGraph-Mapper-Setup-0.8.2.exe) -* [Mac](https://github.com/fazendadosoftware/archimate-mxgraph-mapper/releases/download/v0.8.2/Archimate-MXGraph-Mapper-0.8.2.dmg) -* [Linux](https://github.com/fazendadosoftware/archimate-mxgraph-mapper/releases/download/v0.8.2/Archimate-MXGraph-Mapper-0.8.2.AppImage) +* [Windows](https://github.com/fazendadosoftware/archimate-mxgraph-mapper/releases/download/v0.8.3/Archimate-MXGraph-Mapper-Setup-0.8.3.exe) +* [Mac](https://github.com/fazendadosoftware/archimate-mxgraph-mapper/releases/download/v0.8.3/Archimate-MXGraph-Mapper-0.8.3.dmg) +* [Linux](https://github.com/fazendadosoftware/archimate-mxgraph-mapper/releases/download/v0.8.2/Archimate-MXGraph-Mapper-0.8.3.AppImage) # Scripts diff --git a/package-lock.json b/package-lock.json index 88fb966..753a0de 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "archimate-mxgraph-mapper", - "version": "0.7.1", + "version": "0.8.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "archimate-mxgraph-mapper", - "version": "0.7.1", + "version": "0.8.2", "dependencies": { "@headlessui/vue": "^1.5.0", "bottleneck": "^2.19.5", diff --git a/package.json b/package.json index c29a61b..41ef528 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "archimate-mxgraph-mapper", "author": "LeanIX GmbH", - "version": "0.8.2", + "version": "0.8.3", "private": true, "main": "electron/electron.js", "repository": { diff --git a/src/helpers/ConnectorBuilder.ts b/src/helpers/ConnectorBuilder.ts index 072331d..2650f74 100644 --- a/src/helpers/ConnectorBuilder.ts +++ b/src/helpers/ConnectorBuilder.ts @@ -150,6 +150,8 @@ export class ConnectorBuilder { getConnectorStyle (connector: Connector) { const isHidden = connector?.styleParams?.Hidden === '1' + // hidden connectors are now ommited from diagram + if (isHidden) return null const connectorStyleParams = getConnectorStyleParams(connector) if (isHidden || connector.targetIsOwnedBehaviorOfSource) connectorStyleParams.strokeColor = 'none'