import fs from 'fs'; import path from 'path'; const g3d = (paths) => `\n${paths}\n`; const map = { // 2D Tools (Inherits thick 1.4px stroke from CSS) 'select': '', 'pan': '', 'zoom': '', 'undo': '', 'redo': '', 'eye-visible': '', 'eye-hidden': '', // High-poly 3D Isometric Elements 'wall': g3d( ` ` ), 'structure_wall': g3d( ` ` ), 'column': g3d( ` ` ), 'structure_column': g3d( ` ` ), 'space': g3d( ` ` ), 'stair': g3d( ` ` ), 'grid': ` `, 'beam': g3d( ` ` ), 'door': g3d( ` ` ), 'window': g3d( ` ` ), 'slab': g3d( ` ` ), 'structure_slab': g3d( ` ` ), 'duct': g3d( ` ` ), 'pipe': g3d( ` ` ), 'conduit': g3d( ` ` ), 'cable_tray': g3d( ` ` ), 'equipment': g3d( ` ` ), 'terminal': g3d( ` ` ), 'brace': g3d( ` ` ), 'default': `` }; const dir = path.join(process.cwd(), 'src', 'assets', 'icons'); for (const [name, content] of Object.entries(map)) { const linejoin = ['wall', 'structure_wall', 'stair', 'beam', 'door', 'window', 'slab', 'structure_slab', 'duct', 'cable_tray', 'equipment', 'terminal', 'brace'].includes(name) ? 'miter' : 'round'; const svg = '\n' + content + '\n'; fs.writeFileSync(path.join(dir, name + '.svg'), svg); } console.log('Premium CAD-style SVGs generated!');