Lumiere heatmap
Where viewers clicked on a video or image, drawn by the same WebGL renderer and settings as Lumiere Studio. Required for every heatmap of Lumiere click data (UX-60): never redraw or restyle it. Only real click positions from Lumiere go in.
Add it to a page
Load the pinned file once in your Latitude Site or web page, then use the tag.
<script src="https://web-components.sites.latd.com/components/lumiere-heatmap/1.2.13/lumiere-heatmap.js"></script>This is the heatmap's own self-contained file, unchanged from the design system, so it loads as an ordinary script.
| Version | 1.2.13 |
|---|---|
| File | /components/lumiere-heatmap/1.2.13/lumiere-heatmap.js (7.6 KB gzipped) |
| SHA-256 | 1ae1de52d683b118a8f96d68f0fff69ebec570cdd12030e12643fff6b24f3a87 |
Demo
The clicks below are generated sample data, the same fixture as the design system's preview, not study results.
Usage
Put the element inside a positioned box that holds the picture, with no letterbox bars. Set points from script or with a JSON <script> inside the element, and for="video-id" or currentTime for a timeline. y runs from 0 at the bottom to 1 at the top, as Lumiere stores it.
<div style="position: relative; aspect-ratio: 16 / 9">
<video id="trailer" src="…" controls style="width: 100%; height: 100%"></video>
<lumiere-heatmap for="trailer">
<script type="application/json">
[{ "x": 0.42, "y": 0.61, "t": 3.2 }, { "x": 0.45, "y": 0.58, "t": 3.4 }]
</script>
</lumiere-heatmap>
</div>The full data contract is in the design system'sHeatmap README. This file is vendored unchanged from design-system 1.2.13; its version is the heatmap's own, not the library's.