microsoft / microsoft/maker.js
black is defined wrong in exporter colors
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 302
- Avg merge
- 21h 28m
- Merged PRs (30d)
- 5
Description
When exporting dxf, the default color is black and is defined as 0 in core/exporter.ts
0 is an invalid value for autocad and it will fail to open the file for it.
The right black value is 255.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The DXF exporter is identified in core/exporter.ts; start by inspecting the default color definition used during DXF export. Update the black value to the valid AutoCAD value of 255, then verify that exported DXF files open correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100