MotionTokens.kt
/*
* Copyright 2024 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// VERSION: v0_40
// GENERATED CODE - DO NOT MODIFY BY HAND
package androidx.wear.compose.material3.tokens
import androidx.compose.animation.core.CubicBezierEasing
import androidx.compose.animation.core.PathEasing
import androidx.compose.ui.graphics.vector.PathParser
// See Wear Motion durations: https://carbon.googleplex.com/wear-os-3/pages/speed
// See Wear Motion easings: https://carbon.googleplex.com/wear-os-3/pages/easings
internal object MotionTokens {
const val DurationExtraLong1 = 700
const val DurationExtraLong2 = 800
const val DurationExtraLong3 = 900
const val DurationExtraLong4 = 1000
const val DurationLong1 = 450
const val DurationLong2 = 500
const val DurationLong3 = 550
const val DurationLong4 = 600
const val DurationMedium1 = 250
const val DurationMedium2 = 300
const val DurationMedium3 = 350
const val DurationMedium4 = 400
const val DurationShort1 = 50
const val DurationShort2 = 100
const val DurationShort3 = 150
const val DurationShort4 = 200
val EasingEmphasizedAccelerate = CubicBezierEasing(0.3f, 0.0f, 0.8f, 0.15f)
val EasingEmphasizedDecelerate = CubicBezierEasing(0.05f, 0.7f, 0.1f, 1.0f)
val EasingEmphasizedStandard =
PathEasing(
PathParser()
.parsePathString(
"M 0,0 C 0.05, 0, 0.133333, 0.06, 0.166666, 0.4 C 0.208333, 0.82, 0.25, 1, 1, 1"
)
.toPath()
)
val EasingLegacyAccelerate = CubicBezierEasing(0.4f, 0.0f, 1.0f, 1.0f)
val EasingLegacyDecelerate = CubicBezierEasing(0.0f, 0.0f, 0.2f, 1.0f)
val EasingLegacyStandard = CubicBezierEasing(0.4f, 0.0f, 0.2f, 1.0f)
val EasingStandard = CubicBezierEasing(0.2f, 0.0f, 0.0f, 1.0f)
val EasingStandardAccelerate = CubicBezierEasing(0.3f, 0.0f, 1.0f, 1.0f)
val EasingStandardDecelerate = CubicBezierEasing(0.0f, 0.0f, 0.0f, 1.0f)
}