/** * Keeping an emptied text pointable while Select is on. * * A heading whose field was emptied is still on the page -- * `

` -- with a height of nothing, so there is * nothing to click: the field cannot be picked again, and in Select & edit * cannot be typed back in. Its row stays in the Studio's column * (`useRetainedCanvasPaths`), but the page is where people point. * * So, while Select is on, such an element is marked * ({@link EMPTY_TEXT_ATTRIBUTE}) and the bridge's picking stylesheet gives it * one line of room: a minimum height for a block, a little padding for an * inline element, whose height is its line's already. * * That is the one rule of the picking stylesheet that moves the page, which * otherwise insists on outlines because they cannot. Decided so, and kept * narrow, because the alternative is a field that cannot be reached from the * page at all: * * - only while Select is on: the page is laid out as built the rest of the * time; * - only an element showing a field the Studio says is a string or a richtext * that is empty NOW (`textFields`): the page cannot tell a text from * anything else, and a spacer, an image or an input showing a non-empty * field is never touched; * - never an element that is empty by nature (an `img`, an `input`, a * ``...), whatever field it carries; * - and only while the element itself shows nothing: once typed in, it is * laid out by what it holds again. * * The room it gets is the room it will take once it holds a line of text, so * the page moves by what typing in it would move it by anyway. */ /** On an emptied text while Select is on: `block` or `inline`. */ export declare const EMPTY_TEXT_ATTRIBUTE = "data-val-empty-text"; /** * Mark what shows one of `empty` and nothing else, and unmark everything * else. `empty` is the Studio's empty text fields, or nothing to unmark all. * Safe to call as often as the page is scanned: an element already marked * keeps its mark, so its own room never decides whether it has room. */ export declare function markEmptyTextFields(root: ParentNode, empty: ReadonlySet, pathsOf: (attribute: string) => readonly string[]): void; /** The picking stylesheet's rules for {@link EMPTY_TEXT_ATTRIBUTE}. */ export declare const EMPTY_TEXT_RULES: string;