Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.

Network: preload images in options for all shape types #3570

Merged
merged 1 commit into from
Oct 14, 2017

Conversation

wimrijnders
Copy link
Contributor

@wimrijnders wimrijnders commented Oct 14, 2017

Fixes #3532.

If the image option is set, preload it, even if the node shape is not image or circularImage.
This needs to be done because the user can switch to an image shape later, as is happening in the issue.
Option image is only mandatory for the image shapes.

There is no unit test for this, because it would need a mock object for Image and I didn't succeed in creating/finding one.

Fixes almende#3532

If the images option is set, preload it, even if the node shape is not `image` or `circularImage`.
This needs to be done because the user can switch to an image shape later, as is happening in the issue.
Option `image` is only mandatory for the image shapes.

There is no unit test for this, because it would need a mock object for Image and I didn't succeed in creating/finding one.
@yotamberk yotamberk merged commit 08af10e into almende:develop Oct 14, 2017
@wimrijnders wimrijnders deleted the issue3532 branch October 14, 2017 07:48
mojoaxel pushed a commit to visjs/vis_original that referenced this pull request Jun 9, 2019
Fixes almende#3532

If the images option is set, preload it, even if the node shape is not `image` or `circularImage`.
This needs to be done because the user can switch to an image shape later, as is happening in the issue.
Option `image` is only mandatory for the image shapes.

There is no unit test for this, because it would need a mock object for Image and I didn't succeed in creating/finding one.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants