File size: 351 Bytes
89ce340 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<template>
<div class="symbol-content" v-html="svg"></div>
</template>
<script lang="ts" setup>
import { computed } from 'vue'
import { hfmath } from './hfmath'
const props = defineProps<{
latex: string
}>()
const svg = computed(() => {
const eq = new hfmath(props.latex)
return eq.svg({
SCALE_X: 10,
SCALE_Y: 10,
})
})
</script>
|