toggle all values
This commit is contained in:
parent
203ed18aba
commit
fa56118e75
4 changed files with 376 additions and 106 deletions
14
src/composables/useTextDefaults.js
Normal file
14
src/composables/useTextDefaults.js
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { reactive } from 'vue';
|
||||
|
||||
// Singleton reactive — TextSettings writes here, ElementPopup reads when disabled
|
||||
const defaults = reactive({
|
||||
fontSize: { value: 16, unit: 'px' },
|
||||
fontFamily: 'Alegreya Sans',
|
||||
italic: false,
|
||||
bold: false,
|
||||
color: 'rgb(0, 0, 0)',
|
||||
});
|
||||
|
||||
export function useTextDefaults() {
|
||||
return defaults;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue