Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
da9f12a3
Commit
da9f12a3
authored
Jun 15, 2015
by
mouly
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11 from MPR-Global/HDPDGI-79
show arrow pointing inwards for input tab
parents
eb9eb4cf
2fa32eca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
1 deletion
+20
-1
lineageController.js
dashboard/v2/public/modules/lineage/lineageController.js
+20
-1
No files found.
dashboard/v2/public/modules/lineage/lineageController.js
View file @
da9f12a3
...
@@ -196,6 +196,20 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco
...
@@ -196,6 +196,20 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco
'translate('
+
margin
.
left
+
','
+
margin
.
right
+
')'
);
'translate('
+
margin
.
left
+
','
+
margin
.
right
+
')'
);
//arrow
//arrow
svg
.
append
(
"svg:defs"
).
append
(
"svg:marker"
).
attr
(
"id"
,
"arrow"
).
attr
(
"viewBox"
,
"0 0 10 10"
).
attr
(
"refX"
,
26
).
attr
(
"refY"
,
5
).
attr
(
"markerUnits"
,
"strokeWidth"
).
attr
(
"markerWidth"
,
6
).
attr
(
"markerHeight"
,
9
).
attr
(
"orient"
,
"auto"
).
append
(
"svg:path"
).
attr
(
"d"
,
"M 0 0 L 10 5 L 0 10 z"
);
svg
.
append
(
"svg:defs"
).
append
(
"svg:marker"
).
attr
(
"id"
,
"arrow"
).
attr
(
"viewBox"
,
"0 0 10 10"
).
attr
(
"refX"
,
26
).
attr
(
"refY"
,
5
).
attr
(
"markerUnits"
,
"strokeWidth"
).
attr
(
"markerWidth"
,
6
).
attr
(
"markerHeight"
,
9
).
attr
(
"orient"
,
"auto"
).
append
(
"svg:path"
).
attr
(
"d"
,
"M 0 0 L 10 5 L 0 10 z"
);
//marker for input type graph
svg
.
append
(
"svg:defs"
)
.
append
(
"svg:marker"
)
.
attr
(
"id"
,
"input-arrow"
)
.
attr
(
"viewBox"
,
"0 0 10 10"
)
.
attr
(
"refX"
,
-
15
)
.
attr
(
"refY"
,
5
)
.
attr
(
"markerUnits"
,
"strokeWidth"
)
.
attr
(
"markerWidth"
,
6
)
.
attr
(
"markerHeight"
,
9
)
.
attr
(
"orient"
,
"auto"
)
.
append
(
"svg:path"
)
.
attr
(
"d"
,
"M -2 5 L 8 0 L 8 10 z"
);
var
root
=
data
;
var
root
=
data
;
...
@@ -269,7 +283,12 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco
...
@@ -269,7 +283,12 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco
//.style('stroke', function(d) { return d.target.level; })
//.style('stroke', function(d) { return d.target.level; })
.
style
(
'stroke'
,
'green'
)
.
style
(
'stroke'
,
'green'
)
.
attr
(
'd'
,
diagonal
);
.
attr
(
'd'
,
diagonal
);
link
.
attr
(
"marker-end"
,
"url(#arrow)"
);
if
(
$scope
.
type
===
'inputs'
)
{
link
.
attr
(
"marker-start"
,
"url(#input-arrow)"
);
//if input
}
else
{
link
.
attr
(
"marker-end"
,
"url(#arrow)"
);
//if input
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment