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
9ba32176
Commit
9ba32176
authored
5 years ago
by
kevalbhatt
Committed by
Sarath Subramanian
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3473: UI : Delay in loading Lineage icon because of sync img call
Signed-off-by:
Sarath Subramanian
<
sarath@apache.org
>
parent
e04acda4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
42 deletions
+16
-42
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+8
-21
LineageLayoutView.js
dashboardv3/public/js/views/graph/LineageLayoutView.js
+8
-21
No files found.
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
9ba32176
...
...
@@ -584,8 +584,7 @@ define(['require',
var
imagePath
=
options
.
imagePath
,
ajaxOptions
=
{
"url"
:
imagePath
,
"method"
:
"get"
,
"async"
:
false
,
"method"
:
"get"
}
if
(
platform
.
name
!==
"IE"
)
{
...
...
@@ -604,28 +603,16 @@ define(['require',
}
else
{
imageObject
[
imageIconPath
]
=
imagePath
;
}
d3
.
select
(
that
).
attr
(
"xlink:href"
,
imageObject
[
imageIconPath
]);
if
(
imageIconPath
!==
shapeSvg
.
attr
(
"data-iconpath"
))
{
shapeSvg
.
attr
(
"data-iconpathorigin"
,
imageIconPath
);
}
}
});
}
if
(
_
.
keys
(
imageObject
).
indexOf
(
imageIconPath
)
===
-
1
)
{
getImageData
({
"imagePath"
:
imageIconPath
});
}
if
(
_
.
isUndefined
(
imageObject
[
imageIconPath
]))
{
// before img success
imageObject
[
imageIconPath
]
=
[
d3
.
select
(
that
)];
}
else
if
(
_
.
isArray
(
imageObject
[
imageIconPath
]))
{
// before img success
imageObject
[
imageIconPath
].
push
(
d3
.
select
(
that
));
}
else
{
d3
.
select
(
that
).
attr
(
"xlink:href"
,
imageObject
[
imageIconPath
]);
if
(
imageIconPath
!==
shapeSvg
.
attr
(
"data-iconpath"
))
{
shapeSvg
.
attr
(
"data-iconpathorigin"
,
imageIconPath
);
}
return
imageObject
[
imageIconPath
];
}
getImageData
({
"imagePath"
:
imageIconPath
});
}
})
.
attr
(
"x"
,
"4"
)
...
...
This diff is collapsed.
Click to expand it.
dashboardv3/public/js/views/graph/LineageLayoutView.js
View file @
9ba32176
...
...
@@ -599,8 +599,7 @@ define(['require',
var
imagePath
=
options
.
imagePath
,
ajaxOptions
=
{
"url"
:
imagePath
,
"method"
:
"get"
,
"async"
:
false
,
"method"
:
"get"
}
if
(
platform
.
name
!==
"IE"
)
{
...
...
@@ -619,28 +618,16 @@ define(['require',
}
else
{
imageObject
[
imageIconPath
]
=
imagePath
;
}
d3
.
select
(
that
).
attr
(
"xlink:href"
,
imageObject
[
imageIconPath
]);
if
(
imageIconPath
!==
shapeSvg
.
attr
(
"data-iconpath"
))
{
shapeSvg
.
attr
(
"data-iconpathorigin"
,
imageIconPath
);
}
}
});
}
if
(
_
.
keys
(
imageObject
).
indexOf
(
imageIconPath
)
===
-
1
)
{
getImageData
({
"imagePath"
:
imageIconPath
});
}
if
(
_
.
isUndefined
(
imageObject
[
imageIconPath
]))
{
// before img success
imageObject
[
imageIconPath
]
=
[
d3
.
select
(
that
)];
}
else
if
(
_
.
isArray
(
imageObject
[
imageIconPath
]))
{
// before img success
imageObject
[
imageIconPath
].
push
(
d3
.
select
(
that
));
}
else
{
d3
.
select
(
that
).
attr
(
"xlink:href"
,
imageObject
[
imageIconPath
]);
if
(
imageIconPath
!==
shapeSvg
.
attr
(
"data-iconpath"
))
{
shapeSvg
.
attr
(
"data-iconpathorigin"
,
imageIconPath
);
}
return
imageObject
[
imageIconPath
];
}
getImageData
({
"imagePath"
:
imageIconPath
});
}
})
.
attr
(
"x"
,
"4"
)
...
...
This diff is collapsed.
Click to expand it.
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