Skip to content

Commit

Permalink
fix: cleanup imports
Browse files Browse the repository at this point in the history
  • Loading branch information
hwbllmnn committed Jun 19, 2024
1 parent 0174151 commit 605ccc7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/OlStyleParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import { METERS_PER_UNIT } from 'ol/proj/Units';

import OlStyleUtil from './Util/OlStyleUtil';
import { toContext } from 'ol/render';
import { Feature as OlFeature } from 'ol';
import OlFeature from 'ol/Feature';

export interface OlParserStyleFct {
(feature?: any, resolution?: number): any;
Expand Down
21 changes: 14 additions & 7 deletions src/Util/OlStyleUtil.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
import {
Expression,
MarkSymbolizer,
PropertyType,
Style,
TextSymbolizer
} from 'geostyler-style/dist/style';

import {
Fcase,
GeoStylerBooleanFunction,
GeoStylerFunction,
GeoStylerNumberFunction,
GeoStylerStringFunction,
GeoStylerUnknownFunction,
} from 'geostyler-style/dist/functions';

import {
isGeoStylerBooleanFunction,
isGeoStylerFunction,
isGeoStylerNumberFunction,
isGeoStylerStringFunction,
isGeoStylerUnknownFunction,
MarkSymbolizer,
PropertyType,
Style,
TextSymbolizer
} from 'geostyler-style';
import { Feature as OlFeature } from 'ol';
isGeoStylerUnknownFunction
} from 'geostyler-style/dist/typeguards';

import OlFeature from 'ol/Feature';
import { colors } from './colors';

const WELLKNOWNNAME_TTF_REGEXP = /^ttf:\/\/(.+)#(.+)$/;
Expand Down

0 comments on commit 605ccc7

Please sign in to comment.