/* * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { SegmentConfig } from "./types.js"; //#region src/components/coordinate-field/width-utils.d.ts /** * Layout spacing constants for coordinate field width calculations. * All values are in character widths (ch units) to ensure consistent sizing * with monospace coordinate values. */ /** Gap spacing between segments (0.5rem = ~0.5ch per gap) */ declare const SEGMENT_GAP_WIDTH = 0.5; /** Container padding (px-s = 0.5rem on each side = ~1ch total) */ declare const CONTAINER_PADDING_WIDTH = 2; /** Format button width (icon button is roughly 2.5-3ch) */ declare const FORMAT_BUTTON_WIDTH = 3.5; /** Gap between input and button (gap-m = 1rem = ~1ch) */ declare const INPUT_BUTTON_GAP = 1.5; /** * Calculates the minimum width needed for the coordinate field control container. * This keeps the outlined container at a fixed width while segments animate. * * @private * @param editableSegmentConfigs - Array of editable segment configurations * @param segmentConfigs - Array of all segment configurations (including literals) * @param showFormatButton - Whether the format button is displayed * @returns The calculated width as a CSS string (e.g., "25ch") */ declare function calculateMinControlWidth(editableSegmentConfigs: SegmentConfig[], segmentConfigs: SegmentConfig[], showFormatButton: boolean): string; //#endregion export { CONTAINER_PADDING_WIDTH, FORMAT_BUTTON_WIDTH, INPUT_BUTTON_GAP, SEGMENT_GAP_WIDTH, calculateMinControlWidth }; //# sourceMappingURL=width-utils.d.ts.map