@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
34 lines (33 loc) • 1.38 kB
TypeScript
import { BaseTextItem } from "@aurigma/design-atoms-model";
import { ListType } from "@aurigma/design-atoms-text/TextEditor";
import { IListsHandler } from "./IListsHandler";
import { IColorParser } from "../Serialization/Color";
import { IColorPreviewService } from "./IColorPreviewService";
import { IListConfiguration } from "../Viewer/Interfaces";
export interface IItemsContext {
items: BaseTextItem[];
}
export declare class ListsHandler implements IListsHandler {
private readonly _itemsContext;
private readonly _colorParser;
private readonly _colorPreviewService;
private readonly _listSettings;
private readonly _listStyleSheetManagerFactory;
constructor(itemsContext: IItemsContext, colorParser: IColorParser, colorPreviewService: IColorPreviewService, listSettings: IListConfiguration);
applyList(listType: ListType): Promise<void>;
isBulletedList(): boolean;
isNumberedList(): boolean;
private _applyListToItem;
private _isBulletedList;
private _isNumberedList;
private _getTextModelAndColorPalette;
private _getTextModel;
private _applyList;
private _allParagraphsAreListItems;
private _removeList;
private _makeList;
private _makeUnorderedListItem;
private _makeOrderedListItem;
private _convertListType;
private _getStubColorPalette;
}