UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

26 lines (25 loc) 946 B
import { Surface } from "@aurigma/design-atoms-model/Product/Surface"; import { ProductHandler } from "./ProductHandler"; export declare class SurfaceManager { private _productHandler; constructor(_productHandler: ProductHandler); private _switchSurface; switchToSurface(newSurface: Surface): Promise<void>; getNextSurface(spinIndex?: number): Promise<Surface>; switchToNextSurface(): void; switchSurfaceForward(): Promise<void>; switchSurfaceBackward(): Promise<void>; } export declare enum SurfaceSwitchCommand { switchToSurface = "switchToSurface", getNextSurface = "getNextSurface", switchToNextSurface = "switchToNextSurface", switchSurfaceForward = "switchSurfaceForward", switchSurfaceBackward = "switchSurfaceBackward" } export interface ISwitchToSurfaceParams { value: Surface | number; } export interface IGetNextSurfaceCmdName { spinIndex: number; }