From 9d4d11e799af9bc4dc8b50ebef5a9f82b1dd5709 Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Sat, 5 Mar 2022 12:10:49 -0800 Subject: [PATCH] Fix `checkered`. --- src/dev/index.html | 12 ++++++------ src/scramble-display/ScrambleDisplay.ts | 5 +++-- test/index.html | 12 ++++++------ 3 files changed, 15 insertions(+), 14 deletions(-) diff --git a/src/dev/index.html b/src/dev/index.html index ee0d956..a772b3d 100644 --- a/src/dev/index.html +++ b/src/dev/index.html @@ -53,17 +53,17 @@

<scramble-disp - + - + - + - + - + - + diff --git a/src/scramble-display/ScrambleDisplay.ts b/src/scramble-display/ScrambleDisplay.ts index 4e2ca18..af70656 100644 --- a/src/scramble-display/ScrambleDisplay.ts +++ b/src/scramble-display/ScrambleDisplay.ts @@ -31,12 +31,13 @@ export class ScrambleDisplay extends HTMLElement { eventID: null, scramble: new Alg(), visualization: null, - checkered: true, + checkered: false, }; #twistyPlayer: TwistyPlayer = new TwistyPlayer({ controlPanel: "none", hintFacelets: "none", visualization: "2D", + background: "none" }); // Note: You should avoid setting properties like `alg` or `visualization` @@ -122,7 +123,7 @@ export class ScrambleDisplay extends HTMLElement { break; } case "checkered": { - this.checkered = newValue !== ""; + this.checkered = newValue !== null; break; } } diff --git a/test/index.html b/test/index.html index 28e0232..c950c2f 100644 --- a/test/index.html +++ b/test/index.html @@ -52,17 +52,17 @@

<scramble-disp - + - + - + - + - + - +