web: lab: improves viz for draw-sample-background
This commit is contained in:
parent
b80228e35d
commit
ca3853ece4
2 changed files with 12 additions and 1 deletions
|
|
@ -696,6 +696,7 @@ function main() {
|
|||
const r = measureDiv.getBoundingClientRect()
|
||||
measurePending = false
|
||||
lineHeightInput.placeholder = r.height
|
||||
document.documentElement.style.setProperty("--line-height", r.height + "px")
|
||||
}
|
||||
|
||||
window.addEventListener('load', measure)
|
||||
|
|
@ -799,6 +800,7 @@ function main() {
|
|||
sizeVar = vars.bind('size', (e, v, isInitial) => {
|
||||
boxes.style.display = (v > 20) ? 'none' : null
|
||||
setCSSProp('font-size', v + 'px')
|
||||
document.documentElement.style.setProperty("--font-size", v + "px")
|
||||
setGlyphlistClass('hideNames', v < 36)
|
||||
if (varSizeRange && !varSizeSettingValueImpl) {
|
||||
varSizeSettingValueImpl = true
|
||||
|
|
|
|||
Reference in a new issue