typograph-editor-documentation
    Preparing search index...

    Class PodSettingsDialog

    File ▸ POD settings — the colours and fonts of a document a theme manifest will bind (TYP-726, TYP-923).

    ⚠️ A POD host's dialog, not general use. It serves a host that drives documents from its own theme manifests (MyVivenda): COLOR_1… and FONT_1… are handles such a manifest binds at load time. The general path — our asset manager — keeps fonts and colours in the project and needs none of this.

    • Document colours: each row is "replace this with…" — the host has ALREADY added the swatches to standardise on, and OK points everything else at them through substitute_swatch().
    • Replace fonts: a family is set in another LOADED font, typically a theme's FONT_n, through substitute_font() (TYP-923). The text changes typeface, and several families can go to one font: a theme has fewer font slots than a converted document has families.

    ⚠️ No Font handles column any more. It re-keyed which family IS FONT_n after converting (TYP-912). The theme manifest already says what FONT_n is, and a second place deciding it read as an override of the theme. A font uuid is a lookup, decided by the converter and the manifest, never something this dialog edits; Replace fonts is the one font edit here.

    ⚠️ There was a dialog like this before — poddialog.ts, removed in TYP-1372 — and it never applied anything: its OK handler ends in console.log("ChangeColor not yet implemented …"). It also reads document_colors and font_style_size_library, two stores the canvas still declares and never populates, so it would render empty lists today. This is a fresh dialog on live data rather than a revival of that one.

    ⚠️ The replaced swatch is NOT removed — see substituteasset.ts. A row that has been substituted therefore still appears in the list; it simply has no references left.

    Hierarchy (View Summary)

    Index
    cancelDialogProc: callbackwithstring
    container: HTMLElement
    containerid: string
    content: HTMLElement
    dialogcontent: HTMLElement
    dialoglayer: HTMLElement
    dialoglayerid: string
    first_x: number
    first_y: number
    foooterheight: number = kFooterHeigth
    headerheight: number = kHeaderHeight
    height: number
    id: string
    okDialogProc: callbackwithstring
    orinal_x: number
    orinal_y: number
    type: string
    width: number
    • Editing together ended while the dialog is open: the choices can be made again.

      Returns void

    • popupmenu call to check active item used by popmenucontroler when dialog propery !=null should be overridden by subclasses

      Parameters

      • id: string

      Returns boolean

    • popupmenu call for menu action used by popmenucontroler when dialog propery!=null should be overridden by subclasses

      Parameters

      • e: MouseEvent

      Returns void

    • Editing together (TYP-919): replacing colours and fonts would change them in this window only, so the choices are shown but cannot be made, and the dialog says why. Also when editing together starts while the dialog is open (pod_settings_shared()).

      Returns void

    • genaral call back to dispatch events back to the dialog...

      Parameters

      • s: string

        can be null

      Returns void