Skip to content

Commit

Permalink
feat(WebGlMap): Export the component from the packages
Browse files Browse the repository at this point in the history
  • Loading branch information
richterb committed Oct 30, 2024
1 parent d145c65 commit 3ee8452
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/visualizations-react/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
ChoroplethSvg as _ChoroplethSvg,
PoiMap as _PoiMap,
Table as _Table,
WebGlMap as _WebGlMap,
} from '@opendatasoft/visualizations';
import type {
ChartProps,
Expand All @@ -17,6 +18,7 @@ import type {
ChoroplethGeoJsonProps,
ChoroplethVectorTilesProps,
PoiMapProps,
WebGlMapProps,
TableProps,
} from '@opendatasoft/visualizations';
import reactifySvelte from 'reactify';
Expand All @@ -40,4 +42,5 @@ export const ChoroplethSvg = reactifySvelte<ChoroplethGeoJsonProps>(
'ods-visualizations-choropleth-svg'
);
export const PoiMap = reactifySvelte<PoiMapProps>(_PoiMap, 'ods-visualizations-poi-map');
export const WebGlMap = reactifySvelte<WebGlMapProps>(_WebGlMap, 'ods-visualizations-webgl-map');
export const Table = reactifySvelte<TableProps>(_Table, 'ods-visualizations-table');
5 changes: 5 additions & 0 deletions packages/visualizations/src/components/Map/WebGl/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,8 @@ export type Images = Record<
string,
{ id: string; url: string; options?: Partial<StyleImageMetadata> }
>;

export type WebGlMapProps = {
data: WebGlMapData;
options: WebGlMapOptions;
};

1 comment on commit 3ee8452

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

94.67%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   index.ts100%100%100%100%
src/client
   constants.ts100%100%100%100%
   error.ts100%100%100%100%
   index.ts84.14%74.03%100%95.31%102–103, 124, 13, 146, 148, 148–149, 15, 15, 151, 162, 169, 169, 17, 17, 171, 176, 179, 182, 184, 52, 82
   types.ts100%100%100%100%
src/odsql
   clauses.ts82.61%71.43%80%90.91%14, 32, 42
   index.ts92.05%83.72%95.74%94.19%111, 146, 25, 28, 56–57, 57, 57–58, 68, 78–79

Please sign in to comment.