interface AsukaRenderEngineAssembly {
    applyMaterialPreset(surfaceId: string, presetId: string, applyOptions?: AsukaAssemblyMaterialApplyOptions, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblySurface>;
    autoPlace(componentId: string, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<AsukaAssemblyPlacementResult>;
    cancelDrawing(): void;
    clearSurfaces(options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<AsukaAssemblyState>;
    configure(patch: Partial<AsukaAssemblyState>, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<AsukaAssemblyState>;
    connect(connection: Partial<AsukaAssemblyConnection>, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblyConnection>;
    disconnect(connectionId: string, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblyConnection>;
    export(kind: AsukaAssemblyExportKind, options?: AsukaAssemblyExportOptions): Promise<Blob>;
    getBom(options?: {
        currency?: string;
    }): AsukaAssemblyBom;
    getBuildState(): AsukaAssemblyBuildState;
    getComponent(id: string): null | AsukaAssemblyComponent;
    getInteractionState(): AsukaAssemblyInteractionState;
    getQuote(options?: AsukaAssemblyQuoteOptions): AsukaAssemblyQuote;
    getState(): AsukaAssemblyState;
    getSurfaceMetrics(id: string): null | AsukaAssemblyFloorMetrics;
    getSurfaceTransform(id: string): null | AsukaAssemblySurfaceTransform;
    linkStack(link: Partial<AsukaAssemblyStackLink>, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblyStackLink>;
    listComponents(): AsukaAssemblyComponent[];
    listMaterialPresets(): AsukaAssemblyMaterialPreset[];
    listStackLinks(): AsukaAssemblyStackLink[];
    listSurfaces(): AsukaAssemblySurface[];
    place(componentId: string, input?: AsukaAssemblyPlacementInput, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<AsukaAssemblyPlacementResult>;
    previewPlacement(componentId: string, input?: AsukaAssemblyPlacementInput): AsukaAssemblyPlacementResult;
    removeMaterialPreset(presetId: string, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<boolean>;
    removeSurface(id: string, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblySurface>;
    saveMaterialPreset(preset: Partial<AsukaAssemblyMaterialPreset>, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblyMaterialPreset>;
    selectSurface(id: null | string): null | AsukaAssemblySurface;
    setConstructionMode(active: boolean): AsukaAssemblyInteractionState;
    setFloorEdgeAngle(floorId: string, edgeIndex: number, angleDegrees: number, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblyFloorSurface>;
    setFloorEdgeConstraint(floorId: string, edgeIndex: number, constraint: AsukaAssemblyFloorEdgeConstraint, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblyFloorSurface>;
    setFloorEdgeLength(floorId: string, edgeIndex: number, length: number, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblyFloorSurface>;
    setMoveTool(active: boolean): AsukaAssemblyInteractionState;
    setRoomWallEnabled(floorId: string, edgeIndex: number, enabled: boolean, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblyFloorSurface>;
    startDrawing(input: AsukaAssemblyStartDrawingInput): void;
    syncCatalog(elements: AsukaElement[]): void;
    transformSurface(id: string, input: AsukaAssemblySurfaceTransformInput, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblySurface>;
    unlinkStack(linkId: string, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblyStackLink>;
    updateSurface(id: string, patch: AsukaAssemblySurfacePatch, options?: AsukaAssemblyMutationOptions): AsukaMutationPromise<null | AsukaAssemblySurface>;
    validate(): AsukaAssemblyValidation;
}

Methods

  • Returns void

  • Parameters

    Returns void