@maxgraph/core
    Preparing search index...

    Class Effects

    Provides animation effects.

    Effects

    Index

    Constructors

    Methods

    • Asynchronous animated move operation. See also: .

      Parameters

      • graph: Graph

        Graph that received the changes.

      • changes: UndoableChange[]

        Array of changes to be animated.

      • Optionaldone: Function

        Optional function argument that is invoked after the last step of the animation.

      Returns void

      graph.model.addListener(mxEvent.CHANGE, function(sender, evt)
      {
      var changes = evt.getProperty('edit').changes;

      if (changes.length < 10)
      {
      Effects.animateChanges(graph, changes);
      }
      });
    • Sets the opacity on the given cell and its descendants.

      Parameters

      • graph: Graph

        Graph that contains the cells.

      • cell: Cell

        to set the opacity for.

      • opacity: number

        New value for the opacity in %.

      Returns void

    • Asynchronous fade-out operation.

      Parameters

      • node: HTMLElement
      • from: number
      • remove: boolean
      • step: number
      • delay: number
      • isEnabled: boolean

      Returns void