2026-03-05 14:49:58 +01:00
|
|
|
import { reactive } from 'vue';
|
|
|
|
|
|
|
|
|
|
// Singleton reactive — TextSettings writes here, ElementPopup reads when disabled
|
2026-03-05 19:00:29 +01:00
|
|
|
// Initial values match stylesheet.print.css (overwritten by syncFromStore on first mount)
|
2026-03-05 14:49:58 +01:00
|
|
|
const defaults = reactive({
|
2026-03-05 19:00:29 +01:00
|
|
|
fontSize: { value: 14, unit: 'px' },
|
|
|
|
|
lineHeight: { value: 18, 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)',
|
2026-03-05 19:00:29 +01:00
|
|
|
_initialized: false,
|
2026-03-05 14:49:58 +01:00
|
|
|
});
|
|
|
|
|
|
|
|
|
|
export function useTextDefaults() {
|
|
|
|
|
return defaults;
|
|
|
|
|
}
|