diff --git a/README.md b/README.md index fb1bb80..35d6dd7 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ In `build.gradle` of app module, include the following dependency ```gradle dependencies { - implementation("io.github.pushpalroy:jetlime:2.1.1") + implementation("io.github.pushpalroy:jetlime:2.2.0") } ``` @@ -257,10 +257,10 @@ For using `FILLED`, the [filled()](https://pushpalroy.github.io/JetLime/jetlime/ pointType = EventPointType.filled(0.8f) ``` For using `CUSTOM`, the [custom()](https://pushpalroy.github.io/JetLime/jetlime/com.pushpal.jetlime/-event-point-type/-companion/index.html#-2135258840%2FFunctions%2F-1761194290) function has to be used which takes an `icon` of `Painter`. -This can be used to use a custom icon instead of the default types defined. +This can be used to use a custom icon instead of the default types defined. An optional `tint` can also be applied on the icon. ```kotlin -pointType = EventPointType.custom(icon = painterResource(id = R.drawable.icon_check)) +pointType = EventPointType.custom(icon = painterResource(id = R.drawable.icon_check), tint = Color.Green) ``` #### 💨 Point Animation diff --git a/app/src/main/java/com/pushpal/jetlime/ui/timelines/CustomizedHorizontalTimeLine.kt b/app/src/main/java/com/pushpal/jetlime/ui/timelines/CustomizedHorizontalTimeLine.kt index 749fd77..625b95f 100644 --- a/app/src/main/java/com/pushpal/jetlime/ui/timelines/CustomizedHorizontalTimeLine.kt +++ b/app/src/main/java/com/pushpal/jetlime/ui/timelines/CustomizedHorizontalTimeLine.kt @@ -70,20 +70,24 @@ fun CustomizedHorizontalTimeLine(modifier: Modifier = Modifier) { JetLimeEvent( style = JetLimeEventDefaults.eventStyle( position = position, - pointColor = Color(0xFF2889D6), + pointRadius = 12.dp, pointFillColor = Color(0xFFD5F2FF), - pointRadius = 14.dp, - pointAnimation = if (index == 2) JetLimeEventDefaults.pointAnimation() else null, + pointColor = when (index) { + 2 -> Color.White + else -> Color(0xFF2889D6) + }, + pointAnimation = if (index == 3) JetLimeEventDefaults.pointAnimation() else null, pointType = when (index) { - 1 -> EventPointType.filled(0.8f) - 3 -> EventPointType.custom( + 1 -> EventPointType.filled(0.7f) // 70% fill + 2 -> EventPointType.custom( icon = painterResource(id = R.drawable.icon_check), + tint = Color(0xFF00BCD4), ) else -> EventPointType.Default }, pointStrokeWidth = when (index) { - 3 -> 0.dp + 2 -> 0.dp else -> 2.dp }, pointStrokeColor = MaterialTheme.colorScheme.onBackground, diff --git a/app/src/main/java/com/pushpal/jetlime/ui/timelines/CustomizedVerticalTimeLine.kt b/app/src/main/java/com/pushpal/jetlime/ui/timelines/CustomizedVerticalTimeLine.kt index c5dd291..753170a 100644 --- a/app/src/main/java/com/pushpal/jetlime/ui/timelines/CustomizedVerticalTimeLine.kt +++ b/app/src/main/java/com/pushpal/jetlime/ui/timelines/CustomizedVerticalTimeLine.kt @@ -50,17 +50,17 @@ import com.pushpal.jetlime.ui.timelines.event.VerticalEventContent @ExperimentalAnimationApi @Composable fun CustomizedVerticalTimeLine(modifier: Modifier = Modifier) { - val items = remember { getCharacters().subList(0, 4) } + val items = remember { getCharacters().subList(0, 5) } Surface( modifier = modifier.fillMaxSize(), ) { JetLimeColumn( - modifier = Modifier.padding(16.dp), + modifier = Modifier.padding(horizontal = 16.dp), itemsList = ItemsList(items), key = { _, item -> item.id }, style = JetLimeDefaults.columnStyle( - contentDistance = 32.dp, + contentDistance = 24.dp, itemSpacing = 16.dp, lineThickness = 2.dp, lineBrush = JetLimeDefaults.lineSolidBrush(color = Color(0xFF2196F3)), @@ -70,20 +70,33 @@ fun CustomizedVerticalTimeLine(modifier: Modifier = Modifier) { JetLimeEvent( style = JetLimeEventDefaults.eventStyle( position = position, - pointColor = Color(0xFF2889D6), - pointFillColor = Color(0xFFD5F2FF), - pointRadius = 14.dp, - pointAnimation = if (index == 2) JetLimeEventDefaults.pointAnimation() else null, + pointFillColor = Color(0xFFCCEFFF), + pointRadius = 12.dp, + pointColor = when (index) { + 3, 4 -> Color.White + else -> Color(0xFF2889D6) + }, + pointAnimation = when (index) { + 1, 4 -> JetLimeEventDefaults.pointAnimation() + else -> null + }, pointType = when (index) { - 1 -> EventPointType.filled(0.8f) + 1 -> EventPointType.filled(0.7f) // 70% fill 3 -> EventPointType.custom( icon = painterResource(id = R.drawable.icon_check), + tint = Color(0xFF649228), + ) + + 4 -> EventPointType.custom( + icon = painterResource(id = R.drawable.icon_change), + tint = Color(0xFFFF5722), ) - else -> EventPointType.Default + else -> EventPointType.Default // Default style for rest }, pointStrokeWidth = when (index) { - 3 -> 0.dp + 2, 4 -> 0.dp + 3 -> 1.dp else -> 2.dp }, pointStrokeColor = MaterialTheme.colorScheme.onBackground, diff --git a/app/src/main/res/drawable/icon_change.xml b/app/src/main/res/drawable/icon_change.xml new file mode 100644 index 0000000..20fede5 --- /dev/null +++ b/app/src/main/res/drawable/icon_change.xml @@ -0,0 +1,12 @@ + + + + + diff --git a/app/src/main/res/drawable/icon_check.xml b/app/src/main/res/drawable/icon_check.xml index 3f141b9..c22271d 100644 --- a/app/src/main/res/drawable/icon_check.xml +++ b/app/src/main/res/drawable/icon_check.xml @@ -1,9 +1,9 @@ - + android:width="32dp" + android:height="32dp" + android:viewportWidth="24" + android:viewportHeight="24"> + diff --git a/art/custom.png b/art/custom.png index 32c2a15..cccc480 100644 Binary files a/art/custom.png and b/art/custom.png differ diff --git a/docs/jetlime/com.pushpal.jetlime/-event-point-type/-companion/custom.html b/docs/jetlime/com.pushpal.jetlime/-event-point-type/-companion/custom.html index 216562e..0c7b852 100644 --- a/docs/jetlime/com.pushpal.jetlime/-event-point-type/-companion/custom.html +++ b/docs/jetlime/com.pushpal.jetlime/-event-point-type/-companion/custom.html @@ -61,12 +61,12 @@
-
+

custom

-

Creates a custom event point type with a specified Painter icon.

Return

A new instance of EventPointType with the custom icon.

Parameters

icon

The Painter icon for the custom event point type.

+
fun custom(icon: Painter, tint: Color? = null): EventPointType

Creates a custom event point type with a specified Painter icon.

Return

A new instance of EventPointType with the custom icon.

Parameters

icon

The Painter icon for the custom event point type.

tint

The optional tint Color of the custom icon.

Functions

-
+
- +
Link copied to clipboard
-

Creates a custom event point type with a specified Painter icon.

+
fun custom(icon: Painter, tint: Color? = null): EventPointType

Creates a custom event point type with a specified Painter icon.

diff --git a/docs/jetlime/com.pushpal.jetlime/-event-point-type/index.html b/docs/jetlime/com.pushpal.jetlime/-event-point-type/index.html index 8ed16b5..2bdefd8 100644 --- a/docs/jetlime/com.pushpal.jetlime/-event-point-type/index.html +++ b/docs/jetlime/com.pushpal.jetlime/-event-point-type/index.html @@ -121,6 +121,21 @@

Properties

+ +
+
+
+ + +
Link copied to clipboard
+
+
+
+
val tint: Color? = null

An optional tint Color overlay for the icon.

+
+
+
+
diff --git a/docs/jetlime/com.pushpal.jetlime/-event-point-type/tint.html b/docs/jetlime/com.pushpal.jetlime/-event-point-type/tint.html new file mode 100644 index 0000000..13ea002 --- /dev/null +++ b/docs/jetlime/com.pushpal.jetlime/-event-point-type/tint.html @@ -0,0 +1,80 @@ + + + + + tint + + + + + + + + + + + + + + + + + + + +
+ +
+ +
+
+ +
+

tint

+
+
val tint: Color? = null
+
+ +
+
+
+ + diff --git a/docs/jetlime/package-list b/docs/jetlime/package-list index 6cf8949..573cb5e 100644 --- a/docs/jetlime/package-list +++ b/docs/jetlime/package-list @@ -15,7 +15,7 @@ $dokka.location:com.pushpal.jetlime/EventPointAnimation/targetValue/#/PointingTo $dokka.location:com.pushpal.jetlime/EventPointType.Companion///PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/-companion/index.html $dokka.location:com.pushpal.jetlime/EventPointType.Companion/Default/#/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/-companion/-default.html $dokka.location:com.pushpal.jetlime/EventPointType.Companion/EMPTY/#/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/-companion/-e-m-p-t-y.html -$dokka.location:com.pushpal.jetlime/EventPointType.Companion/custom/#androidx.compose.ui.graphics.painter.Painter/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/-companion/custom.html +$dokka.location:com.pushpal.jetlime/EventPointType.Companion/custom/#androidx.compose.ui.graphics.painter.Painter#androidx.compose.ui.graphics.Color?/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/-companion/custom.html $dokka.location:com.pushpal.jetlime/EventPointType.Companion/filled/#kotlin.Float/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/-companion/filled.html $dokka.location:com.pushpal.jetlime/EventPointType///PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/index.html $dokka.location:com.pushpal.jetlime/EventPointType/equals/#kotlin.Any?/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/equals.html @@ -25,6 +25,7 @@ $dokka.location:com.pushpal.jetlime/EventPointType/icon/#/PointingToDeclaration/ $dokka.location:com.pushpal.jetlime/EventPointType/isCustom/#/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/is-custom.html $dokka.location:com.pushpal.jetlime/EventPointType/isEmptyOrFilled/#/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/is-empty-or-filled.html $dokka.location:com.pushpal.jetlime/EventPointType/isFilled/#/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/is-filled.html +$dokka.location:com.pushpal.jetlime/EventPointType/tint/#/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/tint.html $dokka.location:com.pushpal.jetlime/EventPointType/type/#/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-point-type/type.html $dokka.location:com.pushpal.jetlime/EventPosition.Companion///PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-position/-companion/index.html $dokka.location:com.pushpal.jetlime/EventPosition.Companion/dynamic/#kotlin.Int#kotlin.Int/PointingToDeclaration/jetlime/com.pushpal.jetlime/-event-position/-companion/dynamic.html diff --git a/docs/scripts/pages.json b/docs/scripts/pages.json index bd04e0e..0cf8815 100644 --- a/docs/scripts/pages.json +++ b/docs/scripts/pages.json @@ -1 +1 @@ -[{"name":"BOTTOM","description":"com.pushpal.jetlime.HorizontalAlignment.BOTTOM","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/-b-o-t-t-o-m/index.html","searchKeys":["BOTTOM","BOTTOM","com.pushpal.jetlime.HorizontalAlignment.BOTTOM"]},{"name":"LEFT","description":"com.pushpal.jetlime.VerticalAlignment.LEFT","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/-l-e-f-t/index.html","searchKeys":["LEFT","LEFT","com.pushpal.jetlime.VerticalAlignment.LEFT"]},{"name":"RIGHT","description":"com.pushpal.jetlime.VerticalAlignment.RIGHT","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/-r-i-g-h-t/index.html","searchKeys":["RIGHT","RIGHT","com.pushpal.jetlime.VerticalAlignment.RIGHT"]},{"name":"TOP","description":"com.pushpal.jetlime.HorizontalAlignment.TOP","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/-t-o-p/index.html","searchKeys":["TOP","TOP","com.pushpal.jetlime.HorizontalAlignment.TOP"]},{"name":"class EventPointAnimation","description":"com.pushpal.jetlime.EventPointAnimation","location":"jetlime/com.pushpal.jetlime/-event-point-animation/index.html","searchKeys":["EventPointAnimation","class EventPointAnimation","com.pushpal.jetlime.EventPointAnimation"]},{"name":"class EventPointType","description":"com.pushpal.jetlime.EventPointType","location":"jetlime/com.pushpal.jetlime/-event-point-type/index.html","searchKeys":["EventPointType","class EventPointType","com.pushpal.jetlime.EventPointType"]},{"name":"class EventPosition","description":"com.pushpal.jetlime.EventPosition","location":"jetlime/com.pushpal.jetlime/-event-position/index.html","searchKeys":["EventPosition","class EventPosition","com.pushpal.jetlime.EventPosition"]},{"name":"class ItemsList(val items: List)","description":"com.pushpal.jetlime.ItemsList","location":"jetlime/com.pushpal.jetlime/-items-list/index.html","searchKeys":["ItemsList","class ItemsList(val items: List)","com.pushpal.jetlime.ItemsList"]},{"name":"class JetLimeEventStyle","description":"com.pushpal.jetlime.JetLimeEventStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/index.html","searchKeys":["JetLimeEventStyle","class JetLimeEventStyle","com.pushpal.jetlime.JetLimeEventStyle"]},{"name":"class JetLimeStyle","description":"com.pushpal.jetlime.JetLimeStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/index.html","searchKeys":["JetLimeStyle","class JetLimeStyle","com.pushpal.jetlime.JetLimeStyle"]},{"name":"constructor(items: List)","description":"com.pushpal.jetlime.ItemsList.ItemsList","location":"jetlime/com.pushpal.jetlime/-items-list/-items-list.html","searchKeys":["ItemsList","constructor(items: List)","com.pushpal.jetlime.ItemsList.ItemsList"]},{"name":"enum HorizontalAlignment : Enum ","description":"com.pushpal.jetlime.HorizontalAlignment","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/index.html","searchKeys":["HorizontalAlignment","enum HorizontalAlignment : Enum ","com.pushpal.jetlime.HorizontalAlignment"]},{"name":"enum VerticalAlignment : Enum ","description":"com.pushpal.jetlime.VerticalAlignment","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/index.html","searchKeys":["VerticalAlignment","enum VerticalAlignment : Enum ","com.pushpal.jetlime.VerticalAlignment"]},{"name":"fun JetLimeColumn(itemsList: ItemsList, modifier: Modifier = Modifier, style: JetLimeStyle = JetLimeDefaults.columnStyle(), listState: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), key: (index: Int, item: T) -> Any? = null, itemContent: (index: Int, T, EventPosition) -> Unit)","description":"com.pushpal.jetlime.JetLimeColumn","location":"jetlime/com.pushpal.jetlime/-jet-lime-column.html","searchKeys":["JetLimeColumn","fun JetLimeColumn(itemsList: ItemsList, modifier: Modifier = Modifier, style: JetLimeStyle = JetLimeDefaults.columnStyle(), listState: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), key: (index: Int, item: T) -> Any? = null, itemContent: (index: Int, T, EventPosition) -> Unit)","com.pushpal.jetlime.JetLimeColumn"]},{"name":"fun JetLimeRow(itemsList: ItemsList, modifier: Modifier = Modifier, style: JetLimeStyle = JetLimeDefaults.rowStyle(), listState: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), key: (index: Int, item: T) -> Any? = null, itemContent: (index: Int, T, EventPosition) -> Unit)","description":"com.pushpal.jetlime.JetLimeRow","location":"jetlime/com.pushpal.jetlime/-jet-lime-row.html","searchKeys":["JetLimeRow","fun JetLimeRow(itemsList: ItemsList, modifier: Modifier = Modifier, style: JetLimeStyle = JetLimeDefaults.rowStyle(), listState: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), key: (index: Int, item: T) -> Any? = null, itemContent: (index: Int, T, EventPosition) -> Unit)","com.pushpal.jetlime.JetLimeRow"]},{"name":"fun JetLimeEvent(modifier: Modifier = Modifier, style: JetLimeEventStyle = JetLimeEventDefaults.eventStyle(EventPosition.END), content: () -> Unit)","description":"com.pushpal.jetlime.JetLimeEvent","location":"jetlime/com.pushpal.jetlime/-jet-lime-event.html","searchKeys":["JetLimeEvent","fun JetLimeEvent(modifier: Modifier = Modifier, style: JetLimeEventStyle = JetLimeEventDefaults.eventStyle(EventPosition.END), content: () -> Unit)","com.pushpal.jetlime.JetLimeEvent"]},{"name":"fun JetLimeExtendedEvent(modifier: Modifier = Modifier, style: JetLimeEventStyle = JetLimeEventDefaults.eventStyle(EventPosition.END), additionalContent: BoxScope.() -> Unit = { }, additionalContentMaxWidth: Dp = AdditionalContentMaxWidth, content: () -> Unit)","description":"com.pushpal.jetlime.JetLimeExtendedEvent","location":"jetlime/com.pushpal.jetlime/-jet-lime-extended-event.html","searchKeys":["JetLimeExtendedEvent","fun JetLimeExtendedEvent(modifier: Modifier = Modifier, style: JetLimeEventStyle = JetLimeEventDefaults.eventStyle(EventPosition.END), additionalContent: BoxScope.() -> Unit = { }, additionalContentMaxWidth: Dp = AdditionalContentMaxWidth, content: () -> Unit)","com.pushpal.jetlime.JetLimeExtendedEvent"]},{"name":"fun columnStyle(contentDistance: Dp = ContentDistance, itemSpacing: Dp = ItemSpacing, lineThickness: Dp = LineThickness, lineBrush: Brush = lineSolidBrush(), lineVerticalAlignment: VerticalAlignment = LEFT): JetLimeStyle","description":"com.pushpal.jetlime.JetLimeDefaults.columnStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/column-style.html","searchKeys":["columnStyle","fun columnStyle(contentDistance: Dp = ContentDistance, itemSpacing: Dp = ItemSpacing, lineThickness: Dp = LineThickness, lineBrush: Brush = lineSolidBrush(), lineVerticalAlignment: VerticalAlignment = LEFT): JetLimeStyle","com.pushpal.jetlime.JetLimeDefaults.columnStyle"]},{"name":"fun custom(icon: Painter): EventPointType","description":"com.pushpal.jetlime.EventPointType.Companion.custom","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/custom.html","searchKeys":["custom","fun custom(icon: Painter): EventPointType","com.pushpal.jetlime.EventPointType.Companion.custom"]},{"name":"fun dynamic(index: Int, listSize: Int): EventPosition","description":"com.pushpal.jetlime.EventPosition.Companion.dynamic","location":"jetlime/com.pushpal.jetlime/-event-position/-companion/dynamic.html","searchKeys":["dynamic","fun dynamic(index: Int, listSize: Int): EventPosition","com.pushpal.jetlime.EventPosition.Companion.dynamic"]},{"name":"fun eventStyle(position: EventPosition, pointType: EventPointType = PointType, pointColor: Color = MaterialTheme.colorScheme.onPrimary, pointFillColor: Color = MaterialTheme.colorScheme.primary, pointRadius: Dp = PointRadius, pointAnimation: EventPointAnimation? = null, pointStrokeWidth: Dp = PointStrokeWidth, pointStrokeColor: Color = MaterialTheme.colorScheme.primary): JetLimeEventStyle","description":"com.pushpal.jetlime.JetLimeEventDefaults.eventStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-defaults/event-style.html","searchKeys":["eventStyle","fun eventStyle(position: EventPosition, pointType: EventPointType = PointType, pointColor: Color = MaterialTheme.colorScheme.onPrimary, pointFillColor: Color = MaterialTheme.colorScheme.primary, pointRadius: Dp = PointRadius, pointAnimation: EventPointAnimation? = null, pointStrokeWidth: Dp = PointStrokeWidth, pointStrokeColor: Color = MaterialTheme.colorScheme.primary): JetLimeEventStyle","com.pushpal.jetlime.JetLimeEventDefaults.eventStyle"]},{"name":"fun filled(fillPercent: Float = 0.5f): EventPointType","description":"com.pushpal.jetlime.EventPointType.Companion.filled","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/filled.html","searchKeys":["filled","fun filled(fillPercent: Float = 0.5f): EventPointType","com.pushpal.jetlime.EventPointType.Companion.filled"]},{"name":"fun isCustom(): Boolean","description":"com.pushpal.jetlime.EventPointType.isCustom","location":"jetlime/com.pushpal.jetlime/-event-point-type/is-custom.html","searchKeys":["isCustom","fun isCustom(): Boolean","com.pushpal.jetlime.EventPointType.isCustom"]},{"name":"fun isEmptyOrFilled(): Boolean","description":"com.pushpal.jetlime.EventPointType.isEmptyOrFilled","location":"jetlime/com.pushpal.jetlime/-event-point-type/is-empty-or-filled.html","searchKeys":["isEmptyOrFilled","fun isEmptyOrFilled(): Boolean","com.pushpal.jetlime.EventPointType.isEmptyOrFilled"]},{"name":"fun isFilled(): Boolean","description":"com.pushpal.jetlime.EventPointType.isFilled","location":"jetlime/com.pushpal.jetlime/-event-point-type/is-filled.html","searchKeys":["isFilled","fun isFilled(): Boolean","com.pushpal.jetlime.EventPointType.isFilled"]},{"name":"fun isNotEnd(): Boolean","description":"com.pushpal.jetlime.EventPosition.isNotEnd","location":"jetlime/com.pushpal.jetlime/-event-position/is-not-end.html","searchKeys":["isNotEnd","fun isNotEnd(): Boolean","com.pushpal.jetlime.EventPosition.isNotEnd"]},{"name":"fun lineGradientBrush(colors: ImmutableList = persistentListOf(\n MaterialTheme.colorScheme.primary,\n MaterialTheme.colorScheme.secondary,\n MaterialTheme.colorScheme.tertiary,\n ), start: Offset = Offset.Zero, end: Offset = Offset.Infinite, tileMode: TileMode = TileMode.Clamp): Brush","description":"com.pushpal.jetlime.JetLimeDefaults.lineGradientBrush","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/line-gradient-brush.html","searchKeys":["lineGradientBrush","fun lineGradientBrush(colors: ImmutableList = persistentListOf(\n MaterialTheme.colorScheme.primary,\n MaterialTheme.colorScheme.secondary,\n MaterialTheme.colorScheme.tertiary,\n ), start: Offset = Offset.Zero, end: Offset = Offset.Infinite, tileMode: TileMode = TileMode.Clamp): Brush","com.pushpal.jetlime.JetLimeDefaults.lineGradientBrush"]},{"name":"fun lineSolidBrush(color: Color = MaterialTheme.colorScheme.primary): Brush","description":"com.pushpal.jetlime.JetLimeDefaults.lineSolidBrush","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/line-solid-brush.html","searchKeys":["lineSolidBrush","fun lineSolidBrush(color: Color = MaterialTheme.colorScheme.primary): Brush","com.pushpal.jetlime.JetLimeDefaults.lineSolidBrush"]},{"name":"fun pointAnimation(initialValue: Float = 1.0f, targetValue: Float = 1.2f, animationSpec: InfiniteRepeatableSpec = PointAnimation): EventPointAnimation","description":"com.pushpal.jetlime.JetLimeEventDefaults.pointAnimation","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-defaults/point-animation.html","searchKeys":["pointAnimation","fun pointAnimation(initialValue: Float = 1.0f, targetValue: Float = 1.2f, animationSpec: InfiniteRepeatableSpec = PointAnimation): EventPointAnimation","com.pushpal.jetlime.JetLimeEventDefaults.pointAnimation"]},{"name":"fun rowStyle(contentDistance: Dp = ContentDistance, itemSpacing: Dp = ItemSpacing, lineThickness: Dp = LineThickness, lineBrush: Brush = lineSolidBrush(), lineHorizontalAlignment: HorizontalAlignment = TOP): JetLimeStyle","description":"com.pushpal.jetlime.JetLimeDefaults.rowStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/row-style.html","searchKeys":["rowStyle","fun rowStyle(contentDistance: Dp = ContentDistance, itemSpacing: Dp = ItemSpacing, lineThickness: Dp = LineThickness, lineBrush: Brush = lineSolidBrush(), lineHorizontalAlignment: HorizontalAlignment = TOP): JetLimeStyle","com.pushpal.jetlime.JetLimeDefaults.rowStyle"]},{"name":"fun setPosition(position: EventPosition): JetLimeEventStyle","description":"com.pushpal.jetlime.JetLimeEventStyle.setPosition","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/set-position.html","searchKeys":["setPosition","fun setPosition(position: EventPosition): JetLimeEventStyle","com.pushpal.jetlime.JetLimeEventStyle.setPosition"]},{"name":"fun valueOf(value: String): HorizontalAlignment","description":"com.pushpal.jetlime.HorizontalAlignment.valueOf","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/value-of.html","searchKeys":["valueOf","fun valueOf(value: String): HorizontalAlignment","com.pushpal.jetlime.HorizontalAlignment.valueOf"]},{"name":"fun valueOf(value: String): VerticalAlignment","description":"com.pushpal.jetlime.VerticalAlignment.valueOf","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/value-of.html","searchKeys":["valueOf","fun valueOf(value: String): VerticalAlignment","com.pushpal.jetlime.VerticalAlignment.valueOf"]},{"name":"fun values(): Array","description":"com.pushpal.jetlime.HorizontalAlignment.values","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/values.html","searchKeys":["values","fun values(): Array","com.pushpal.jetlime.HorizontalAlignment.values"]},{"name":"fun values(): Array","description":"com.pushpal.jetlime.VerticalAlignment.values","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/values.html","searchKeys":["values","fun values(): Array","com.pushpal.jetlime.VerticalAlignment.values"]},{"name":"object Companion","description":"com.pushpal.jetlime.EventPointType.Companion","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/index.html","searchKeys":["Companion","object Companion","com.pushpal.jetlime.EventPointType.Companion"]},{"name":"object Companion","description":"com.pushpal.jetlime.EventPosition.Companion","location":"jetlime/com.pushpal.jetlime/-event-position/-companion/index.html","searchKeys":["Companion","object Companion","com.pushpal.jetlime.EventPosition.Companion"]},{"name":"object JetLimeDefaults","description":"com.pushpal.jetlime.JetLimeDefaults","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/index.html","searchKeys":["JetLimeDefaults","object JetLimeDefaults","com.pushpal.jetlime.JetLimeDefaults"]},{"name":"object JetLimeEventDefaults","description":"com.pushpal.jetlime.JetLimeEventDefaults","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-defaults/index.html","searchKeys":["JetLimeEventDefaults","object JetLimeEventDefaults","com.pushpal.jetlime.JetLimeEventDefaults"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.EventPointAnimation.equals","location":"jetlime/com.pushpal.jetlime/-event-point-animation/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.EventPointAnimation.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.EventPointType.equals","location":"jetlime/com.pushpal.jetlime/-event-point-type/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.EventPointType.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.EventPosition.equals","location":"jetlime/com.pushpal.jetlime/-event-position/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.EventPosition.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.ItemsList.equals","location":"jetlime/com.pushpal.jetlime/-items-list/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.ItemsList.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.JetLimeEventStyle.equals","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.JetLimeEventStyle.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.JetLimeStyle.equals","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.JetLimeStyle.equals"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.EventPointAnimation.hashCode","location":"jetlime/com.pushpal.jetlime/-event-point-animation/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.EventPointAnimation.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.EventPointType.hashCode","location":"jetlime/com.pushpal.jetlime/-event-point-type/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.EventPointType.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.EventPosition.hashCode","location":"jetlime/com.pushpal.jetlime/-event-position/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.EventPosition.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.ItemsList.hashCode","location":"jetlime/com.pushpal.jetlime/-items-list/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.ItemsList.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.JetLimeEventStyle.hashCode","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.JetLimeEventStyle.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.JetLimeStyle.hashCode","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.JetLimeStyle.hashCode"]},{"name":"val Default: EventPointType","description":"com.pushpal.jetlime.EventPointType.Companion.Default","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/-default.html","searchKeys":["Default","val Default: EventPointType","com.pushpal.jetlime.EventPointType.Companion.Default"]},{"name":"val EMPTY: EventPointType","description":"com.pushpal.jetlime.EventPointType.Companion.EMPTY","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/-e-m-p-t-y.html","searchKeys":["EMPTY","val EMPTY: EventPointType","com.pushpal.jetlime.EventPointType.Companion.EMPTY"]},{"name":"val LocalJetLimeStyle: ProvidableCompositionLocal","description":"com.pushpal.jetlime.LocalJetLimeStyle","location":"jetlime/com.pushpal.jetlime/-local-jet-lime-style.html","searchKeys":["LocalJetLimeStyle","val LocalJetLimeStyle: ProvidableCompositionLocal","com.pushpal.jetlime.LocalJetLimeStyle"]},{"name":"val animationSpec: InfiniteRepeatableSpec","description":"com.pushpal.jetlime.EventPointAnimation.animationSpec","location":"jetlime/com.pushpal.jetlime/-event-point-animation/animation-spec.html","searchKeys":["animationSpec","val animationSpec: InfiniteRepeatableSpec","com.pushpal.jetlime.EventPointAnimation.animationSpec"]},{"name":"val contentDistance: Dp","description":"com.pushpal.jetlime.JetLimeStyle.contentDistance","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/content-distance.html","searchKeys":["contentDistance","val contentDistance: Dp","com.pushpal.jetlime.JetLimeStyle.contentDistance"]},{"name":"val entries: EnumEntries","description":"com.pushpal.jetlime.HorizontalAlignment.entries","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/entries.html","searchKeys":["entries","val entries: EnumEntries","com.pushpal.jetlime.HorizontalAlignment.entries"]},{"name":"val entries: EnumEntries","description":"com.pushpal.jetlime.VerticalAlignment.entries","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/entries.html","searchKeys":["entries","val entries: EnumEntries","com.pushpal.jetlime.VerticalAlignment.entries"]},{"name":"val fillPercent: Float? = null","description":"com.pushpal.jetlime.EventPointType.fillPercent","location":"jetlime/com.pushpal.jetlime/-event-point-type/fill-percent.html","searchKeys":["fillPercent","val fillPercent: Float? = null","com.pushpal.jetlime.EventPointType.fillPercent"]},{"name":"val icon: Painter? = null","description":"com.pushpal.jetlime.EventPointType.icon","location":"jetlime/com.pushpal.jetlime/-event-point-type/icon.html","searchKeys":["icon","val icon: Painter? = null","com.pushpal.jetlime.EventPointType.icon"]},{"name":"val initialValue: Float","description":"com.pushpal.jetlime.EventPointAnimation.initialValue","location":"jetlime/com.pushpal.jetlime/-event-point-animation/initial-value.html","searchKeys":["initialValue","val initialValue: Float","com.pushpal.jetlime.EventPointAnimation.initialValue"]},{"name":"val itemSpacing: Dp","description":"com.pushpal.jetlime.JetLimeStyle.itemSpacing","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/item-spacing.html","searchKeys":["itemSpacing","val itemSpacing: Dp","com.pushpal.jetlime.JetLimeStyle.itemSpacing"]},{"name":"val items: List","description":"com.pushpal.jetlime.ItemsList.items","location":"jetlime/com.pushpal.jetlime/-items-list/items.html","searchKeys":["items","val items: List","com.pushpal.jetlime.ItemsList.items"]},{"name":"val lineBrush: Brush","description":"com.pushpal.jetlime.JetLimeStyle.lineBrush","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/line-brush.html","searchKeys":["lineBrush","val lineBrush: Brush","com.pushpal.jetlime.JetLimeStyle.lineBrush"]},{"name":"val lineHorizontalAlignment: HorizontalAlignment","description":"com.pushpal.jetlime.JetLimeStyle.lineHorizontalAlignment","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/line-horizontal-alignment.html","searchKeys":["lineHorizontalAlignment","val lineHorizontalAlignment: HorizontalAlignment","com.pushpal.jetlime.JetLimeStyle.lineHorizontalAlignment"]},{"name":"val lineThickness: Dp","description":"com.pushpal.jetlime.JetLimeStyle.lineThickness","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/line-thickness.html","searchKeys":["lineThickness","val lineThickness: Dp","com.pushpal.jetlime.JetLimeStyle.lineThickness"]},{"name":"val lineVerticalAlignment: VerticalAlignment","description":"com.pushpal.jetlime.JetLimeStyle.lineVerticalAlignment","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/line-vertical-alignment.html","searchKeys":["lineVerticalAlignment","val lineVerticalAlignment: VerticalAlignment","com.pushpal.jetlime.JetLimeStyle.lineVerticalAlignment"]},{"name":"val name: String","description":"com.pushpal.jetlime.EventPosition.name","location":"jetlime/com.pushpal.jetlime/-event-position/name.html","searchKeys":["name","val name: String","com.pushpal.jetlime.EventPosition.name"]},{"name":"val pointAnimation: EventPointAnimation?","description":"com.pushpal.jetlime.JetLimeEventStyle.pointAnimation","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-animation.html","searchKeys":["pointAnimation","val pointAnimation: EventPointAnimation?","com.pushpal.jetlime.JetLimeEventStyle.pointAnimation"]},{"name":"val pointColor: Color","description":"com.pushpal.jetlime.JetLimeEventStyle.pointColor","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-color.html","searchKeys":["pointColor","val pointColor: Color","com.pushpal.jetlime.JetLimeEventStyle.pointColor"]},{"name":"val pointFillColor: Color","description":"com.pushpal.jetlime.JetLimeEventStyle.pointFillColor","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-fill-color.html","searchKeys":["pointFillColor","val pointFillColor: Color","com.pushpal.jetlime.JetLimeEventStyle.pointFillColor"]},{"name":"val pointRadius: Dp","description":"com.pushpal.jetlime.JetLimeEventStyle.pointRadius","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-radius.html","searchKeys":["pointRadius","val pointRadius: Dp","com.pushpal.jetlime.JetLimeEventStyle.pointRadius"]},{"name":"val pointStrokeColor: Color","description":"com.pushpal.jetlime.JetLimeEventStyle.pointStrokeColor","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-stroke-color.html","searchKeys":["pointStrokeColor","val pointStrokeColor: Color","com.pushpal.jetlime.JetLimeEventStyle.pointStrokeColor"]},{"name":"val pointStrokeWidth: Dp","description":"com.pushpal.jetlime.JetLimeEventStyle.pointStrokeWidth","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-stroke-width.html","searchKeys":["pointStrokeWidth","val pointStrokeWidth: Dp","com.pushpal.jetlime.JetLimeEventStyle.pointStrokeWidth"]},{"name":"val pointType: EventPointType","description":"com.pushpal.jetlime.JetLimeEventStyle.pointType","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-type.html","searchKeys":["pointType","val pointType: EventPointType","com.pushpal.jetlime.JetLimeEventStyle.pointType"]},{"name":"val targetValue: Float","description":"com.pushpal.jetlime.EventPointAnimation.targetValue","location":"jetlime/com.pushpal.jetlime/-event-point-animation/target-value.html","searchKeys":["targetValue","val targetValue: Float","com.pushpal.jetlime.EventPointAnimation.targetValue"]},{"name":"val type: String","description":"com.pushpal.jetlime.EventPointType.type","location":"jetlime/com.pushpal.jetlime/-event-point-type/type.html","searchKeys":["type","val type: String","com.pushpal.jetlime.EventPointType.type"]},{"name":"var position: EventPosition","description":"com.pushpal.jetlime.JetLimeEventStyle.position","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/position.html","searchKeys":["position","var position: EventPosition","com.pushpal.jetlime.JetLimeEventStyle.position"]}] +[{"name":"BOTTOM","description":"com.pushpal.jetlime.HorizontalAlignment.BOTTOM","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/-b-o-t-t-o-m/index.html","searchKeys":["BOTTOM","BOTTOM","com.pushpal.jetlime.HorizontalAlignment.BOTTOM"]},{"name":"LEFT","description":"com.pushpal.jetlime.VerticalAlignment.LEFT","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/-l-e-f-t/index.html","searchKeys":["LEFT","LEFT","com.pushpal.jetlime.VerticalAlignment.LEFT"]},{"name":"RIGHT","description":"com.pushpal.jetlime.VerticalAlignment.RIGHT","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/-r-i-g-h-t/index.html","searchKeys":["RIGHT","RIGHT","com.pushpal.jetlime.VerticalAlignment.RIGHT"]},{"name":"TOP","description":"com.pushpal.jetlime.HorizontalAlignment.TOP","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/-t-o-p/index.html","searchKeys":["TOP","TOP","com.pushpal.jetlime.HorizontalAlignment.TOP"]},{"name":"class EventPointAnimation","description":"com.pushpal.jetlime.EventPointAnimation","location":"jetlime/com.pushpal.jetlime/-event-point-animation/index.html","searchKeys":["EventPointAnimation","class EventPointAnimation","com.pushpal.jetlime.EventPointAnimation"]},{"name":"class EventPointType","description":"com.pushpal.jetlime.EventPointType","location":"jetlime/com.pushpal.jetlime/-event-point-type/index.html","searchKeys":["EventPointType","class EventPointType","com.pushpal.jetlime.EventPointType"]},{"name":"class EventPosition","description":"com.pushpal.jetlime.EventPosition","location":"jetlime/com.pushpal.jetlime/-event-position/index.html","searchKeys":["EventPosition","class EventPosition","com.pushpal.jetlime.EventPosition"]},{"name":"class ItemsList(val items: List)","description":"com.pushpal.jetlime.ItemsList","location":"jetlime/com.pushpal.jetlime/-items-list/index.html","searchKeys":["ItemsList","class ItemsList(val items: List)","com.pushpal.jetlime.ItemsList"]},{"name":"class JetLimeEventStyle","description":"com.pushpal.jetlime.JetLimeEventStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/index.html","searchKeys":["JetLimeEventStyle","class JetLimeEventStyle","com.pushpal.jetlime.JetLimeEventStyle"]},{"name":"class JetLimeStyle","description":"com.pushpal.jetlime.JetLimeStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/index.html","searchKeys":["JetLimeStyle","class JetLimeStyle","com.pushpal.jetlime.JetLimeStyle"]},{"name":"constructor(items: List)","description":"com.pushpal.jetlime.ItemsList.ItemsList","location":"jetlime/com.pushpal.jetlime/-items-list/-items-list.html","searchKeys":["ItemsList","constructor(items: List)","com.pushpal.jetlime.ItemsList.ItemsList"]},{"name":"enum HorizontalAlignment : Enum ","description":"com.pushpal.jetlime.HorizontalAlignment","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/index.html","searchKeys":["HorizontalAlignment","enum HorizontalAlignment : Enum ","com.pushpal.jetlime.HorizontalAlignment"]},{"name":"enum VerticalAlignment : Enum ","description":"com.pushpal.jetlime.VerticalAlignment","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/index.html","searchKeys":["VerticalAlignment","enum VerticalAlignment : Enum ","com.pushpal.jetlime.VerticalAlignment"]},{"name":"fun JetLimeColumn(itemsList: ItemsList, modifier: Modifier = Modifier, style: JetLimeStyle = JetLimeDefaults.columnStyle(), listState: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), key: (index: Int, item: T) -> Any? = null, itemContent: (index: Int, T, EventPosition) -> Unit)","description":"com.pushpal.jetlime.JetLimeColumn","location":"jetlime/com.pushpal.jetlime/-jet-lime-column.html","searchKeys":["JetLimeColumn","fun JetLimeColumn(itemsList: ItemsList, modifier: Modifier = Modifier, style: JetLimeStyle = JetLimeDefaults.columnStyle(), listState: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), key: (index: Int, item: T) -> Any? = null, itemContent: (index: Int, T, EventPosition) -> Unit)","com.pushpal.jetlime.JetLimeColumn"]},{"name":"fun JetLimeRow(itemsList: ItemsList, modifier: Modifier = Modifier, style: JetLimeStyle = JetLimeDefaults.rowStyle(), listState: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), key: (index: Int, item: T) -> Any? = null, itemContent: (index: Int, T, EventPosition) -> Unit)","description":"com.pushpal.jetlime.JetLimeRow","location":"jetlime/com.pushpal.jetlime/-jet-lime-row.html","searchKeys":["JetLimeRow","fun JetLimeRow(itemsList: ItemsList, modifier: Modifier = Modifier, style: JetLimeStyle = JetLimeDefaults.rowStyle(), listState: LazyListState = rememberLazyListState(), contentPadding: PaddingValues = PaddingValues(0.dp), key: (index: Int, item: T) -> Any? = null, itemContent: (index: Int, T, EventPosition) -> Unit)","com.pushpal.jetlime.JetLimeRow"]},{"name":"fun JetLimeEvent(modifier: Modifier = Modifier, style: JetLimeEventStyle = JetLimeEventDefaults.eventStyle(EventPosition.END), content: () -> Unit)","description":"com.pushpal.jetlime.JetLimeEvent","location":"jetlime/com.pushpal.jetlime/-jet-lime-event.html","searchKeys":["JetLimeEvent","fun JetLimeEvent(modifier: Modifier = Modifier, style: JetLimeEventStyle = JetLimeEventDefaults.eventStyle(EventPosition.END), content: () -> Unit)","com.pushpal.jetlime.JetLimeEvent"]},{"name":"fun JetLimeExtendedEvent(modifier: Modifier = Modifier, style: JetLimeEventStyle = JetLimeEventDefaults.eventStyle(EventPosition.END), additionalContent: BoxScope.() -> Unit = { }, additionalContentMaxWidth: Dp = AdditionalContentMaxWidth, content: () -> Unit)","description":"com.pushpal.jetlime.JetLimeExtendedEvent","location":"jetlime/com.pushpal.jetlime/-jet-lime-extended-event.html","searchKeys":["JetLimeExtendedEvent","fun JetLimeExtendedEvent(modifier: Modifier = Modifier, style: JetLimeEventStyle = JetLimeEventDefaults.eventStyle(EventPosition.END), additionalContent: BoxScope.() -> Unit = { }, additionalContentMaxWidth: Dp = AdditionalContentMaxWidth, content: () -> Unit)","com.pushpal.jetlime.JetLimeExtendedEvent"]},{"name":"fun columnStyle(contentDistance: Dp = ContentDistance, itemSpacing: Dp = ItemSpacing, lineThickness: Dp = LineThickness, lineBrush: Brush = lineSolidBrush(), lineVerticalAlignment: VerticalAlignment = LEFT): JetLimeStyle","description":"com.pushpal.jetlime.JetLimeDefaults.columnStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/column-style.html","searchKeys":["columnStyle","fun columnStyle(contentDistance: Dp = ContentDistance, itemSpacing: Dp = ItemSpacing, lineThickness: Dp = LineThickness, lineBrush: Brush = lineSolidBrush(), lineVerticalAlignment: VerticalAlignment = LEFT): JetLimeStyle","com.pushpal.jetlime.JetLimeDefaults.columnStyle"]},{"name":"fun custom(icon: Painter, tint: Color? = null): EventPointType","description":"com.pushpal.jetlime.EventPointType.Companion.custom","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/custom.html","searchKeys":["custom","fun custom(icon: Painter, tint: Color? = null): EventPointType","com.pushpal.jetlime.EventPointType.Companion.custom"]},{"name":"fun dynamic(index: Int, listSize: Int): EventPosition","description":"com.pushpal.jetlime.EventPosition.Companion.dynamic","location":"jetlime/com.pushpal.jetlime/-event-position/-companion/dynamic.html","searchKeys":["dynamic","fun dynamic(index: Int, listSize: Int): EventPosition","com.pushpal.jetlime.EventPosition.Companion.dynamic"]},{"name":"fun eventStyle(position: EventPosition, pointType: EventPointType = PointType, pointColor: Color = MaterialTheme.colorScheme.onPrimary, pointFillColor: Color = MaterialTheme.colorScheme.primary, pointRadius: Dp = PointRadius, pointAnimation: EventPointAnimation? = null, pointStrokeWidth: Dp = PointStrokeWidth, pointStrokeColor: Color = MaterialTheme.colorScheme.primary): JetLimeEventStyle","description":"com.pushpal.jetlime.JetLimeEventDefaults.eventStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-defaults/event-style.html","searchKeys":["eventStyle","fun eventStyle(position: EventPosition, pointType: EventPointType = PointType, pointColor: Color = MaterialTheme.colorScheme.onPrimary, pointFillColor: Color = MaterialTheme.colorScheme.primary, pointRadius: Dp = PointRadius, pointAnimation: EventPointAnimation? = null, pointStrokeWidth: Dp = PointStrokeWidth, pointStrokeColor: Color = MaterialTheme.colorScheme.primary): JetLimeEventStyle","com.pushpal.jetlime.JetLimeEventDefaults.eventStyle"]},{"name":"fun filled(fillPercent: Float = 0.5f): EventPointType","description":"com.pushpal.jetlime.EventPointType.Companion.filled","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/filled.html","searchKeys":["filled","fun filled(fillPercent: Float = 0.5f): EventPointType","com.pushpal.jetlime.EventPointType.Companion.filled"]},{"name":"fun isCustom(): Boolean","description":"com.pushpal.jetlime.EventPointType.isCustom","location":"jetlime/com.pushpal.jetlime/-event-point-type/is-custom.html","searchKeys":["isCustom","fun isCustom(): Boolean","com.pushpal.jetlime.EventPointType.isCustom"]},{"name":"fun isEmptyOrFilled(): Boolean","description":"com.pushpal.jetlime.EventPointType.isEmptyOrFilled","location":"jetlime/com.pushpal.jetlime/-event-point-type/is-empty-or-filled.html","searchKeys":["isEmptyOrFilled","fun isEmptyOrFilled(): Boolean","com.pushpal.jetlime.EventPointType.isEmptyOrFilled"]},{"name":"fun isFilled(): Boolean","description":"com.pushpal.jetlime.EventPointType.isFilled","location":"jetlime/com.pushpal.jetlime/-event-point-type/is-filled.html","searchKeys":["isFilled","fun isFilled(): Boolean","com.pushpal.jetlime.EventPointType.isFilled"]},{"name":"fun isNotEnd(): Boolean","description":"com.pushpal.jetlime.EventPosition.isNotEnd","location":"jetlime/com.pushpal.jetlime/-event-position/is-not-end.html","searchKeys":["isNotEnd","fun isNotEnd(): Boolean","com.pushpal.jetlime.EventPosition.isNotEnd"]},{"name":"fun lineGradientBrush(colors: ImmutableList = persistentListOf(\n MaterialTheme.colorScheme.primary,\n MaterialTheme.colorScheme.secondary,\n MaterialTheme.colorScheme.tertiary,\n ), start: Offset = Offset.Zero, end: Offset = Offset.Infinite, tileMode: TileMode = TileMode.Clamp): Brush","description":"com.pushpal.jetlime.JetLimeDefaults.lineGradientBrush","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/line-gradient-brush.html","searchKeys":["lineGradientBrush","fun lineGradientBrush(colors: ImmutableList = persistentListOf(\n MaterialTheme.colorScheme.primary,\n MaterialTheme.colorScheme.secondary,\n MaterialTheme.colorScheme.tertiary,\n ), start: Offset = Offset.Zero, end: Offset = Offset.Infinite, tileMode: TileMode = TileMode.Clamp): Brush","com.pushpal.jetlime.JetLimeDefaults.lineGradientBrush"]},{"name":"fun lineSolidBrush(color: Color = MaterialTheme.colorScheme.primary): Brush","description":"com.pushpal.jetlime.JetLimeDefaults.lineSolidBrush","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/line-solid-brush.html","searchKeys":["lineSolidBrush","fun lineSolidBrush(color: Color = MaterialTheme.colorScheme.primary): Brush","com.pushpal.jetlime.JetLimeDefaults.lineSolidBrush"]},{"name":"fun pointAnimation(initialValue: Float = 1.0f, targetValue: Float = 1.2f, animationSpec: InfiniteRepeatableSpec = PointAnimation): EventPointAnimation","description":"com.pushpal.jetlime.JetLimeEventDefaults.pointAnimation","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-defaults/point-animation.html","searchKeys":["pointAnimation","fun pointAnimation(initialValue: Float = 1.0f, targetValue: Float = 1.2f, animationSpec: InfiniteRepeatableSpec = PointAnimation): EventPointAnimation","com.pushpal.jetlime.JetLimeEventDefaults.pointAnimation"]},{"name":"fun rowStyle(contentDistance: Dp = ContentDistance, itemSpacing: Dp = ItemSpacing, lineThickness: Dp = LineThickness, lineBrush: Brush = lineSolidBrush(), lineHorizontalAlignment: HorizontalAlignment = TOP): JetLimeStyle","description":"com.pushpal.jetlime.JetLimeDefaults.rowStyle","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/row-style.html","searchKeys":["rowStyle","fun rowStyle(contentDistance: Dp = ContentDistance, itemSpacing: Dp = ItemSpacing, lineThickness: Dp = LineThickness, lineBrush: Brush = lineSolidBrush(), lineHorizontalAlignment: HorizontalAlignment = TOP): JetLimeStyle","com.pushpal.jetlime.JetLimeDefaults.rowStyle"]},{"name":"fun setPosition(position: EventPosition): JetLimeEventStyle","description":"com.pushpal.jetlime.JetLimeEventStyle.setPosition","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/set-position.html","searchKeys":["setPosition","fun setPosition(position: EventPosition): JetLimeEventStyle","com.pushpal.jetlime.JetLimeEventStyle.setPosition"]},{"name":"fun valueOf(value: String): HorizontalAlignment","description":"com.pushpal.jetlime.HorizontalAlignment.valueOf","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/value-of.html","searchKeys":["valueOf","fun valueOf(value: String): HorizontalAlignment","com.pushpal.jetlime.HorizontalAlignment.valueOf"]},{"name":"fun valueOf(value: String): VerticalAlignment","description":"com.pushpal.jetlime.VerticalAlignment.valueOf","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/value-of.html","searchKeys":["valueOf","fun valueOf(value: String): VerticalAlignment","com.pushpal.jetlime.VerticalAlignment.valueOf"]},{"name":"fun values(): Array","description":"com.pushpal.jetlime.HorizontalAlignment.values","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/values.html","searchKeys":["values","fun values(): Array","com.pushpal.jetlime.HorizontalAlignment.values"]},{"name":"fun values(): Array","description":"com.pushpal.jetlime.VerticalAlignment.values","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/values.html","searchKeys":["values","fun values(): Array","com.pushpal.jetlime.VerticalAlignment.values"]},{"name":"object Companion","description":"com.pushpal.jetlime.EventPointType.Companion","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/index.html","searchKeys":["Companion","object Companion","com.pushpal.jetlime.EventPointType.Companion"]},{"name":"object Companion","description":"com.pushpal.jetlime.EventPosition.Companion","location":"jetlime/com.pushpal.jetlime/-event-position/-companion/index.html","searchKeys":["Companion","object Companion","com.pushpal.jetlime.EventPosition.Companion"]},{"name":"object JetLimeDefaults","description":"com.pushpal.jetlime.JetLimeDefaults","location":"jetlime/com.pushpal.jetlime/-jet-lime-defaults/index.html","searchKeys":["JetLimeDefaults","object JetLimeDefaults","com.pushpal.jetlime.JetLimeDefaults"]},{"name":"object JetLimeEventDefaults","description":"com.pushpal.jetlime.JetLimeEventDefaults","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-defaults/index.html","searchKeys":["JetLimeEventDefaults","object JetLimeEventDefaults","com.pushpal.jetlime.JetLimeEventDefaults"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.EventPointAnimation.equals","location":"jetlime/com.pushpal.jetlime/-event-point-animation/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.EventPointAnimation.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.EventPointType.equals","location":"jetlime/com.pushpal.jetlime/-event-point-type/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.EventPointType.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.EventPosition.equals","location":"jetlime/com.pushpal.jetlime/-event-position/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.EventPosition.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.ItemsList.equals","location":"jetlime/com.pushpal.jetlime/-items-list/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.ItemsList.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.JetLimeEventStyle.equals","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.JetLimeEventStyle.equals"]},{"name":"open operator override fun equals(other: Any?): Boolean","description":"com.pushpal.jetlime.JetLimeStyle.equals","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/equals.html","searchKeys":["equals","open operator override fun equals(other: Any?): Boolean","com.pushpal.jetlime.JetLimeStyle.equals"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.EventPointAnimation.hashCode","location":"jetlime/com.pushpal.jetlime/-event-point-animation/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.EventPointAnimation.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.EventPointType.hashCode","location":"jetlime/com.pushpal.jetlime/-event-point-type/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.EventPointType.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.EventPosition.hashCode","location":"jetlime/com.pushpal.jetlime/-event-position/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.EventPosition.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.ItemsList.hashCode","location":"jetlime/com.pushpal.jetlime/-items-list/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.ItemsList.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.JetLimeEventStyle.hashCode","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.JetLimeEventStyle.hashCode"]},{"name":"open override fun hashCode(): Int","description":"com.pushpal.jetlime.JetLimeStyle.hashCode","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/hash-code.html","searchKeys":["hashCode","open override fun hashCode(): Int","com.pushpal.jetlime.JetLimeStyle.hashCode"]},{"name":"val Default: EventPointType","description":"com.pushpal.jetlime.EventPointType.Companion.Default","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/-default.html","searchKeys":["Default","val Default: EventPointType","com.pushpal.jetlime.EventPointType.Companion.Default"]},{"name":"val EMPTY: EventPointType","description":"com.pushpal.jetlime.EventPointType.Companion.EMPTY","location":"jetlime/com.pushpal.jetlime/-event-point-type/-companion/-e-m-p-t-y.html","searchKeys":["EMPTY","val EMPTY: EventPointType","com.pushpal.jetlime.EventPointType.Companion.EMPTY"]},{"name":"val LocalJetLimeStyle: ProvidableCompositionLocal","description":"com.pushpal.jetlime.LocalJetLimeStyle","location":"jetlime/com.pushpal.jetlime/-local-jet-lime-style.html","searchKeys":["LocalJetLimeStyle","val LocalJetLimeStyle: ProvidableCompositionLocal","com.pushpal.jetlime.LocalJetLimeStyle"]},{"name":"val animationSpec: InfiniteRepeatableSpec","description":"com.pushpal.jetlime.EventPointAnimation.animationSpec","location":"jetlime/com.pushpal.jetlime/-event-point-animation/animation-spec.html","searchKeys":["animationSpec","val animationSpec: InfiniteRepeatableSpec","com.pushpal.jetlime.EventPointAnimation.animationSpec"]},{"name":"val contentDistance: Dp","description":"com.pushpal.jetlime.JetLimeStyle.contentDistance","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/content-distance.html","searchKeys":["contentDistance","val contentDistance: Dp","com.pushpal.jetlime.JetLimeStyle.contentDistance"]},{"name":"val entries: EnumEntries","description":"com.pushpal.jetlime.HorizontalAlignment.entries","location":"jetlime/com.pushpal.jetlime/-horizontal-alignment/entries.html","searchKeys":["entries","val entries: EnumEntries","com.pushpal.jetlime.HorizontalAlignment.entries"]},{"name":"val entries: EnumEntries","description":"com.pushpal.jetlime.VerticalAlignment.entries","location":"jetlime/com.pushpal.jetlime/-vertical-alignment/entries.html","searchKeys":["entries","val entries: EnumEntries","com.pushpal.jetlime.VerticalAlignment.entries"]},{"name":"val fillPercent: Float? = null","description":"com.pushpal.jetlime.EventPointType.fillPercent","location":"jetlime/com.pushpal.jetlime/-event-point-type/fill-percent.html","searchKeys":["fillPercent","val fillPercent: Float? = null","com.pushpal.jetlime.EventPointType.fillPercent"]},{"name":"val icon: Painter? = null","description":"com.pushpal.jetlime.EventPointType.icon","location":"jetlime/com.pushpal.jetlime/-event-point-type/icon.html","searchKeys":["icon","val icon: Painter? = null","com.pushpal.jetlime.EventPointType.icon"]},{"name":"val initialValue: Float","description":"com.pushpal.jetlime.EventPointAnimation.initialValue","location":"jetlime/com.pushpal.jetlime/-event-point-animation/initial-value.html","searchKeys":["initialValue","val initialValue: Float","com.pushpal.jetlime.EventPointAnimation.initialValue"]},{"name":"val itemSpacing: Dp","description":"com.pushpal.jetlime.JetLimeStyle.itemSpacing","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/item-spacing.html","searchKeys":["itemSpacing","val itemSpacing: Dp","com.pushpal.jetlime.JetLimeStyle.itemSpacing"]},{"name":"val items: List","description":"com.pushpal.jetlime.ItemsList.items","location":"jetlime/com.pushpal.jetlime/-items-list/items.html","searchKeys":["items","val items: List","com.pushpal.jetlime.ItemsList.items"]},{"name":"val lineBrush: Brush","description":"com.pushpal.jetlime.JetLimeStyle.lineBrush","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/line-brush.html","searchKeys":["lineBrush","val lineBrush: Brush","com.pushpal.jetlime.JetLimeStyle.lineBrush"]},{"name":"val lineHorizontalAlignment: HorizontalAlignment","description":"com.pushpal.jetlime.JetLimeStyle.lineHorizontalAlignment","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/line-horizontal-alignment.html","searchKeys":["lineHorizontalAlignment","val lineHorizontalAlignment: HorizontalAlignment","com.pushpal.jetlime.JetLimeStyle.lineHorizontalAlignment"]},{"name":"val lineThickness: Dp","description":"com.pushpal.jetlime.JetLimeStyle.lineThickness","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/line-thickness.html","searchKeys":["lineThickness","val lineThickness: Dp","com.pushpal.jetlime.JetLimeStyle.lineThickness"]},{"name":"val lineVerticalAlignment: VerticalAlignment","description":"com.pushpal.jetlime.JetLimeStyle.lineVerticalAlignment","location":"jetlime/com.pushpal.jetlime/-jet-lime-style/line-vertical-alignment.html","searchKeys":["lineVerticalAlignment","val lineVerticalAlignment: VerticalAlignment","com.pushpal.jetlime.JetLimeStyle.lineVerticalAlignment"]},{"name":"val name: String","description":"com.pushpal.jetlime.EventPosition.name","location":"jetlime/com.pushpal.jetlime/-event-position/name.html","searchKeys":["name","val name: String","com.pushpal.jetlime.EventPosition.name"]},{"name":"val pointAnimation: EventPointAnimation?","description":"com.pushpal.jetlime.JetLimeEventStyle.pointAnimation","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-animation.html","searchKeys":["pointAnimation","val pointAnimation: EventPointAnimation?","com.pushpal.jetlime.JetLimeEventStyle.pointAnimation"]},{"name":"val pointColor: Color","description":"com.pushpal.jetlime.JetLimeEventStyle.pointColor","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-color.html","searchKeys":["pointColor","val pointColor: Color","com.pushpal.jetlime.JetLimeEventStyle.pointColor"]},{"name":"val pointFillColor: Color","description":"com.pushpal.jetlime.JetLimeEventStyle.pointFillColor","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-fill-color.html","searchKeys":["pointFillColor","val pointFillColor: Color","com.pushpal.jetlime.JetLimeEventStyle.pointFillColor"]},{"name":"val pointRadius: Dp","description":"com.pushpal.jetlime.JetLimeEventStyle.pointRadius","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-radius.html","searchKeys":["pointRadius","val pointRadius: Dp","com.pushpal.jetlime.JetLimeEventStyle.pointRadius"]},{"name":"val pointStrokeColor: Color","description":"com.pushpal.jetlime.JetLimeEventStyle.pointStrokeColor","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-stroke-color.html","searchKeys":["pointStrokeColor","val pointStrokeColor: Color","com.pushpal.jetlime.JetLimeEventStyle.pointStrokeColor"]},{"name":"val pointStrokeWidth: Dp","description":"com.pushpal.jetlime.JetLimeEventStyle.pointStrokeWidth","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-stroke-width.html","searchKeys":["pointStrokeWidth","val pointStrokeWidth: Dp","com.pushpal.jetlime.JetLimeEventStyle.pointStrokeWidth"]},{"name":"val pointType: EventPointType","description":"com.pushpal.jetlime.JetLimeEventStyle.pointType","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/point-type.html","searchKeys":["pointType","val pointType: EventPointType","com.pushpal.jetlime.JetLimeEventStyle.pointType"]},{"name":"val targetValue: Float","description":"com.pushpal.jetlime.EventPointAnimation.targetValue","location":"jetlime/com.pushpal.jetlime/-event-point-animation/target-value.html","searchKeys":["targetValue","val targetValue: Float","com.pushpal.jetlime.EventPointAnimation.targetValue"]},{"name":"val tint: Color? = null","description":"com.pushpal.jetlime.EventPointType.tint","location":"jetlime/com.pushpal.jetlime/-event-point-type/tint.html","searchKeys":["tint","val tint: Color? = null","com.pushpal.jetlime.EventPointType.tint"]},{"name":"val type: String","description":"com.pushpal.jetlime.EventPointType.type","location":"jetlime/com.pushpal.jetlime/-event-point-type/type.html","searchKeys":["type","val type: String","com.pushpal.jetlime.EventPointType.type"]},{"name":"var position: EventPosition","description":"com.pushpal.jetlime.JetLimeEventStyle.position","location":"jetlime/com.pushpal.jetlime/-jet-lime-event-style/position.html","searchKeys":["position","var position: EventPosition","com.pushpal.jetlime.JetLimeEventStyle.position"]}] diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index e84ec93..cbd2d0f 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,10 +1,10 @@ [versions] -composeBom = "2024.02.01" +composeBom = "2024.03.00" compose-compiler = "1.5.10" activityCompose = "1.8.2" -agp = "8.2.2" +agp = "8.3.1" coreKtx = "1.12.0" -jetlime = "2.1.1" +jetlime = "2.2.0" junit = "4.13.2" junitVersion = "1.1.5" kotlin = "1.9.22" diff --git a/jetlime/build.gradle.kts b/jetlime/build.gradle.kts index be0b156..c317d59 100644 --- a/jetlime/build.gradle.kts +++ b/jetlime/build.gradle.kts @@ -85,7 +85,7 @@ mavenPublishing { publishToMavenCentral(SonatypeHost.S01) signAllPublications() val artifactId = "jetlime" - coordinates("io.github.pushpalroy", artifactId, "2.1.1") + coordinates("io.github.pushpalroy", artifactId, "2.2.0") pom { name.set(artifactId) diff --git a/jetlime/src/main/java/com/pushpal/jetlime/EventPointType.kt b/jetlime/src/main/java/com/pushpal/jetlime/EventPointType.kt index c41b025..a7b1bc6 100644 --- a/jetlime/src/main/java/com/pushpal/jetlime/EventPointType.kt +++ b/jetlime/src/main/java/com/pushpal/jetlime/EventPointType.kt @@ -26,6 +26,7 @@ package com.pushpal.jetlime import androidx.compose.runtime.Immutable import androidx.compose.runtime.Stable +import androidx.compose.ui.graphics.Color import androidx.compose.ui.graphics.painter.Painter /** @@ -34,12 +35,14 @@ import androidx.compose.ui.graphics.painter.Painter * * @property type The name of the event point type. * @property icon An optional [Painter] icon associated with the event point type. + * @property tint An optional tint [Color] overlay for the icon. * @property fillPercent An optional percentage value for the [FILLED] type */ @Immutable class EventPointType internal constructor( val type: String, val icon: Painter? = null, + val tint: Color? = null, val fillPercent: Float? = null, ) { companion object { @@ -59,10 +62,12 @@ class EventPointType internal constructor( * Creates a custom event point type with a specified [Painter] icon. * * @param icon The [Painter] icon for the custom event point type. + * @param tint The optional tint [Color] of the custom icon. * @return A new instance of [EventPointType] with the custom icon. */ @Stable - fun custom(icon: Painter): EventPointType = EventPointType(type = CUSTOM, icon = icon) + fun custom(icon: Painter, tint: Color? = null): EventPointType = + EventPointType(type = CUSTOM, icon = icon, tint = tint) /** * Creates a filled event point type with a specified fill percentage. @@ -116,6 +121,7 @@ class EventPointType internal constructor( if (this === other) return true if (other !is EventPointType) return false if (type != other.type) return false + if (tint != other.tint) return false if (fillPercent != other.fillPercent) return false return icon == other.icon } @@ -129,6 +135,7 @@ class EventPointType internal constructor( override fun hashCode(): Int { var result = type.hashCode() result = 31 * result + icon.hashCode() + result = 31 * result + tint.hashCode() result = 31 * result + fillPercent.hashCode() return result } diff --git a/jetlime/src/main/java/com/pushpal/jetlime/JetLimeEvent.kt b/jetlime/src/main/java/com/pushpal/jetlime/JetLimeEvent.kt index c59ec80..54a9b9e 100644 --- a/jetlime/src/main/java/com/pushpal/jetlime/JetLimeEvent.kt +++ b/jetlime/src/main/java/com/pushpal/jetlime/JetLimeEvent.kt @@ -38,6 +38,8 @@ import androidx.compose.runtime.remember import androidx.compose.ui.Modifier import androidx.compose.ui.draw.drawBehind import androidx.compose.ui.geometry.Offset +import androidx.compose.ui.geometry.Size +import androidx.compose.ui.graphics.ColorFilter import androidx.compose.ui.graphics.drawscope.Stroke import androidx.compose.ui.graphics.drawscope.drawIntoCanvas import androidx.compose.ui.graphics.drawscope.withTransform @@ -126,6 +128,7 @@ internal fun VerticalEvent( val radius = style.pointRadius.toPx() * radiusAnimFactor val strokeWidth = style.pointStrokeWidth.toPx() + // Line if (style.position.isNotEnd()) { val yShift = yOffset * (jetLimeStyle.pointStartFactor - 1) drawLine( @@ -142,14 +145,14 @@ internal fun VerticalEvent( ) } - if (style.pointType.isEmptyOrFilled()) { - drawCircle( - color = style.pointColor, - radius = radius, - center = Offset(x = xOffset, y = yOffset), - ) - } + // Point background + drawCircle( + color = style.pointColor, + radius = radius, + center = Offset(x = xOffset, y = yOffset), + ) + // Point center fill if (style.pointType.isFilled()) { drawCircle( color = style.pointFillColor, @@ -157,20 +160,23 @@ internal fun VerticalEvent( center = Offset(x = xOffset, y = yOffset), ) } - + // Point custom icon if (style.pointType.isCustom()) { style.pointType.icon?.let { painter -> + val pointSizeInPixels = style.pointRadius.toPx() * 2.4f * radiusAnimFactor + val iconSize = Size(pointSizeInPixels, pointSizeInPixels) this.withTransform( transformBlock = { translate( - left = xOffset - painter.intrinsicSize.width / 2f, - top = yOffset - painter.intrinsicSize.height / 2f, + left = xOffset - iconSize.width / 2f, + top = yOffset - iconSize.height / 2f, ) }, drawBlock = { this.drawIntoCanvas { with(painter) { - draw(intrinsicSize) + val tint = style.pointType.tint?.let { ColorFilter.tint(it) } + draw(size = iconSize, colorFilter = tint) } } }, @@ -178,7 +184,7 @@ internal fun VerticalEvent( } } - // Draw icon stroke + // Point border if (strokeWidth > 0f) { drawCircle( color = style.pointStrokeColor, @@ -264,6 +270,7 @@ internal fun HorizontalEvent( val radius = style.pointRadius.toPx() * radiusAnimFactor val strokeWidth = style.pointStrokeWidth.toPx() + // Line if (style.position.isNotEnd()) { val xShift = xOffset * (jetLimeStyle.pointStartFactor - 1) drawLine( @@ -280,14 +287,14 @@ internal fun HorizontalEvent( ) } - if (style.pointType.isEmptyOrFilled()) { - drawCircle( - color = style.pointColor, - radius = radius, - center = Offset(x = xOffset, y = yOffset), - ) - } + // Point background + drawCircle( + color = style.pointColor, + radius = radius, + center = Offset(x = xOffset, y = yOffset), + ) + // Point center fill if (style.pointType.isFilled()) { drawCircle( color = style.pointFillColor, @@ -296,19 +303,23 @@ internal fun HorizontalEvent( ) } + // Point custom icon if (style.pointType.isCustom()) { style.pointType.icon?.let { painter -> + val pointSizeInPixels = style.pointRadius.toPx() * 2.4f * radiusAnimFactor + val iconSize = Size(pointSizeInPixels, pointSizeInPixels) this.withTransform( transformBlock = { translate( - left = xOffset - painter.intrinsicSize.width / 2f, - top = yOffset - painter.intrinsicSize.height / 2f, + left = xOffset - iconSize.width / 2f, + top = yOffset - iconSize.height / 2f, ) }, drawBlock = { this.drawIntoCanvas { with(painter) { - draw(intrinsicSize) + val tint = style.pointType.tint?.let { ColorFilter.tint(it) } + draw(size = iconSize, colorFilter = tint) } } }, @@ -316,7 +327,7 @@ internal fun HorizontalEvent( } } - // Draw icon stroke + // Point border if (strokeWidth > 0f) { drawCircle( color = style.pointStrokeColor, diff --git a/scripts/add_git_tag.sh b/scripts/add_git_tag.sh index c0312c4..04f9ce9 100644 --- a/scripts/add_git_tag.sh +++ b/scripts/add_git_tag.sh @@ -2,7 +2,7 @@ # Script to add annotated tag with version number to the main branch # This script should be executed with the correct version number after every release to MavenCentral -TAG="2.1.1" +TAG="2.2.0" COMMENT="Release $TAG" BRANCH="main"