New-HTMLDiagram
Creates a new HTML diagram with customizable options.
Syntax
New-HTMLDiagram
[[-BackGroundImage] <Uri>]
[[-BackgroundSize] <String>]
[-BundleImages]
[[-Diagram] <ScriptBlock>]
[-DisableLoader]
[-EnableFiltering]
[-EnableFilteringButton]
[[-Height] <Object>]
[[-MinimumFilteringChars] <Int32>]
[-NoAutoResize]
[[-Width] <Object>]
[<CommonParameters>]#All Parameter SetsDescription
This function creates a new HTML diagram with customizable options such as diagram data, height, width, image bundling, background image, background size, auto-resize, loading bar, filtering, and more.
Examples
Example 1
New-HTMLDiagram -Diagram {
// Diagram configuration settings here
} -Height 500 -Width 800 -BundleImages -BackGroundImage 'https://example.com/background.jpg' -BackgroundSize 'cover' -DisableLoader -EnableFiltering -MinimumFilteringChars 2 -EnableFilteringButtonCreates a new HTML diagram with custom configuration settings including height, width, bundled images, background image, disabled loading bar, enabled filtering, and a filtering button.
Example 2
New-HTMLDiagram -Diagram {
// More diagram configuration settings
} -Height 600 -Width 1000Creates a new HTML diagram with additional configuration settings and default options for height and width.
Parameters
- -BackGroundImage Uri
- Specifies the background image for the diagram.
- -BackgroundSize String
- Specifies the size of the background image. Default is '100% 100%'.
- -BundleImages SwitchParameter
- Indicates whether to bundle images used in the diagram.
- -Diagram ScriptBlock
- Specifies the diagram data to be displayed. This should be a ScriptBlock containing the diagram configuration.
- -DisableLoader SwitchParameter
- Indicates whether the loading bar should be disabled.
- -EnableFiltering SwitchParameter
- Indicates whether filtering functionality is enabled.
- Indicates whether a filtering button should be displayed.
- -Height Object
- Specifies the height of the diagram.
- -MinimumFilteringChars Int32
- Specifies the minimum number of characters required for filtering.
- -NoAutoResize SwitchParameter
- Indicates whether auto-resize functionality is disabled.
- -Width Object
- Specifies the width of the diagram.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.