We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Rotation property works on Diagram area bu not on Palette

Hello,

I've used the demo code from "https://blazor.syncfusion.com/demos/diagramcomponent/flowchart?".The only modification was to add the "rotation" property as follows:

private void CreatePaletteNode(NodeFlowShapes flowShape, string id)

    {

        Node diagramNode = new Node()

        {

            ID = id,

            RotationAngle = 80, // Rotation works only on drawing area, on palette the rotation angle is 0

            OffsetX = 18, // Both OffsetX and  OffsetY have no affect on Palette

            OffsetY = 10,

            Shape = new FlowShape() { Type = Syncfusion.Blazor.Diagram.NodeShapes.Flow, Shape = flowShape },

            Style = new ShapeStyle() { StrokeColor = "#757575", StrokeWidth = 1 },

        };


        if (id == "Terminator" ||id == "Process")

        {

            diagramNode.Width = 80;

            diagramNode.Height = 40;

        }

        else if (id == "Decision"|| id == "Document" || id == "PreDefined Process" ||

          id == "Punched Tape" || id == "Direct Data" || id == "MultiDocument" || id == "Data")

        {

            diagramNode.Width = 50;

            diagramNode.Height = 40;

        }

        else

        {

            diagramNode.Width = 30;

            diagramNode.Height = 30;

        }


        double oldWidth = Convert.ToDouble(diagramNode.Width);

        double oldHeight = Convert.ToDouble(diagramNode.Height);

        double ratio = 100 / oldWidth;

        diagramNode.Width = 100;

        diagramNode.Height *= ratio;

        flowShapeSymbols.Add(diagramNode);

    }

The Rotation property works fine when dragging a node from palette to the drawing area, but on Symbol Palette are shown with out any rotation.


Thanks,

Bill


4 Replies

SU Sumathi Uthayakumar Syncfusion Team November 18, 2022 11:07 AM UTC

Hi Bill,



We were able to reproduce the issue with the "Rotation property is not working for palette node”. We are currently validating the issue and will provide additional information on November 22, 2022.



Regards,

Sumathi U.



BL Bill Lemonis November 18, 2022 12:06 PM UTC

Hello Sumathi,


Thank you for the reply,

Bill



SU Sumathi Uthayakumar Syncfusion Team November 22, 2022 11:14 AM UTC

Bill,

Reported issue: RotationAngle property is not working for palette node


We have confirmed that the reported issue is a bug and have logged a defect report regarding it. We will fix the issue and include the fix in our upcoming weekly NuGet release which is expected to be rolled out on November 29, 2022. We appreciate your patience until then.


Meanwhile, you can track the status of the bug from the following link.


Feedback Link: https://www.syncfusion.com/feedback/39268/rotationangle-property-is-not-working-for-palette-node


Disclaimer: The inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.



SU Sumathi Uthayakumar Syncfusion Team November 29, 2022 02:35 PM UTC


 Bill,


We have fixed the reported issue  Rotation property is not working for palette node” and included the fix in our weekly patch release(v20.3.0.59). Please update the “Syncfusion.Blazor.Diagram” package to the latest version in your application to resolve the reported issue. Please find the package link below.


https://www.nuget.org/packages/Syncfusion.Blazor.Diagram


Please let us know if you need any further assistance.


Loader.
Live Chat Icon For mobile
Up arrow icon