-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Add polar.hole
#2977
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
Add polar.hole
#2977
Changes from 1 commit
39b2ee3
ea7fd2c
f547692
35199c6
8e5833d
ea877ee
a859872
776e292
9c3dcef
1122907
d466146
5a998a2
092006a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -597,6 +597,9 @@ proto.updateAngularAxis = function(fullLayout, polarLayout) { | |
} | ||
_this.vangles = vangles; | ||
|
||
// TODO maybe two arcs is better here? | ||
// maybe split style attributes between inner and outer angular axes? | ||
alexcjohnson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
updateElement(layers['angular-line'].select('path'), angularLayout.showline, { | ||
d: _this.pathSubplot(), | ||
transform: strTranslate(cx, cy) | ||
|
@@ -937,6 +940,8 @@ proto.updateRadialDrag = function(fullLayout) { | |
var tx = cx + (radius + bl2) * Math.cos(angle0); | ||
var ty = cy - (radius + bl2) * Math.sin(angle0); | ||
|
||
// TODO add 'inner' drag box when innerRadius > 0 !! | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not quite sure what this means, but if it's something like the clamped inner edge still jumps to be a circle at the center then yeah, we'd better avoid that. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This TODO refers to the radial drag box. Currently we have 1 radial drag box per polar subplot out beyond the subplot radius. We don't drag one at the other end of the radial axis as it would conflict with the "main" drag over the subplot. But, when There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh right! Yes, we should add that. Would be confusing if there's room for one but it's not there. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added in d466146 |
||
|
||
d3.select(radialDrag) | ||
.attr('transform', strTranslate(tx, ty)); | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.