Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/api/config/geocore.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { GeoViewGeoChartConfig } from '@/api/config/reader/uuid-config-reader';
import type { GeoViewGeoChartConfig, GeoViewTimeSliderConfig } from '@/api/config/reader/uuid-config-reader';
import type { TypeDisplayLanguage } from '@/api/types/map-schema-types';
import type { GeoCoreLayerConfig, TypeGeoviewLayerConfig } from '@/api/types/layer-schema-types';
/** Class used to add GeoCore layers to the map. */
Expand Down Expand Up @@ -35,9 +35,13 @@ export declare class GeoCore {
}
/** Response structure containing the layer configuration and associated geocharts. */
export type GeoCoreLayerConfigResponse = {
/** The resolved layer configuration. */
config: TypeGeoviewLayerConfig;
/** The geochart configurations keyed by layer path. */
geocharts: {
[key: string]: GeoViewGeoChartConfig;
};
/** The time-slider configurations from GeoCore. */
timeSliderConfigs: GeoViewTimeSliderConfig[];
};
//# sourceMappingURL=geocore.d.ts.map
2 changes: 1 addition & 1 deletion src/api/config/geocore.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions src/api/config/reader/uuid-config-reader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ export type GeoCoreConfigResponseGCSLayer = {
layerName: string;
};
export type GeoCoreConfigResponsePackages = {
/** The geochart configurations. */
geochart: GeoChartGeoCoreConfig[];
/** Optional time-slider configurations. */
'time-slider'?: GeoViewTimeSliderConfig[];
};
export type GeoChartGeoCoreConfig = {
layers: GeoChartGeoCoreConfigLayer;
Expand All @@ -76,9 +79,18 @@ export type GeoCoreConfigResponseLayer = {
export type GeoViewGeoChartConfig = {
layers: GeoChartGeoCoreConfigLayer[];
};
/** The time-slider config object as returned by GeoCore. */
export type GeoViewTimeSliderConfig = {
/** The slider configuration entries. */
sliders: Record<string, unknown>[];
};
/** The type representing the GeoCore parsed response */
export type UUIDmapConfigReaderResponse = {
/** The parsed layer configurations. */
layers: TypeGeoviewLayerConfig[];
/** Optional geochart configurations. */
geocharts?: GeoViewGeoChartConfig[];
/** Optional time-slider configurations. */
timeSliderConfigs?: GeoViewTimeSliderConfig[];
};
//# sourceMappingURL=uuid-config-reader.d.ts.map
2 changes: 1 addition & 1 deletion src/api/config/reader/uuid-config-reader.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/api/types/layer-schema-types.d.ts.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/api/types/map-schema-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ export type TypeFooterBarProps = {
custom: TypeFooterBarTabsCustomProps[];
};
selectedTab: TypeValidFooterBarTabsCoreProps;
selectedDetailsLayerPath: string;
selectedGeochartLayerPath: string;
selectedLayersLayerPath: string;
selectedDataTableLayerPath: string;
selectedTimeSliderLayerPath: string;
Expand All @@ -103,6 +105,7 @@ export type TypeAppBarProps = {
selectedLayersLayerPath: string;
selectedDataTableLayerPath: string;
selectedTimeSliderLayerPath: string;
selectedDetailsLayerPath: string;
};
/** Overview map options. Default none. */
export type TypeOverviewMapProps = {
Expand Down Expand Up @@ -247,6 +250,8 @@ export type TypeViewSettings = {
homeView?: TypeMapViewSettings;
/** Enable rotation. If false, a rotation constraint that always sets the rotation to zero is used. Default = true. */
enableRotation?: boolean;
/** Lon lat to perform a click interaction at once layers are loaded. */
initialClickCoordinate?: Coordinate;
/**
* The initial rotation for the view in degree (positive rotation clockwise, 0 means North). Will be converted to radiant by
* the viewer. Domain = [0..360], default = 0.
Expand Down Expand Up @@ -422,6 +427,8 @@ export type TypeOutfields = {
alias: string;
type: TypeOutfieldsType;
domain?: codedValueType | rangeDomainType;
/** Whether this field appears in summary views. Default = true. */
summary?: boolean;
};
/** The types supported by the outfields object. */
export type TypeOutfieldsType = 'string' | 'date' | 'number' | 'url' | 'oid';
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/map-schema-types.d.ts.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/core/components/common/focus-trap-container.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ interface FocusTrapContainerProps {
/**
* Traps keyboard tab focus within a container.
*
* TODO: Remove memo — children prop (ReactNode) creates new references on every parent render,
* making shallow comparison always fail and negating any memo performance benefit.
*
* @param props - FocusTrapContainer properties
* @returns The focus trap wrapper element
*/
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/common/focus-trap-container.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/components/common/layer-list-style.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 6 additions & 4 deletions src/core/components/common/layer-list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ interface LayerListItemProps {
* Renders a single layer list item with icon, status, and selection state.
*
* Memoized to avoid re-rendering all items when only the selected layer changes.
* When only one layer's `isSelected` state changes in the list, the other N-1 items
* skip re-rendering thanks to memo shallow comparison.
*
* @param props - Properties defined in LayerListItemProps interface
* @returns The layer list item element
Expand All @@ -60,10 +62,10 @@ export declare const LayerListItem: import("react").MemoExoticComponent<({ id, i
/**
* Renders a list of layers with selection and status indicators.
*
* Memoized to prevent re-rendering when unrelated parent state changes.
* Note: Props (selectedLayerPath, layerList) do change frequently on layer interaction.
* Kept for now to protect against parent component re-renders; can be removed
* if profiling shows overhead exceeds benefits.
* Memoized to prevent re-rendering when unrelated parent state changes (e.g., other UI updates).
* While `selectedLayerPath` and `layerList` do change frequently on layer interactions, memo
* protects against unnecessary renders triggered by parent component updates that don't affect
* these props. The shallow comparison overhead is minimal compared to rendering all list items.
*
* @param props - Properties defined in LayerListProps interface
* @returns The layer list element
Expand Down
2 changes: 1 addition & 1 deletion src/core/components/common/layer-list.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/core/components/common/responsive-grid-layout.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading