// SPDX-License-Identifier: GPL-3.0-or-later // Copyright (C) 2026 ZiroEDA and contributors. // Portions derived from KiCad, copyright The KiCad Developers. See NOTICE.md. /** * `LINE_STYLE`, the dash pattern of a stroke — KiCad's `common/stroke_params.h`. * * Moved out of the DXF plotter for the same reason as [Color4d]: the * graphics importers are shared between the board and the schematic, and a * schematic package cannot import from the board package. * * `DEFAULT = -1` is meaningful and is not "solid": it means the item has no * style of its own and inherits one. */ export enum LINE_STYLE { DEFAULT = -1, SOLID = 0, DASH, DOT, DASHDOT, DASHDOTDOT, } /** The `(stroke (type …))` token each `LINE_STYLE` is stored as. */ export type LineStyleToken = 'default' | 'solid' | 'dash' | 'dot' | 'dash_dot' | 'dash_dot_dot'; /** One row of `lineTypeNames`: `LINE_STYLE_DESC` (include/stroke_params.h:57). */ export interface LineStyleDesc { readonly style: LINE_STYLE; /** The file token, which is also the `