half the text

This commit is contained in:
nick-delirium 2025-05-16 11:43:04 +02:00
parent cd8085ddcb
commit b02f3a82f2
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0

View file

@ -393,8 +393,9 @@ export default abstract class Observer {
this.inlinerOptions?.forcePlain,
(cssText: string, fakeTextId: number) => {
this.app.send(CreateTextNode(fakeTextId, id, 0))
const msg = SetCSSDataURLBased(fakeTextId, cssText, this.app.getBaseHref())
console.log('fakeTextId', fakeTextId, 'node parent', id, 'cssText', msg)
const halvenText = cssText.substring(0, Math.round(cssText.length / 2))
const msg = SetCSSDataURLBased(fakeTextId, halvenText, this.app.getBaseHref())
console.log('fakeTextId', fakeTextId, 'node parent', id, 'cssText', msg, 'half', halvenText)
setTimeout(() => {
this.app.send(msg)
}, 10)