-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update markers alignment #4
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @dfcreative !
I suspect this needs dy/font-atlas-sdf@5a5a635 ?
@@ -21,4 +21,4 @@ plot.draw() | |||
``` | |||
|
|||
# License | |||
(c) 2015 Mikola Lysenko. MIT License | |||
(c) 2016 Dima Yv. MIT License |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
scatter.js
Outdated
@@ -7,7 +7,7 @@ var createBuffer = require('gl-buffer') | |||
var pool = require('typedarray-pool') | |||
var shaders = require('./lib/shaders') | |||
var snapPoints = require('snap-points-2d') | |||
var atlas = require('font-atlas-sdf') | |||
var atlas = require('../font-atlas-sdf') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The 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 comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, fixed
Alright, here are the new baselines using this branch and https://github.com/plotly/plotly.js/compare/gl2d-scatter-sdf-marker-alignment |
@dfcreative can you publish |
@etpinard done |
This PR aligns markers by optical center and makes their size more consistent, see optical-properties.
Probably needs merging to resolve plotly/plotly.js#1550