Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -230,7 +230,7 @@ function useLabelDistanceFactor(position: [number, number, number]): number {
|
|||||||
|
|
||||||
function MeasurementLabel({ position, text, variant, fixed = false }: { position: [number, number, number]; text: string; variant: 'success' | 'primary'; fixed?: boolean }) {
|
function MeasurementLabel({ position, text, variant, fixed = false }: { position: [number, number, number]; text: string; variant: 'success' | 'primary'; fixed?: boolean }) {
|
||||||
const dfDynamic = useLabelDistanceFactor(position);
|
const dfDynamic = useLabelDistanceFactor(position);
|
||||||
const df = fixed ? dfDynamic : 8;
|
const df = fixed ? dfDynamic : 1.5;
|
||||||
const borderClass = variant === 'success' ? 'border-success/60' : 'border-primary/60';
|
const borderClass = variant === 'success' ? 'border-success/60' : 'border-primary/60';
|
||||||
const textClass = variant === 'success' ? 'text-success' : 'text-primary';
|
const textClass = variant === 'success' ? 'text-success' : 'text-primary';
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user