Rotate text of table depend on rotate table


#1

Dear all,

I want to rotate text of table depend on rotating table.
image

above image, text “Line 3” is not rotated based on rotating table.
Thanks,


#2

Hi @nmvuong,
Just found it

            myDiagram.nodeTemplateMap.add("Ban3N", // rectangular with 3 seats in a line
                goJs(go.Node, "Spot", tableStyle(),
                    goJs(go.Panel, "Spot",
                        goJs(go.Shape, "Rectangle", {
                                name: "TABLESHAPE",
                                desiredSize: new go.Size(160, 60),
                                fill: "burlywood",
                                stroke: null
                            },
                            new go.Binding("desiredSize", "size", go.Size.parse).makeTwoWay(go.Size.stringify),
                            new go.Binding("fill")),
                        goJs(go.TextBlock, {
                                editable: true,
                                font: "bold 11pt Verdana, sans-serif"
                            },
                            new go.Binding("text", "name").makeTwoWay(),
                            //new go.Binding("angle", "angle", function(n) { return -n; })
                            )
                    ),
                    Seat(1, "0.2 0", "0.5 1"),
                    Seat(2, "0.5 0", "0.5 1"),
                    Seat(3, "0.8 0", "0.5 1")
                )); 

comment this line:
new go.Binding("angle", "angle", function(n) { return -n; })