Repository navigation
feat(export): manufacturing, image rendering, 3D mechanical CAD and project archive exports (Phase 5.4) - #49
Merged
Conversation
…roject archive exports (Phase 5.4)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase 5.4 • Exportações de Fabricação, Imagens, 3D e Arquivo de Projeto (P2)
Summary of Changes
exportEnhancements.ts):validateExportDestination: validates file names and prevents path traversal (..) when resolving user-specified destination directories.validateExportContent: verifies file size, format integrity, and specification headers across formats (SVG XML<svg>, PNG/JPEG headers, STEP CAD ISO-10303-21 standard, Wavefront OBJ tokens, STL solid/binary mesh, AutoCAD DXF sections, and EasyEDA.epro/.zip/JSON project bundles).saveApiFile: enhanced with automatic format detection and content validation, standardizing validation reports across all export tools.exportTools.ts):easyeda_export_image: high-resolution vector/raster image exports (PNG, SVG, JPG) with DPI control (up to 1200 DPI), transparent canvas background, visual themes, and PCB layer filtering.easyeda_export_3d_model: 3D mechanical CAD geometry exports (STEP, OBJ, STL, WRL) with options for component 3D bodies, copper layers, serigraphy, and mesh quality.easyeda_export_project_archive: full project packaging (.epro,.zip,.json) with manifest inspection of documents, sheets, PCBs, and parts count.easyeda_export_dxf: 2D CAD DXF drawings of PCB outlines, copper traces, drilling holes, and schematics for mechanical enclosure fit, CNC routing, and laser cutting.exportImage,export3dModel,exportProjectArchive, andexportDxf.identity.tsforpcb_Document.exportSvg,pcb_Document.exportPng,sch_Document.exportSvg,sch_Document.exportPng,pcb_ManufactureData.getDxfFile, anddmt_Project.exportProject.docs/tools.md.