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
1c620155
Commit
1c620155
authored
5 years ago
by
gutkaBinit
Committed by
kevalbhatt
5 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3154 UI - Lineage PNG export not working on Firefox
Signed-off-by:
kevalbhatt
<
kbhatt@apache.org
>
parent
c7566903
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
13 deletions
+14
-13
graph.scss
dashboardv2/public/css/scss/graph.scss
+4
-0
DetailPageLayoutView.js
...ardv2/public/js/views/detail_page/DetailPageLayoutView.js
+2
-4
LineageLayoutView.js
dashboardv2/public/js/views/graph/LineageLayoutView.js
+8
-9
No files found.
dashboardv2/public/css/scss/graph.scss
View file @
1c620155
...
...
@@ -318,6 +318,10 @@ g.type-TK>rect {
color
:
$dark_gray
;
background
:
white
;
&
[
disabled
]
{
opacity
:
.3
;
}
&
:hover
{
border
:
1px
solid
#686868
;
color
:
$dark_gray
!
important
;
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
View file @
1c620155
...
...
@@ -282,12 +282,10 @@ define(['require',
if
(
isLineageRender
)
{
this
.
$
(
'.lineageGraph'
).
show
();
this
.
renderLineageLayoutView
({
this
.
renderLineageLayoutView
(
_
.
extend
(
obj
,
{
processCheck
:
isProcess
,
guid
:
this
.
id
,
entityDefCollection
:
this
.
entityDefCollection
,
fetchCollection
:
this
.
fetchCollection
.
bind
(
this
),
});
})
)
;
}
else
if
(
this
.
value
&&
this
.
value
.
tabActive
==
"lineage"
)
{
Utils
.
setUrl
({
url
:
Utils
.
getUrlState
.
getQueryUrl
().
queyParams
[
0
],
...
...
This diff is collapsed.
Click to expand it.
dashboardv2/public/js/views/graph/LineageLayoutView.js
View file @
1c620155
...
...
@@ -92,7 +92,7 @@ define(['require',
* @constructs
*/
initialize
:
function
(
options
)
{
_
.
extend
(
this
,
_
.
pick
(
options
,
'processCheck'
,
'guid'
,
'entityDefCollection'
,
'actionCallBack'
,
'fetchCollection'
,
'attributeDefs'
));
_
.
extend
(
this
,
_
.
pick
(
options
,
'processCheck'
,
'guid'
,
'entity
'
,
'entityName'
,
'entity
DefCollection'
,
'actionCallBack'
,
'fetchCollection'
,
'attributeDefs'
));
this
.
collection
=
new
VLineageList
();
this
.
lineageData
=
null
;
this
.
typeMap
=
{};
...
...
@@ -912,12 +912,6 @@ define(['require',
onClickSaveSvg
:
function
(
e
,
a
)
{
var
that
=
this
;
var
loaderTargetDiv
=
$
(
e
.
currentTarget
).
find
(
'>i'
);
if
(
$
(
e
.
currentTarget
).
hasClass
(
'disabled'
))
{
Utils
.
notifyWarn
({
content
:
"Lineage can be downloaded once it is rendered."
});
return
false
;
// return if the lineage is not loaded.
}
if
(
loaderTargetDiv
.
hasClass
(
'fa-refresh'
))
{
Utils
.
notifyWarn
({
...
...
@@ -934,7 +928,11 @@ define(['require',
setTimeout
(
function
()
{
var
svg
=
that
.
$
(
'svg'
)[
0
],
svgClone
=
svg
.
cloneNode
(
true
),
scaleFactor
=
1
;
scaleFactor
=
1
,
svgWidth
=
that
.
$
(
'svg'
).
width
(),
svgHeight
=
that
.
$
(
'svg'
).
height
();
svgClone
.
setAttribute
(
'width'
,
svgWidth
);
svgClone
.
setAttribute
(
'height'
,
svgHeight
);
$
(
'.hidden-svg'
).
html
(
svgClone
);
$
(
svgClone
).
find
(
'>g'
).
attr
(
"transform"
,
"scale("
+
scaleFactor
+
")"
);
...
...
@@ -970,7 +968,8 @@ define(['require',
img
.
onload
=
function
()
{
try
{
var
a
=
document
.
createElement
(
"a"
);
a
.
download
=
"download.png"
;
a
.
download
=
that
.
entityName
+
".png"
;
document
.
body
.
appendChild
(
a
);
ctx
.
drawImage
(
img
,
50
,
50
,
canvas
.
width
,
canvas
.
height
);
canvas
.
toBlob
(
function
(
blob
)
{
if
(
!
blob
)
{
...
...
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