Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion cspell-dict.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ monkeyc
mshick
mutex
noreply
observablehq
Openbase
pagekit
pluginutils
Expand Down
639 changes: 41 additions & 598 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions tools/perf-chart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,7 @@
"bin.ts"
],
"devDependencies": {
"@observablehq/plot": "^0.6.17",
"@types/d3": "^7.4.3",
"@types/jsdom": "^30.0.0",
"chart.js": "^4.6.1",
"d3": "^7.9.0",
"jsdom": "^30.1.3",
"skia-canvas": "^4.0.0"
},
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions tools/perf-chart/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ program
.argument('<file>', 'path to perf data file')
.description('Generate a min/max chart of the perf data')
.option('-o, --output <path>', 'Path to the output the Markdown file.')
.option('-g, --svg <path>', 'Path to SVG file to generate.')
.option('-p, --png <path>', 'Path to PNG file to generate.')
.option('-u, --site-url <url>', 'The url to prefix svg/png path when adding it to the markdown.')
.option('-u, --site-url <url>', 'The url to prefix png path when adding it to the markdown.')
.option('--daily-csv <path>', 'Path out output the daily csv')
.option(
'-d, --days <number>',
Expand Down
1 change: 0 additions & 1 deletion tools/perf-chart/src/experimental/plotPng.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// import * as Plot from '@observablehq/plot';
import {
BarController,
BarElement,
Expand Down
30 changes: 0 additions & 30 deletions tools/perf-chart/src/experimental/plotSvg.ts

This file was deleted.

5 changes: 1 addition & 4 deletions tools/perf-chart/src/options.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
export interface Options {
/** Path to SVG file to generate. */
svg?: string;

/** Path to PNG file to generate. */
png?: string;

/** Path to the output the Markdown file. */
output?: string;

/** The url to prefix svg / png path when adding it to the markdown */
/** The url to prefix png path when adding it to the markdown */
siteUrl?: string;

/** The number of days in the past to plot. */
Expand Down
12 changes: 0 additions & 12 deletions tools/perf-chart/src/perfChart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ export async function perfReport(csvFile: string | URL, options: Options): Promi

await outputDailyCsv(recordsGraph, options);

await generateSvg(recordsGraph, options);

await generatePng(recordsGraph, options);
}

Expand All @@ -56,16 +54,6 @@ async function outputReport(markdown: string, options: Options): Promise<void> {
await outputFile(options.output, markdown + '\n');
}

async function generateSvg(records: CsvRecord[], options: Options): Promise<void> {
if (!options.svg) return;

// Delay the import until needed - not actively used.
const { plotSvg } = await import('./experimental/plotSvg.ts');

const svg = plotSvg(records, options);
await outputFile(options.svg, svg);
}

async function outputDailyCsv(records: CsvRecord[], options: Options): Promise<void> {
if (!options.dailyCsv) return;

Expand Down
2 changes: 1 addition & 1 deletion tools/perf-chart/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"noEmit": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
// `@observablehq/plot` and `skia-canvas` ship type declarations with errors.
// `skia-canvas` ships type declarations with errors.
"skipLibCheck": true,
"allowImportingTsExtensions": true,
"types": ["node"],
Expand Down
Loading