Skip to content

Add-DiaInvertedLShapeLine

SYNOPSIS

Adds an inverted L-shaped line to a diagram, connecting three nodes with customizable styles and attributes.

Text Only
        (InvertedLShapeUp)  o___o (InvertedLShapeRight)
Example:                    |
                            o
                    (InvertedLShapeDown)

SYNTAX

__AllParameterSets

Text Only
Add-DiaInvertedLShapeLine [[-InvertedLShapeUp] <string>] [[-InvertedLShapeDown] <string>]
 [[-InvertedLShapeRight] <string>] [[-Arrowtail] <string>] [[-Arrowhead] <string>]
 [[-LineStyle] <string>] [[-LineWidth] <int>] [[-InvertedLShapeUpLineLength] <int>]
 [[-InvertedLShapeRightLineLength] <int>] [[-LineColor] <string>] [[-IconDebug] <bool>]
 [<CommonParameters>]

ALIASES

This cmdlet has the following aliases,

  • None

DESCRIPTION

The Add-DiaInvertedLShapeLine function creates an inverted L-shaped connector in a diagram by linking three nodes:

  • The "Up" node (vertical start)
  • The "Down" node (vertical end)
  • The "Right" node (horizontal branch)

The function allows customization of arrow styles, line styles, widths, colors, and node appearance. It is useful for visually representing relationships or flows in diagrams where an inverted L-shape is needed.

EXAMPLES

EXAMPLE 1

PowerShell
# Creates an inverted L-shaped line from NodeA down to NodeB and right to NodeC, with a normal arrowhead, dashed blue line.

Add-DiaInvertedLShapeLine -InvertedLShapeUp "NodeA" -InvertedLShapeDown "NodeB" -InvertedLShapeRight "NodeC" -Arrowhead "normal" -LineStyle "dashed" -LineColor "blue"

Example

PARAMETERS

-Arrowhead

The arrow style at the end of the line (head). Accepts various Graphviz arrow styles.

YAML
Type: System.String
DefaultValue: none
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 4
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Arrowtail

The arrow style at the start of the line (tail). Accepts various Graphviz arrow styles.

YAML
Type: System.String
DefaultValue: none
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 3
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-IconDebug

If set to $true, enables debug mode for icons, highlighting the nodes and lines in red for easier visualization.

YAML
Type: System.Boolean
DefaultValue: False
SupportsWildcards: false
Aliases:
- DraftMode
ParameterSets:
- Name: (All)
  Position: 10
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-InvertedLShapeDown

The name of the ending node at the bottom of the inverted L-shape (vertical segment).

YAML
Type: System.String
DefaultValue: InvertedLShapeDown
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 1
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-InvertedLShapeRight

The name of the node at the right end of the horizontal segment of the inverted L-shape.

YAML
Type: System.String
DefaultValue: InvertedLShapeRight
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 2
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-InvertedLShapeRightLineLength

The minimum length of the horizontal segment (from Up to Right), from 1 to 10.

YAML
Type: System.Int32
DefaultValue: 1
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 8
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-InvertedLShapeUp

The name of the starting node at the top of the inverted L-shape (vertical segment).

YAML
Type: System.String
DefaultValue: InvertedLShapeUp
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-InvertedLShapeUpLineLength

The minimum length of the vertical segment (from Up to Down), from 1 to 10.

YAML
Type: System.Int32
DefaultValue: 1
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 7
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-LineColor

The color of the line. Accepts any color supported by Graphviz (see https://graphviz.org/doc/info/colors.html).

YAML
Type: System.String
DefaultValue: black
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 9
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-LineStyle

The style of the line connecting the nodes (e.g., solid, dashed, dotted, bold, etc.).

YAML
Type: System.String
DefaultValue: solid
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 5
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-LineWidth

The width of the line (penwidth), from 1 to 10.

YAML
Type: System.Int32
DefaultValue: 1
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 6
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.String

A string that can be used as a Graphviz node label.

NOTES

Text Only
Author: Jonathan Colon
Version: 0.2.31
GitHub: https://github.com/rebelinux/Diagrammer.Core