Architecture
IIFE Build and Registration
Built as IIFE via Vite (see
vite.config.lib.ts). Entrysrc/index.ts, outputdist/index.iife.js.Registers itself with the Octopus host when the global becomes available.
Type declarations emitted under
dist/.
Runtime Data Flow
Either subscribes to new values (
tangoAttributessubscription) or polls HDB++ histories.Applies optional server-side downsampling and client-side throttling (
appendInterval).Heatmap mode reprojects traces into a matrix (attr × time).
Importing in octopus-frontend
Include
dist/index.iife.js; it auto-registers under keyHDBPPLiveWidget(label “HDBPP Live”).