improvement: logo and name svgs updated and replaced.
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
/**
|
||||
* Regenerates realisticToothAssets.ts from FDI_*.svg files in public/.
|
||||
* Regenerates realisticToothAssets.ts from FDI_*.svg files in src/assets/fdi/.
|
||||
* Usage (from frontend/): node scripts/extract-tooth-svgs.mjs
|
||||
*/
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
|
||||
const dir = path.resolve('public');
|
||||
const dir = path.resolve('src/assets/fdi');
|
||||
const files = fs.readdirSync(dir).filter((f) => /^FDI_\d{2}\.svg$/i.test(f));
|
||||
const out = {};
|
||||
|
||||
@@ -31,7 +31,7 @@ for (const file of files.sort()) {
|
||||
const ts = `import type { FdiToothId } from '@/types/treatment';
|
||||
|
||||
/**
|
||||
* Realistic buccal-view assets from public/FDI_*.svg.
|
||||
* Realistic buccal-view assets from src/assets/fdi/FDI_*.svg.
|
||||
* Upper (1x/2x): root-up. Lower (3x/4x): crown-up.
|
||||
* Left chart side (Q1/Q4) includes horizontal flip via groupTransform.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user