Widgets Rectangle
Form Fields
-
X - The starting X coordinate for the widget.
-
Y - The starting Y coordinate for the widget.
-
Width - The overall width of the widget.
-
Height - The overall height of the widget.
-
Rotation - The rotation of the widget.
-
Rounded Corners - Rectangle widgets can have rounded corners instead of sharp 90 degree corners. The amount of rounding of the corners depends on the overall widget size, and a larger widget may need a larger value in this field.
-
Stroke Type - The coloring type of the border around the widget.
-
Stroke Width - The width of the border around the widget.
-
Stroke Color - If Stroke Type is set to Color, this will be the color of the border around the widget.
-
Stroke Gradient - If Stroke Type is set to Gradient, this will be the gradient color of the border around the widget.
-
Fill Type - The coloring type of the widget.
-
Fill Color - If Fill Type is set to Color, this will be the color of the widget.
-
Fill Gradient - If Fill Type is set to "Gradient", this will be the gradient color of the widget.
-
Link Type - The various actions that can occur when the widget is clicked on. Options include doing nothing, going back one page, linking to internal or external web sites, or linking to another diagram.
-
Manual (internal) - the Link URL should be a link to any OCUA UI page (this would use a virtual path, e.g.
/#device/devices
would open the Configuration -> Device Catalog -> Devices page). -
Manual (external) - the Link URL is a valid physical path on the presentation server (e.g. /tools/myScript.php), or to an external site (e.g. https://www.example.com).
-
-
Link Target - If Link Type is set to link to web sites or another diagram, the new page can be opened in the current tab, a new browser tab, or a new browser window.
-
Link URL - If Link Type is set to link to web sites, this will be the URL of the site.
-
Diagram - If Link Type is set to link to a diagram, this will be the diagram to be opened.
-
Device - If Link Type is set to link to a Dynamic Device diagram, this will be the device that will be used within the diagram.
-
Context Menu - This will be the diagram menu available when context-clicking on the widget.
Widget Properties
Token | Description |
---|---|
<WidgetID> | SVG Widget identifier |
<X> | X point of widget relative to the diagram canvas |
<Y> | Y point of widget relative to the diagram canvas |
<Width> | Width of widget in pixels |
<Height> | Height of widget in pixels |
<ScaleX> | Scaled X |
<ScaleY> | Scaled Y |
<Rotate> | Widget rotation in degrees |
<RoundedCorners> | If corners should be rounded |
<StrokeType> | Stroke type: 'Empty', 'Gradient', 'Color' |
<StrokeWidth> | Stroke width |
<StrokeColor> | Stroke color in hex notation. Only present for 'Color' stroke type |
<StrokeGradient> | Stroke gradient color in hex notation. Only present for 'Gradient' stroke type |
<FillType> | Fill type: 'Empty', 'Gradient', 'Color' |
<FillColor> | Fill color in hex notation. Only present for 'Color' fill type |
<FillGradient> | Fill gradient color in hex notation. Only present for 'Gradient' fill type |
<LinkType> | Drill-down link type: 'Diagram', 'DiagramBasic', 'DiagramDynamicDevice', 'ManualInternal', 'ManualExternal' |
<LinkTarget> | Drill-down link target: 'SameTab', 'NewTab', 'NewWindow' |
<LinkURL> | Drill-down URL to open. Only applicable for 'ManualInternal' and 'ManualExternal' link types |
<LinkDiagramID> | Drill-down diagram to open. Only applicable for 'Diagram', 'DiagramBasic', and 'DiagramDynamicDevice' link types |
<LinkDeviceID> | Drill-down dynamic device diagram to open. Only applicable for 'DiagramDynamicDevice' link type |
<MenuID> | Associated context menu ID. 0 if no menu |