Base interface for the methods a decorator needs to provide.

interface IDecorator<T> {
    incremental?: boolean;
    reset(params): void;
}

Type Parameters

  • T

Implemented by

Properties

Methods

Properties

incremental?: boolean

When true, indicates that this Decorator updates its associated elements incrementally with each call. When false, the surface will clear everything associated with this decorator prior to invoking decorate. The default value for this is false, meaning the surface will clear everything prior to calling decorate.

Methods

  • This method is invoked when the Toolkit's graph is cleared. You may or may not want to do anything in response to that - one option is to call clear() on the decorator to remove its elements.

    Parameters

    Returns void