import { LitElementWw } from '@webwriter/lit' import { CSSResult, TemplateResult, html } from 'lit' import { customElement, property } from 'lit/decorators.js' import { globalStyles } from '@/global_styles' import { ModelUtils } from '@/utils/model_utils' import { CCard } from '../reusables/c-card' import { msg } from '@lit/localize' export class EdgeWeightCard extends LitElementWw { static scopedElements = { 'c-card': CCard, } @property({ attribute: false }) accessor weight: number // STYLES - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - static styles: CSSResult = globalStyles // RENDER - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - render(): TemplateResult<1> { console.log(this.weight) return html`
${msg('Weight')}

${ModelUtils.formatWeight(this.weight)}

` } }