Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
genotoul-bioinfo
jvenn
Commits
edae2f3d
Commit
edae2f3d
authored
Oct 08, 2014
by
Philippe Bardou
Browse files
Bug export csv
parent
acfda736
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/jvenn.js
View file @
edae2f3d
...
...
@@ -683,6 +683,11 @@
// Calculate the width and height of the Array
var
w
=
a
.
length
?
a
.
length
:
0
,
h
=
a
[
0
]
instanceof
Array
?
a
[
0
].
length
:
0
;
for
(
i
=
0
;
i
<
w
;
i
++
)
{
if
(
a
[
i
]
instanceof
Array
&&
a
[
i
].
length
>
h
)
{
h
=
a
[
i
].
length
;
}
}
// In case it is a zero matrix, no transpose routine needed.
if
(
h
===
0
||
w
===
0
)
{
return
[];
}
var
i
,
j
,
t
=
[];
...
...
@@ -2123,8 +2128,7 @@
csvContent
+=
"
##
\n
## Warning: comma(s) have been replaced by underscore(s)
\n
##
\n
"
;
}
transpose
(
rawData
).
forEach
(
function
(
infoArray
,
index
){
dataString
=
infoArray
.
join
(
"
,
"
);
csvContent
+=
index
<=
infoArray
.
length
?
dataString
+
"
\n
"
:
dataString
;
csvContent
+=
infoArray
.
join
(
"
,
"
)
+
"
\n
"
;
});
var
encodedUri
=
encodeURI
(
csvContent
);
$
(
'
#data-export
'
).
attr
(
"
href
"
,
encodedUri
);
...
...
@@ -5327,7 +5331,6 @@ return function(zStack, options, doc, queue, _html2canvas) {
if
(
storageContext
.
clip
){
ctx
.
save
();
ctx
.
beginPath
();
// console.log(storageContext);
ctx
.
rect
(
storageContext
.
clip
.
left
,
storageContext
.
clip
.
top
,
storageContext
.
clip
.
width
,
storageContext
.
clip
.
height
);
ctx
.
clip
();
}
...
...
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