Open
Show file tree
Hide file tree
Changes from all commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [6.0.2] - 2025-03-02

### Fixed
- Fix `ValueError` when dragging and dropping a `FigureWidget` shape.

## [6.0.1] - 2025-02-16

### Fixed
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -4682,6 +4682,7 @@ def __getitem__(self, prop):
CompoundArrayValidator,
BaseDataValidator,
)
from .validators.layout._shapes import ShapesValidator

# Normalize prop
# --------------
Expand All@@ -4707,7 +4708,6 @@ def __getitem__(self, prop):
)

validator = self._get_validator(prop)

if isinstance(validator, CompoundValidator):
if self._compound_props.get(prop, None) is None:
# Init compound objects
Expand All@@ -4719,6 +4719,12 @@ def __getitem__(self, prop):
self._compound_props[prop]._plotly_name = prop

return validator.present(self._compound_props[prop])
elif isinstance(validator, ShapesValidator):
props = []
if self._props is not None and prop in self._props:
props = [validator.data_class() for _ in self._props.get(prop, [])]

return validator.present(props)
elif isinstance(validator, (CompoundArrayValidator, BaseDataValidator)):
if self._compound_array_props.get(prop, None) is None:
# Init list of compound objects
Expand Down