mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-04-04 14:56:16 +00:00
Add own style for separate vertex/edges.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user