@bilig/protocol 0.1.54 → 0.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types.d.ts +41 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -162,6 +162,44 @@ export interface WorkbookPivotSnapshot {
|
|
|
162
162
|
rows: number;
|
|
163
163
|
cols: number;
|
|
164
164
|
}
|
|
165
|
+
export type WorkbookChartType = "column" | "bar" | "line" | "area" | "pie" | "scatter";
|
|
166
|
+
export type WorkbookChartSeriesOrientation = "rows" | "columns";
|
|
167
|
+
export type WorkbookChartLegendPosition = "top" | "right" | "bottom" | "left" | "hidden";
|
|
168
|
+
export interface WorkbookChartSnapshot {
|
|
169
|
+
id: string;
|
|
170
|
+
sheetName: string;
|
|
171
|
+
address: string;
|
|
172
|
+
source: CellRangeRef;
|
|
173
|
+
chartType: WorkbookChartType;
|
|
174
|
+
seriesOrientation?: WorkbookChartSeriesOrientation;
|
|
175
|
+
firstRowAsHeaders?: boolean;
|
|
176
|
+
firstColumnAsLabels?: boolean;
|
|
177
|
+
title?: string;
|
|
178
|
+
legendPosition?: WorkbookChartLegendPosition;
|
|
179
|
+
rows: number;
|
|
180
|
+
cols: number;
|
|
181
|
+
}
|
|
182
|
+
export interface WorkbookImageSnapshot {
|
|
183
|
+
id: string;
|
|
184
|
+
sheetName: string;
|
|
185
|
+
address: string;
|
|
186
|
+
sourceUrl: string;
|
|
187
|
+
rows: number;
|
|
188
|
+
cols: number;
|
|
189
|
+
altText?: string;
|
|
190
|
+
}
|
|
191
|
+
export type WorkbookShapeType = "rectangle" | "roundedRectangle" | "ellipse" | "line" | "arrow" | "textBox";
|
|
192
|
+
export interface WorkbookShapeSnapshot {
|
|
193
|
+
id: string;
|
|
194
|
+
sheetName: string;
|
|
195
|
+
address: string;
|
|
196
|
+
shapeType: WorkbookShapeType;
|
|
197
|
+
rows: number;
|
|
198
|
+
cols: number;
|
|
199
|
+
text?: string;
|
|
200
|
+
fillColor?: string;
|
|
201
|
+
strokeColor?: string;
|
|
202
|
+
}
|
|
165
203
|
export interface WorkbookTableSnapshot {
|
|
166
204
|
name: string;
|
|
167
205
|
sheetName: string;
|
|
@@ -419,6 +457,9 @@ export interface WorkbookMetadataSnapshot {
|
|
|
419
457
|
tables?: WorkbookTableSnapshot[];
|
|
420
458
|
spills?: WorkbookSpillSnapshot[];
|
|
421
459
|
pivots?: WorkbookPivotSnapshot[];
|
|
460
|
+
charts?: WorkbookChartSnapshot[];
|
|
461
|
+
images?: WorkbookImageSnapshot[];
|
|
462
|
+
shapes?: WorkbookShapeSnapshot[];
|
|
422
463
|
styles?: CellStyleRecord[];
|
|
423
464
|
formats?: CellNumberFormatRecord[];
|
|
424
465
|
calculationSettings?: WorkbookCalculationSettingsSnapshot;
|