import { Insert } from './Insert.js'; import { CadObject } from '../CadObject.js'; import { Color } from '../Color.js'; import { CadValue } from '../CadValue.js'; import { ObjectType } from '../Types/ObjectType.js'; import { LineWeightType } from '../Types/LineWeightType.js'; import { XYZ } from '../Math/XYZ.js'; import type { BoundingBox } from '../Math/BoundingBox.js'; import type { TableStyle } from '../Objects/TableStyle.js'; import type { TextStyle } from '../Tables/TextStyle.js'; export declare enum TableEntityBorderType { Single = 1, Double = 2 } export declare enum BreakFlowDirection { Right = 1, Vertical = 2, Left = 4 } export declare enum BreakOptionFlags { None = 0, EnableBreaks = 1, RepeatTopLabels = 2, RepeatBottomLabels = 4, AllowManualPositions = 8, AllowManualHeights = 16 } export declare enum CellAlignmentType { None = 0, TopLeft = 1, TopCenter = 2, TopRight = 3, MiddleLeft = 4, MiddleCenter = 5, MiddleRight = 6, BottomLeft = 7, BottomCenter = 8, BottomRight = 9 } export declare enum CellEdgeFlags { Unknown = 0, Top = 1, Right = 2, Bottom = 4, Left = 8, InsideVertical = 16, InsideHorizontal = 32 } export declare enum CellStyleClass { Data = 1, Label = 2 } export declare enum CellStyleType { Unknown = 0, Cell = 1, Row = 2, Column = 3, FormattedTableData = 4, Table = 5 } export declare enum CellType { Text = 1, Block = 2 } export declare enum MarginFlags { None = 0, Override = 1 } export declare enum TableBorderPropertyFlags { None = 0, BorderType = 1, LineWeight = 2, LineType = 4, Color = 8, Invisibility = 16, DoubleLineSpacing = 32, All = 63 } export declare enum TableCellContentLayoutFlags { None = 0, Flow = 1, StackedHorizontal = 2, StackedVertical = 4 } export declare enum TableCellContentType { Unknown = 0, Value = 1, Field = 2, Block = 4 } export declare enum TableCellStateFlags { None = 0, ContentLocked = 1, ContentReadOnly = 2, Linked = 4, ContentModifiedAfterUpdate = 8, FormatLocked = 16, FormatReadOnly = 32, FormatModifiedAfterUpdate = 64 } export declare enum TableCellStylePropertyFlags { None = 0, DataType = 1, DataFormat = 2, Rotation = 4, BlockScale = 8, Alignment = 16, ContentColor = 32, TextStyle = 64, TextHeight = 128, AutoScale = 256, BackgroundColor = 512, MarginLeft = 1024, MarginTop = 2048, MarginRight = 4096, MarginBottom = 8192, ContentLayout = 16384, MarginHorizontalSpacing = 131072, MarginVerticalSpacing = 262144, MergeAll = 32768, FlowDirectionBottomToTop = 65536 } export declare enum TableEntityValueUnitType { NoUnits = 0, Distance = 1, Angle = 2, Area = 4, Volume = 8, Currency = 16, Percentage = 32 } export declare enum BorderOverrideFlags { None = 0, TitleHorizontalTop = 1, TitleHorizontalInsert = 2, TitleHorizontalBottom = 4, TitleVerticalLeft = 8, TitleVerticalInsert = 16, TitleVerticalRight = 32, HeaderHorizontalTop = 64, HeaderHorizontalInsert = 128, HeaderHorizontalBottom = 256, HeaderVerticalLeft = 512, HeaderVerticalInsert = 1024, HeaderVerticalRight = 2048, DataHorizontalTop = 4096, DataHorizontalInsert = 8192, DataHorizontalBottom = 16384, DataVerticalLeft = 32768, DataVerticalInsert = 65536, DataVerticalRight = 131072 } export declare enum TableOverrideFlags { None = 0, TitleSuppressed = 1, HeaderSuppressed = 2, FlowDirection = 4, HorizontalCellMargin = 8, VerticalCellMargin = 16, TitleRowColor = 32, HeaderRowColor = 64, DataRowColor = 128, TitleRowFillNone = 256, HeaderRowFillNone = 512, DataRowFillNone = 1024, TitleRowFillColor = 2048, HeaderRowFillColor = 4096, DataRowFillColor = 8192, TitleRowAlign = 16384, HeaderRowAlign = 32768, DataRowAlign = 65536, TitleTextStyle = 131072, HeaderTextStyle = 262144, DataTextStyle = 524288, TitleRowHeight = 1048576, HeaderRowHeight = 2097152, DataRowHeight = 4194304 } export declare enum CellOverrideFlags { None = 0, CellAlignment = 1, BackgroundFillNone = 2, BackgroundColor = 4, ContentColor = 8, TextStyle = 16, TextHeight = 32, TopGridColor = 64, TopGridLineWeight = 1024, TopVisibility = 16384, RightGridColor = 128, RightGridLineWeight = 2048, RightVisibility = 32768, BottomGridColor = 256, BottomGridLineWeight = 4096, BottomVisibility = 65536, LeftGridColor = 512, LeftGridLineWeight = 8192, LeftVisibility = 131072 } export declare class TableAttribute { value: string; } export declare class CustomDataEntry { name: string; value: CadValue; } export declare class CellContentGeometry { distanceTopLeft: XYZ; distanceCenter: XYZ; contentWidth: number; contentHeight: number; width: number; height: number; flags: number; } export declare class CellRange { bottomRowIndex: number; leftColumnIndex: number; rightColumnIndex: number; topRowIndex: number; } export declare class ContentFormat { alignment: number; color: Color; hasData: boolean; propertyFlags: number; propertyOverrideFlags: TableCellStylePropertyFlags; rotation: number; scale: number; textHeight: number; textStyle: TextStyle | null; valueDataType: number; valueFormatString: string; valueUnitType: number; } export declare class CellBorder { color: Color; doubleLineSpacing: number; readonly edgeFlags: CellEdgeFlags; isInvisible: boolean; lineWeight: LineWeightType; propertyOverrideFlags: TableBorderPropertyFlags; type: TableEntityBorderType; constructor(edgeFlags: CellEdgeFlags); } export declare class CellContent { contentType: TableCellContentType; format: ContentFormat; cadValue: CadValue; } export declare class CellStyle extends ContentFormat { backgroundColor: Color; bottomBorder: CellBorder; bottomMargin: number; cellAlignment: CellAlignmentType; contentColor: Color; contentLayoutFlags: TableCellContentLayoutFlags; horizontalInsideBorder: CellBorder; horizontalMargin: number; isFillColorOn: boolean; leftBorder: CellBorder; marginHorizontalSpacing: number; marginOverrideFlags: MarginFlags; marginVerticalSpacing: number; name: string; rightBorder: CellBorder; rightMargin: number; styleClass: CellStyleClass; tableCellStylePropertyFlags: TableCellStylePropertyFlags; textColor: Color; topBorder: CellBorder; cellStyleType: CellStyleType; verticalInsideBorder: CellBorder; verticalMargin: number; id: number; } export declare class TableEntityCell { autoFit: boolean; blockScale: number; borderHeight: number; borderWidth: number; get content(): CellContent | null; contents: CellContent[]; customData: number; customDataCollection: CustomDataEntry[]; edgeFlags: number; geometry: CellContentGeometry | null; hasLinkedData: boolean; get hasMultipleContent(): boolean; mergedValue: number; rotation: number; stateFlags: TableCellStateFlags; styleOverride: CellStyle; toolTip: string; type: CellType; virtualEdgeFlag: number; } export declare class TableEntityColumn { name: string; width: number; customData: number; cellStyleOverride: CellStyle; customDataCollection: CustomDataEntry[]; } export declare class TableEntityRow { height: number; customData: number; cellStyleOverride: CellStyle; cells: TableEntityCell[]; customDataCollection: CustomDataEntry[]; } export declare class BreakHeight { position: XYZ; height: number; } export declare class BreakData { flags: BreakOptionFlags; flowDirection: BreakFlowDirection; breakSpacing: number; heights: BreakHeight[]; } export declare class BreakRowRange { position: XYZ; startRowIndex: number; endRowIndex: number; } export declare class TableEntity extends Insert { get columns(): TableEntityColumn[]; horizontalDirection: XYZ; get objectName(): string; get objectType(): ObjectType; overrideBorderColor: boolean; overrideBorderLineWeight: boolean; overrideBorderVisibility: boolean; overrideFlag: boolean; get rows(): TableEntityRow[]; get style(): TableStyle | null; set style(value: TableStyle | null); get subclassMarker(): string; valueFlag: number; version: number; breakRowRanges: BreakRowRange[]; get content(): TableContent; tableBreakData: BreakData; private _content; clone(): CadObject; getBoundingBox(): BoundingBox | null; getCell(row: number, column: number): TableEntityCell; } export declare class TableContent { columns: TableEntityColumn[]; rows: TableEntityRow[]; style: TableStyle | null; } //# sourceMappingURL=TableEntity.d.ts.map