+
+ experimental-camera-latitude-limits="none"
+ alg="R U R' U R U2' R'"
+ experimental-camera-latitude="80"
+
+
+ DOM attributes:
+ Constructor config object:
+ Dynamic property setter:
+
+
+
+
viewer-link="none"
diff --git a/src/sites/experiments.cubing.net/cubing.js/twisty/attributes.ts b/src/sites/experiments.cubing.net/cubing.js/twisty/attributes.ts
index 68967ae72..871f327ed 100644
--- a/src/sites/experiments.cubing.net/cubing.js/twisty/attributes.ts
+++ b/src/sites/experiments.cubing.net/cubing.js/twisty/attributes.ts
@@ -165,6 +165,23 @@ experimentalSetShareAllNewRenderers(true);
tw.experimentalCameraLongitude = 0;
}
+{
+ document.querySelector("#experimental-camera-latitude-limits")!.appendChild(
+ new TwistyPlayer({
+ alg: "R U R' U R U2' R'",
+ experimentalCameraLatitudeLimits: "none",
+ experimentalCameraLatitude: 80,
+ }),
+ );
+ const tw = new TwistyPlayer();
+ document
+ .querySelector("#experimental-camera-latitude-limits")!
+ .appendChild(tw);
+ tw.alg = new Alg("R U R' U R U2' R'");
+ tw.experimentalCameraLatitudeLimits = "none";
+ tw.experimentalCameraLatitude = 80;
+}
+
{
document.querySelector("#viewer-link")!.appendChild(
new TwistyPlayer({
diff --git a/src/sites/experiments.cubing.net/cubing.js/twisty/twisty-player.ts b/src/sites/experiments.cubing.net/cubing.js/twisty/twisty-player.ts
index c0a6f79a5..6e20b6baf 100644
--- a/src/sites/experiments.cubing.net/cubing.js/twisty/twisty-player.ts
+++ b/src/sites/experiments.cubing.net/cubing.js/twisty/twisty-player.ts
@@ -1,5 +1,6 @@
import {
backgroundThemes,
+ cameraLatitudeLimits,
controlsLocations,
experimentalStickerings,
hintFaceletStyles,
@@ -57,6 +58,11 @@ const enumOptions: [string, string, Record][] = [
["controlPanel", "control-panel", controlsLocations],
["backView", "back-view", backViewLayouts],
+ [
+ "experimentalCameraLatitudeLimits",
+ "experimental-camera-latitude-limits",
+ cameraLatitudeLimits,
+ ],
["viewerLink", "viewer-link", viewerLinkPages],
];