interface AvatarEditorApi {
    getAvatar: (() => Promise<null | IAssetWrapper>);
    updateMorphs: ((morphs: Map<string, number>) => Promise<void>);
    addConfigurationUpdate(cb: ((cfg: AvatarEditorConfiguration) => void)): (() => void);
    addStateUpdate(cb: ((cfg: AvatarEditorState) => void)): (() => void);
    getConfiguration(): null | AvatarEditorConfiguration;
    getState(): null | AvatarEditorState;
    hide(): void;
    openIn(target: HTMLElement): void;
    removeConfigurationUpdate(cb: ((cfg: AvatarEditorConfiguration) => void)): void;
    removeStateUpdate(cb: ((cfg: AvatarEditorState) => void)): void;
    setActionReceiver(receiver: AvatarEditorActions): void;
    setConfiguration(cfg: AvatarEditorConfiguration): void;
    setState(cfg: AvatarEditorState): void;
}

Hierarchy (view full)

Properties

getAvatar: (() => Promise<null | IAssetWrapper>)
updateMorphs: ((morphs: Map<string, number>) => Promise<void>)

Methods