Repository navigation
Releases
DWF Viewer 0.6.8
DWF Viewer 0.6.8 decodes binary W2D Gouraud polytriangles in drawings such as the AutoCAD 2021 attachment reported in flyfish-dev/cad-viewer#2. Canvas and WebGL preserve per-vertex color and opacity. The release includes regressions for truncated records, overlap coverage, and bounded Canvas work.
v0.6.7
Keep native DWF/DWFx vectors visible on dark backgrounds without changing source colors or alpha. Monochrome mode and cached render resources retain their existing behavior. Color-policy tests and CI pass.
npm publication is pending: the registry rejected the current trusted-publishing authorization. The npm latest version is still 0.6.6.
DWF Viewer v0.6.6
Adds non-destructive fixed-color rendering for DWF, DWFx and XPS vector content. Preserves source data, geometry, line weights, opacity and raster image colors while switching the render policy.
DWF Viewer v0.6.5
What's Changed
- Add support for legacy AutoCAD R14 ASCII DWF by @brownie-cake in #1
New Contributors
- @brownie-cake made their first contribution in #1
Full Changelog: v0.6.4...v0.6.5
dwf-viewer 0.6.4
Highlights
- Restores colorful W3D/HSF 3D rendering for eModel files where ContentDefinition instance count does not match decoded shell geometry, preventing Robot Arm from being washed into gray by unsafe ordinal material binding.
- Adds production regression coverage for Robot Arm mesh color diversity alongside geometry, strict XML, XPS, W2D, and package checks.
- Cleans up the demo header by moving advanced controls into Settings, replacing the native file picker with a compact Open file action, and removing the duplicate top-level Fit button.
- Adds visible sample/local-file loading feedback with progress UI, disabled controls, and inline load failures.
- Keeps the default demo on Blocks and Tables for a fast, clean first impression.
Verification
- npm run build:demo
- npm run validate:production
- npm run check:package
- Browser verification: default Blocks and Tables loads through dist-v0.6.4; Robot Arm renders via threejs-webgl with colored canvas sampling and no console warnings/errors.
DWF Viewer v0.6.3
Highlights
- Fixes strict browser XML parsing for legacy Autodesk eModel metadata with invalid
xmlns:schemaLocationdeclarations. - Keeps valid 3D DWFx models such as Robot Arm rendering as real
w3d-modelpages with zero diagnostics under strict DOMParser simulation. - Preserves the Cloudflare Pages demo flow, versioned
dist-v0.6.3assets, AGPL/NOTICE packaging, and dual npm publishing todwf-viewerand@flyfish-dev/dwf-viewer.
Validation
npm run buildnpm run validate:productionnpm run check:examplesnpm run build:demonpm run check:package
Links
DWF Viewer v0.6.1
Highlights
- Changed the public demo default sample to
Blocks and Tables · Binary W2D DWFfor faster first load and clearer visual presentation. - Kept Autodesk Floor Plans as an optional XPS WebGL validation sample instead of loading the large DWFx by default.
- Demo dist assets are versioned under
dist-v0.6.1to avoid stale browser module caches.
Links
- Demo: https://dwf-viewer-demo.pages.dev/
- npm: https://www.npmjs.com/package/dwf-viewer
- scoped npm: https://www.npmjs.com/package/@flyfish-dev/dwf-viewer
Verification
npm run buildnpm run validate:productionnpm run build:demonpm run check:package- Built demo verifies default sample id
blocks-tables-2danddist-v0.6.1import
DWF Viewer v0.6.0
Highlights
- Added WebGL-accelerated XPS/DWFx 2D vector rendering through
WebGlXpsBackend. - Added XPS ODTTF embedded font deobfuscation/loading for CAD-like text appearance.
- Added curated Autodesk Floor Plans DWFx demo sample, defaulting to A03 First Floor Plan.
- Tuned CAD overview linework defaults for dense architectural sheets.
- Coalesced viewer render requests to avoid zoom/pan render pile-ups.
- Demo dist assets remain versioned under
dist-v0.6.0to avoid stale browser module caches.
Links
- Demo: https://dwf-viewer-demo.pages.dev/
- npm: https://www.npmjs.com/package/dwf-viewer
- scoped npm: https://www.npmjs.com/package/@flyfish-dev/dwf-viewer
Verification
npm run buildnpm run validate:productionnpm run build:demonpm run check:package- Production validation covers Autodesk Floor Plans DWFx A03, Robot Arm 3D DWFx, minimal XPS DWFx, and binary W2D DWF
DWF Viewer v0.5.1
Highlights
- Added CAD adaptive line-weight rendering for XPS FixedPage, W2D Canvas/WASM, and W2D WebGL paths.
- Added demo controls for adaptive, physical, and hairline line-weight modes.
- Improved overview rendering with text LOD culling and embedded XPS TrueType font loading.
- Versioned demo dist assets under
dist-v0.5.1to prevent stale browser module caches on Cloudflare Pages. - Published
dwf-viewer@0.5.1and@flyfish-dev/dwf-viewer@0.5.1to npm.
Links
- Demo: https://dwf-viewer-demo.pages.dev/
- npm: https://www.npmjs.com/package/dwf-viewer
- scoped npm: https://www.npmjs.com/package/@flyfish-dev/dwf-viewer
Verification
npm run buildnpm run validate:productionnpm run build:demonpm run check:package- Production Cloudflare Pages smoke test with real DWF sample and line-weight mode switching