Interface AsukaRenderEngineProducts
interface AsukaRenderEngineProducts { add(input: AsukaElementInput): AsukaMutationPromise<AsukaObjectRef>; get(id: string): null | Asuka3DProduct; getParameters(productId?: null | string): null | AsukaParametricProductDescriptor; list(): Asuka3DProduct[]; remove(id?: string,
options?: AsukaObjectMutationOptions): AsukaMutationPromise<null | AsukaObjectRef>; select(id: null | string,
options?: { emit?: boolean; selectObject?: boolean; source?: string; }): void; setParameter(productId: undefined | null | string,
parameterId: string,
value: AsukaParametricValue,
options?: AsukaParametricMutationOptions): AsukaMutationPromise<null | AsukaParametricProductDescriptor>; setParameters(productId: undefined | null | string,
values: Record<string, unknown>,
options?: AsukaParametricMutationOptions): AsukaMutationPromise<null | AsukaParametricProductDescriptor>; syncCatalog(elements: AsukaElement[]): void; update(element: unknown,
options?: AsukaObjectMutationOptions): AsukaMutationPromise<null | AsukaObjectRef>; validateParameters(productId: undefined | null | string,
values?: Record<string, unknown>): null | AsukaParametricProductDescriptor; } Methods
select
- select(id, options?): void
Parameters
- id: null | string
Optionaloptions: {
emit?: boolean;
selectObject?: boolean;
source?: string;
}Optionalemit?: boolean
OptionalselectObject?: boolean
Optionalsource?: string
Returns void
syncCatalog
- syncCatalog(elements): void
Returns void
validateParameters
- validateParameters(productId, values?): null | AsukaParametricProductDescriptor
Parameters
- productId: undefined | null | string
Optionalvalues: Record<string, unknown>