Tags: alexkornitzer/vis-network
Tags
perf(dot): optimize isAlphaNumeric (visjs#1187) * Optimized isAlphaNumeric Optimized isAlphaNumeric to use charcodes instead if regex. This gives the function a worst case 60%+ performance on V8 and 40%+ on Spidermonkey * Fix linting issues * Fixed linting Co-authored-by: Tomina <tom.vycital@gmail.com>
fix(xss)!: don't set popup content via innerHTML (visjs#1275) BREAKING CHANGE: Titles are now interpreted literary, not as HTML. An element has to be passed instead to get the same behavior (see the popup example for details).
fix(xss): don't use innerHTML to set text (visjs#1242) We had a lot of instances of innerHTML that were simply setting text, in quite a few cases parsing it as HTML was even counter productive as it could theoreticly result in syntax errors and corrupted output (e.g. the output of JSON.stringify definitely shouldn't be parsed as HTML). There is only one occurence of innerHTML left and that is for the node/edge title as the docs clearly state that any string passed will be parsed as HTML.
fix(a11y): solve some issues (visjs#1240) - Tabindex on the network is 0 now. - All pages now declare their language. - Manipulation buttons are buttons now. - Manipulation buttons are tabbable now. - Manipulation buttons can be triggered by the keyboard (enter, space). - Manipulation close button has aria label.
fix(selection): commit selection changes in unselectAll (visjs#1200) * fix(types): setSelection selection props are optional * chore(test): add simple sort arrays helper to ignore array order when it doesn't matter * test(selection-handler): programmatic selection setting * fix(unselect-all): commit selection changes
fix(groups): dedupe group names (+ some refactoring) (visjs#1171) Deduping group names saves negligible amount of memory and makes all groups equally likely to be selected as new group templates. Regardings refactoring, properties not accessed from the outside were renamed with leading underscore to mark them as private. Default export was converted to named export. Map is used instead of object for key (name) value (style) storage of groups.
fix(node-border): use borderWidthSelected when set (visjs#1145)
feat(fit): allow custom zoom level limits (visjs#1134) They are optional and default to the same values as before (that is no breaking change), they are limited to values above 0 (zero would lead to infinities, NaNs etc. and I have no idea what negative zoom should mean) and max can't be lower than min. There's visual regression test included.
PreviousNext