Skip to content

Commit

Permalink
Maybemobilefixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Affolter Matias committed Jan 21, 2024
1 parent dca99dc commit 8ab7277
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion client/chunk_16.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ var LOAD_FILES_USEFUL = ["/src/fonts/normative/index.css"].concat(["illusion.jpg
var LOAD_FILES_STATIC = ["sfx/md/hero_decorative-celebration-02", "sfx/md/navigation_selection-complete-celebration", "sfx/md/navigation_transition-left", "sfx/md/state-change_confirm-down", "sfx/md/ui_lock", "sfx/md/ui_unlock", "sfx/md/ui_scan", "sfx/md/alert_high-intensity", "sfx/md/navigation_transition-right", "voice/cn/accessing_memory", "voice/cn/complete", "voice/cn/please_wait", "voice/cn/data_upload", "voice/cn/processing", "voice/cn/enhanced", "voice/cn/rewriting_deep_layer_protocols", "voice/cn/vision_activated", "voice/cn/vision_deactivated", "voice/cn/filtering", "music/redeclipse/track_09"].map(F_SND).concat(["presentation", "tutorial", "create", "enhanced", "pixelated", "upload", "share1", "joke1", "create", "enhanced", "pixelated", "presentation", "presentation2", "sponsors", "tutorial", "upload", "labintro", "share2", "share3", "share4", "share5", "share6", "share7", "joke2", "joke3", "joke4", "joke5", "joke6", "joke7", "joke8", "joke9", "joke10", "joke11"].map(F_VID));

// Cache names
var REQUIRED_CACHE = "unless-update-cache-v919-required";
var USEFUL_CACHE = "unless-update-cache-v919-useful";
var STATIC_CACHE = "unless-update-cache-v919-static";
var OTHER_CACHE = "unless-update-cache-v919-other";
var REQUIRED_CACHE = "unless-update-cache-v920-required";
var USEFUL_CACHE = "unless-update-cache-v920-useful";
var STATIC_CACHE = "unless-update-cache-v920-static";
var OTHER_CACHE = "unless-update-cache-v920-other";

// Regular expressions for chunk matching
var MAIN_CHILD_CHUNK_REGEX = /chunk_(main_[a-z0-9]+)\.min\.js$/i;
Expand Down
6 changes: 2 additions & 4 deletions src/js/components/canvaspixels/utils/SuperCanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function template(c, pxl_width, pxl_height){
}
}

if(normal_context) {
if(normal_context || !is_offscreen) {
cc2d = c.getContext('2d');

try {
Expand Down Expand Up @@ -291,9 +291,7 @@ Object.defineProperty(SuperCanvas.prototype, 'prender', {

}else if (this.state_.enable_paint_type === "offscreen") {

return Promise.resolve();
//return draw_2d(this.state_.s.offscreen_canvas_context, this.state_);

return draw_2d(this.state_.s.offscreen_canvas_context, this.state_);
}else {

return Promise.resolve();
Expand Down
2 changes: 1 addition & 1 deletion src/js/utils/test/downscale.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,5 @@ function euclideanDistance(color1, color2) {
const scaler = new Scaler();
const sourceImage = document.createElement('img'); // Assume this is your source image
sourceImage.onload = () => {
console.log(scaler.kCenter(92, 92, 16, 8, sourceImage).toDataURL());
console.log(scaler.kCenter(92, 92, 4, 8, sourceImage).toDataURL());
};

0 comments on commit 8ab7277

Please sign in to comment.