maquette
    Preparing search index...

    Interface ProjectionOptions

    Options that may be passed when creating the Projector

    interface ProjectionOptions {
        eventHandlerInterceptor?: EventHandlerInterceptor;
        namespace?: string;
        performanceLogger?: ProjectorPerformanceLogger;
        styleApplyer(domNode: HTMLElement, styleName: string, value: string): void;
    }

    Hierarchy (View Summary)

    Index

    Properties

    eventHandlerInterceptor?: EventHandlerInterceptor

    May be used to intercept registration of event-handlers.

    Used by the Projector to wrap eventHandler-calls to call Projector#scheduleRender as well.

    The name of the property to be assigned, for example onclick

    The function that was registered on the VNode

    The real DOM element

    The whole set of properties that was put on the VNode

    The function that is to be placed on the DOM node as the event handler, instead of eventHandler.

    namespace?: string

    Only for internal use. Used for rendering SVG Nodes.

    performanceLogger?: ProjectorPerformanceLogger

    Can be used to log performance metrics

    Methods

    • May be used to add vendor prefixes when applying inline styles when needed. This function is called when VNodeProperties#styles is used. This function should execute domNode.style[styleName] = value or do something smarter.

      Parameters

      • domNode: HTMLElement

        The DOM Node that needs to receive the style

      • styleName: string

        The name of the style that should be applied, for example transform.

      • value: string

        The value of this style, for example rotate(45deg).

      Returns void