GLTF Draco Export Plugin

Overloads the default gltf exporter in the asset manager with GLTFDracoExporter. When exporting with compress = true, the output will be compressed. Note - Only glb supported right now.

Hierarchy

  • AViewerPluginSync<"">
    • GLTFDracoExportPlugin

Constructors

  • Creates THREE.EventDispatcher | EventDispatcher object.

    Returns GLTFDracoExportPlugin

Properties

_dirty: boolean = false
_viewer?: ThreeViewer
_viewerListeners: PartialRecord<"dispose" | "*" | "update" | "preRender" | "postRender" | "preFrame" | "postFrame" | "addPlugin" | "removePlugin" | "renderEnabled" | "renderDisabled", ((e) => void)> = {}

Type declaration

    • (e): void
    • Parameters

      • e: IViewerEvent

      Returns void

constructor: typeof AViewerPluginSync & typeof AViewerPlugin
enabled: boolean = true
uiConfig?: UiObjectConfig<any, string, any> = undefined
OldPluginType?: string
PluginType: "GLTFDracoExportPlugin" = 'GLTFDracoExportPlugin'

Accessors

Methods

  • Parameters

    • exporter: AssetExporterPlugin

    Returns ({
        children?: undefined;
        hidden?: undefined;
        label: string;
        onChange: (() => undefined | void);
        property: (string | ExportAssetOptions)[];
        type: string;
    } | {
        children: ({
            bounds: number[];
            children?: undefined;
            label: string;
            property: (undefined | string | EncoderOptions)[];
            type: string;
        } | {
            bounds?: undefined;
            children: {
                label: string;
            }[];
            label: string;
            property: (undefined | string | EncoderOptions)[];
            type: string;
        } | {
            bounds?: undefined;
            children: {
                bounds: number[];
                label: string;
                property: (undefined | string | {
                    [key: string]: number;
                })[];
                stepSize: number;
                type: string;
            }[];
            label: string;
            property?: undefined;
            type: string;
        })[];
        hidden: (() => boolean);
        label: string;
        onChange?: undefined;
        property?: undefined;
        type: string;
    })[]

  • Parameters

    • e: IViewerEvent

    Returns IViewerEvent

  • Parameters

    • Optional prefix: string

    Returns string

  • Returns ISerializedConfig | Record<string, never>

  • Parameters

    • state: any

    Returns Promise<void>

  • Parameters

    • Optional meta: SerializationMetaType

    Returns ISerializedConfig

Generated using TypeDoc