@aurigma/design-atoms
Version:
Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.
56 lines (55 loc) • 1.56 kB
TypeScript
import { IListSetting } from "@aurigma/design-atoms-text/TextEditor/Interfaces";
import { IListConfiguration } from "../Viewer/Interfaces";
export declare namespace Utils {
const round3: (value: any) => number;
const createBoundedWrapper: (object: any, method: any, aArgsArray?: any) => any;
const cursorToCss: (cursor: any) => any;
function makeSingle(generator: any): (...args: any[]) => Promise<any>;
function makeCancelable<T>(promise: Promise<T>): ICancelablePromise<T>;
interface ICancelablePromise<T> {
promise: Promise<T>;
cancel: Function;
id: string;
}
/**
* @param {UIEvent} uiEvent
* @return {Element[]}
*/
const getEventPath: (uiEvent: any) => any;
/**
* @param {UIEvent | JqueryEventObject } event
*/
const isEventPathContainsClass: (event: any, cssClass: any) => boolean;
function getListSettingFromConfig(config: IListConfiguration): IListSetting;
}
export declare enum Cursor {
defaultCursor = 0,
sizeNW = 1,
sizeNE = 2,
sizeSW = 3,
sizeSE = 4,
sizeN = 5,
sizeS = 6,
sizeW = 7,
sizeE = 8,
move = 9,
cross = 10,
pointer = 11,
sizeEW = 12,
sizeNS = 13,
sizeNESW = 14,
sizeNWSE = 15,
text = 16,
grab = 17,
grabbing = 18
}
export declare enum ColorSpace {
rgb = 16777216,
cmyk = 335544320,
grayScale = 301989888,
unknown = 0
}
export declare enum WebServiceCallType {
Item = 0,
Color = 1
}