Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CiS Projekt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ockenden, Samuel
CiS Projekt
Commits
9ccccd6e
Commit
9ccccd6e
authored
3 years ago
by
Stahl, Merle
Browse files
Options
Downloads
Patches
Plain Diff
Layout
parent
21a45a1e
Branches
Branches containing commit
No related tags found
1 merge request
!23
Main
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
assets/cn_default.js
+1
-2
1 addition, 2 deletions
assets/cn_default.js
assets/cn_timeline.js
+3
-2
3 additions, 2 deletions
assets/cn_timeline.js
assets/index.html
+2
-2
2 additions, 2 deletions
assets/index.html
assets/json_text.json
+783
-57
783 additions, 57 deletions
assets/json_text.json
with
789 additions
and
63 deletions
assets/cn.js
→
assets/cn
_default
.js
+
1
−
2
View file @
9ccccd6e
...
...
@@ -120,7 +120,7 @@ var simulation = d3.forceSimulation()
else
{
return
70
;}
}).
strength
(
0.5
))
.
force
(
"
charge
"
,
d3
.
forceManyBody
().
strength
(
0.001
))
.
force
(
"
center
"
,
d3
.
forceCenter
(
width
/
2
,
height
/
2
+
20
))
.
force
(
"
center
"
,
d3
.
forceCenter
(
width
/
2
-
20
,
height
/
2
+
20
))
.
force
(
"
yscale
"
,
d3
.
forceY
().
strength
(
function
(
d
)
{
if
(
d
.
group
==
"
Input
"
)
{
return
300
;}
else
{
return
200
;}
...
...
@@ -567,4 +567,3 @@ function svg_string_to_image( svgString, width, height, format, callback ) {
image
.
src
=
imgsrc
;
}
This diff is collapsed.
Click to expand it.
assets/cn
2
.js
→
assets/cn
_timeline
.js
+
3
−
2
View file @
9ccccd6e
...
...
@@ -121,8 +121,9 @@ var simulation = d3.forceSimulation()
else
{
return
75
;}
}).
strength
(
1
))
.
force
(
"
charge
"
,
d3
.
forceManyBody
().
strength
(
0.001
))
.
force
(
"
center
"
,
d3
.
forceCenter
(
width
/
2
,
height
/
2
+
20
))
.
force
(
"
center
"
,
d3
.
forceCenter
(
width
/
2
-
20
,
height
/
2
+
20
))
.
alpha
(
0.004
)
.
velocityDecay
(
0.65
)
.
on
(
"
end
"
,
zoom_to
);
/**
...
...
@@ -159,6 +160,7 @@ d3.json("json_text.json").then(success,failure)
function
success
(
graph
){
update
(
graph
.
links
,
graph
.
nodes
);
}
function
failure
(
graph
){
localStorage
.
setItem
(
"
oldjson
"
,
"
irgendwaswasimmergespeichertwirdwennkeinejsondaist
"
)
}
...
...
@@ -610,4 +612,3 @@ function svg_string_to_image( svgString, width, height, format, callback ) {
image
.
src
=
imgsrc
;
}
This diff is collapsed.
Click to expand it.
assets/index.html
+
2
−
2
View file @
9ccccd6e
...
...
@@ -155,7 +155,7 @@
var
htmlHeader
=
document
.
getElementsByTagName
(
"
head
"
)[
0
];
var
myScript
=
document
.
createElement
(
'
script
'
);
myScript
.
type
=
'
text/javascript
'
;
myScript
.
src
=
'
cn.js
'
;
myScript
.
src
=
'
cn
_default
.js
'
;
myScript
.
id
=
'
abc
'
;
htmlHeader
.
appendChild
(
myScript
);
}
...
...
@@ -164,7 +164,7 @@
var
htmlHeader
=
document
.
getElementsByTagName
(
"
head
"
)[
0
];
var
myScript
=
document
.
createElement
(
'
script
'
);
myScript
.
type
=
'
text/javascript
'
;
myScript
.
src
=
'
cn
2
.js
'
;
myScript
.
src
=
'
cn
_timeline
.js
'
;
myScript
.
id
=
'
abc
'
;
htmlHeader
.
appendChild
(
myScript
);
}
...
...
This diff is collapsed.
Click to expand it.
assets/json_text.json
+
783
−
57
View file @
9ccccd6e
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment