{
export const ScoreLoadedInspector: React.FC = ({
showCode = true,
}) => {
- const site = useSiteAlphaTabSettings({ player: true });
+ const site = useSiteAlphaTabSettings();
const code = `const api = new alphaTab.AlphaTabApi(container, {
core: { file: '/scores/song.gp5' },
});
diff --git a/website/src/components/SelectionHandleDemo/index.tsx b/website/src/components/SelectionHandleDemo/index.tsx
index 371a1a1af..06ce7e1b7 100644
--- a/website/src/components/SelectionHandleDemo/index.tsx
+++ b/website/src/components/SelectionHandleDemo/index.tsx
@@ -11,6 +11,7 @@ import {
} from "@coderline/alphatab-react";
import { SelectionHandles } from "@coderline/alphatab-ui";
import { useSiteAlphaTabSettings } from "@site/src/alphatab-settings";
+import { DemoPlayButton } from "@site/src/components/DemoPlayButton";
import styles from "./styles.module.scss";
export interface SelectionHandleDemoProps {
@@ -88,6 +89,7 @@ export const SelectionHandleDemo: React.FC = ({
settings={site.settings}
>
{showEventLog && }
+
} />
{showEventLog && (
diff --git a/website/src/components/SelectionHandleDemo/styles.module.scss b/website/src/components/SelectionHandleDemo/styles.module.scss
index 669b5f00a..0148ee9d0 100644
--- a/website/src/components/SelectionHandleDemo/styles.module.scss
+++ b/website/src/components/SelectionHandleDemo/styles.module.scss
@@ -59,4 +59,7 @@
line-height: 1.5;
white-space: pre;
font-variant-numeric: tabular-nums;
-}
\ No newline at end of file
+}
+.play {
+ margin-bottom: 0.5rem;
+}
diff --git a/website/src/components/SettingsJsonDemo/index.tsx b/website/src/components/SettingsJsonDemo/index.tsx
index 734d73b05..05b4ed9b5 100644
--- a/website/src/components/SettingsJsonDemo/index.tsx
+++ b/website/src/components/SettingsJsonDemo/index.tsx
@@ -245,7 +245,6 @@ export const SettingsJsonDemo: React.FC
= ({
showCode = true,
}) => {
const site = useSiteAlphaTabSettings({
- player: true,
settings: { display: { scale: 1.0 } },
});
return (
diff --git a/website/src/components/SpacingSlidersDemo/index.tsx b/website/src/components/SpacingSlidersDemo/index.tsx
index 617d6441e..04b8c1747 100644
--- a/website/src/components/SpacingSlidersDemo/index.tsx
+++ b/website/src/components/SpacingSlidersDemo/index.tsx
@@ -24,7 +24,6 @@ export const SpacingSlidersDemo: React.FC = ({
const [spacingRatio, setSpacingRatio] = useState(1.5);
const [lastSystemFillThreshold, setLastSystemFillThreshold] = useState(0.5);
const site = useSiteAlphaTabSettings({
- player: true,
settings: {
display: {
stretchForce,
diff --git a/website/src/components/SystemSeparatorDemo/index.tsx b/website/src/components/SystemSeparatorDemo/index.tsx
index 539c577ca..64002f564 100644
--- a/website/src/components/SystemSeparatorDemo/index.tsx
+++ b/website/src/components/SystemSeparatorDemo/index.tsx
@@ -41,7 +41,7 @@ export const SystemSeparatorDemo: React.FC = ({
showCode = true,
}) => {
const [enabled, setEnabled] = useState(true);
- const site = useSiteAlphaTabSettings({ player: true });
+ const site = useSiteAlphaTabSettings();
const code = `api.scoreLoaded.on((score) => {
score.stylesheet.useSystemSignSeparator = ${enabled};
diff --git a/website/src/components/ToggleElementsDemo/index.tsx b/website/src/components/ToggleElementsDemo/index.tsx
index 8d2c33d70..766ca8cf4 100644
--- a/website/src/components/ToggleElementsDemo/index.tsx
+++ b/website/src/components/ToggleElementsDemo/index.tsx
@@ -76,7 +76,7 @@ export const ToggleElementsDemo: React.FC = ({
EffectPalmMute: true,
});
- const site = useSiteAlphaTabSettings({ player: true });
+ const site = useSiteAlphaTabSettings();
const flip = (key: ElementKey) => {
setVisibility((v) => ({ ...v, [key]: !v[key] }));
diff --git a/website/src/components/TrackNamePolicyDemo/index.tsx b/website/src/components/TrackNamePolicyDemo/index.tsx
index 51aebe278..b0a2f4468 100644
--- a/website/src/components/TrackNamePolicyDemo/index.tsx
+++ b/website/src/components/TrackNamePolicyDemo/index.tsx
@@ -65,7 +65,7 @@ export const TrackNamePolicyDemo: React.FC = ({
const [mode, setMode] = useState("FullName");
const [orientation, setOrientation] =
useState("Horizontal");
- const site = useSiteAlphaTabSettings({ player: true });
+ const site = useSiteAlphaTabSettings();
const code = `api.scoreLoaded.on((score) => {
const s = score.stylesheet;
diff --git a/website/src/components/TrackSwitcher/index.tsx b/website/src/components/TrackSwitcher/index.tsx
index d34226a47..d7d877290 100644
--- a/website/src/components/TrackSwitcher/index.tsx
+++ b/website/src/components/TrackSwitcher/index.tsx
@@ -129,7 +129,7 @@ const Inner: React.FC = () => {
export const TrackSwitcher: React.FC = ({
showCode = true,
}) => {
- const site = useSiteAlphaTabSettings({ player: true });
+ const site = useSiteAlphaTabSettings();
const code = `const api = new alphaTab.AlphaTabApi(container, {
core: {
file: '/scores/song.gp5',
diff --git a/website/src/components/TuningModeSwitch/index.tsx b/website/src/components/TuningModeSwitch/index.tsx
index 26027bcfa..b1539b8de 100644
--- a/website/src/components/TuningModeSwitch/index.tsx
+++ b/website/src/components/TuningModeSwitch/index.tsx
@@ -49,7 +49,6 @@ export const TuningModeSwitch: React.FC = ({
const [mode, setMode] = useState("Score");
const [hidden, setHidden] = useState(false);
const site = useSiteAlphaTabSettings({
- player: true,
settings: { display: { barCount: 12 } },
});
diff --git a/website/src/components/UrlLoadSwitcher/index.tsx b/website/src/components/UrlLoadSwitcher/index.tsx
index c6f89e228..fea401d35 100644
--- a/website/src/components/UrlLoadSwitcher/index.tsx
+++ b/website/src/components/UrlLoadSwitcher/index.tsx
@@ -65,7 +65,7 @@ export const UrlLoadSwitcher: React.FC = ({
showCode = true,
}) => {
const [currentUrl, setCurrentUrl] = useState(CHORDS_URL);
- const site = useSiteAlphaTabSettings({ player: true });
+ const site = useSiteAlphaTabSettings();
const code = `const api = new alphaTab.AlphaTabApi(container, {
core: { file: '/scores/chords.gp5' },
diff --git a/website/src/components/ZoomSliderDemo/index.tsx b/website/src/components/ZoomSliderDemo/index.tsx
index 8686feec6..ab361c309 100644
--- a/website/src/components/ZoomSliderDemo/index.tsx
+++ b/website/src/components/ZoomSliderDemo/index.tsx
@@ -23,7 +23,6 @@ export const ZoomSliderDemo: React.FC = ({
const [scale, setScale] = useState(1.3);
const [pendingScale, setPendingScale] = useState(1.3);
const site = useSiteAlphaTabSettings({
- player: true,
settings: { display: { scale } },
});