Skip to main content

Class: VariationConfiguratorGridUiPlugin

Plugins.VariationConfiguratorGridUiPlugin

Hierarchy

Properties

PluginType

Static Readonly PluginType: "VariationConfiguratorPlugin"

Overrides

VariationConfiguratorPlugin.PluginType

Defined in

webgi/src/plugins/VariationConfiguratorGridUiPlugin.ts:8


dependencies

dependencies: typeof AssetManagerPlugin[]

Inherited from

VariationConfiguratorPlugin.dependencies

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:29


enabled

enabled: boolean = true

Inherited from

VariationConfiguratorPlugin.enabled

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:30


baseUrl

baseUrl: string = ''

Inherited from

VariationConfiguratorPlugin.baseUrl

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:32


variations

variations: Object

Type declaration

NameType
objectsIConfiguratorVariation[]
materialsIConfiguratorVariation[]

Inherited from

VariationConfiguratorPlugin.variations

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:34


autoDispose

autoDispose: boolean = true

Default = true. When set to false the items will not be disposed when removed.

Inherited from

VariationConfiguratorPlugin.autoDispose

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:41


utils

Readonly utils: Object

Type declaration

NameType
getName(item: IConfiguratorVariation | { name?: string ; prefix: string }) => string
getTitle(item: IConfiguratorVariation) => string
getIcon(variation: IConfiguratorVariation, type: "objects" | "materials") => string
getItemIcon(variation: IConfiguratorVariation, i: number, type: "objects" | "materials") => string
getItemTitle(variation: IConfiguratorVariation, i: number) => string
getItemPath(variation: IConfiguratorVariation, i: number, type: "objects" | "materials") => string
pathToTitle(item: string) => string
pathToIcon(item: string) => string

Inherited from

VariationConfiguratorPlugin.utils

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:239


toJSON

toJSON: any = undefined

Inherited from

VariationConfiguratorPlugin.toJSON

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:288


_dirty

Protected _dirty: boolean = false

Inherited from

VariationConfiguratorPlugin._dirty

Defined in

webgi/src/core/AViewerPlugin.ts:23


_viewer

Protected Optional _viewer: ViewerApp

Inherited from

VariationConfiguratorPlugin._viewer

Defined in

webgi/src/core/AViewerPlugin.ts:27


_ty

Protected _ty: readonly ["objects", "materials"]

Inherited from

VariationConfiguratorPlugin._ty

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:148


_extForType

Protected _extForType: Object

Type declaration

NameType
objectsstring[]
materialsstring[]
imagesstring[]

Inherited from

VariationConfiguratorPlugin._extForType

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:149

Accessors

dirty

get dirty(): boolean

Returns

boolean

Inherited from

VariationConfiguratorPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:16

set dirty(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

VariationConfiguratorPlugin.dirty

Defined in

webgi/src/core/AViewerPlugin.ts:20

Methods

onDispose

onDispose(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Inherited from

VariationConfiguratorPlugin.onDispose

Defined in

webgi/src/core/AViewerPlugin.ts:36


exportState

exportState(): any

Returns

any

Inherited from

VariationConfiguratorPlugin.exportState

Defined in

webgi/src/core/AViewerPlugin.ts:64


importState

importState(state): Promise<void>

Parameters

NameType
stateany

Returns

Promise<void>

Inherited from

VariationConfiguratorPlugin.importState

Defined in

webgi/src/core/AViewerPlugin.ts:67


storeState

storeState(prefix?, storage?, data?): void

Parameters

NameType
prefix?string
storage?Storage
data?any

Returns

void

Inherited from

VariationConfiguratorPlugin.storeState

Defined in

webgi/src/core/AViewerPlugin.ts:74


loadState

loadState(prefix?, storage?): Promise<void>

Parameters

NameType
prefix?string
storage?Storage

Returns

Promise<void>

Inherited from

VariationConfiguratorPlugin.loadState

Defined in

webgi/src/core/AViewerPlugin.ts:84


onAdded

onAdded(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Overrides

VariationConfiguratorPlugin.onAdded

Defined in

webgi/src/plugins/VariationConfiguratorGridUiPlugin.ts:26


onRemove

onRemove(viewer): Promise<void>

Parameters

NameType
viewerViewerApp

Returns

Promise<void>

Overrides

VariationConfiguratorPlugin.onRemove

Defined in

webgi/src/plugins/VariationConfiguratorGridUiPlugin.ts:34


refreshUi

refreshUi(): void

Returns

void

Defined in

webgi/src/plugins/VariationConfiguratorGridUiPlugin.ts:42


applyVariation

applyVariation(variation, item, type, force?): Promise<void>

Parameters

NameTypeDefault value
variationIConfiguratorVariationundefined
itemstring | numberundefined
type"objects" | "materials"undefined
forcebooleanfalse

Returns

Promise<void>

Inherited from

VariationConfiguratorPlugin.applyVariation

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:46


clearVariations

clearVariations(): void

Returns

void

Inherited from

VariationConfiguratorPlugin.clearVariations

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:123


importConfig

importConfig(config, folder?): void

Parameters

NameType
configany
folder?Unzipped

Returns

void

Inherited from

VariationConfiguratorPlugin.importConfig

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:157


importPath

importPath(configPath): Promise<void>

Parameters

NameType
configPathstring

Returns

Promise<void>

Inherited from

VariationConfiguratorPlugin.importPath

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:208


getMaterials

getMaterials(name): string[]

Parameters

NameType
namestring

Returns

string[]

Inherited from

VariationConfiguratorPlugin.getMaterials

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:225


getObjects

getObjects(name): string[]

Parameters

NameType
namestring

Returns

string[]

Inherited from

VariationConfiguratorPlugin.getObjects

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:228


getMaterialVariations

getMaterialVariations(): string[]

Returns

string[]

Inherited from

VariationConfiguratorPlugin.getMaterialVariations

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:232


getObjectVariations

getObjectVariations(): string[]

Returns

string[]

Inherited from

VariationConfiguratorPlugin.getObjectVariations

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:235


fromJSON

fromJSON(json): null | VariationConfiguratorGridUiPlugin

Parameters

NameType
jsonany

Returns

null | VariationConfiguratorGridUiPlugin

Inherited from

VariationConfiguratorPlugin.fromJSON

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:281


_storeKey

Protected _storeKey(prefix?): string

Parameters

NameType
prefix?string

Returns

string

Inherited from

VariationConfiguratorPlugin._storeKey

Defined in

webgi/src/core/AViewerPlugin.ts:60


_refreshUi

Protected _refreshUi(): Promise<boolean>

Returns

Promise<boolean>

Defined in

webgi/src/plugins/VariationConfiguratorGridUiPlugin.ts:47


_loadMaterial

Protected _loadMaterial(path, blob?): Promise<undefined | IMaterial<any>>

Parameters

NameType
pathstring
blob?IFile

Returns

Promise<undefined | IMaterial<any>>

Inherited from

VariationConfiguratorPlugin._loadMaterial

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:137


_loadObject

Protected _loadObject(path, blob?): Promise<IModel<Object3D<Event, string>>[]>

Parameters

NameType
pathstring
blob?IFile

Returns

Promise<IModel<Object3D<Event, string>>[]>

Inherited from

VariationConfiguratorPlugin._loadObject

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:141


_exportConfiguratorState

Protected _exportConfiguratorState(): Promise<{ folder: undefined | Zippable ; config: any }>

Returns

Promise<{ folder: undefined | Zippable ; config: any }>

Inherited from

VariationConfiguratorPlugin._exportConfiguratorState

Defined in

webgi/src/plugins/VariationConfiguratorPlugin.ts:299

Constructors

constructor

new VariationConfiguratorGridUiPlugin()

Overrides

VariationConfiguratorPlugin.constructor

Defined in

webgi/src/plugins/VariationConfiguratorGridUiPlugin.ts:13