Member Junction
    Preparing search index...

    Service for managing pinned items on the Home dashboard.

    All pin state is stored as a JSON blob in UserSettings via UserInfoEngine. Uses debounced saving to avoid excessive DB writes during edit mode operations.

    Index

    Constructors

    Properties

    Pins$: BehaviorSubject<HomeAppPinnedItem[]> = ...

    Observable of current pins (for reactive UI)

    Methods

    • Capture a thumbnail of a DOM element using html-to-image. Uses SVG foreignObject so the browser's own CSS engine handles modern features like color-mix() that html2canvas can't parse. Returns a base64 JPEG data URL (~5-15KB) or undefined on failure.

      Parameters

      • element: HTMLElement

      Returns Promise<string | undefined>

    • Check if a resource is already pinned

      Parameters

      • resourceType: string
      • config: Record<string, unknown>

      Returns boolean