Skip to content

Dotlottie canvas element aspect ratio out of sync with scene's aspect ratio #477

Description

@mseeley

Overview

Similar to #248

There is an implicit gap rendering above and below our rectangular animations. This prevents our developers from deterministically spacing an animation from the content before and after it. I understand there is animation scaling occurring yet the math results in a canvas element with an aspect ratio out of sync with the scene.

This 700x300 scene:

Image

Displays like this; see Codesandbox.

The 700x300 (2.33 aspect-ratio) scene results in a 700x349.72 (2.0 aspect-ratio) canvas rectangle.

Image

Consuming repo

What repo were you working in when this issue occurred?

I have run into the same behavior when using @lottiefiles/dotlottie-vue in local development and when using dotlottie-wc syntax directly from app.lottiefiles.com

...

Labels

  • Add the Type: Bug label to this issue.

Metadata

Metadata

Assignees

Labels

wontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions