@kepler.gl/types 3.3.0-alpha.11 → 3.3.0-alpha.12
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/actions.d.ts +2 -0
- package/annotations.d.ts +2 -1
- package/layers.d.ts +18 -0
- package/package.json +1 -1
package/actions.d.ts
CHANGED
package/annotations.d.ts
CHANGED
|
@@ -16,7 +16,8 @@ export type BaseAnnotation = {
|
|
|
16
16
|
isVisible: boolean;
|
|
17
17
|
autoSize: boolean;
|
|
18
18
|
autoSizeY: boolean;
|
|
19
|
-
|
|
19
|
+
/** [lng, lat] or [lng, lat, altitudeMeters]. Missing altitude is treated as 0. */
|
|
20
|
+
anchorPoint: [number, number] | [number, number, number];
|
|
20
21
|
label: string;
|
|
21
22
|
editorState?: Record<string, any>;
|
|
22
23
|
mapIndex?: number;
|
package/layers.d.ts
CHANGED
|
@@ -62,11 +62,23 @@ export type EnhancedFieldPair = {
|
|
|
62
62
|
pair: FieldPair['pair'];
|
|
63
63
|
};
|
|
64
64
|
|
|
65
|
+
export type ColumnGroup = {
|
|
66
|
+
key: string;
|
|
67
|
+
label: string;
|
|
68
|
+
/** Column keys shown when this group is active (mutually exclusive with other groups). */
|
|
69
|
+
columns: string[];
|
|
70
|
+
};
|
|
71
|
+
|
|
65
72
|
export type SupportedColumnMode = {
|
|
66
73
|
key: string;
|
|
67
74
|
label: string;
|
|
68
75
|
requiredColumns: string[];
|
|
69
76
|
optionalColumns?: string[];
|
|
77
|
+
/**
|
|
78
|
+
* Optional mutually exclusive column sets rendered as tabs
|
|
79
|
+
* (e.g. Lat/Lng vs GeoJSON position source).
|
|
80
|
+
*/
|
|
81
|
+
columnGroups?: ColumnGroup[];
|
|
70
82
|
hasHelp?: boolean;
|
|
71
83
|
verifyField?: (field: Field) => boolean;
|
|
72
84
|
};
|
|
@@ -107,6 +119,8 @@ export type LayerRadiusConfig = {
|
|
|
107
119
|
};
|
|
108
120
|
export type LayerWeightConfig = {
|
|
109
121
|
weightField: VisualChannelField;
|
|
122
|
+
weightDomain?: VisualChannelDomain;
|
|
123
|
+
weightScale?: VisualChannelScale;
|
|
110
124
|
};
|
|
111
125
|
|
|
112
126
|
export type IndexBy = {
|
|
@@ -169,6 +183,8 @@ export type LayerTextLabel = {
|
|
|
169
183
|
outlineWidth: number;
|
|
170
184
|
outlineColor: RGBAColor;
|
|
171
185
|
backgroundColor: RGBAColor | null;
|
|
186
|
+
/** Hide labels that overlap other labels of the same field (GPU collision filter). */
|
|
187
|
+
collisionEnabled?: boolean;
|
|
172
188
|
};
|
|
173
189
|
|
|
174
190
|
export type ColorRangeConfig = {
|
|
@@ -236,6 +252,8 @@ export type VisConfig = {
|
|
|
236
252
|
) => boolean;
|
|
237
253
|
|
|
238
254
|
allowCustomValue?: boolean;
|
|
255
|
+
/** Checkbox label shown when allowCustomValue is true. Defaults to "custom input". */
|
|
256
|
+
customInputLabel?: string;
|
|
239
257
|
};
|
|
240
258
|
|
|
241
259
|
export type VisConfigNumber = VisConfig & {
|
package/package.json
CHANGED