-
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
More link shape properties #62
Conversation
…es, and added a general DynamicWidgetTrait
|
Again, not blocking, but should probably filter that out of the 3d demo. |
Good call, fixed in da96020 |
Resolves jupyrdf#60 by adding `curvature` and `line dashes` to `LinkShape`. - [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` * 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) > No backwards incompatible changes (**knock on wood**)
References
Resolves #60 by adding
curvature
andline dashes
toLinkShape
.Code changes
curvature
toLinkShape
line_dash
toLinkShape
array
forline_dash
datanode
selection inBehaviors.ipynb
str
inputsint
inputsfloat
inputsColumn
inputsNunjucks
inputsLinkShape.color
LinkShape.curvature
LinkShape.line_dash
LinkShape.width
LinkSelection
is included beforeLinkShape
to show selection stylingLinkSelection
works but it is not tested in conjunction withLinkShape
default_curvature=None
to leave the link with its non-selectedcurvature
User-facing changes
LinkShape
:LinkShape.curvature
:radius of curvature
=0.5 * link length
)LinkShape.line_dashes
:Backwards-incompatible changes