Skip to content

Commit

Permalink
refactor(search-result-tool): auto formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed Jan 19, 2024
1 parent ed7f20c commit 65ed395
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions src/app/pages/portal/panels/search-results-tool/search.state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,36 +49,36 @@ export class SearchState {
private searchSourceService: SearchSourceService,
private storageService: StorageService,
private configService: ConfigService) {
this.searchOverlayStyle = {
markerColor: '#45D7E6', // marker fill
markerOpacity: 0.8, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: 'transparent', // poly
fillOpacity: 0, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#45D7E6', // line and poly
strokeOpacity: 0.7, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 4 // line and poly
};
this.searchOverlayStyleSelection = {
markerColor: '#45D7E6', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: 'transparent', // poly
fillOpacity: 0, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#45D7E6', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 4 // line and poly
};
this.searchOverlayStyleFocus = {
markerColor: '#45D7E6', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: 'transparent', // poly
fillOpacity: 0, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#45D7E6', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 4 // line and poly
};
this.searchOverlayStyle = {
markerColor: '#45D7E6', // marker fill
markerOpacity: 0.8, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: 'transparent', // poly
fillOpacity: 0, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#45D7E6', // line and poly
strokeOpacity: 0.7, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 4 // line and poly
};
this.searchOverlayStyleSelection = {
markerColor: '#45D7E6', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: 'transparent', // poly
fillOpacity: 0, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#45D7E6', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 4 // line and poly
};
this.searchOverlayStyleFocus = {
markerColor: '#45D7E6', // marker fill
markerOpacity: 1, // marker opacity not applied if a rgba markerColor is provided
markerOutlineColor: '#ffffff', // marker contour
fillColor: 'transparent', // poly
fillOpacity: 0, // poly fill opacity not applied if a rgba fillColor is provided
strokeColor: '#45D7E6', // line and poly
strokeOpacity: 1, // line and poly not applied if a rgba strokeColor is provided
strokeWidth: 4 // line and poly
};

const searchResultsGeometryEnabled = this.storageService.get('searchResultsGeometryEnabled') as boolean;
if (searchResultsGeometryEnabled) {
Expand All @@ -91,7 +91,7 @@ export class SearchState {
const filterClauseFunc = (record: EntityRecord<SearchResult>) => {
return record.entity.meta.score === 100;
};
return new EntityStoreFilterCustomFuncStrategy({filterClauseFunc} as EntityStoreStrategyFuncOptions);
return new EntityStoreFilterCustomFuncStrategy({ filterClauseFunc } as EntityStoreStrategyFuncOptions);
}

/**
Expand Down

0 comments on commit 65ed395

Please sign in to comment.