2026-03-05 14:49:58 +01:00
|
|
|
import { reactive } from 'vue';
|
|
|
|
|
|
|
|
|
|
// Singleton reactive — TextSettings writes here, ElementPopup reads when disabled
|
|
|
|
|
const defaults = reactive({
|
|
|
|
|
fontSize: { value: 16, unit: 'px' },
|
2026-03-05 15:59:38 +01:00
|
|
|
lineHeight: { value: 20, unit: 'px' },
|
2026-03-05 16:29:42 +01:00
|
|
|
fontFamily: 'sans-serif',
|
2026-03-05 14:49:58 +01:00
|
|
|
color: 'rgb(0, 0, 0)',
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export function useTextDefaults() {
|
|
|
|
|
return defaults;
|
|
|
|
|
}
|