import { AcApContext } from '../../app'; import { AcEdCommand } from '../../editor'; /** * Command for exporting the current CAD drawing to PNG format. * * This command creates a PNG converter and initiates the conversion * process to export the current drawing as a PNG file. The command: * - Creates a new PNG converter instance * - Prompts for an export bounding box * - Prompts for optional long side pixel value (or press Enter for default) * - Converts the current view to PNG format * - Automatically downloads the PNG file * * This is useful for exporting drawings to a raster image format * that can be displayed in browsers or used in other applications. * * @example * ```typescript * const convertCmd = new AcApConvertToPngCmd(); * convertCmd.execute(context); // User prompted for bounds and longside * ``` */ export declare class AcApConvertToPngCmd extends AcEdCommand { /** * Executes the PNG conversion command. * * Prompts the user for: * 1. Export bounding box * 2. Optional long side pixel value (press Enter for default 1024) * * @param _context - The application context (unused in this command) */ execute(_context: AcApContext): Promise; /** * Returns the current drawing extents projected to XY bounds. */ private getCurrentDrawingBounds; /** * Expands user-picked bounds to include extents of intersected entities. * * This avoids cutting entities when the pick box touches their geometry * edges (for example anti-aliased line caps or text glyph overhangs). */ private expandBoundsToEntityExtents; /** * Keeps active layout-view size in sync with current view size. * * This guards against stale screen-to-world mapping after container layout * changes that do not fire a window resize event. */ private syncActiveLayoutViewSize; } //# sourceMappingURL=AcApConvertToPngCmd.d.ts.map