UNPKG

wdpapi

Version:

51WORLD WdpApi is a set of programming interfaces developed by JavaScript that is responsible for negotiating between web pages and cloud rendering platforms. Supported by 51Cloud rendering platform, it enables the users to create any HTML5 UI element on

124 lines (123 loc) 3.47 kB
import { Tposition, Toverflow, IwindowStyleType, IeventOptions } from '../interface/window'; /** * @public * @class UICore */ export declare class UICore { protected factory: Record<string, any> | null; private compId; private compDom; private windowStyle; /** * @constructor */ constructor(opt: IwindowStyleType); get id(): string; GetId(): string; get dom(): HTMLDivElement; GetDom(): HTMLDivElement; get width(): string; set width(width: string); GetWidth(): string; SetWidth(width: string): void; get height(): string; set height(height: string); GetHeight(): string; SetHeight(height: string): void; get position(): Tposition; set position(position: Tposition); GetPosition(): Tposition; SetPosition(position: Tposition): void; get left(): string; set left(left: string); GetLeft(): string; SetLeft(left: string): void; get top(): string; set top(top: string); GetTop(): string; SetTop(top: string): void; get right(): string; set right(right: string); GetRight(): string; SetRight(right: string): void; get bottom(): string; set bottom(bottom: string); GetBottom(): string; SetBottom(bottom: string): void; get zIndex(): string; set zIndex(zIndex: string); GetZIndex(): string; SetZIndex(zIndex: string): void; get fontSize(): string; set fontSize(fontSize: string); GetFontSize(): string; SetFontSize(fontSize: string): void; get color(): string; set color(color: string); GetColor(): string; SetColor(color: string): void; get background(): string; set background(background: string); GetBackground(): string; SetBackground(background: string): void; get overflowX(): Toverflow; set overflowX(overflowX: Toverflow); GetOverflowX(): Toverflow; SetOverflowX(overflowX: Toverflow): void; get overflowY(): Toverflow; set overflowY(overflowY: Toverflow); GetOverflowY(): Toverflow; SetOverflowY(overflowY: Toverflow): void; get border(): string; set border(border: string); GetBorder(): string; SetBorder(border: string): void; get borderRadius(): string; set borderRadius(borderRadius: string); GetBorderRadius(): string; SetBorderRadius(borderRadius: string): void; get transition(): string; set transition(transition: string); GetTransition(): string; SetTransition(transition: string): void; /** * @private * @function generateComponent * @returns {void} */ private generateComponent; /** * @protected * @function generateUUID * @param {string} prefix (optional) default is comp * @returns {string} */ protected generateUUID(prefix?: string): string; /** * @protected * @function generateWindowStyle * @param {IwindowStyleType} opt * @returns {void} */ protected generateWindowStyle(opt: IwindowStyleType): void; /** * @public * @function setFactory * @param {Record<string, any>} factory * @returns {void} */ setFactory(factory: Record<string, any>): void; /** * @public * @function Delete * @returns {void} */ Delete(): void; /** * @public * @function OnClick * @param {Array<IeventOptions>} opts * @returns {void} */ AddEvents(opts: Array<IeventOptions>): void; }