Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides animation effects.

Hierarchy

  • mxEffects

Index

Constructors

constructor

Methods

Static animateChanges

  • animateChanges(graph: mxGraph, changes: any[], done?: Function): void
  • Asynchronous animated move operation. See also: .

    example
    graph.model.addListener(mxEvent.CHANGE, function(sender, evt)
    {
      var changes = evt.getProperty('edit').changes;
    
      if (changes.length < 10)
      {
        mxEffects.animateChanges(graph, changes);
      }
    });
    

    Parameters

    • graph: mxGraph

      that received the changes.

    • changes: any[]

      Array of changes to be animated.

    • Optional done: Function

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

    Returns void

Static cascadeOpacity

  • cascadeOpacity(graph: mxGraph, cell: mxCell, opacity: number): void
  • Sets the opacity on the given cell and its descendants.

    Parameters

    • graph: mxGraph

      that contains the cells.

    • cell: mxCell

      to set the opacity for.

    • opacity: number

      New value for the opacity in %.

    Returns void

Static fadeOut

  • fadeOut(node: HTMLElement, from?: number, remove?: boolean, step?: number, delay?: number, isEnabled?: boolean): void
  • Asynchronous fade-out operation.

    Parameters

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

    Returns void

Generated using TypeDoc