Skip to content

Commit 21bf128

Browse files
committed
Добавлена страница симулятора логических схем
1 parent fc70de3 commit 21bf128

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

resources/js/simulator/simulator.js

+4-6
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,11 @@ export function preload() {
5757
*/
5858
export function setup() {
5959
const canvHeight = windowHeight - 90;
60-
let canvasWidth = 0;
61-
if (windowWidth < 500) {
62-
canvasWidth = windowWidth - 155;
63-
} else if (windowWidth < 700) {
60+
let canvasWidth = windowWidth - 315;
61+
if (windowWidth < 700) {
6462
canvasWidth = windowWidth - 215;
65-
} else {
66-
canvasWidth = windowWidth - 315;
63+
} else if (windowWidth < 500) {
64+
canvasWidth = windowWidth - 155;
6765
}
6866
let canvas = createCanvas(canvasWidth, canvHeight, P2D);
6967

0 commit comments

Comments
 (0)