merging the final gematro version updates and adding autoloading themes
This commit is contained in:
1 parent
b60a7320ab
commit
42d7052a37
11 files changed
+103
-36
No files matched your search
+4
-1
@@ -4,7 +4,10 @@ function openImageWindow(element, imgName = "", sRatio = window.devicePixelRatio
|
||||
var imageDataURL, wnd, scl
|
||||
if ( $(element).length ) { // if specified element exists
|
||||
// if browser zoom level is more than passed value, use current zoom level
|
||||
if (typeof sRatio !== 'undefined' && sRatio < window.devicePixelRatio) { sRatio = window.devicePixelRatio}
|
||||
if (isNaN(sRatio)) { sRatio = window.devicePixelRatio }
|
||||
if (element == '#ChartSpot') { // remove space and backspace labels from Cipher Chart
|
||||
$('#spaceChartBtn').text('');$('#backspaceChartBtn').text('');
|
||||
}
|
||||
// html2canvas($(element)[0], {allowTaint: false, backgroundColor: window.getComputedStyle(document.querySelector('body')).getPropertyValue('background-color'), width: $(element).outerWidth()+2, height: $(element).outerHeight()+2, scale: sRatio} ).then((canvas) => { // e.g. html2canvas($("#ChartTable")[0]).then ...
|
||||
html2canvas($(element)[0], {allowTaint: false, backgroundColor: "rgba(0,0,0,0)", width: $(element).outerWidth()+10, height: $(element).outerHeight()+10, scale: sRatio} ).then((canvas) => { // e.g. html2canvas($("#ChartTable")[0]).then ...
|
||||
//allowTaint: true, backgroundColor: "rgba(22,26,34,1.0)" - render white bg as transparent
|
||||
|
||||
Reference in new issue
Block a user