Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Overview

Hierarchy

An Overview is a Diagram that displays all of a different diagram, with a rectangular box showing the viewport displayed by that other diagram.

For more discussion, see Introduction to Overviews. See samples that make use of Overviews in the samples index.

All you need to do is set Overview.observed. For example:

  var myDiagram = new go.Diagram("myDiagramDIV");
. . . other initialization . . .

// create and initialize the Overview:
new go.Overview("myOverviewDIV").observed = myDiagram;

The Overview draws what the observed Diagram is displaying, so setting or modifying any diagram templates or template Maps has no effect.

Animations are not shown in an Overview.

At the current time methods such as Diagram.makeImage, Diagram.makeImageData and Diagram.makeSvg do not work on Overviews.

Index

Inherited Members

Properties

Methods

Constructors

  • Parameters

    • Optional div: string | Element

      A reference to a DIV HTML element or its ID as a string. If no DIV is supplied, an Overview will be created in memory. The Overviews's Diagram.div property can then be set later on.

    • Optional init: Partial<Overview>

      Optional initialization properties.

    Returns Overview

  • Parameters

    • Optional init: Partial<Overview>

      Optional initialization properties.

    Returns Overview

Properties

  • Gets or sets the rectangular Part that represents the viewport of the observed Diagram. By default the part contains only a magenta Shape. The box's Part.selectionObject is what is resized by the Overview to the apparent size of the observed diagram's viewport.

  • Gets or sets whether this overview draws the Diagram.grid of the observed Diagram, if it is visible. The default value is true.

    This property is only considered when drawsTemporaryLayers is true. Setting this to false may help improve drawing performance.

    Setting this property does not notify about any changed event.

    since

    2.2

  • Gets or sets whether this overview draws the temporary layers of the observed Diagram. The default value is true. Setting this property to false may improve drawing performance, especially if the Diagram.grid is visible.

    Setting this property does not notify about any changed event.

    since

    1.2

  • Gets or sets the Diagram for which this Overview is displaying a model and showing its viewport into that model.

    The value must be null or another Diagram, but may not be an Overview.

  • Gets or sets how long it waits before updating, in milliseconds. The default value is zero. Any new value must be a non-negative number.

    Setting this property does not notify about any changed event.

    since

    2.2