Deploying to built from  @ 1e5245668c 🚀
				
					
				
			This commit is contained in:
		
							parent
							
								
									dacb2a9e65
								
							
						
					
					
						commit
						6ea028b70e
					
				
					 2 changed files with 562 additions and 553 deletions
				
			
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
					@ -74,6 +74,12 @@ window.loadFileAsync = function(fullPath, bitmap, callback) {
 | 
				
			||||||
        generationCanvas.width = sm[0];
 | 
					        generationCanvas.width = sm[0];
 | 
				
			||||||
        generationCanvas.height = sm[1];
 | 
					        generationCanvas.height = sm[1];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        // Draw
 | 
				
			||||||
 | 
					        var img = new Image;
 | 
				
			||||||
 | 
					        img.onload = function(){
 | 
				
			||||||
 | 
					            const ctx = generationCanvas.getContext('2d');
 | 
				
			||||||
 | 
					            ctx.drawImage(img, 0, 0, sm[0], sm[1]);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // Create dummy from data uri
 | 
					            // Create dummy from data uri
 | 
				
			||||||
            FS.createPreloadedFile(path, filename, generationCanvas.toDataURL(), true, true, function() {
 | 
					            FS.createPreloadedFile(path, filename, generationCanvas.toDataURL(), true, true, function() {
 | 
				
			||||||
                // Return control to C++
 | 
					                // Return control to C++
 | 
				
			||||||
| 
						 | 
					@ -87,6 +93,9 @@ window.loadFileAsync = function(fullPath, bitmap, callback) {
 | 
				
			||||||
            }, console.error, false, false, () => {
 | 
					            }, console.error, false, false, () => {
 | 
				
			||||||
                try { FS.unlink(path + "/" + filename); } catch (err) {}
 | 
					                try { FS.unlink(path + "/" + filename); } catch (err) {}
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
 | 
					        };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        img.src = sm[2];
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
        if (bitmap) {
 | 
					        if (bitmap) {
 | 
				
			||||||
            console.warn('No sizemap for image', mappingKey);
 | 
					            console.warn('No sizemap for image', mappingKey);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue