import {LitElement, css, html} from 'lit'; import {customElement, property} from 'lit/decorators.js'; import {LineMedium, LineType, lineColor, lineWidth} from '..'; @customElement('obc-direction-line') export class ObcDirectionLine extends LitElement { @property({type: String}) medium: LineMedium = LineMedium.normal; @property({type: String}) lineType: LineType = LineType.fluid; override render() { if (this.lineType === LineType.connector) { throw new Error('Connector line type not supported for line overlap'); } const color = lineColor(this.medium); const width = lineWidth(this.lineType) + 1; const h = width / 2; return html` `; } static override styles = css` :host { display: block; line-height: 0; } svg { position: relative; top: -12px; } `; } declare global { interface HTMLElementTagNameMap { 'obc-direction-line': ObcDirectionLine; } }