GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • @maxgraph/core

This view

  • Original page
  • New address

GeezerVison is showing maxgraph.github.io — Effects | @maxgraph/core

  • Effects

Class Effects

Provides animation effects.

  • Defined in view/animate/Effects.ts:35
Index

Constructors

constructor

Methods

animateChanges cascadeOpacity fadeOut

Constructors

constructor

  • new Effects(): Effects

    Returns Effects

Methods

StaticanimateChanges

  • animateChanges(
        graph: AbstractGraph,
        changes: UndoableChange[],
        done?: Function,
    ): void

    Asynchronous animated move operation. See also: .

    Parameters

    • graph: AbstractGraph

      AbstractGraph 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

    Example

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

    if (changes.length < 10)
    {
    Effects.animateChanges(graph, changes);
    }
    });
    • Defined in view/animate/Effects.ts:57

StaticcascadeOpacity

  • cascadeOpacity(graph: AbstractGraph, cell: Cell, opacity: number): void

    Sets the opacity on the given cell and its descendants.

    Parameters

    • graph: AbstractGraph

      AbstractGraph that contains the cells.

    • cell: Cell

      Cell to set the opacity for.

    • opacity: number

      New value for the opacity in %.

    Returns void

    • Defined in view/animate/Effects.ts:135

StaticfadeOut

  • fadeOut(
        node: HTMLElement,
        from: number,
        remove: boolean,
        step: number,
        delay: number,
        isEnabled: boolean,
    ): void

    Asynchronous fade-out operation.

    Parameters

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

    Returns void

    • Defined in view/animate/Effects.ts:169

Settings

Member Visibility
  • Protected
  • Inherited
Theme

On This Page

Constructors
constructor
Methods
animateChangescascadeOpacityfadeOut
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.