wimrijnders
f8ba6f037c
Protect Network from zero and negative mass values ( #3135 )
* Protect Network from zero and negative mass values
Fix for #3133
Option-field 'node.mass` must be >= 0.
Checks have been added at the nodes level, for both nodes-global and nodes specific options.
In addition, an internal check has been added for `NodeHandler.defaultOptions`.
The documentation has been adjusted for this change.
* Fix whitespace
7 years ago
Pat Sissons
e25db74b4b
replacing all ES6 imports with CJS require calls ( #3063 )
* replacing all ES6 imports with CJS require calls
resolves #2934
used the following regex to apply the changes in lib:
s/import\s+(\w+)\s+from\s+(.*);\s*$/var $1 = require($2).default;/
s/import\s+(\w+)\s+from\s+(.*)\s*$/var $1 = require($2).default;/
* cleaning up inconsistencies
7 years ago
wimrijnders
9a564417d0
Fixes for loading images into image nodes ( #2964 )
* Add warnings and errors for image loading
* Fixes and commenting for image loading
* Fix typo
* Small fixes due to review
7 years ago
wimrijnders
1ae1e15a50
Network: use separate refresh indicator in NodeBase, instead of width… ( #2885 )
* Network: use separate refresh indicator in NodeBase, instead of width parameter
* Added usage of iBaseNode.doRefresh to image shapes.
* Rearranged code in NodeBase.needRefresh()
* Fixes for review
* Removed strange link
* Added 's' in needsRefresh(); typo fix
* Fixes for review, code cleanup
* Modified ratio calc to original working.
* Made code in CircularImage.resize() more sensible.
7 years ago
Guilhem Soulas
66a67727ac
feat(network): Allow for image nodes to have a selected or broken image ( #2601 )
7 years ago
David Anderson
becf18e6eb
feat: change styles if element is selected ( #2446 )
* element characteristic changes
* assume edge color inheritance is correct before choosing
* Adjust nodes’ chosen’s boolean -> bool
* Need to get user-reset size
* make example edges thicker for more noticeable shadow
* preemptive ES6 fix (see #2500/#2501)
* documentation for the feature that was previously overwritten
8 years ago
David Anderson
8a9edbbf87
fix: Font styles and width and height of nodes ( #2385 )
* Multifont node and edge labels
* adjust documentation
* rework mod-font property inheritance
* Node max/min widths, min heights; Edge max widths
* Accumulate sizes correctly for unconstrained multipoint labels
* handle font.multi when groupOptions.font is not declared
* propagate label fonts on changes, not just creation
* Allow top-level constraint numbers
* accumulate width and empty lines appropriately
8 years ago
jos
c3b9203350
Reverted support in Network for custom id fields, which was still broken
8 years ago
jos
4a720969e1
Fixed #1707 : Network not supporting data with a custom id field
8 years ago
Alex de Mulder
11888f255d
- Added #1138 , enable the user to define the color of the shadows for nodes and edges.
- Fixed #1528 , #1278 , avoided ID's being cast to string for methods that return ID's as well as storePositions casting to string.
9 years ago
Alex de Mulder
589093d502
- Fixed #1406 , control nodes are now drawn immediately without a second redraw.
9 years ago
Alex de Mulder
4d8a2598f0
reevaluated object bridging over extending. New implementations to prevent bugs.
9 years ago
Alex de Mulder
349017cf85
- Fixed #1416 : Fixed error in improvedLayout.
9 years ago
Alex de Mulder
3c9b849241
- Fixed #1414 : Fixed color references for nodes and edges.
9 years ago
Alex de Mulder
ce4fec4da3
- Fixed #1324 : Labels now scale again.
9 years ago
Alex de Mulder
3733976b35
- Fixed deletion of options by settings them to null.
9 years ago
Alex de Mulder
1d0db57815
- Fixed setting font to null so the network won't crash anymore.
9 years ago
Coleman Kane
c966a5feba
Put node-label alignment into 'align' rather than 'textAlign'
Node labels don't currently make use of the 'align' property, so this reuses
the existing property.
The label code has a number of alignment options that make sense to edges only,
so the Edge/Node now passes a boolean to the Label ctor to explain which the label
is being rendered for
9 years ago
Alex de Mulder
9b83e2ca0f
- Fixed dynamic updating of label properties.
9 years ago
Alex de Mulder
6e01279eaa
- Fixed #1152 , updating images now works.
9 years ago
AlexDM0
9a2bec6898
removed node cleanup
9 years ago
Alex de Mulder
64b2c78e00
Removed move callbacks
9 years ago
Alex de Mulder
cfadb05e3a
bugfix
9 years ago
Alex de Mulder
42c2adf009
prepared for supernodes. Cleaned code
9 years ago
Alex de Mulder
700e735336
added cubic bezier curves.
9 years ago
Alex de Mulder
4ef684af2e
Fixed #1087 , updated history
9 years ago
Alex de Mulder
3ab17e2cb0
Fixed node resizing on dragging.
9 years ago
AlexDM0
0cf8c4aae0
- Fixed updating bounding box of nodes without drawing.
9 years ago
Alex de Mulder
af39649458
- Improved handling of empty image field.
9 years ago
Alex de Mulder
e96d228ab8
Added releaseFunction to openCluster.
9 years ago
Alex de Mulder
50e916e3de
removed random from physics. fixed setting hidden and physics dynamically, fixed manipulation system bug
9 years ago
Alex de Mulder
cf3614001e
removed log, rebuilt
9 years ago
Alex de Mulder
db5782cad8
- Fixed #861 , brokenImage only working for one node if nodes have the same image.
9 years ago
Alex de Mulder
d404798174
fixed alot of bugs, expanded configurator, added more examples, updated docs, updated update interval
9 years ago
Alex de Mulder
ad2d70ed8b
fixed numerous clustering bugs, added more examples, numerous other bug fixes
9 years ago
Alex de Mulder
cbc4c8dce3
fixed bugs, set all groups to reload if globally changed
9 years ago
Alex de Mulder
9921fe750b
worked with examples
9 years ago
Alex de Mulder
c3883970e4
numerous bugfixes, partial progress with examples
9 years ago
Alex de Mulder
ccbdd46cc4
fixed bounding box bug, added function filter to configuration system
9 years ago
jos
88ab094789
Moved validator and ConfigurationSystem to ./lib/shared, and continue with options on error
9 years ago
Alex de Mulder
5b7a90f4dc
added multiselect, reworked options
9 years ago
Alex de Mulder
5b3f19acb5
fixed viewable area check as per #812
9 years ago
Alex de Mulder
c9a1a88f41
fixed all trello issues and added snazzy option lookup to validator
9 years ago
Alex de Mulder
3dc963ca20
disable the 'deleting' of fixed option
9 years ago
Alex de Mulder
357853e2ce
allowed deleting values with null and undefined. Fix for global variables, fix for edge color strings
9 years ago
Alex de Mulder
050e2daa7e
fix for sad labelless nodes
9 years ago
Alex de Mulder
efd876dba8
debugging a bit
9 years ago
Alex de Mulder
bf274fd51e
added a pretty amazing option checker to network :)
9 years ago
Alex de Mulder
3fbab7cd9d
updated docs partially
9 years ago
Alex de Mulder
d4d928d250
finalized all methods and adde3d more docs
9 years ago