Skip to content
This repository has been archived by the owner on Sep 5, 2022. It is now read-only.

Commit

Permalink
ommits hidden connectors from the diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
psantos9 committed Aug 8, 2022
1 parent 52efa02 commit 10a7a2e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 2 additions & 0 deletions src/helpers/ConnectorBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 10a7a2e

Please sign in to comment.