import { TClassProperties, TOriginX, TOriginY } from '../../typedefs'; import { XTextbase } from './XTextbase'; import { WidgetType } from './type/widget.type'; import { Point } from '../../Point'; import { WidgetTextInterface } from './type/widget.entity.text'; export declare const textboxDefaultValues: Partial>; declare class Connector { connectorId: string; connectorType: string; point: Point; } export declare const XTextboxProps: Partial>; /** * Textbox class, based on IText, allows the user to resize the text rectangle * and wraps lines automatically. Textboxes have their Y scaling locked, the * user can only change width. Height is adjusted automatically based on the * wrapping of lines. */ export declare class XTextbox extends XTextbase implements WidgetTextInterface { minWidth: number; tempTop: number; hasNoText: boolean; static objType: WidgetType; static type: WidgetType; dynamicMinWidth: number; oneLine: boolean; fromCopy: boolean; originX: TOriginX; originY: TOriginY; connectors: Connector[]; /** * Use this boolean property in order to split strings that have no white space concept. * This is a cheap way to help with Chinese/Japanese. * @type Boolean * @since 2.6.0 */ splitByGrapheme: boolean; static textLayoutProperties: string[]; static ownDefaults: Record; /** * Override the getDefaults method to set default origin to center */ static getDefaults(): { controls: { mr: import("../../..").Control; ml: import("../../..").Control; }; originX: string; originY: string; }; /** * Constructor to initialize the textbox with default origin * @param text - The initial text content * @param options - Configuration options */ constructor(text: string, options: any); /** * Set up custom resize controls that use our implementation */ setupCustomResizeControls(): void; handleWidthChange2(eventData: any, transform: any, x: number, y: number): void; /** * Event handler for entering edit mode */ private onEditingEntered; /** * Event handler for exiting edit mode */ private onEditingExited; /** * Retrieves the object's properties * @returns A record of the object's properties */ getObject(): Record; /** * Override the initDimensions method to ensure height increases downward */ initDimensions(): void; /** * Handler for width changes that maintains top-left position */ handleWidthChange(eventData: any, transform: any, x: number, y: number): boolean; } export {}; //# sourceMappingURL=XTextbox.d.ts.map