CatPtain's picture
Upload 339 files
89ce340 verified
raw
history blame contribute delete
351 Bytes
<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>