Skip to content

Commit

Permalink
Background media
Browse files Browse the repository at this point in the history
  • Loading branch information
Affolter Matias committed Nov 30, 2023
1 parent b3b26d4 commit 98441e8
Show file tree
Hide file tree
Showing 25 changed files with 131 additions and 50 deletions.
2 changes: 1 addition & 1 deletion client/chunk_0.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_1.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_10.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_11.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_12.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_13.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_14.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_15.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_16.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_17.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_18.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_19.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_2.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_20.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_4.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_5.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_7.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_8.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_9.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/chunk_norris.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions service-worker.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict";
var REQUIRED_CACHE = "unless-update-cache-v871-required";
var USEFUL_CACHE = "unless-update-cache-v871-useful";
var STATIC_CACHE = "unless-update-cache-v871-static";
var REQUIRED_CACHE = "unless-update-cache-v872-required";
var USEFUL_CACHE = "unless-update-cache-v872-useful";
var STATIC_CACHE = "unless-update-cache-v872-static";
var MAIN_CHILD_CHUNK_REGEX = /chunk_(main_[a-z0-9]+)\.min\.js$/i;
var CHILD_CHUNK_REGEX = /chunk_([0-9]+)\.min\.js$/i;

Expand Down
26 changes: 13 additions & 13 deletions src/js/components/canvaspixels/utils/CanvasPos.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,25 +329,25 @@ const CanvasPos = {
const any_rotation = Boolean(rotate_x || rotate_y);

const transform_rotate = any_rotation ? `rotateX(${rotate_x}deg) rotateY(${rotate_y}deg)`: ``
const background_image = any_rotation ? `linear-gradient(to left, rgba(
${p_x_things},
${p_x_things},
${p_x_things},
const background_image = any_rotation ? `linear-gradient(to right, rgba(
${p_x_things.toFixed(3)},
${p_x_things.toFixed(3)},
${p_x_things.toFixed(3)},
${(Math.abs(p_x * 0.1) / (s.perspective*2)).toFixed(2)}
), rgba(
${p_x_things},
${p_x_things},
${p_x_things},
${p_x_things.toFixed(3)},
${p_x_things.toFixed(3)},
${p_x_things.toFixed(3)},
${(Math.abs(p_x * 0.6) / (s.perspective*2)).toFixed(2)}
)), linear-gradient(to top, rgba(
${p_y_things},
${p_y_things},
${p_y_things},
${p_y_things.toFixed(3)},
${p_y_things.toFixed(3)},
${p_y_things.toFixed(3)},
${(Math.abs(p_y * 0.75) / (s.perspective*2)).toFixed(2)}
), rgba(
${p_y_things},
${p_y_things},
${p_y_things},
${p_y_things.toFixed(3)},
${p_y_things.toFixed(3)},
${p_y_things.toFixed(3)},
${(Math.abs(p_y * 0.25) / (s.perspective*2)).toFixed(2)}
))`: ``;
const filter_force = (1 + (-rotate_y + rotate_x) / 80).toFixed(2);
Expand Down
105 changes: 93 additions & 12 deletions src/js/pages/Marketplace.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/js/pages/Pixel.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ window.mobileAndTabletCheck = function() {
return check;
};

import { createLocalBlob } from "../utils/objectURL";
import {UJS} from "../utils/ujs";
import JSLoader from "../utils/JSLoader";
let is_mobile_or_tablet = window.mobileAndTabletCheck();
Expand Down Expand Up @@ -63,6 +62,7 @@ import SelectDragIcon from "../icons/SelectDrag";
import TuneIcon from "../icons/Tune";
import ImageAutoAdjustIcon from "../icons/ImageAutoAdjust";

import { createLocalBlob } from "../utils/objectURL";
import HexGrid from "../icons/HexGrid";
import get_svg_in_b64 from "../utils/svgToBase64";
import { l, t } from "../utils/t";
Expand Down

0 comments on commit 98441e8

Please sign in to comment.