Iframe-PlotlyJs.page.vue
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 2m55s
/ surge (push) Successful in 2m39s
/ playwright (push) Successful in 1m15s
/ lint-build-and-check (push) Successful in 5m50s

This commit is contained in:
严浩
2025-04-17 19:28:47 +08:00
parent 95d5087b5e
commit ebed0cf4bf
7 changed files with 290548 additions and 41 deletions

View File

@ -0,0 +1,20 @@
<script setup lang="ts">
import 频谱图数据 from './_频谱图_fftSize65536_32768条.json';
const compRef = useTemplateRef('compRef');
onMounted(() => {
console.debug('[onMounted] page 加载完成');
compRef.value!.执行画图(
频谱图数据, // 实际数据点为32768
65_536, // FFT大小为65536
96_000, // 采样率为96000
);
});
</script>
<template>
<IframePlotlyJsComp ref="compRef" style="width: 1400px; height: 400px; max-width: 100%" />
</template>
<style scoped></style>