iurysza / module-graph

A Gradle Plugin for visualizing your project's structure, powered by mermaidjs
https://plugins.gradle.org/plugin/dev.iurysouza.modulegraph
MIT License
345 stars 13 forks source link

Feature: orientation option #5

Closed StylianosGakis closed 1 year ago

StylianosGakis commented 1 year ago

๐Ÿš€ Description

Partly addresses #4 by adding the orientation option

๐Ÿ“„ Motivation and Context

Described in #4

๐Ÿงช How Has This Been Tested?

Run a local project with these changes. By default this changes nothing anyway, and if a different orientation is provided then the graph LR changes to graph TB and so on.

๐Ÿ“ฆ Types of changes

โœ… Checklist

iurysza commented 1 year ago

Can you please update the tests in ModuleGraphPluginFunctionalTest.kt too? Thanks for the PR!

StylianosGakis commented 1 year ago

Absolutely, I missed that one!

Added setting the orientation there, plus making sure that the output is correct. Purposefully did not use LEFT_TO_RIGHT which was the default one just to make sure that setting the orientation actually changes the output, instead of it ever accidentally passing because we're checking for the default orientation anyway.

iurysza commented 1 year ago

Cheers!