0.3.0 #23

Open
altavir wants to merge 40 commits from dev into main
2 changed files with 3 additions and 0 deletions
Showing only changes of commit f62f8181ce - Show all commits

View File

@ -6,6 +6,7 @@
- `alpha` extension for feature attribute builder
### Changed
- avoid drawing features with VisibleAttribute false
### Deprecated

View File

@ -23,6 +23,8 @@ public fun <T : Any> FeatureDrawScope<T>.drawFeature(
): Unit {
val color = feature.color ?: Color.Red
val alpha = feature.attributes[AlphaAttribute] ?: 1f
//avoid drawing invisible features
if(feature.attributes[VisibleAttribute] == false) return
when (feature) {
is FeatureSelector -> drawFeature(feature.selector(state.zoom))