Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
修改默认绘制器为 polyline
  • Loading branch information
Linho1219 committed May 8, 2025
commit ad8c5deeed032861a1cbe4dd4d0ae194abac1de4
5 changes: 3 additions & 2 deletions src/states.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const useProfile = defineStore("profile", () => {
const importedDatum = importedProfile?.data;
const processedDatum = importedDatum
? importedDatum.map(toPrivateData)
: [toPrivateData({ fn: "x^2" })];
: [toPrivateData({ fn: "x^2", graphType: "polyline" })];

const datum = ref(processedDatum);

Expand All @@ -42,7 +42,8 @@ export const useProfile = defineStore("profile", () => {
.filter(({ hidden }) => !(hidden && forExport))
.map((data) => (data.hidden ? getInvisible() : toPublicData(data)));

const addData = () => datum.value.push(toPrivateData({}));
const addData = () =>
datum.value.push(toPrivateData({ graphType: "polyline" }));

const importedAnnotations = importedProfile?.annotations;
const processedAnnotations = importedAnnotations
Expand Down