This shows you the differences between two versions of the page.
resources:tools-software:sigmastudiov2:usingsigmastudio:scripting:resizeshape [25 Jun 2020 07:35] – created Krithika Manchale | resources:tools-software:sigmastudiov2:usingsigmastudio:scripting:resizeshape [15 Nov 2021 09:58] (current) – Nikhin Shetty | ||
---|---|---|---|
Line 3: | Line 3: | ||
=====Resize Shape===== | =====Resize Shape===== | ||
- | This action allows the user to resize a specified shape on the parent canvas or schematic page according to the angle given. Return type is a success/ | + | This action allows the user to resize a specified shape on the parent canvas or schematic page according to the angle given. The function call takes in 3 arguments. Return type is a SSPResult which contains a IsSuccess flag for |
\\ | \\ | ||
===API=== | ===API=== | ||
< | < | ||
- | list< | + | SSPResult |
</ | </ | ||
\\ | \\ | ||
===Arguments==== | ===Arguments==== | ||
- shapeUid- Uid of the plugin to be moved. | - shapeUid- Uid of the plugin to be moved. | ||
- | - newPosition -Position in the form of (X,Y) coordinates of the canvas. | + | - newPosition -Position in the form of (double |
- | - newSize -Desired size of the shape. | + | - newSize -Desired size of the shape in the form of (double Width, double Height). |
\\ | \\ | ||
===Result=== | ===Result=== | ||
- | “Resize Successful”.\\ | + | SSPResult contains ' |
+ | -IsSuccess is ' | ||
+ | -Message contains the Success/ | ||
+ | \\ | ||
\\ | \\ | ||
- | ===Error==== | ||
- | Error message sent out by the server application. | ||