Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/components/ui/SurfaceActionButtons.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,31 +76,31 @@ export const SurfaceActionButtons = ({ surface, onInvert, onNormalizeUnZ, onConv
onMouseEnter: (e) => e.target.style.backgroundColor = '#3a7bc8',
onMouseLeave: (e) => e.target.style.backgroundColor = c.accent,
title: 'Create a new surface with Zernike coefficients mirrored about the X-axis (y → -y)'
}, 'Flip around X'),
}, t.properties.flipX),

surface.type === 'Zernike' && h('button', {
onClick: onFlipY,
style: buttonStyle,
onMouseEnter: (e) => e.target.style.backgroundColor = '#3a7bc8',
onMouseLeave: (e) => e.target.style.backgroundColor = c.accent,
title: 'Create a new surface with Zernike coefficients mirrored about the Y-axis (x → -x)'
}, 'Flip around Y'),
}, t.properties.flipY),

surface.type === 'Zernike' && h('button', {
onClick: onFlipZ,
style: buttonStyle,
onMouseEnter: (e) => e.target.style.backgroundColor = '#3a7bc8',
onMouseLeave: (e) => e.target.style.backgroundColor = c.accent,
title: 'Create a new surface with Zernike coefficients rotated 180° about the Z-axis (x → -x, y → -y)'
}, 'Flip around Z'),
}, t.properties.flipZ),

surface.type === 'Zernike' && h('button', {
onClick: onCopyCoefficients,
style: buttonStyle,
onMouseEnter: (e) => e.target.style.backgroundColor = '#3a7bc8',
onMouseLeave: (e) => e.target.style.backgroundColor = c.accent,
title: 'Copy Z1-Z37 values as tab-separated text for pasting into Excel'
}, 'Copy Coefficients'),
}, t.properties.copyCoefficients),

// Convert to Poly button - shown only for Opal Un Z
surface.type === 'Opal Un Z' && h('button', {
Expand Down
8 changes: 8 additions & 0 deletions src/constants/locales.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ export const locales = {
normalize: 'Normalize Un Z',
convertToUnZ: 'Convert to Un Z',
convertToPoly: 'Convert to Poly',
flipX: 'Flip around X',
flipY: 'Flip around Y',
flipZ: 'Flip around Z',
copyCoefficients: 'Copy Coefficients',

// Metrics
paraxialFNum: 'Paraxial F/#',
Expand Down Expand Up @@ -490,6 +494,10 @@ export const locales = {
normalize: 'Нормализовать H',
convertToUnZ: 'Конвертировать в Универсальное от Z',
convertToPoly: 'Конвертировать в Полином',
flipX: 'Отразить по X',
flipY: 'Отразить по Y',
flipZ: 'Отразить по Z',
copyCoefficients: 'Копировать коэффициенты',

// Метрики
paraxialFNum: 'Параксиальное F/#',
Expand Down
Loading