Skip to content

Fix aspectRatio output when value is an object #136

Description

@nathanacurtis

Problem

The layout or style output displays aspectRatio incorrectly when the schema represents it as an object (e.g., { width: 16, height: 9 }) rather than a scalar number. The raw object structure appears in the exhibit instead of a readable ratio or value.

Solution

Detect when aspectRatio is an object and format it into a human-readable form — either as a ratio string ("16:9") or a decimal — so exhibits display a clean value.

Acceptance criteria

  • aspectRatio displays as a readable value (not a raw object) in plugin exhibits
  • Both scalar and object-shaped aspectRatio values are handled without errors

Implementation details are tracked internally.

Metadata

Metadata

Assignees

Labels

pluginFigma plugin

Type

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions