Defaul stylesheet print → new defaults.js (nique source of truth) + automatic generation of the default stylesheet for paged.js
This commit is contained in:
parent
ccdd9bda05
commit
47bf70bb36
7 changed files with 115 additions and 49 deletions
|
|
@ -1,12 +1,12 @@
|
|||
import { reactive } from 'vue';
|
||||
import { TEXT_DEFAULTS } from '../utils/defaults';
|
||||
|
||||
// Singleton reactive — TextSettings writes here, ElementPopup reads when disabled
|
||||
// Initial values match stylesheet.print.css (overwritten by syncFromStore on first mount)
|
||||
// Initial values from defaults.js (overwritten by syncFromStore on first mount)
|
||||
const defaults = reactive({
|
||||
fontSize: { value: 14, unit: 'px' },
|
||||
lineHeight: { value: 18, unit: 'px' },
|
||||
fontFamily: 'sans-serif',
|
||||
color: 'rgb(0, 0, 0)',
|
||||
...TEXT_DEFAULTS,
|
||||
fontSize: { ...TEXT_DEFAULTS.fontSize },
|
||||
lineHeight: { ...TEXT_DEFAULTS.lineHeight },
|
||||
_initialized: false,
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue