-
-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
issues 901 changes #616
base: main
Are you sure you want to change the base?
issues 901 changes #616
Conversation
…nd singlechar and escape.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution @rajsync. 🙏 This looks already promising.
I'm not sure how we want to implement default values as this is repo contains just a type definition.
Maybe we can force the parsers (via StyleParser Interface) to contain defaultLikeAttributes
(just an idea).
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "geostyler-style", | |||
"version": "8.1.0", | |||
"version": "8.2.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is done by the pipelines. You don't have to care about it. So please revert to 8.1.0. :)
export interface LikeAttributes { | ||
wildCard: string; | ||
singleChar: string; | ||
escape: string; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think an array like structure would fit the geostyler-style more. e.g.:
export interface LikeAttributes { | |
wildCard: string; | |
singleChar: string; | |
escape: string; | |
} | |
/** | |
* The LikeAttributes describe the behaviour of the {@link LikeFilter}. | |
* [ | |
* wildcard, (default should be `*`), | |
* singleChar, (default should be `.`), | |
* escape, (default should be `!`), | |
* ] | |
*/ | |
export interface LikeAttributes [string, string, string]; |
... this was just written freestyle on github so its just for orientation. :)
currently wildcard, singleChar and escape values are hard coded.
provided option to pass wildcard, singleChar and escape values, while creating comparison filter 'PropertyIsLike'