import { html, TemplateResult } from 'lit'; import '../src/kmap-solvee.js'; export default { title: 'KmapSolveTree', component: 'kmap-solvee', argTypes: { textColor: { control: 'color' }, backgroundColor: { control: 'color' }, borderColor: { control: 'color' }, }, }; interface Story { (args: T): TemplateResult; args?: Partial; argTypes?: Record; } interface ArgTypes { textColor?: string; backgroundColor?: string; borderColor?: string; slot?: TemplateResult; } const Template: Story = ({ textColor, backgroundColor, borderColor, slot, }: ArgTypes) => html` ${slot} \`2x^2- 4x = 6\` \`x(2x-4) = 6\` Faktorisieren hilft nur, wenn auf der rechten Seite \`0\` steht, sodass der Satz vom Nullprodukt angewandt werden kann \`x - 4 = 6/x\` Fehler: Teilen durch \`x\` ist keine Äquivalenzumformung \`a= .., b= .., c = ???\` Fehler: Um die Mitternachtsformel anwenden zu können, muss die Gleichung zunächst in die Nullform gebracht werden \`2x^2- 4x - 6 = 0\` \`x_1 = -1; x_2 = 3\` Schnellster Lösungsweg `; export const Regular = Template.bind({}); export const SlottedContent = Template.bind({}); SlottedContent.args = { slot: html` \`(x-2)^2=0\` \`x^2 - 4x + 4 = 0\` \`x_(1,2) = 2\` \`x - 2 = 0 => x = 2\` `, }; SlottedContent.argTypes = { slot: { table: { disable: true } }, };