icon
menu

Perspective Options

Perspectives have a number of additional properties that control their behavior and appearance. These properties are defined under a perspective’s options property. This page details some of these options; for a description of all perspective options, see the Perspective Options section of the Ilograph Spec.

Default arrow labels and colors

The labels and colors of arrows can be given default values in a perspective using the defaultArrowLabel and defaultArrowColor option properties.

Initial detail level

The initial detail level of a perspective can be set using the initialDetailLevel option property. Valid values are between 0 and 1, inclusive.

When a viewer navigates to a perspective with an initial detail level, the detail level will be temporarily set to this value. If the user doesn’t adjust the detail, the detail level will revert to the previous value when the user navigates away from the perspective.

Controlling perspective context

What additional context, if any, is shown in a perspective can be controlled by specifying the additionalContext property on a perspective. Accepted values are:

  • super-only (default): Show only additional ancestor resources in the perspective.
  • all: Show all additional context in the perspective.
  • none: Don’t show any additional context in the perspective. The perspective will appear very flat.
  • sub-only: Show only additional descendant resources in the perspective.

Unwrapping context

How context resources affect the layout of relation perspectives can be controlled by the unwrapContext property. If false (the default) resources will always be grouped inside their parent resource, even if that causes relation arrows to appear backward. If true, then context resources may be ommitted from the diagram to ensure that relation arrows always flow in the same direction.

Hiding perspectives

Perspectives can be hidden in the perspective tray by setting their hidden property to true. This is commonly done when creating perspectives that exist only to be extened by or be embedded in other perspectives.