UNPKG

@minofrk/xelto-diagram-canvas

Version:

An implementation of <xelto-diagram> in TypeScript.

28 lines (23 loc) 587 B
import { html, render } from 'lit-html/lib/shady-render'; import defaultFontFamily from '../default-font-family'; const template = html` <style> :host { font-family: ${defaultFontFamily}; width: 360px; height: 240px; display: inline-block; } canvas { width: inherit; height: inherit; } </style> <canvas></canvas> `; export default function renderTemplate( shadow: ShadowRoot, scopeName: string, ): void { return render(template, shadow, { scopeName }); }