Skip to content
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

Merged
merged 4 commits into from
Jun 13, 2017
Merged

Update markers alignment #4

merged 4 commits into from
Jun 13, 2017

Conversation

dy
Copy link
Member

@dy dy commented Jun 9, 2017

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

Copy link
Member

@etpinard etpinard left a 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
Copy link
Member

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')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, fixed

@etpinard
Copy link
Member

Alright, here are the new baselines using this branch and font-atlas-sdf@1.3.2:

https://github.com/plotly/plotly.js/compare/gl2d-scatter-sdf-marker-alignment

@etpinard
Copy link
Member

Looking good. especially this one:

peek 2017-06-12 11-09

@etpinard etpinard merged commit 65bd85a into master Jun 13, 2017
@etpinard etpinard deleted the fit-symbols branch June 13, 2017 14:49
@etpinard
Copy link
Member

@dfcreative can you publish v1.3.10 to npm?

@dy
Copy link
Member Author

dy commented Jun 13, 2017

@etpinard done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants