Add own style for separate vertex/edges.

This commit is contained in:
Oleg Sh
2021-04-16 12:13:16 +02:00
parent b60e70c089
commit 2271e32a93
16 changed files with 364 additions and 30 deletions

View File

@@ -23,13 +23,18 @@ function gDecodeFromHTML(str)
.replace(/&/g, '&');
}
function FullObjectCopy(obj)
{
return Object.assign(Object.create(obj), obj);
}
function FullArrayCopy(arr)
{
var res = [];
arr.forEach(function(element) {
var copyElement = Object.assign(Object.create(element), element);
var copyElement = FullObjectCopy(element);
res.push(copyElement);
});