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

Correct type of zoomSpeed in 'lib/network/options.js' #40

Merged
merged 1 commit into from
Sep 22, 2018

Conversation

geminoa
Copy link
Collaborator

@geminoa geminoa commented Sep 21, 2018

zoomSpeed is introduced for configurable manual zoom speed and the
type of value is number as described in [1].

However, it should be an array of number if it is used with
Configurator class, or an error is occured in _handleObject().
This update is to correct the type of zoomSpeed and fix #37.

[1] almende/vis#3657

`zoomSpeed` is introduced for configurable manual zoom speed and the
type of value is `number` as described in [1].

However, it should be an array of `number` if it is used with
Configurator class, or an error is occured in _handleObject().
This update is to correct the type of zoomSpeed and fix visjs-community#37.

[1] almende/vis#3657
@micahstubbs
Copy link
Member

oh, very nice. It's cool to see a solution to #37. that one had me stumped earlier.

will have a look at this now 😄

@micahstubbs
Copy link
Member

looks good to me

the configuration example loads with no JS errors. when I zoom in and out by scrolling the mousewheel, there are also no JS errors (unlike before)

nice work @geminoa 🙌

http://127.0.0.1:8080/examples/other/configuration/

screen shot 2018-09-22 at 3 27 49 pm

@micahstubbs micahstubbs merged commit 0c09523 into visjs-community:master Sep 22, 2018
@micahstubbs micahstubbs self-requested a review September 22, 2018 22:33
@micahstubbs micahstubbs changed the title Correct type of zoomSpeed in 'lib/network/opitons.js' Correct type of zoomSpeed in 'lib/network/options.js' Sep 22, 2018
@mojoaxel
Copy link

💌 Thanks @geminoa for your contribution!
This pull-request has been merge into visjs/vis-network#25

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.

config example: dont know how to handle 1 zoomSpeed
3 participants