MLightCAD
    Preparing search index...

    Interface AcApLazyPluginRegistration

    Descriptor for a plugin that is registered up front but loaded only when triggered.

    Register with AcApPluginManager.registerLazyPlugin. The plugin module is not fetched until the user runs one of the triggers commands.

    import { registerLazyPdfPlugin } from '@mlightcad/cad-pdf-plugin/register'

    registerLazyPdfPlugin(pluginManager)
    interface AcApLazyPluginRegistration {
        loader: () => AcApPlugin | Promise<AcApPlugin>;
        name: string;
        triggers: string[];
    }
    Index

    Properties

    Properties

    loader: () => AcApPlugin | Promise<AcApPlugin>

    Factory that creates the plugin instance when a trigger command runs.

    name: string

    Unique plugin identifier; must match AcApPlugin.name returned by loader.

    triggers: string[]

    Command names that load this plugin when executed (case-insensitive).