Skip to content

Commit

Permalink
Properly downloads zip for summary stats
Browse files Browse the repository at this point in the history
  • Loading branch information
Zach-Orvis committed Feb 29, 2024
1 parent db590d3 commit ceff544
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
I"�{"source"=>"C:/Users/dozac/OneDrive/Documents/GitHub/leaflet-treering", "destination"=>"C:/Users/dozac/OneDrive/Documents/GitHub/leaflet-treering/_site", "collections_dir"=>"", "cache_dir"=>".jekyll-cache", "plugins_dir"=>"_plugins", "layouts_dir"=>"_layouts", "data_dir"=>"_data", "includes_dir"=>"_includes", "collections"=>{"posts"=>{"output"=>true, "permalink"=>"/:categories/:year/:month/:day/:title:output_ext"}}, "safe"=>false, "include"=>["testassets"], "exclude"=>[".sass-cache", ".jekyll-cache", "gemfiles", "Gemfile", "Gemfile.lock", "node_modules", "vendor/bundle/", "vendor/cache/", "vendor/gems/", "vendor/ruby/"], "keep_files"=>[".git", ".svn"], "encoding"=>"utf-8", "markdown_ext"=>"markdown,mkdown,mkdn,mkd,md", "strict_front_matter"=>false, "show_drafts"=>nil, "limit_posts"=>0, "future"=>false, "unpublished"=>false, "whitelist"=>[], "plugins"=>[], "markdown"=>"kramdown", "highlighter"=>"rouge", "lsi"=>false, "excerpt_separator"=>"\n\n", "incremental"=>false, "detach"=>false, "port"=>"4000", "host"=>"127.0.0.1", "baseurl"=>nil, "show_dir_listing"=>false, "permalink"=>"date", "paginate_path"=>"/page:num", "timezone"=>nil, "quiet"=>false, "verbose"=>false, "defaults"=>[], "liquid"=>{"error_mode"=>"warn", "strict_filters"=>false, "strict_variables"=>false}, "kramdown"=>{"auto_ids"=>true, "toc_levels"=>[1, 2, 3, 4, 5, 6], "entity_output"=>"as_char", "smart_quotes"=>"lsquo,rsquo,ldquo,rdquo", "input"=>"GFM", "hard_wrap"=>false, "guess_lang"=>true, "footnote_nr"=>1, "show_warnings"=>false, "syntax_highlighter"=>"rouge", "syntax_highlighter_opts"=>{:default_lang=>"plaintext", :guess_lang=>true}, "coderay"=>{}}, "sass"=>{"load_paths"=>["_sass"]}, "livereload_port"=>35729, "serving"=>true, "watch"=>true, "url"=>"http://localhost:4000"}:ET
I"i{"source"=>"C:/Users/dozac/OneDrive/Documents/GitHub/leaflet-treering", "destination"=>"C:/Users/dozac/OneDrive/Documents/GitHub/leaflet-treering/_site", "collections_dir"=>"", "cache_dir"=>".jekyll-cache", "plugins_dir"=>"_plugins", "layouts_dir"=>"_layouts", "data_dir"=>"_data", "includes_dir"=>"_includes", "collections"=>{"posts"=>{"output"=>true, "permalink"=>"/:categories/:year/:month/:day/:title:output_ext"}}, "safe"=>false, "include"=>["testassets"], "exclude"=>[".sass-cache", ".jekyll-cache", "gemfiles", "Gemfile", "Gemfile.lock", "node_modules", "vendor/bundle/", "vendor/cache/", "vendor/gems/", "vendor/ruby/"], "keep_files"=>[".git", ".svn"], "encoding"=>"utf-8", "markdown_ext"=>"markdown,mkdown,mkdn,mkd,md", "strict_front_matter"=>false, "show_drafts"=>nil, "limit_posts"=>0, "future"=>false, "unpublished"=>false, "whitelist"=>[], "plugins"=>[], "markdown"=>"kramdown", "highlighter"=>"rouge", "lsi"=>false, "excerpt_separator"=>"\n\n", "incremental"=>false, "detach"=>false, "port"=>"4000", "host"=>"127.0.0.1", "baseurl"=>nil, "show_dir_listing"=>false, "permalink"=>"date", "paginate_path"=>"/page:num", "timezone"=>nil, "quiet"=>false, "verbose"=>false, "defaults"=>[], "liquid"=>{"error_mode"=>"warn", "strict_filters"=>false, "strict_variables"=>false}, "kramdown"=>{"auto_ids"=>true, "toc_levels"=>[1, 2, 3, 4, 5, 6], "entity_output"=>"as_char", "smart_quotes"=>"lsquo,rsquo,ldquo,rdquo", "input"=>"GFM", "hard_wrap"=>false, "guess_lang"=>true, "footnote_nr"=>1, "show_warnings"=>false}, "sass"=>{"load_paths"=>["_sass"]}, "livereload_port"=>35729, "serving"=>true, "watch"=>true, "url"=>"http://localhost:4000"}:ET
23 changes: 9 additions & 14 deletions Leaflet.AreaCapture.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,20 +249,15 @@ function EllipseCSVDownload(Inte) {
let csvStats = this.stats(false);
let csvStatsNA = this.stats(true);

console.log(csvRaw)
console.log(csvRawNA)
console.log(csvStats)
console.log(csvStatsNA)

// let zip = new JSZip();
// zip.file((Inte.treering.meta.assetName + '_ellipse_raw_data_noNA.csv'), csvRaw);
// zip.file((Inte.treering.meta.assetName + '_ellipse_raw_data_withNA.csv'), csvRawNA);
// zip.file((Inte.treering.meta.assetName + '_ellipse_summary_data_noNA.csv'), csvStats);
// zip.file((Inte.treering.meta.assetName + '_ellipse_summary_data_withNA.csv'), csvStatsNA);
// zip.generateAsync({type: 'blob'})
// .then((blob) => {
// saveAs(blob, (Inte.treering.meta.assetName + '_ellipses_csv.zip'));
// });
let zip = new JSZip();
zip.file((Inte.treering.meta.assetName + '_ellipse_raw_data_noNA.csv'), csvRaw);
zip.file((Inte.treering.meta.assetName + '_ellipse_raw_data_withNA.csv'), csvRawNA);
zip.file((Inte.treering.meta.assetName + '_ellipse_summary_data_noNA.csv'), csvStats);
zip.file((Inte.treering.meta.assetName + '_ellipse_summary_data_withNA.csv'), csvStatsNA);
zip.generateAsync({type: 'blob'})
.then((blob) => {
saveAs(blob, (Inte.treering.meta.assetName + '_ellipses_csv.zip'));
});
}

/**
Expand Down

0 comments on commit ceff544

Please sign in to comment.