Ratio issue

Aperta
#477 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, kotlin
Ambito
mobile

Direzione di ricerca

Compare the supplied Compose reproduction and anim_challenge.zip across the listed runtime versions, starting with 11.7.2 and 11.8.0. Use the linked recordings to identify how the animation’s ratio changes; done means the same ratio is preserved on the latest runtime versions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Submission checklist
  • I have confirmed the issue is present in the latest version of rive-android
  • I have searched the documentation and forums and could not find an answer
  • I have searched existing issues and this is not a duplicate
Description

Ratio for one animation is KO on latest versions.
Ratio is OK on version 11.7.2
Ratio is KO on versions 11.8.0, 11.12.1, 11.14.3

Previous working version

11.7.2

Reproduction steps / code
    Box(
        modifier = Modifier.fillMaxSize().background(color = Color.Black)
    ) {
        val worker = rememberRiveWorker()
        val riveFile = rememberRiveFile(
             RiveFileSource.RawRes.from(R.raw.anim_challenge),
             riveWorker
        )

        when(riveFile) {
            is Result.Success<RiveFile> ->  {
                Rive(
                    modifier = Modifier.fillMaxWidth().aspectRatio(375f / 604f).align(Alignment.Center).background(color = Color.DarkGray),
                    file = riveFile.value,
                    playing = true,
                    fit = Fit.Contain(),
                    pointerInputMode = RivePointerInputMode.PassThrough
                )
            }

            else -> {}
        }

    }
Upload your reproduction files / stack trace

No response

Source .riv / .rev file

anim_challenge.zip

Screenshots / video

Screen_Recording_v11.14.3.mp4
Screen_Recording_v11.7.2.mp4

Rive Android runtime version

11.14.3

Rive API

Compose

Device

Samsung A32, Pixel 4a, Pixel 6a

Device OS

Android 13 + Android 17

App minimum SDK level

29

App target SDK level

36

App NDK level

No response

Other Rive runtimes affected

No response

Dependencies with native libraries

No response

Additional context

No response

Lingua principale
Kotlin
Stelle
547
Fork
68
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di rive-app/rive-android

Tutte le issue di rive-app/rive-android

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.