Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

When the instrument Gauge is scaled proportionally, it expands when zoomed to a minimum

$
0
0

@fecn wrote:

I modified this example: An Instrument Gauge

And I only added the following code

      // proportionally resizing the node
      myDiagram =
        $(go.Diagram, "myDiagramDiv", {
          "resizingTool.computeResize": function (a, b, c, d, e, f) {
            return go.ResizingTool.prototype.computeResize.call(
              this,
              a,
              b,
              c,
              d,
              e,
              false
            );
          }
        });

      myDiagram.nodeTemplate =
        $(go.Node, "Auto",
          { resizable: true, resizeObjectName: "SHAPE", selectionObjectName: "SHAPE" },
        ...
      }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles