@xpadev-net/niconicomments
    Preparing search index...

    Interface IPlugin

    interface IPlugin {
        addComments?: (comments: IComment[]) => void;
        destroy?: () => void;
        draw?: (vpos: number) => boolean | undefined;
        transformComments?: (comments: IComment[]) => IComment[];
    }
    Index

    Properties

    addComments?: (comments: IComment[]) => void
    destroy?: () => void

    Release plugin-owned resources before the plugin canvas is destroyed.

    Implementations must be idempotent because NiconiComments.destroy() may be called repeatedly by SPA lifecycles.

    draw?: (vpos: number) => boolean | undefined

    Returning false skips texture invalidation only; compositing still runs. Do not return false before your canvas has been rendered at least once. Plugins with static canvases should still implement draw() and return false after first render to skip per-frame texture invalidation.

    transformComments?: (comments: IComment[]) => IComment[]