FeatureSet
Functions
Link copied to clipboard
fun <T : Any> FeatureSet<T>.forEachUntil(block: FeatureSet<T>.(ref: FeatureRef<T, *>, feature: Feature<T>) -> Boolean)
Recursively search for feature until function returns true
Link copied to clipboard
inline fun <T : Any, A> FeatureSet<T>.forEachWithAttribute(key: Attribute<A>, block: FeatureSet<T>.(ref: FeatureRef<T, *>, feature: Feature<T>, attribute: A) -> Unit)
Process all features with a given attribute from the one with highest z to lowest
Link copied to clipboard
inline fun <T : Any, A> FeatureSet<T>.forEachWithAttributeUntil(key: Attribute<A>, block: FeatureSet<T>.(ref: FeatureRef<T, *>, feature: Feature<T>, attribute: A) -> Boolean)
Link copied to clipboard
inline fun <T : Any, F : Feature<T>> FeatureSet<T>.forEachWithType(crossinline block: FeatureSet<T>.(ref: FeatureRef<T, F>, feature: F) -> Unit)
Link copied to clipboard
fun <T : Any> FeatureSet<T>.generateBitmap(canvasState: CanvasState<T>, painterCache: Map<PainterFeature<T>, Painter>, textMeasurer: TextMeasurer, size: Size): ImageBitmap
Link copied to clipboard
fun <T : Any> FeatureSet<T>.generateSvg(canvasState: CanvasState<T>, painterCache: Map<PainterFeature<T>, Painter>, id: String? = null): String
Link copied to clipboard