Skip to content

feat(viewmodel): expose referenced view model name in PropertyData - #116

Draft
mfazekas wants to merge 1 commit into
rive-app:mainfrom
mfazekas:mfazekas/property-data-viewmodel-name
Draft

feat(viewmodel): expose referenced view model name in PropertyData#116
mfazekas wants to merge 1 commit into
rive-app:mainfrom
mfazekas:mfazekas/property-data-viewmodel-name

Conversation

@mfazekas

@mfazekas mfazekas commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Adds viewModelName to PropertyData so callers can tell which view model a DataType::viewModel property references, without creating an instance just to introspect it. Symmetric with enumName.

A ViewModelPropertyViewModel only carries viewModelReferenceId and a ViewModelProperty has no link back to its owner, so the name has to be resolved through the File: buildPropertiesData now takes the owning ViewModel rather than its property list, and reaches the file via ViewModel::file(), which is no longer WITH_RIVE_TOOLS-only.

Needed by rive-wasm to surface viewModelName through getProperties() for TypeScript schema/codegen use cases.

@mfazekas
mfazekas force-pushed the mfazekas/property-data-viewmodel-name branch from 5b2b888 to 0dc11d0 Compare July 28, 2026 15:06
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