@trebco/treb 29.5.0 → 29.5.1
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/treb.d.ts
CHANGED
|
@@ -1091,24 +1091,6 @@ export interface FreezePane {
|
|
|
1091
1091
|
rows: number;
|
|
1092
1092
|
columns: number;
|
|
1093
1093
|
}
|
|
1094
|
-
export declare const StandardGradientsList: {
|
|
1095
|
-
readonly 'red-green': {
|
|
1096
|
-
readonly color_space: "RGB";
|
|
1097
|
-
readonly stops: GradientStop[];
|
|
1098
|
-
};
|
|
1099
|
-
readonly 'red-yellow-green': {
|
|
1100
|
-
readonly color_space: "RGB";
|
|
1101
|
-
readonly stops: GradientStop[];
|
|
1102
|
-
};
|
|
1103
|
-
readonly 'green-red': {
|
|
1104
|
-
readonly color_space: "RGB";
|
|
1105
|
-
readonly stops: GradientStop[];
|
|
1106
|
-
};
|
|
1107
|
-
readonly 'green-yellow-red': {
|
|
1108
|
-
readonly color_space: "RGB";
|
|
1109
|
-
readonly stops: GradientStop[];
|
|
1110
|
-
};
|
|
1111
|
-
};
|
|
1112
1094
|
|
|
1113
1095
|
/**
|
|
1114
1096
|
* options for serializing data
|
|
@@ -1252,7 +1234,7 @@ export type HorizontalAlign = '' | 'left' | 'center' | 'right';
|
|
|
1252
1234
|
|
|
1253
1235
|
/** vertical align constants for cell style */
|
|
1254
1236
|
export type VerticalAlign = '' | 'top' | 'bottom' | 'middle';
|
|
1255
|
-
export type ThemeColorType =
|
|
1237
|
+
export type ThemeColorType = 'Background' | 'Text' | 'Background2' | 'Text2' | 'Accent' | 'Accent2' | 'Accent3' | 'Accent4' | 'Accent5' | 'Accent6';
|
|
1256
1238
|
|
|
1257
1239
|
/**
|
|
1258
1240
|
* font size for cell style. we generally prefer relative sizes
|
package/package.json
CHANGED
|
@@ -27,26 +27,36 @@ export type HorizontalAlign = '' | 'left' | 'center' | 'right';
|
|
|
27
27
|
/** vertical align constants for cell style */
|
|
28
28
|
export type VerticalAlign = '' | 'top' | 'bottom' | 'middle';
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
'Background'
|
|
32
|
-
'Text'
|
|
33
|
-
'Background2'
|
|
34
|
-
'Text2'
|
|
35
|
-
'Accent'
|
|
36
|
-
'Accent2'
|
|
37
|
-
'Accent3'
|
|
38
|
-
'Accent4'
|
|
39
|
-
'Accent5'
|
|
40
|
-
'Accent6'
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
export type ThemeColorType =
|
|
31
|
+
'Background'|
|
|
32
|
+
'Text'|
|
|
33
|
+
'Background2'|
|
|
34
|
+
'Text2'|
|
|
35
|
+
'Accent'|
|
|
36
|
+
'Accent2'|
|
|
37
|
+
'Accent3'|
|
|
38
|
+
'Accent4'|
|
|
39
|
+
'Accent5'|
|
|
40
|
+
'Accent6';
|
|
41
|
+
|
|
42
|
+
const ThemeColorMap: Record<string, number> = {
|
|
43
|
+
'Background': 0,
|
|
44
|
+
'Text': 1,
|
|
45
|
+
'Background2': 2,
|
|
46
|
+
'Text2': 3,
|
|
47
|
+
'Accent': 4,
|
|
48
|
+
'Accent2': 5,
|
|
49
|
+
'Accent3': 6,
|
|
50
|
+
'Accent4': 7,
|
|
51
|
+
'Accent5': 8,
|
|
52
|
+
'Accent6': 9,
|
|
53
|
+
};
|
|
46
54
|
|
|
55
|
+
/*
|
|
47
56
|
for (const [index, entry] of ThemeColorList.entries()) {
|
|
48
57
|
ThemeColorMap[entry] = index;
|
|
49
58
|
}
|
|
59
|
+
*/
|
|
50
60
|
|
|
51
61
|
export const ThemeColorIndex = (color: ThemeColor) => {
|
|
52
62
|
if (typeof color.theme === 'number') {
|
|
@@ -67,7 +67,14 @@ export interface ConditionalFormatGradientOptions {
|
|
|
67
67
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
/**
|
|
71
|
+
* @internal
|
|
72
|
+
*
|
|
73
|
+
* @privateRemarks
|
|
74
|
+
*
|
|
75
|
+
* this is marked internal temporarily while I figure out why our API
|
|
76
|
+
* generator is not exporting the gradient stop type
|
|
77
|
+
*/
|
|
71
78
|
export const StandardGradientsList = {
|
|
72
79
|
'red-green': {
|
|
73
80
|
color_space: 'RGB',
|