Skip to content

feat(image-cropper-web): allow custom aspect ratio width/height as expressions#2333

Open
hunter-koppen wants to merge 1 commit into
mendix:mainfrom
hunter-koppen:feat/image-cropper-aspect-expression
Open

feat(image-cropper-web): allow custom aspect ratio width/height as expressions#2333
hunter-koppen wants to merge 1 commit into
mendix:mainfrom
hunter-koppen:feat/image-cropper-aspect-expression

Conversation

@hunter-koppen

Copy link
Copy Markdown

Convert the customAspectWidth/customAspectHeight properties from static integers to Integer-returning expressions so mendix developers can bind an attribute (or any expression) to the ratio sides instead of a fixed value.

The store now reads each DynamicValue via ValueStatus.Available guard, resolveAspectRatio tolerates undefined, and the editor preview parses the expression text (numeric literals only) with a free-aspect fallback.

…pressions

Convert the customAspectWidth/customAspectHeight properties from static
integers to Integer-returning expressions so app developers can bind an
attribute (or any expression) to the ratio sides instead of a fixed value.

The store now reads each DynamicValue<Big> via ValueStatus.Available guard,
resolveAspectRatio tolerates undefined, and the editor preview parses the
expression text (numeric literals only) with a free-aspect fallback.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@hunter-koppen
hunter-koppen requested a review from a team as a code owner July 16, 2026 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant