We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 941f4c4 commit a08e221Copy full SHA for a08e221
1 file changed
packages/base/src/commands.ts
@@ -1057,7 +1057,13 @@ export function addCommands(
1057
});
1058
1059
commands.addCommand(CommandIDs.updateCameraSettings, {
1060
- label: trans.__('Choose between Perspective and Orthographic Projection'),
+ label: () => {
1061
+ const isOn =
1062
+ tracker.currentWidget?.content?.cameraSettings?.type === 'Perspective';
1063
+ return isOn
1064
+ ? trans.__('Perspective projection is on')
1065
+ : trans.__('Orthographic projection is on');
1066
+ },
1067
isEnabled: () => Boolean(tracker.currentWidget),
1068
icon: videoSolidIcon,
1069
isToggled: () => {
0 commit comments