-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix serializers for jupyterlab_widgets 3.0.6
#72
Conversation
## References Resolves jupyrdf#60 by adding `curvature` and `line dashes` to `LinkShape`. ## Code changes - [x] add `curvature` to `LinkShape` - [x] add `line_dash` to `LinkShape` - [x] disable this behavior in 3D (it is not supported) - [x] add coercion to `array` for `line_dash` data - [x] update notebooks - [x] fixed a small issue with `node` selection in `Behaviors.ipynb` - [x] update docs - [x] add tests - [x] `str` inputs - [x] `int` inputs - [x] `float` inputs - [x] `Column` inputs - [x] `Nunjucks` inputs - [x] `LinkShape.color` - [x] `LinkShape.curvature` - [x] `LinkShape.line_dash` - [x] `LinkShape.width` - [x] Interaction with selection - [x] need to make sure `LinkSelection` is included before `LinkShape` to show selection styling - [x] `LinkSelection` works but it is not tested in conjunction with `LinkShape` - [x] future work would be to figure out a way to make `default_curvature=None` to leave the link with its non-selected `curvature` ## User-facing changes * Two new properties on `LinkShape`: * `LinkShape.curvature`: * 0.0 produces a straight link (default) * 1.0 circular link (i.e., `radius of curvature` = `0.5 * link length`) * negative numbers mirror the link * `LinkShape.line_dashes`: * Define the line dashes using an array of numbers, [reference](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/setLineDash) ## Backwards-incompatible changes > No backwards incompatible changes (**knock on wood**)
do we need to bump our |
#68 is demonstrating it against the newer version, wanted to get a clean run of this against the older versions to see if the relationship is more nuanced. As mentioned, we could bring in more of |
Propose we merge what was included in #62 as it seems to work. The only thing left re: to #62 (AFAIK) was preserving |
References
jupyterlab_widgets
3.0.6 #71Code changes
dev
jupyterlab-widgets<3.0.6
,ipywidgets<8.0.5
,ipykernel<6.22
in the test matrix0.3.1
User-facing changes
ipywidgets
andjupyterlab_widgets
(and still work with older ones that pin)Backwards-incompatible changes