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
b699d54d
Commit
b699d54d
authored
Feb 02, 2015
by
Vishal Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added drill down from lineage graph
parent
cd6625a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
lineageController.js
public/modules/lineage/lineageController.js
+11
-3
No files found.
public/modules/lineage/lineageController.js
View file @
b699d54d
'use strict'
;
angular
.
module
(
'dgc.lineage'
).
controller
(
'LineageController'
,
[
'$element'
,
'$scope'
,
'$stateParams'
,
'LineageResource'
,
'd3'
,
function
(
$element
,
$scope
,
$stateParams
,
LineageResource
,
d3
)
{
angular
.
module
(
'dgc.lineage'
).
controller
(
'LineageController'
,
[
'$element'
,
'$scope'
,
'$state
'
,
'$state
Params'
,
'LineageResource'
,
'd3'
,
function
(
$element
,
$scope
,
$state
,
$state
Params
,
LineageResource
,
d3
)
{
function
render
(
nodes
)
{
var
links
=
d3
.
layout
.
tree
().
links
(
nodes
);
...
...
@@ -29,7 +29,7 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco
var
nodeEnter
=
node
.
enter
().
append
(
'g'
)
.
attr
(
'class'
,
'node'
)
//
.on('click', click)
.
on
(
'click'
,
click
)
.
call
(
force
.
drag
);
nodeEnter
.
append
(
'circle'
)
...
...
@@ -48,6 +48,14 @@ angular.module('dgc.lineage').controller('LineageController', ['$element', '$sco
.style('fill', color);*/
}
function
click
(
node
)
{
$state
.
go
(
'details'
,
{
id
:
node
.
guid
},
{
location
:
'replace'
});
}
function
tick
()
{
link
.
attr
(
'x1'
,
function
(
d
)
{
return
d
.
source
.
x
;
...
...
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