ov-downlink
src/ov-downlink.js
A STILL OF demo/downlink.html
Attributes
| attribute | |
|---|---|
label | |
lines | |
source | |
timeout |
Properties
None that can be set. See the read-only properties below.
READ-ONLY PROPERTIES
report
Events
| event |
|---|
ov:signal |
Using it
import 'overscan'
import 'overscan/overscan.css'
<ov-downlink
id="doc-downlink"
label="ROCINANTE"
lines="4"
style="inline-size:320px;max-inline-size:100%"
>
</ov-downlink>
<script type="module">
customElements.whenDefined('ov-downlink').then(() => {
const link = document.getElementById('doc-downlink');
link.receive({ text: 'BURN COMPLETE, COASTING', age: 212 });
link.receive({ text: 'TIGHTBEAM ALIGNED', age: 206 });
link.receive({ text: 'RELAYED, NO TIMESTAMP' });
link.receive({ text: 'CREW NOMINAL', age: 200 });
});
</script>import { OvDownlink } from 'overscan/react'
<OvDownlink
id="doc-downlink"
label="ROCINANTE"
lines="4"
onSignal={handler}
/>import { OvDownlink } from 'overscan/vue'
<OvDownlink
id="doc-downlink"
label="ROCINANTE"
lines="4"
@signal="handler"
/>import OvDownlink from 'overscan/svelte/OvDownlink.svelte'
<OvDownlink
id="doc-downlink"
label="ROCINANTE"
lines="4"
onsignal={handler}
/>The CSS is a separate import in every framework. A single element can be imported on its own instead of the whole kit: import 'overscan/src/ov-chart.js'
A reading is set as a PROPERTY, never an attribute. An attribute is a string, so an array cannot survive one and a null arrives as the word "null", which the protocol would read as a value rather than a dropout.
Every ov: event is bound with addEventListener. The colon has no declarative spelling in Svelte 5, where the on: directive is gone and "onov:commit" is not an identifier, nor in JSX. Vue can bind it.
The wrapper applies attributes ITSELF and hands the framework nothing but a ref. All three frameworks set a prop as a property when the name exists on the element, and this kit has 77 getter-only properties across 43 elements. Assigning one throws, and in React it does not degrade: the whole tree fails to render. 13 elements have a getter-only name that is also a real attribute (at, bearing, digits, duration, floor, fov, fresh, hold, lat, lon, period, pitch, range, ring, rings, span, step, sweep, sweeps, traces, value), which are the ones a reader would naturally pass in markup.