A helper plugin to create a a simple list of small grids like for material or object configurator

Hierarchy

  • AViewerPluginSync<"">
    • GridItemListPlugin

Constructors

Properties

_dirty: boolean = false
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<
    | "dispose"
    | "*"
    | "update"
    | "preRender"
    | "postRender"
    | "preFrame"
    | "postFrame"
    | "addPlugin"
    | "removePlugin"
    | "renderEnabled"
    | "renderDisabled",
    (e: IViewerEvent) => void,
> = {}
constructor: typeof AViewerPluginSync & typeof AViewerPlugin
create: <T extends GridItem>(
    tag: string,
    title: string,
    cols: number,
    x: number,
    y: number,
    items: T[],
    processDiv: (d: HTMLDivElement, item: T, container: HTMLElement) => void,
) => HTMLDivElement = GridItemList.Create
enabled: boolean = true
removeAll: (tag?: string) => void = GridItemList.RemoveAll
toJSON: any = undefined
uiConfig?: UiObjectConfig = undefined
OldPluginType?: string
PluginType: string = 'AViewerPlugin'

Accessors

Methods

  • Parameters

    • e: IViewerEvent

    Returns IViewerEvent

  • Parameters

    • Optionalprefix: string

    Returns string

  • Returns ISerializedConfig | Record<string, never>

  • Parameters

    • state: any

    Returns Promise<void>

  • Parameters

    • viewer: ThreeViewer

    Returns void